Class ListRestoreChannelsResponse.Builder (0.62.0)

public static final class ListRestoreChannelsResponse.Builder extends GeneratedMessageV3.Builder<ListRestoreChannelsResponse.Builder> implements ListRestoreChannelsResponseOrBuilder

Response message for ListRestoreChannels.

Protobuf type google.cloud.gkebackup.v1.ListRestoreChannelsResponse

Static Methods

getDescriptor()

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

Methods

addAllRestoreChannels(Iterable<? extends RestoreChannel> values)

public ListRestoreChannelsResponse.Builder addAllRestoreChannels(Iterable<? extends RestoreChannel> values)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRestoreChannels(RestoreChannel value)

public ListRestoreChannelsResponse.Builder addRestoreChannels(RestoreChannel value)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
value RestoreChannel
Returns
Type Description
ListRestoreChannelsResponse.Builder

addRestoreChannels(RestoreChannel.Builder builderForValue)

public ListRestoreChannelsResponse.Builder addRestoreChannels(RestoreChannel.Builder builderForValue)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
builderForValue RestoreChannel.Builder
Returns
Type Description
ListRestoreChannelsResponse.Builder

addRestoreChannels(int index, RestoreChannel value)

public ListRestoreChannelsResponse.Builder addRestoreChannels(int index, RestoreChannel value)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameters
Name Description
index int
value RestoreChannel
Returns
Type Description
ListRestoreChannelsResponse.Builder

addRestoreChannels(int index, RestoreChannel.Builder builderForValue)

public ListRestoreChannelsResponse.Builder addRestoreChannels(int index, RestoreChannel.Builder builderForValue)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameters
Name Description
index int
builderForValue RestoreChannel.Builder
Returns
Type Description
ListRestoreChannelsResponse.Builder

addRestoreChannelsBuilder()

public RestoreChannel.Builder addRestoreChannelsBuilder()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Returns
Type Description
RestoreChannel.Builder

addRestoreChannelsBuilder(int index)

public RestoreChannel.Builder addRestoreChannelsBuilder(int index)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
RestoreChannel.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListRestoreChannelsResponse build()
Returns
Type Description
ListRestoreChannelsResponse

buildPartial()

public ListRestoreChannelsResponse buildPartial()
Returns
Type Description
ListRestoreChannelsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRestoreChannelsResponse.Builder clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRestoreChannels()

public ListRestoreChannelsResponse.Builder clearRestoreChannels()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Returns
Type Description
ListRestoreChannelsResponse.Builder

clearUnreachable()

public ListRestoreChannelsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListRestoreChannelsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRestoreChannelsResponse getDefaultInstanceForType()
Returns
Type Description
ListRestoreChannelsResponse

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

getRestoreChannels(int index)

public RestoreChannel getRestoreChannels(int index)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
RestoreChannel

getRestoreChannelsBuilder(int index)

public RestoreChannel.Builder getRestoreChannelsBuilder(int index)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
RestoreChannel.Builder

getRestoreChannelsBuilderList()

public List<RestoreChannel.Builder> getRestoreChannelsBuilderList()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Returns
Type Description
List<Builder>

getRestoreChannelsCount()

public int getRestoreChannelsCount()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Returns
Type Description
int

getRestoreChannelsList()

public List<RestoreChannel> getRestoreChannelsList()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Returns
Type Description
List<RestoreChannel>

getRestoreChannelsOrBuilder(int index)

public RestoreChannelOrBuilder getRestoreChannelsOrBuilder(int index)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
RestoreChannelOrBuilder

getRestoreChannelsOrBuilderList()

public List<? extends RestoreChannelOrBuilder> getRestoreChannelsOrBuilderList()

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRestoreChannels(int index)

public ListRestoreChannelsResponse.Builder removeRestoreChannels(int index)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRestoreChannelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRestoreChannelsResponse.Builder setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRestoreChannelsResponse.Builder setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setRestoreChannels(int index, RestoreChannel value)

public ListRestoreChannelsResponse.Builder setRestoreChannels(int index, RestoreChannel value)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameters
Name Description
index int
value RestoreChannel
Returns
Type Description
ListRestoreChannelsResponse.Builder

setRestoreChannels(int index, RestoreChannel.Builder builderForValue)

public ListRestoreChannelsResponse.Builder setRestoreChannels(int index, RestoreChannel.Builder builderForValue)

The list of RestoreChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.RestoreChannel restore_channels = 1;

Parameters
Name Description
index int
builderForValue RestoreChannel.Builder
Returns
Type Description
ListRestoreChannelsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.