Class CreateVolumeRequest.Builder (0.24.0)

public static final class CreateVolumeRequest.Builder extends GeneratedMessageV3.Builder<CreateVolumeRequest.Builder> implements CreateVolumeRequestOrBuilder

Message for creating a Volume

Protobuf type google.cloud.netapp.v1.CreateVolumeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVolumeRequest build()
Returns
Type Description
CreateVolumeRequest

buildPartial()

public CreateVolumeRequest buildPartial()
Returns
Type Description
CreateVolumeRequest

clear()

public CreateVolumeRequest.Builder clear()
Returns
Type Description
CreateVolumeRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateVolumeRequest.Builder clearParent()

Required. Value for parent.

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

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.

clearVolume()

public CreateVolumeRequest.Builder clearVolume()

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVolumeRequest.Builder

clearVolumeId()

public CreateVolumeRequest.Builder clearVolumeId()

Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC

string volume_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateVolumeRequest getDefaultInstanceForType()
Returns
Type Description
CreateVolumeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Value for parent.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
Type Description
ByteString

The bytes for parent.

getVolume()

public Volume getVolume()

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Volume

The volume.

getVolumeBuilder()

public Volume.Builder getVolumeBuilder()

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Volume.Builder

getVolumeId()

public String getVolumeId()

Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC

string volume_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The volumeId.

getVolumeIdBytes()

public ByteString getVolumeIdBytes()

Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC

string volume_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for volumeId.

getVolumeOrBuilder()

public VolumeOrBuilder getVolumeOrBuilder()

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VolumeOrBuilder

hasVolume()

public boolean hasVolume()

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the volume field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateVolumeRequest other)

public CreateVolumeRequest.Builder mergeFrom(CreateVolumeRequest other)
Parameter
Name Description
other CreateVolumeRequest
Returns
Type Description
CreateVolumeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateVolumeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateVolumeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVolume(Volume value)

public CreateVolumeRequest.Builder mergeVolume(Volume value)

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Volume
Returns
Type Description
CreateVolumeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateVolumeRequest.Builder setParent(String value)

Required. Value for parent.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateVolumeRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolume(Volume value)

public CreateVolumeRequest.Builder setVolume(Volume value)

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Volume
Returns
Type Description
CreateVolumeRequest.Builder

setVolume(Volume.Builder builderForValue)

public CreateVolumeRequest.Builder setVolume(Volume.Builder builderForValue)

Required. The volume being created.

.google.cloud.netapp.v1.Volume volume = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Volume.Builder
Returns
Type Description
CreateVolumeRequest.Builder

setVolumeId(String value)

public CreateVolumeRequest.Builder setVolumeId(String value)

Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC

string volume_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The volumeId to set.

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.

setVolumeIdBytes(ByteString value)

public CreateVolumeRequest.Builder setVolumeIdBytes(ByteString value)

Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC

string volume_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for volumeId to set.

Returns
Type Description
CreateVolumeRequest.Builder

This builder for chaining.