public final class CreateVolumeSnapshotRequest extends GeneratedMessageV3 implements CreateVolumeSnapshotRequestOrBuilder
Message for creating a volume snapshot.
Protobuf type google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest
Static Fields
public static final int PARENT_FIELD_NUMBER
Field Value
public static final int VOLUME_SNAPSHOT_FIELD_NUMBER
Field Value
Static Methods
public static CreateVolumeSnapshotRequest getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static CreateVolumeSnapshotRequest.Builder newBuilder()
Returns
public static CreateVolumeSnapshotRequest.Builder newBuilder(CreateVolumeSnapshotRequest prototype)
Parameter
Returns
public static CreateVolumeSnapshotRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static CreateVolumeSnapshotRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<CreateVolumeSnapshotRequest> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest getDefaultInstanceForType()
Returns
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 Parser<CreateVolumeSnapshotRequest> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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 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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder newBuilderForType()
Returns
protected CreateVolumeSnapshotRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public CreateVolumeSnapshotRequest.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions