public static final class RevertVolumeRequest.Builder extends GeneratedMessage.Builder<RevertVolumeRequest.Builder> implements RevertVolumeRequestOrBuilderRevertVolumeRequest reverts the given volume to the specified snapshot.
Protobuf type google.cloud.netapp.v1.RevertVolumeRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RevertVolumeRequest.BuilderImplements
RevertVolumeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RevertVolumeRequest build()| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest |
|
buildPartial()
public RevertVolumeRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest |
|
clear()
public RevertVolumeRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
|
clearName()
public RevertVolumeRequest.Builder clearName()Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |
clearSnapshotId()
public RevertVolumeRequest.Builder clearSnapshotId()Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RevertVolumeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSnapshotId()
public String getSnapshotId()Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The snapshotId. |
getSnapshotIdBytes()
public ByteString getSnapshotIdBytes()Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for snapshotId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RevertVolumeRequest other)
public RevertVolumeRequest.Builder mergeFrom(RevertVolumeRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RevertVolumeRequest |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RevertVolumeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RevertVolumeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
|
setName(String value)
public RevertVolumeRequest.Builder setName(String value)Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public RevertVolumeRequest.Builder setNameBytes(ByteString value)Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |
setSnapshotId(String value)
public RevertVolumeRequest.Builder setSnapshotId(String value)Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe snapshotId to set. |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |
setSnapshotIdBytes(ByteString value)
public RevertVolumeRequest.Builder setSnapshotIdBytes(ByteString value)Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for snapshotId to set. |
| Returns | |
|---|---|
| Type | Description |
RevertVolumeRequest.Builder |
This builder for chaining. |