Class ListDataSourcesResponse.Builder (0.10.0)

public static final class ListDataSourcesResponse.Builder extends GeneratedMessageV3.Builder<ListDataSourcesResponse.Builder> implements ListDataSourcesResponseOrBuilder

Response message for listing DataSources.

Protobuf type google.cloud.backupdr.v1.ListDataSourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataSources(Iterable<? extends DataSource> values)

public ListDataSourcesResponse.Builder addAllDataSources(Iterable<? extends DataSource> 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)

public ListDataSourcesResponse.Builder addAllUnreachable(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)

public ListDataSourcesResponse.Builder addDataSources(DataSource value)

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)

public ListDataSourcesResponse.Builder addDataSources(DataSource.Builder builderForValue)

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)

public ListDataSourcesResponse.Builder addDataSources(int index, DataSource value)

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)

public ListDataSourcesResponse.Builder addDataSources(int index, DataSource.Builder builderForValue)

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()

public DataSource.Builder addDataSourcesBuilder()

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)

public DataSource.Builder addDataSourcesBuilder(int index)

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)

public ListDataSourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

addUnreachable(String value)

public ListDataSourcesResponse.Builder addUnreachable(String value)

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)

public ListDataSourcesResponse.Builder addUnreachableBytes(ByteString value)

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()

public ListDataSourcesResponse build()
Returns
Type Description
ListDataSourcesResponse

buildPartial()

public ListDataSourcesResponse buildPartial()
Returns
Type Description
ListDataSourcesResponse

clear()

public ListDataSourcesResponse.Builder clear()
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clearDataSources()

public ListDataSourcesResponse.Builder clearDataSources()

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)

public ListDataSourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clearNextPageToken()

public ListDataSourcesResponse.Builder clearNextPageToken()

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)

public ListDataSourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clearUnreachable()

public ListDataSourcesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDataSourcesResponse.Builder

This builder for chaining.

clone()

public ListDataSourcesResponse.Builder clone()
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

getDataSources(int index)

public DataSource getDataSources(int index)

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)

public DataSource.Builder getDataSourcesBuilder(int index)

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()

public List<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()

public int getDataSourcesCount()

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()

public List<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)

public DataSourceOrBuilder getDataSourcesOrBuilder(int index)

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()

public List<? extends DataSourceOrBuilder> 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()

public ListDataSourcesResponse getDefaultInstanceForType()
Returns
Type Description
ListDataSourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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)

public String getUnreachable(int index)

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)

public ByteString getUnreachableBytes(int index)

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()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDataSourcesResponse other)

public ListDataSourcesResponse.Builder mergeFrom(ListDataSourcesResponse other)
Parameter
Name Description
other ListDataSourcesResponse
Returns
Type Description
ListDataSourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDataSourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListDataSourcesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDataSourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

removeDataSources(int index)

public ListDataSourcesResponse.Builder removeDataSources(int index)

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)

public ListDataSourcesResponse.Builder setDataSources(int index, DataSource value)

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)

public ListDataSourcesResponse.Builder setDataSources(int index, DataSource.Builder builderForValue)

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)

public ListDataSourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

setNextPageToken(String value)

public ListDataSourcesResponse.Builder setNextPageToken(String value)

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)

public ListDataSourcesResponse.Builder setNextPageTokenBytes(ByteString value)

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)

public ListDataSourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDataSourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListDataSourcesResponse.Builder setUnreachable(int index, String value)

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.