Class ListRestorePlansResponse.Builder (0.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.RestorePlan>
Returns
TypeDescription
ListRestorePlansResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRestorePlansResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRestorePlan
Returns
TypeDescription
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
NameDescription
builderForValueRestorePlan.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRestorePlan
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestorePlan.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RestorePlan.Builder

addUnreachable(String value)

public ListRestorePlansResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListRestorePlansResponse.Builder

This builder for chaining.

build()

public ListRestorePlansResponse build()
Returns
TypeDescription
ListRestorePlansResponse

buildPartial()

public ListRestorePlansResponse buildPartial()
Returns
TypeDescription
ListRestorePlansResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListRestorePlansResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListRestorePlansResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRestorePlansResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRestorePlansResponse

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

getRestorePlansCount()

public int getRestorePlansCount()

The list of RestorePlans matching the given criteria.

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

Returns
TypeDescription
int

getRestorePlansList()

public List<RestorePlan> getRestorePlansList()

The list of RestorePlans matching the given criteria.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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(ListRestorePlansResponse other)

public ListRestorePlansResponse.Builder mergeFrom(ListRestorePlansResponse other)
Parameter
NameDescription
otherListRestorePlansResponse
Returns
TypeDescription
ListRestorePlansResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRestorePlan
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestorePlan.Builder
Returns
TypeDescription
ListRestorePlansResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListRestorePlansResponse.Builder

This builder for chaining.