Class RestoreVolumeSnapshotRequest.Builder (0.45.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreVolumeSnapshotRequest build()
Returns
Type Description
RestoreVolumeSnapshotRequest

buildPartial()

public RestoreVolumeSnapshotRequest buildPartial()
Returns
Type Description
RestoreVolumeSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreVolumeSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
RestoreVolumeSnapshotRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RestoreVolumeSnapshotRequest getDefaultInstanceForType()
Returns
Type Description
RestoreVolumeSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for volumeSnapshot.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreVolumeSnapshotRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreVolumeSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The volumeSnapshot to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for volumeSnapshot to set.

Returns
Type Description
RestoreVolumeSnapshotRequest.Builder

This builder for chaining.