Class ListVolumeBackupsResponse.Builder (0.36.0)

public static final class ListVolumeBackupsResponse.Builder extends GeneratedMessageV3.Builder<ListVolumeBackupsResponse.Builder> implements ListVolumeBackupsResponseOrBuilder

Response message for ListVolumeBackups.

Protobuf type google.cloud.gkebackup.v1.ListVolumeBackupsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVolumeBackups(Iterable<? extends VolumeBackup> values)

public ListVolumeBackupsResponse.Builder addAllVolumeBackups(Iterable<? extends VolumeBackup> values)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.VolumeBackup>
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListVolumeBackupsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

addVolumeBackups(VolumeBackup value)

public ListVolumeBackupsResponse.Builder addVolumeBackups(VolumeBackup value)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
valueVolumeBackup
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

addVolumeBackups(VolumeBackup.Builder builderForValue)

public ListVolumeBackupsResponse.Builder addVolumeBackups(VolumeBackup.Builder builderForValue)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
builderForValueVolumeBackup.Builder
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

addVolumeBackups(int index, VolumeBackup value)

public ListVolumeBackupsResponse.Builder addVolumeBackups(int index, VolumeBackup value)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameters
NameDescription
indexint
valueVolumeBackup
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

addVolumeBackups(int index, VolumeBackup.Builder builderForValue)

public ListVolumeBackupsResponse.Builder addVolumeBackups(int index, VolumeBackup.Builder builderForValue)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameters
NameDescription
indexint
builderForValueVolumeBackup.Builder
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

addVolumeBackupsBuilder()

public VolumeBackup.Builder addVolumeBackupsBuilder()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
VolumeBackup.Builder

addVolumeBackupsBuilder(int index)

public VolumeBackup.Builder addVolumeBackupsBuilder(int index)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeBackup.Builder

build()

public ListVolumeBackupsResponse build()
Returns
TypeDescription
ListVolumeBackupsResponse

buildPartial()

public ListVolumeBackupsResponse buildPartial()
Returns
TypeDescription
ListVolumeBackupsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListVolumeBackupsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

clearNextPageToken()

public ListVolumeBackupsResponse.Builder clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListVolumeBackupsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

clearVolumeBackups()

public ListVolumeBackupsResponse.Builder clearVolumeBackups()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
ListVolumeBackupsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVolumeBackupsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVolumeBackupsResponse

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

getVolumeBackups(int index)

public VolumeBackup getVolumeBackups(int index)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeBackup

getVolumeBackupsBuilder(int index)

public VolumeBackup.Builder getVolumeBackupsBuilder(int index)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeBackup.Builder

getVolumeBackupsBuilderList()

public List<VolumeBackup.Builder> getVolumeBackupsBuilderList()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
List<Builder>

getVolumeBackupsCount()

public int getVolumeBackupsCount()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
int

getVolumeBackupsList()

public List<VolumeBackup> getVolumeBackupsList()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
List<VolumeBackup>

getVolumeBackupsOrBuilder(int index)

public VolumeBackupOrBuilder getVolumeBackupsOrBuilder(int index)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeBackupOrBuilder

getVolumeBackupsOrBuilderList()

public List<? extends VolumeBackupOrBuilder> getVolumeBackupsOrBuilderList()

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Returns
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.VolumeBackupOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVolumeBackupsResponse other)

public ListVolumeBackupsResponse.Builder mergeFrom(ListVolumeBackupsResponse other)
Parameter
NameDescription
otherListVolumeBackupsResponse
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVolumeBackupsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

removeVolumeBackups(int index)

public ListVolumeBackupsResponse.Builder removeVolumeBackups(int index)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListVolumeBackupsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

setNextPageToken(String value)

public ListVolumeBackupsResponse.Builder setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVolumeBackupsResponse.Builder setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

public ListVolumeBackupsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVolumeBackupsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVolumeBackupsResponse.Builder
Overrides

setVolumeBackups(int index, VolumeBackup value)

public ListVolumeBackupsResponse.Builder setVolumeBackups(int index, VolumeBackup value)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameters
NameDescription
indexint
valueVolumeBackup
Returns
TypeDescription
ListVolumeBackupsResponse.Builder

setVolumeBackups(int index, VolumeBackup.Builder builderForValue)

public ListVolumeBackupsResponse.Builder setVolumeBackups(int index, VolumeBackup.Builder builderForValue)

The list of VolumeBackups matching the given criteria.

repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;

Parameters
NameDescription
indexint
builderForValueVolumeBackup.Builder
Returns
TypeDescription
ListVolumeBackupsResponse.Builder