Class ListDataSourceReferencesResponse.Builder (0.42.0)

public static final class ListDataSourceReferencesResponse.Builder extends GeneratedMessage.Builder<ListDataSourceReferencesResponse.Builder> implements ListDataSourceReferencesResponseOrBuilder

Response for the ListDataSourceReferences method.

Protobuf type google.cloud.backupdr.v1.ListDataSourceReferencesResponse

Static Methods

getDescriptor()

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

Methods

addAllDataSourceReferences(Iterable<? extends DataSourceReference> values)

public ListDataSourceReferencesResponse.Builder addAllDataSourceReferences(Iterable<? extends DataSourceReference> values)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.DataSourceReference>
Returns
Type Description
ListDataSourceReferencesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListDataSourceReferencesResponse.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
ListDataSourceReferencesResponse.Builder

This builder for chaining.

addDataSourceReferences(DataSourceReference value)

public ListDataSourceReferencesResponse.Builder addDataSourceReferences(DataSourceReference value)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
value DataSourceReference
Returns
Type Description
ListDataSourceReferencesResponse.Builder

addDataSourceReferences(DataSourceReference.Builder builderForValue)

public ListDataSourceReferencesResponse.Builder addDataSourceReferences(DataSourceReference.Builder builderForValue)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
builderForValue DataSourceReference.Builder
Returns
Type Description
ListDataSourceReferencesResponse.Builder

addDataSourceReferences(int index, DataSourceReference value)

public ListDataSourceReferencesResponse.Builder addDataSourceReferences(int index, DataSourceReference value)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
ListDataSourceReferencesResponse.Builder

addDataSourceReferences(int index, DataSourceReference.Builder builderForValue)

public ListDataSourceReferencesResponse.Builder addDataSourceReferences(int index, DataSourceReference.Builder builderForValue)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
ListDataSourceReferencesResponse.Builder

addDataSourceReferencesBuilder()

public DataSourceReference.Builder addDataSourceReferencesBuilder()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
DataSourceReference.Builder

addDataSourceReferencesBuilder(int index)

public DataSourceReference.Builder addDataSourceReferencesBuilder(int index)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

addUnreachable(String value)

public ListDataSourceReferencesResponse.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
ListDataSourceReferencesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListDataSourceReferencesResponse.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
ListDataSourceReferencesResponse.Builder

This builder for chaining.

build()

public ListDataSourceReferencesResponse build()
Returns
Type Description
ListDataSourceReferencesResponse

buildPartial()

public ListDataSourceReferencesResponse buildPartial()
Returns
Type Description
ListDataSourceReferencesResponse

clear()

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

clearDataSourceReferences()

public ListDataSourceReferencesResponse.Builder clearDataSourceReferences()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
ListDataSourceReferencesResponse.Builder

clearNextPageToken()

public ListDataSourceReferencesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListDataSourceReferencesResponse.Builder

This builder for chaining.

clearUnreachable()

public ListDataSourceReferencesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDataSourceReferencesResponse.Builder

This builder for chaining.

getDataSourceReferences(int index)

public DataSourceReference getDataSourceReferences(int index)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference

getDataSourceReferencesBuilder(int index)

public DataSourceReference.Builder getDataSourceReferencesBuilder(int index)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

getDataSourceReferencesBuilderList()

public List<DataSourceReference.Builder> getDataSourceReferencesBuilderList()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
List<Builder>

getDataSourceReferencesCount()

public int getDataSourceReferencesCount()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
int

getDataSourceReferencesList()

public List<DataSourceReference> getDataSourceReferencesList()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
List<DataSourceReference>

getDataSourceReferencesOrBuilder(int index)

public DataSourceReferenceOrBuilder getDataSourceReferencesOrBuilder(int index)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSourceReferenceOrBuilder

getDataSourceReferencesOrBuilderList()

public List<? extends DataSourceReferenceOrBuilder> getDataSourceReferencesOrBuilderList()

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder>

getDefaultInstanceForType()

public ListDataSourceReferencesResponse getDefaultInstanceForType()
Returns
Type Description
ListDataSourceReferencesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDataSourceReferencesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDataSourceReferences(int index)

public ListDataSourceReferencesResponse.Builder removeDataSourceReferences(int index)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDataSourceReferencesResponse.Builder

setDataSourceReferences(int index, DataSourceReference value)

public ListDataSourceReferencesResponse.Builder setDataSourceReferences(int index, DataSourceReference value)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
ListDataSourceReferencesResponse.Builder

setDataSourceReferences(int index, DataSourceReference.Builder builderForValue)

public ListDataSourceReferencesResponse.Builder setDataSourceReferences(int index, DataSourceReference.Builder builderForValue)

The DataSourceReferences from the specified parent.

repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1;

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
ListDataSourceReferencesResponse.Builder

setNextPageToken(String value)

public ListDataSourceReferencesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDataSourceReferencesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDataSourceReferencesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDataSourceReferencesResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

public ListDataSourceReferencesResponse.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
ListDataSourceReferencesResponse.Builder

This builder for chaining.