Class ListRestorePlansResponse.Builder (0.45.0)

public static final class ListRestorePlansResponse.Builder extends GeneratedMessageV3.Builder<ListRestorePlansResponse.Builder> implements ListRestorePlansResponseOrBuilder

Response message for ListRestorePlans.

Protobuf type google.cloud.gkebackup.v1.ListRestorePlansResponse

Static Methods

getDescriptor()

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

Methods

addAllRestorePlans(Iterable<? extends RestorePlan> values)

public ListRestorePlansResponse.Builder addAllRestorePlans(Iterable<? extends RestorePlan> values)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRestorePlans(RestorePlan value)

public ListRestorePlansResponse.Builder addRestorePlans(RestorePlan value)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
value RestorePlan
Returns
Type Description
ListRestorePlansResponse.Builder

addRestorePlans(RestorePlan.Builder builderForValue)

public ListRestorePlansResponse.Builder addRestorePlans(RestorePlan.Builder builderForValue)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
builderForValue RestorePlan.Builder
Returns
Type Description
ListRestorePlansResponse.Builder

addRestorePlans(int index, RestorePlan value)

public ListRestorePlansResponse.Builder addRestorePlans(int index, RestorePlan value)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameters
Name Description
index int
value RestorePlan
Returns
Type Description
ListRestorePlansResponse.Builder

addRestorePlans(int index, RestorePlan.Builder builderForValue)

public ListRestorePlansResponse.Builder addRestorePlans(int index, RestorePlan.Builder builderForValue)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameters
Name Description
index int
builderForValue RestorePlan.Builder
Returns
Type Description
ListRestorePlansResponse.Builder

addRestorePlansBuilder()

public RestorePlan.Builder addRestorePlansBuilder()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Returns
Type Description
RestorePlan.Builder

addRestorePlansBuilder(int index)

public RestorePlan.Builder addRestorePlansBuilder(int index)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
index int
Returns
Type Description
RestorePlan.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListRestorePlansResponse build()
Returns
Type Description
ListRestorePlansResponse

buildPartial()

public ListRestorePlansResponse buildPartial()
Returns
Type Description
ListRestorePlansResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRestorePlansResponse.Builder clearNextPageToken()

A token which may be sent as page_token in a subsequent ListRestorePlans 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
ListRestorePlansResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRestorePlans()

public ListRestorePlansResponse.Builder clearRestorePlans()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Returns
Type Description
ListRestorePlansResponse.Builder

clearUnreachable()

public ListRestorePlansResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListRestorePlansResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRestorePlansResponse getDefaultInstanceForType()
Returns
Type Description
ListRestorePlansResponse

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 ListRestorePlans 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 ListRestorePlans 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.

getRestorePlans(int index)

public RestorePlan getRestorePlans(int index)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
index int
Returns
Type Description
RestorePlan

getRestorePlansBuilder(int index)

public RestorePlan.Builder getRestorePlansBuilder(int index)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
index int
Returns
Type Description
RestorePlan.Builder

getRestorePlansBuilderList()

public List<RestorePlan.Builder> getRestorePlansBuilderList()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Returns
Type Description
List<Builder>

getRestorePlansCount()

public int getRestorePlansCount()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Returns
Type Description
int

getRestorePlansList()

public List<RestorePlan> getRestorePlansList()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Returns
Type Description
List<RestorePlan>

getRestorePlansOrBuilder(int index)

public RestorePlanOrBuilder getRestorePlansOrBuilder(int index)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
index int
Returns
Type Description
RestorePlanOrBuilder

getRestorePlansOrBuilderList()

public List<? extends RestorePlanOrBuilder> getRestorePlansOrBuilderList()

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRestorePlans(int index)

public ListRestorePlansResponse.Builder removeRestorePlans(int index)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRestorePlansResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRestorePlansResponse.Builder setNextPageToken(String value)

A token which may be sent as page_token in a subsequent ListRestorePlans 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
ListRestorePlansResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRestorePlansResponse.Builder setNextPageTokenBytes(ByteString value)

A token which may be sent as page_token in a subsequent ListRestorePlans 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
ListRestorePlansResponse.Builder

This builder for chaining.

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

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

setRestorePlans(int index, RestorePlan value)

public ListRestorePlansResponse.Builder setRestorePlans(int index, RestorePlan value)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameters
Name Description
index int
value RestorePlan
Returns
Type Description
ListRestorePlansResponse.Builder

setRestorePlans(int index, RestorePlan.Builder builderForValue)

public ListRestorePlansResponse.Builder setRestorePlans(int index, RestorePlan.Builder builderForValue)

The list of RestorePlans matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;

Parameters
Name Description
index int
builderForValue RestorePlan.Builder
Returns
Type Description
ListRestorePlansResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.