Class GetVolumeBackupRequest.Builder (0.3.0)

public static final class GetVolumeBackupRequest.Builder extends GeneratedMessageV3.Builder<GetVolumeBackupRequest.Builder> implements GetVolumeBackupRequestOrBuilder

Request message for GetVolumeBackup.

Protobuf type google.cloud.gkebackup.v1.GetVolumeBackupRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetVolumeBackupRequest build()
Returns
TypeDescription
GetVolumeBackupRequest

buildPartial()

public GetVolumeBackupRequest buildPartial()
Returns
TypeDescription
GetVolumeBackupRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetVolumeBackupRequest.Builder clearName()

Required. Full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetVolumeBackupRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetVolumeBackupRequest getDefaultInstanceForType()
Returns
TypeDescription
GetVolumeBackupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetVolumeBackupRequest other)

public GetVolumeBackupRequest.Builder mergeFrom(GetVolumeBackupRequest other)
Parameter
NameDescription
otherGetVolumeBackupRequest
Returns
TypeDescription
GetVolumeBackupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetVolumeBackupRequest.Builder setName(String value)

Required. Full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetVolumeBackupRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetVolumeBackupRequest.Builder setNameBytes(ByteString value)

Required. Full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetVolumeBackupRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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