Class ListDataSourcesResponse.Builder (0.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass ListDataSourcesResponse.BuilderextendsGeneratedMessageV3.Builder<ListDataSourcesResponse.Builder>implementsListDataSourcesResponseOrBuilderResponse message for listing DataSources.
Protobuf type google.cloud.backupdr.v1.ListDataSourcesResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListDataSourcesResponse.BuilderImplements
ListDataSourcesResponseOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDataSources(Iterable<? extends DataSource> values)
publicListDataSourcesResponse.BuilderaddAllDataSources(Iterable<?extendsDataSource>values)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.DataSource> |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addAllUnreachable(Iterable<String> values)
publicListDataSourcesResponse.BuilderaddAllUnreachable(Iterable<String>values)Locations that could not be reached.
repeated string unreachable = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The unreachable to add. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
addDataSources(DataSource value)
publicListDataSourcesResponse.BuilderaddDataSources(DataSourcevalue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
DataSource |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addDataSources(DataSource.Builder builderForValue)
publicListDataSourcesResponse.BuilderaddDataSources(DataSource.BuilderbuilderForValue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataSource.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addDataSources(int index, DataSource value)
publicListDataSourcesResponse.BuilderaddDataSources(intindex,DataSourcevalue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DataSource |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addDataSources(int index, DataSource.Builder builderForValue)
publicListDataSourcesResponse.BuilderaddDataSources(intindex,DataSource.BuilderbuilderForValue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DataSource.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addDataSourcesBuilder()
publicDataSource.BuilderaddDataSourcesBuilder()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
DataSource.Builder |
|
addDataSourcesBuilder(int index)
publicDataSource.BuilderaddDataSourcesBuilder(intindex)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DataSource.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicListDataSourcesResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
addUnreachable(String value)
publicListDataSourcesResponse.BuilderaddUnreachable(Stringvalue)Locations that could not be reached.
repeated string unreachable = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
String The unreachable to add. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
addUnreachableBytes(ByteString value)
publicListDataSourcesResponse.BuilderaddUnreachableBytes(ByteStringvalue)Locations that could not be reached.
repeated string unreachable = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes of the unreachable to add. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
build()
publicListDataSourcesResponsebuild()| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse |
|
buildPartial()
publicListDataSourcesResponsebuildPartial()| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse |
|
clear()
publicListDataSourcesResponse.Builderclear()| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
clearDataSources()
publicListDataSourcesResponse.BuilderclearDataSources()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicListDataSourcesResponse.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
clearNextPageToken()
publicListDataSourcesResponse.BuilderclearNextPageToken()A token identifying a page of results the server should return.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicListDataSourcesResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
clearUnreachable()
publicListDataSourcesResponse.BuilderclearUnreachable()Locations that could not be reached.
repeated string unreachable = 3;
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
clone()
publicListDataSourcesResponse.Builderclone()| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
getDataSources(int index)
publicDataSourcegetDataSources(intindex)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DataSource |
|
getDataSourcesBuilder(int index)
publicDataSource.BuildergetDataSourcesBuilder(intindex)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DataSource.Builder |
|
getDataSourcesBuilderList()
publicList<DataSource.Builder>getDataSourcesBuilderList()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDataSourcesCount()
publicintgetDataSourcesCount()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDataSourcesList()
publicList<DataSource>getDataSourcesList()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
List<DataSource> |
|
getDataSourcesOrBuilder(int index)
publicDataSourceOrBuildergetDataSourcesOrBuilder(intindex)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DataSourceOrBuilder |
|
getDataSourcesOrBuilderList()
publicList<?extendsDataSourceOrBuilder>getDataSourcesOrBuilderList()The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.DataSourceOrBuilder> |
|
getDefaultInstanceForType()
publicListDataSourcesResponsegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNextPageToken()
publicStringgetNextPageToken()A token identifying a page of results the server should return.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The nextPageToken. |
getNextPageTokenBytes()
publicByteStringgetNextPageTokenBytes()A token identifying a page of results the server should return.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
getUnreachable(int index)
publicStringgetUnreachable(intindex)Locations that could not be reached.
repeated string unreachable = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The unreachable at the given index. |
getUnreachableBytes(int index)
publicByteStringgetUnreachableBytes(intindex)Locations that could not be reached.
repeated string unreachable = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the unreachable at the given index. |
getUnreachableCount()
publicintgetUnreachableCount()Locations that could not be reached.
repeated string unreachable = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of unreachable. |
getUnreachableList()
publicProtocolStringListgetUnreachableList()Locations that could not be reached.
repeated string unreachable = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the unreachable. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListDataSourcesResponse other)
publicListDataSourcesResponse.BuildermergeFrom(ListDataSourcesResponseother)| Parameter | |
|---|---|
| Name | Description |
other |
ListDataSourcesResponse |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicListDataSourcesResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicListDataSourcesResponse.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalListDataSourcesResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
removeDataSources(int index)
publicListDataSourcesResponse.BuilderremoveDataSources(intindex)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setDataSources(int index, DataSource value)
publicListDataSourcesResponse.BuildersetDataSources(intindex,DataSourcevalue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DataSource |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setDataSources(int index, DataSource.Builder builderForValue)
publicListDataSourcesResponse.BuildersetDataSources(intindex,DataSource.BuilderbuilderForValue)The list of DataSource instances in the project for the specified location.
If the '{location}' value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.
repeated .google.cloud.backupdr.v1.DataSource data_sources = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DataSource.Builder |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicListDataSourcesResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setNextPageToken(String value)
publicListDataSourcesResponse.BuildersetNextPageToken(Stringvalue)A token identifying a page of results the server should return.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
publicListDataSourcesResponse.BuildersetNextPageTokenBytes(ByteStringvalue)A token identifying a page of results the server should return.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicListDataSourcesResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalListDataSourcesResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
|
setUnreachable(int index, String value)
publicListDataSourcesResponse.BuildersetUnreachable(intindex,Stringvalue)Locations that could not be reached.
repeated string unreachable = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The unreachable to set. |
| Returns | |
|---|---|
| Type | Description |
ListDataSourcesResponse.Builder |
This builder for chaining. |