Class CreateVolumeSnapshotRequest.Builder (0.45.0)

public static final class CreateVolumeSnapshotRequest.Builder extends GeneratedMessageV3.Builder<CreateVolumeSnapshotRequest.Builder> implements CreateVolumeSnapshotRequestOrBuilder

Message for creating a volume snapshot.

Protobuf type google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVolumeSnapshotRequest build()
Returns
Type Description
CreateVolumeSnapshotRequest

buildPartial()

public CreateVolumeSnapshotRequest buildPartial()
Returns
Type Description
CreateVolumeSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateVolumeSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateVolumeSnapshotRequest.Builder
Overrides

clearParent()

public CreateVolumeSnapshotRequest.Builder clearParent()

Required. The volume to snapshot.

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

Returns
Type Description
CreateVolumeSnapshotRequest.Builder

This builder for chaining.

clearVolumeSnapshot()

public CreateVolumeSnapshotRequest.Builder clearVolumeSnapshot()

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVolumeSnapshotRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateVolumeSnapshotRequest getDefaultInstanceForType()
Returns
Type Description
CreateVolumeSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The volume to snapshot.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The volume to snapshot.

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

Returns
Type Description
ByteString

The bytes for parent.

getVolumeSnapshot()

public VolumeSnapshot getVolumeSnapshot()

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VolumeSnapshot

The volumeSnapshot.

getVolumeSnapshotBuilder()

public VolumeSnapshot.Builder getVolumeSnapshotBuilder()

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VolumeSnapshot.Builder

getVolumeSnapshotOrBuilder()

public VolumeSnapshotOrBuilder getVolumeSnapshotOrBuilder()

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VolumeSnapshotOrBuilder

hasVolumeSnapshot()

public boolean hasVolumeSnapshot()

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the volumeSnapshot field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateVolumeSnapshotRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVolumeSnapshot(VolumeSnapshot value)

public CreateVolumeSnapshotRequest.Builder mergeVolumeSnapshot(VolumeSnapshot value)

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VolumeSnapshot
Returns
Type Description
CreateVolumeSnapshotRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateVolumeSnapshotRequest.Builder setParent(String value)

Required. The volume to snapshot.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateVolumeSnapshotRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateVolumeSnapshotRequest.Builder setParentBytes(ByteString value)

Required. The volume to snapshot.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateVolumeSnapshotRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateVolumeSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateVolumeSnapshotRequest.Builder
Overrides

setVolumeSnapshot(VolumeSnapshot value)

public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot value)

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VolumeSnapshot
Returns
Type Description
CreateVolumeSnapshotRequest.Builder

setVolumeSnapshot(VolumeSnapshot.Builder builderForValue)

public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot.Builder builderForValue)

Required. The snapshot to create.

.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue VolumeSnapshot.Builder
Returns
Type Description
CreateVolumeSnapshotRequest.Builder