Class ListRestoresResponse.Builder (0.53.0)

public static final class ListRestoresResponse.Builder extends GeneratedMessageV3.Builder<ListRestoresResponse.Builder> implements ListRestoresResponseOrBuilder

Response message for ListRestores.

Protobuf type google.cloud.gkebackup.v1.ListRestoresResponse

Static Methods

getDescriptor()

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

Methods

addAllRestores(Iterable<? extends Restore> values)

public ListRestoresResponse.Builder addAllRestores(Iterable<? extends Restore> values)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkebackup.v1.Restore>
Returns
Type Description
ListRestoresResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRestores(Restore value)

public ListRestoresResponse.Builder addRestores(Restore value)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
value Restore
Returns
Type Description
ListRestoresResponse.Builder

addRestores(Restore.Builder builderForValue)

public ListRestoresResponse.Builder addRestores(Restore.Builder builderForValue)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
builderForValue Restore.Builder
Returns
Type Description
ListRestoresResponse.Builder

addRestores(int index, Restore value)

public ListRestoresResponse.Builder addRestores(int index, Restore value)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameters
Name Description
index int
value Restore
Returns
Type Description
ListRestoresResponse.Builder

addRestores(int index, Restore.Builder builderForValue)

public ListRestoresResponse.Builder addRestores(int index, Restore.Builder builderForValue)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameters
Name Description
index int
builderForValue Restore.Builder
Returns
Type Description
ListRestoresResponse.Builder

addRestoresBuilder()

public Restore.Builder addRestoresBuilder()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
Restore.Builder

addRestoresBuilder(int index)

public Restore.Builder addRestoresBuilder(int index)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
index int
Returns
Type Description
Restore.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListRestoresResponse build()
Returns
Type Description
ListRestoresResponse

buildPartial()

public ListRestoresResponse buildPartial()
Returns
Type Description
ListRestoresResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRestoresResponse.Builder clearNextPageToken()

A token which may be sent as page_token in a subsequent ListRestores call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2;

Returns
Type Description
ListRestoresResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRestores()

public ListRestoresResponse.Builder clearRestores()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
ListRestoresResponse.Builder

clearUnreachable()

public ListRestoresResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListRestoresResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRestoresResponse getDefaultInstanceForType()
Returns
Type Description
ListRestoresResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token which may be sent as page_token in a subsequent ListRestores call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token which may be sent as page_token in a subsequent ListRestores call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRestores(int index)

public Restore getRestores(int index)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
index int
Returns
Type Description
Restore

getRestoresBuilder(int index)

public Restore.Builder getRestoresBuilder(int index)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
index int
Returns
Type Description
Restore.Builder

getRestoresBuilderList()

public List<Restore.Builder> getRestoresBuilderList()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
List<Builder>

getRestoresCount()

public int getRestoresCount()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
int

getRestoresList()

public List<Restore> getRestoresList()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
List<Restore>

getRestoresOrBuilder(int index)

public RestoreOrBuilder getRestoresOrBuilder(int index)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
index int
Returns
Type Description
RestoreOrBuilder

getRestoresOrBuilderList()

public List<? extends RestoreOrBuilder> getRestoresOrBuilderList()

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Returns
Type Description
List<? extends com.google.cloud.gkebackup.v1.RestoreOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRestores(int index)

public ListRestoresResponse.Builder removeRestores(int index)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRestoresResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRestoresResponse.Builder setNextPageToken(String value)

A token which may be sent as page_token in a subsequent ListRestores call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRestoresResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRestoresResponse.Builder setNextPageTokenBytes(ByteString value)

A token which may be sent as page_token in a subsequent ListRestores call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRestoresResponse.Builder

This builder for chaining.

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

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

setRestores(int index, Restore value)

public ListRestoresResponse.Builder setRestores(int index, Restore value)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameters
Name Description
index int
value Restore
Returns
Type Description
ListRestoresResponse.Builder

setRestores(int index, Restore.Builder builderForValue)

public ListRestoresResponse.Builder setRestores(int index, Restore.Builder builderForValue)

The list of Restores matching the given criteria.

repeated .google.cloud.gkebackup.v1.Restore restores = 1;

Parameters
Name Description
index int
builderForValue Restore.Builder
Returns
Type Description
ListRestoresResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.