Class ListBackupChannelsResponse.Builder (0.62.0)

public static final class ListBackupChannelsResponse.Builder extends GeneratedMessageV3.Builder<ListBackupChannelsResponse.Builder> implements ListBackupChannelsResponseOrBuilder

Response message for ListBackupChannels.

Protobuf type google.cloud.gkebackup.v1.ListBackupChannelsResponse

Static Methods

getDescriptor()

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

Methods

addAllBackupChannels(Iterable<? extends BackupChannel> values)

public ListBackupChannelsResponse.Builder addAllBackupChannels(Iterable<? extends BackupChannel> values)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addBackupChannels(BackupChannel value)

public ListBackupChannelsResponse.Builder addBackupChannels(BackupChannel value)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
value BackupChannel
Returns
Type Description
ListBackupChannelsResponse.Builder

addBackupChannels(BackupChannel.Builder builderForValue)

public ListBackupChannelsResponse.Builder addBackupChannels(BackupChannel.Builder builderForValue)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
builderForValue BackupChannel.Builder
Returns
Type Description
ListBackupChannelsResponse.Builder

addBackupChannels(int index, BackupChannel value)

public ListBackupChannelsResponse.Builder addBackupChannels(int index, BackupChannel value)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameters
Name Description
index int
value BackupChannel
Returns
Type Description
ListBackupChannelsResponse.Builder

addBackupChannels(int index, BackupChannel.Builder builderForValue)

public ListBackupChannelsResponse.Builder addBackupChannels(int index, BackupChannel.Builder builderForValue)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameters
Name Description
index int
builderForValue BackupChannel.Builder
Returns
Type Description
ListBackupChannelsResponse.Builder

addBackupChannelsBuilder()

public BackupChannel.Builder addBackupChannelsBuilder()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Returns
Type Description
BackupChannel.Builder

addBackupChannelsBuilder(int index)

public BackupChannel.Builder addBackupChannelsBuilder(int index)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupChannel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListBackupChannelsResponse build()
Returns
Type Description
ListBackupChannelsResponse

buildPartial()

public ListBackupChannelsResponse buildPartial()
Returns
Type Description
ListBackupChannelsResponse

clear()

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

clearBackupChannels()

public ListBackupChannelsResponse.Builder clearBackupChannels()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Returns
Type Description
ListBackupChannelsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBackupChannelsResponse.Builder clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListBackupChannelsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListBackupChannelsResponse.Builder

This builder for chaining.

clone()

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

getBackupChannels(int index)

public BackupChannel getBackupChannels(int index)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupChannel

getBackupChannelsBuilder(int index)

public BackupChannel.Builder getBackupChannelsBuilder(int index)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupChannel.Builder

getBackupChannelsBuilderList()

public List<BackupChannel.Builder> getBackupChannelsBuilderList()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Returns
Type Description
List<Builder>

getBackupChannelsCount()

public int getBackupChannelsCount()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Returns
Type Description
int

getBackupChannelsList()

public List<BackupChannel> getBackupChannelsList()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Returns
Type Description
List<BackupChannel>

getBackupChannelsOrBuilder(int index)

public BackupChannelOrBuilder getBackupChannelsOrBuilder(int index)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupChannelOrBuilder

getBackupChannelsOrBuilderList()

public List<? extends BackupChannelOrBuilder> getBackupChannelsOrBuilderList()

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

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

getDefaultInstanceForType()

public ListBackupChannelsResponse getDefaultInstanceForType()
Returns
Type Description
ListBackupChannelsResponse

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBackupChannels(int index)

public ListBackupChannelsResponse.Builder removeBackupChannels(int index)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBackupChannelsResponse.Builder

setBackupChannels(int index, BackupChannel value)

public ListBackupChannelsResponse.Builder setBackupChannels(int index, BackupChannel value)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameters
Name Description
index int
value BackupChannel
Returns
Type Description
ListBackupChannelsResponse.Builder

setBackupChannels(int index, BackupChannel.Builder builderForValue)

public ListBackupChannelsResponse.Builder setBackupChannels(int index, BackupChannel.Builder builderForValue)

The list of BackupChannels matching the given criteria.

repeated .google.cloud.gkebackup.v1.BackupChannel backup_channels = 1;

Parameters
Name Description
index int
builderForValue BackupChannel.Builder
Returns
Type Description
ListBackupChannelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBackupChannelsResponse.Builder setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBackupChannelsResponse.Builder setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.