Class VolumeRestore.Builder (0.2.2)

public static final class VolumeRestore.Builder extends GeneratedMessageV3.Builder<VolumeRestore.Builder> implements VolumeRestoreOrBuilder

Represents the operation of restoring a volume from a VolumeBackup. Next id: 13

Protobuf type google.cloud.gkebackup.v1.VolumeRestore

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VolumeRestore build()
Returns
TypeDescription
VolumeRestore

buildPartial()

public VolumeRestore buildPartial()
Returns
TypeDescription
VolumeRestore

clear()

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

clearCompleteTime()

public VolumeRestore.Builder clearCompleteTime()

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

clearCreateTime()

public VolumeRestore.Builder clearCreateTime()

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

clearEtag()

public VolumeRestore.Builder clearEtag()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public VolumeRestore.Builder clearName()

Output only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public VolumeRestore.Builder clearState()

Output only. The current state of this VolumeRestore.

.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearStateMessage()

public VolumeRestore.Builder clearStateMessage()

Output only. A human readable message explaining why the VolumeRestore is in its current state.

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearTargetPvc()

public VolumeRestore.Builder clearTargetPvc()

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

clearUid()

public VolumeRestore.Builder clearUid()

Output only. Server generated global unique identifier of UUID format.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearUpdateTime()

public VolumeRestore.Builder clearUpdateTime()

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

clearVolumeBackup()

public VolumeRestore.Builder clearVolumeBackup()

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.

string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearVolumeHandle()

public VolumeRestore.Builder clearVolumeHandle()

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clearVolumeType()

public VolumeRestore.Builder clearVolumeType()

Output only. The type of volume provisioned

.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

clone()

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

getCompleteTime()

public Timestamp getCompleteTime()

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The completeTime.

getCompleteTimeBuilder()

public Timestamp.Builder getCompleteTimeBuilder()

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCompleteTimeOrBuilder()

public TimestampOrBuilder getCompleteTimeOrBuilder()

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public VolumeRestore getDefaultInstanceForType()
Returns
TypeDescription
VolumeRestore

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Output only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public VolumeRestore.State getState()

Output only. The current state of this VolumeRestore.

.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.State

The state.

getStateMessage()

public String getStateMessage()

Output only. A human readable message explaining why the VolumeRestore is in its current state.

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. A human readable message explaining why the VolumeRestore is in its current state.

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateMessage.

getStateValue()

public int getStateValue()

Output only. The current state of this VolumeRestore.

.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTargetPvc()

public NamespacedName getTargetPvc()

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NamespacedName

The targetPvc.

getTargetPvcBuilder()

public NamespacedName.Builder getTargetPvcBuilder()

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NamespacedName.Builder

getTargetPvcOrBuilder()

public NamespacedNameOrBuilder getTargetPvcOrBuilder()

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NamespacedNameOrBuilder

getUid()

public String getUid()

Output only. Server generated global unique identifier of UUID format.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Server generated global unique identifier of UUID format.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVolumeBackup()

public String getVolumeBackup()

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.

string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The volumeBackup.

getVolumeBackupBytes()

public ByteString getVolumeBackupBytes()

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.

string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for volumeBackup.

getVolumeHandle()

public String getVolumeHandle()

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The volumeHandle.

getVolumeHandleBytes()

public ByteString getVolumeHandleBytes()

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for volumeHandle.

getVolumeType()

public VolumeRestore.VolumeType getVolumeType()

Output only. The type of volume provisioned

.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VolumeRestore.VolumeType

The volumeType.

getVolumeTypeValue()

public int getVolumeTypeValue()

Output only. The type of volume provisioned

.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for volumeType.

hasCompleteTime()

public boolean hasCompleteTime()

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the completeTime field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasTargetPvc()

public boolean hasTargetPvc()

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the targetPvc field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCompleteTime(Timestamp value)

public VolumeRestore.Builder mergeCompleteTime(Timestamp value)

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

mergeCreateTime(Timestamp value)

