Class RevertVolumeRequest.Builder (0.21.0)

public static final class RevertVolumeRequest.Builder extends GeneratedMessageV3.Builder<RevertVolumeRequest.Builder> implements RevertVolumeRequestOrBuilder

RevertVolumeRequest reverts the given volume to the specified snapshot.

Protobuf type google.cloud.netapp.v1.RevertVolumeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

getDefaultInstanceForType()

public RevertVolumeRequest getDefaultInstanceForType()
Returns
Type Description
RevertVolumeRequest

getDescriptorForType()

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

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 String

The 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 ByteString

The bytes for name to set.

Returns
Type Description
RevertVolumeRequest.Builder

This builder for chaining.

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

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

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 String

The 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 ByteString

The bytes for snapshotId to set.

Returns
Type Description
RevertVolumeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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