Class RestoreVolumeSnapshotRequest.Builder (0.28.0)

public static final class RestoreVolumeSnapshotRequest.Builder extends GeneratedMessageV3.Builder<RestoreVolumeSnapshotRequest.Builder> implements RestoreVolumeSnapshotRequestOrBuilder

Message for restoring a volume snapshot.

Protobuf type google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreVolumeSnapshotRequest build()
Returns
TypeDescription
RestoreVolumeSnapshotRequest

buildPartial()

public RestoreVolumeSnapshotRequest buildPartial()
Returns
TypeDescription
RestoreVolumeSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVolumeSnapshot()

public RestoreVolumeSnapshotRequest.Builder clearVolumeSnapshot()

Required. Name of the snapshot which will be used to restore its parent volume.

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

Returns
TypeDescription
RestoreVolumeSnapshotRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RestoreVolumeSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
RestoreVolumeSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVolumeSnapshot()

public String getVolumeSnapshot()

Required. Name of the snapshot which will be used to restore its parent volume.

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

Returns
TypeDescription
String

The volumeSnapshot.

getVolumeSnapshotBytes()

public ByteString getVolumeSnapshotBytes()

Required. Name of the snapshot which will be used to restore its parent volume.

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

Returns
TypeDescription
ByteString

The bytes for volumeSnapshot.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreVolumeSnapshotRequest other)

public RestoreVolumeSnapshotRequest.Builder mergeFrom(RestoreVolumeSnapshotRequest other)
Parameter
NameDescription
otherRestoreVolumeSnapshotRequest
Returns
TypeDescription
RestoreVolumeSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumeSnapshot(String value)

public RestoreVolumeSnapshotRequest.Builder setVolumeSnapshot(String value)

Required. Name of the snapshot which will be used to restore its parent volume.

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

Parameter
NameDescription
valueString

The volumeSnapshot to set.

Returns
TypeDescription
RestoreVolumeSnapshotRequest.Builder

This builder for chaining.

setVolumeSnapshotBytes(ByteString value)

public RestoreVolumeSnapshotRequest.Builder setVolumeSnapshotBytes(ByteString value)

Required. Name of the snapshot which will be used to restore its parent volume.

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

Parameter
NameDescription
valueByteString

The bytes for volumeSnapshot to set.

Returns
TypeDescription
RestoreVolumeSnapshotRequest.Builder

This builder for chaining.