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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public CreateVolumeSnapshotRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateVolumeSnapshotRequest build()
Returns
public CreateVolumeSnapshotRequest buildPartial()
Returns
public CreateVolumeSnapshotRequest.Builder clear()
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder clearParent()
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public CreateVolumeSnapshotRequest.Builder clearVolumeSnapshot()
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public CreateVolumeSnapshotRequest.Builder clone()
Returns
Overrides
public CreateVolumeSnapshotRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
public ByteString getParentBytes()
Required. The volume to snapshot.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public VolumeSnapshot getVolumeSnapshot()
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public VolumeSnapshot.Builder getVolumeSnapshotBuilder()
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public VolumeSnapshotOrBuilder getVolumeSnapshotOrBuilder()
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public boolean hasVolumeSnapshot()
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the volumeSnapshot field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder mergeFrom(CreateVolumeSnapshotRequest other)
Parameter
Returns
public CreateVolumeSnapshotRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public CreateVolumeSnapshotRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final CreateVolumeSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder mergeVolumeSnapshot(VolumeSnapshot value)
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateVolumeSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
public CreateVolumeSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final CreateVolumeSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot value)
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateVolumeSnapshotRequest.Builder setVolumeSnapshot(VolumeSnapshot.Builder builderForValue)
Required. The volume snapshot to create. Only the description field may be specified.
.google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns