Class ListBackupCollectionsResponse.Builder (0.29.0)

public static final class ListBackupCollectionsResponse.Builder extends GeneratedMessageV3.Builder<ListBackupCollectionsResponse.Builder> implements ListBackupCollectionsResponseOrBuilder

Response for [ListBackupCollections].

Protobuf type google.cloud.redis.cluster.v1.ListBackupCollectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllBackupCollections(Iterable<? extends BackupCollection> values)

public ListBackupCollectionsResponse.Builder addAllBackupCollections(Iterable<? extends BackupCollection> values)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.redis.cluster.v1.BackupCollection>
Returns
Type Description
ListBackupCollectionsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addBackupCollections(BackupCollection value)

public ListBackupCollectionsResponse.Builder addBackupCollections(BackupCollection value)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
value BackupCollection
Returns
Type Description
ListBackupCollectionsResponse.Builder

addBackupCollections(BackupCollection.Builder builderForValue)

public ListBackupCollectionsResponse.Builder addBackupCollections(BackupCollection.Builder builderForValue)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
builderForValue BackupCollection.Builder
Returns
Type Description
ListBackupCollectionsResponse.Builder

addBackupCollections(int index, BackupCollection value)

public ListBackupCollectionsResponse.Builder addBackupCollections(int index, BackupCollection value)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameters
Name Description
index int
value BackupCollection
Returns
Type Description
ListBackupCollectionsResponse.Builder

addBackupCollections(int index, BackupCollection.Builder builderForValue)

public ListBackupCollectionsResponse.Builder addBackupCollections(int index, BackupCollection.Builder builderForValue)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameters
Name Description
index int
builderForValue BackupCollection.Builder
Returns
Type Description
ListBackupCollectionsResponse.Builder

addBackupCollectionsBuilder()

public BackupCollection.Builder addBackupCollectionsBuilder()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
BackupCollection.Builder

addBackupCollectionsBuilder(int index)

public BackupCollection.Builder addBackupCollectionsBuilder(int index)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupCollection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListBackupCollectionsResponse build()
Returns
Type Description
ListBackupCollectionsResponse

buildPartial()

public ListBackupCollectionsResponse buildPartial()
Returns
Type Description
ListBackupCollectionsResponse

clear()

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

clearBackupCollections()

public ListBackupCollectionsResponse.Builder clearBackupCollections()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
ListBackupCollectionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBackupCollectionsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListBackupCollectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListBackupCollectionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListBackupCollectionsResponse.Builder

This builder for chaining.

clone()

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

getBackupCollections(int index)

public BackupCollection getBackupCollections(int index)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupCollection

getBackupCollectionsBuilder(int index)

public BackupCollection.Builder getBackupCollectionsBuilder(int index)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupCollection.Builder

getBackupCollectionsBuilderList()

public List<BackupCollection.Builder> getBackupCollectionsBuilderList()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
List<Builder>

getBackupCollectionsCount()

public int getBackupCollectionsCount()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
int

getBackupCollectionsList()

public List<BackupCollection> getBackupCollectionsList()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
List<BackupCollection>

getBackupCollectionsOrBuilder(int index)

public BackupCollectionOrBuilder getBackupCollectionsOrBuilder(int index)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupCollectionOrBuilder

getBackupCollectionsOrBuilderList()

public List<? extends BackupCollectionOrBuilder> getBackupCollectionsOrBuilderList()

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Returns
Type Description
List<? extends com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder>

getDefaultInstanceForType()

public ListBackupCollectionsResponse getDefaultInstanceForType()
Returns
Type Description
ListBackupCollectionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBackupCollections(int index)

public ListBackupCollectionsResponse.Builder removeBackupCollections(int index)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBackupCollectionsResponse.Builder

setBackupCollections(int index, BackupCollection value)

public ListBackupCollectionsResponse.Builder setBackupCollections(int index, BackupCollection value)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameters
Name Description
index int
value BackupCollection
Returns
Type Description
ListBackupCollectionsResponse.Builder

setBackupCollections(int index, BackupCollection.Builder builderForValue)

public ListBackupCollectionsResponse.Builder setBackupCollections(int index, BackupCollection.Builder builderForValue)

A list of backupCollections in the project.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder backupCollection entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/backupCollections/- and the status field set to ERROR and status_message field set to "location not available for ListBackupCollections".

repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1;

Parameters
Name Description
index int
builderForValue BackupCollection.Builder
Returns
Type Description
ListBackupCollectionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBackupCollectionsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBackupCollectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBackupCollectionsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBackupCollectionsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.