Class ListRestoresResponse.Builder (0.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.Restore>
Returns
TypeDescription
ListRestoresResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListRestoresResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListRestoresResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRestoresResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRestore
Returns
TypeDescription
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
NameDescription
builderForValueRestore.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRestore
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestore.Builder
Returns
TypeDescription
ListRestoresResponse.Builder

addRestoresBuilder()

public Restore.Builder addRestoresBuilder()

The list of Restores matching the given criteria.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Restore.Builder

addUnreachable(String value)

public ListRestoresResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListRestoresResponse.Builder

This builder for chaining.

build()

public ListRestoresResponse build()
Returns
TypeDescription
ListRestoresResponse

buildPartial()

public ListRestoresResponse buildPartial()
Returns
TypeDescription
ListRestoresResponse

clear()

public ListRestoresResponse.Builder clear()
Returns
TypeDescription
ListRestoresResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListRestoresResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListRestoresResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRestoresResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListRestoresResponse.Builder

clearUnreachable()

public ListRestoresResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListRestoresResponse.Builder

This builder for chaining.

clone()

public ListRestoresResponse.Builder clone()
Returns
TypeDescription
ListRestoresResponse.Builder
Overrides

getDefaultInstanceForType()

public ListRestoresResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRestoresResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getRestoresCount()

public int getRestoresCount()

The list of Restores matching the given criteria.

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

Returns
TypeDescription
int

getRestoresList()

public List<Restore> getRestoresList()

The list of Restores matching the given criteria.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RestoreOrBuilder

getRestoresOrBuilderList()

public List<? extends RestoreOrBuilder> getRestoresOrBuilderList()

The list of Restores matching the given criteria.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRestoresResponse other)

public ListRestoresResponse.Builder mergeFrom(ListRestoresResponse other)
Parameter
NameDescription
otherListRestoresResponse
Returns
TypeDescription
ListRestoresResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListRestoresResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRestoresResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListRestoresResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListRestoresResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRestoresResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListRestoresResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListRestoresResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRestore
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestore.Builder
Returns
TypeDescription
ListRestoresResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRestoresResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListRestoresResponse.Builder

This builder for chaining.