Class CreateVolumeSnapshotRequest.Builder (0.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVolumeSnapshotRequest build()
Returns
TypeDescription
CreateVolumeSnapshotRequest

buildPartial()

public CreateVolumeSnapshotRequest buildPartial()
Returns
TypeDescription
CreateVolumeSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateVolumeSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateVolumeSnapshotRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateVolumeSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateVolumeSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The volume to snapshot.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeSnapshotOrBuilder

hasVolumeSnapshot()

public boolean hasVolumeSnapshot()

Required. The snapshot to create.

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

Returns
TypeDescription
boolean

Whether the volumeSnapshot field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateVolumeSnapshotRequest other)

public CreateVolumeSnapshotRequest.Builder mergeFrom(CreateVolumeSnapshotRequest other)
Parameter
NameDescription
otherCreateVolumeSnapshotRequest
Returns
TypeDescription
CreateVolumeSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateVolumeSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVolumeSnapshot
Returns
TypeDescription
CreateVolumeSnapshotRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateVolumeSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateVolumeSnapshotRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateVolumeSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVolumeSnapshot
Returns
TypeDescription
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
NameDescription
builderForValueVolumeSnapshot.Builder
Returns
TypeDescription
CreateVolumeSnapshotRequest.Builder