Class CreateNfsShareRequest.Builder (0.39.0)

public static final class CreateNfsShareRequest.Builder extends GeneratedMessageV3.Builder<CreateNfsShareRequest.Builder> implements CreateNfsShareRequestOrBuilder

Message for creating an NFS share.

Protobuf type google.cloud.baremetalsolution.v2.CreateNfsShareRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateNfsShareRequest build()
Returns
TypeDescription
CreateNfsShareRequest

buildPartial()

public CreateNfsShareRequest buildPartial()
Returns
TypeDescription
CreateNfsShareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNfsShare()

public CreateNfsShareRequest.Builder clearNfsShare()

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateNfsShareRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateNfsShareRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateNfsShareRequest.Builder
Overrides

clearParent()

public CreateNfsShareRequest.Builder clearParent()

Required. The parent project and location.

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

Returns
TypeDescription
CreateNfsShareRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateNfsShareRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateNfsShareRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNfsShare()

public NfsShare getNfsShare()

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NfsShare

The nfsShare.

getNfsShareBuilder()

public NfsShare.Builder getNfsShareBuilder()

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NfsShare.Builder

getNfsShareOrBuilder()

public NfsShareOrBuilder getNfsShareOrBuilder()

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NfsShareOrBuilder

getParent()

public String getParent()

Required. The parent project and location.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent project and location.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasNfsShare()

public boolean hasNfsShare()

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the nfsShare field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateNfsShareRequest other)

public CreateNfsShareRequest.Builder mergeFrom(CreateNfsShareRequest other)
Parameter
NameDescription
otherCreateNfsShareRequest
Returns
TypeDescription
CreateNfsShareRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNfsShare(NfsShare value)

public CreateNfsShareRequest.Builder mergeNfsShare(NfsShare value)

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNfsShare
Returns
TypeDescription
CreateNfsShareRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateNfsShareRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateNfsShareRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setNfsShare(NfsShare value)

public CreateNfsShareRequest.Builder setNfsShare(NfsShare value)

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNfsShare
Returns
TypeDescription
CreateNfsShareRequest.Builder

setNfsShare(NfsShare.Builder builderForValue)

public CreateNfsShareRequest.Builder setNfsShare(NfsShare.Builder builderForValue)

Required. The NfsShare to create.

.google.cloud.baremetalsolution.v2.NfsShare nfs_share = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueNfsShare.Builder
Returns
TypeDescription
CreateNfsShareRequest.Builder

setParent(String value)

public CreateNfsShareRequest.Builder setParent(String value)

Required. The parent project and location.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateNfsShareRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateNfsShareRequest.Builder setParentBytes(ByteString value)

Required. The parent project and location.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateNfsShareRequest.Builder

This builder for chaining.

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

public CreateNfsShareRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateNfsShareRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateNfsShareRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateNfsShareRequest.Builder
Overrides