public VolumeRestore.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

mergeFrom(VolumeRestore other)

public VolumeRestore.Builder mergeFrom(VolumeRestore other)
Parameter
NameDescription
otherVolumeRestore
Returns
TypeDescription
VolumeRestore.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTargetPvc(NamespacedName value)

public VolumeRestore.Builder mergeTargetPvc(NamespacedName value)

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueNamespacedName
Returns
TypeDescription
VolumeRestore.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public VolumeRestore.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

setCompleteTime(Timestamp value)

public VolumeRestore.Builder setCompleteTime(Timestamp value)

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

setCompleteTime(Timestamp.Builder builderForValue)

public VolumeRestore.Builder setCompleteTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the associated underlying volume restoration completed.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VolumeRestore.Builder

setCreateTime(Timestamp value)

public VolumeRestore.Builder setCreateTime(Timestamp value)

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

setCreateTime(Timestamp.Builder builderForValue)

public VolumeRestore.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when this VolumeRestore resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VolumeRestore.Builder

setEtag(String value)

public VolumeRestore.Builder setEtag(String value)

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public VolumeRestore.Builder setEtagBytes(ByteString value)

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.

string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public VolumeRestore.Builder setName(String value)

Output only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VolumeRestore.Builder setNameBytes(ByteString value)

Output only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

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

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

setState(VolumeRestore.State value)

public VolumeRestore.Builder setState(VolumeRestore.State value)

Output only. The current state of this VolumeRestore.

.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVolumeRestore.State

The state to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setStateMessage(String value)

public VolumeRestore.Builder setStateMessage(String value)

Output only. A human readable message explaining why the VolumeRestore is in its current state.

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The stateMessage to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public VolumeRestore.Builder setStateMessageBytes(ByteString value)

Output only. A human readable message explaining why the VolumeRestore is in its current state.

string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for stateMessage to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setStateValue(int value)

public VolumeRestore.Builder setStateValue(int value)

Output only. The current state of this VolumeRestore.

.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setTargetPvc(NamespacedName value)

public VolumeRestore.Builder setTargetPvc(NamespacedName value)

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueNamespacedName
Returns
TypeDescription
VolumeRestore.Builder

setTargetPvc(NamespacedName.Builder builderForValue)

public VolumeRestore.Builder setTargetPvc(NamespacedName.Builder builderForValue)

Output only. The reference to the target Kubernetes PVC to be restored.

.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueNamespacedName.Builder
Returns
TypeDescription
VolumeRestore.Builder

setUid(String value)

public VolumeRestore.Builder setUid(String value)

Output only. Server generated global unique identifier of UUID format.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setUidBytes(ByteString value)

public VolumeRestore.Builder setUidBytes(ByteString value)

Output only. Server generated global unique identifier of UUID format.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public VolumeRestore.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeRestore.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public VolumeRestore.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when this VolumeRestore resource was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VolumeRestore.Builder

setVolumeBackup(String value)

public VolumeRestore.Builder setVolumeBackup(String value)

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.

string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The volumeBackup to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setVolumeBackupBytes(ByteString value)

public VolumeRestore.Builder setVolumeBackupBytes(ByteString value)

Output only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.

string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for volumeBackup to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setVolumeHandle(String value)

public VolumeRestore.Builder setVolumeHandle(String value)

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The volumeHandle to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setVolumeHandleBytes(ByteString value)

public VolumeRestore.Builder setVolumeHandleBytes(ByteString value)

Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.

string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for volumeHandle to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setVolumeType(VolumeRestore.VolumeType value)

public VolumeRestore.Builder setVolumeType(VolumeRestore.VolumeType value)

Output only. The type of volume provisioned

.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVolumeRestore.VolumeType

The volumeType to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.

setVolumeTypeValue(int value)

public VolumeRestore.Builder setVolumeTypeValue(int value)

Output only. The type of volume provisioned

.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for volumeType to set.

Returns
TypeDescription
VolumeRestore.Builder

This builder for chaining.