Class CreateVolumeRequest.Builder (0.7.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateVolumeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

build()

public CreateVolumeRequest build()
Returns
TypeDescription
CreateVolumeRequest

buildPartial()

public CreateVolumeRequest buildPartial()
Returns
TypeDescription
CreateVolumeRequest

clear()

public CreateVolumeRequest.Builder clear()
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateVolumeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateVolumeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateVolumeRequest.Builder

This builder for chaining.

clone()

public CreateVolumeRequest.Builder clone()
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateVolumeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateVolumeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Value for parent.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeOrBuilder

hasVolume()

public boolean hasVolume()

Required. The volume being created.

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

Returns
TypeDescription
boolean

Whether the volume field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateVolumeRequest other)

public CreateVolumeRequest.Builder mergeFrom(CreateVolumeRequest other)
Parameter
NameDescription
otherCreateVolumeRequest
Returns
TypeDescription
CreateVolumeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateVolumeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateVolumeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateVolumeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVolume
Returns
TypeDescription
CreateVolumeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateVolumeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateVolumeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateVolumeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVolume
Returns
TypeDescription
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
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
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
NameDescription
valueString

The volumeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for volumeId to set.

Returns
TypeDescription
CreateVolumeRequest.Builder

This builder for chaining.