Class CreateNfsShareRequest.Builder (0.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateNfsShareRequest build()
Returns
Type Description
CreateNfsShareRequest

buildPartial()

public CreateNfsShareRequest buildPartial()
Returns
Type Description
CreateNfsShareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateNfsShareRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
CreateNfsShareRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateNfsShareRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
CreateNfsShareRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateNfsShareRequest getDefaultInstanceForType()
Returns
Type Description
CreateNfsShareRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
NfsShareOrBuilder

getParent()

public String getParent()

Required. The parent project and location.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the nfsShare field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateNfsShareRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateNfsShareRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value NfsShare
Returns
Type Description
CreateNfsShareRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateNfsShareRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value NfsShare
Returns
Type Description
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
Name Description
builderForValue NfsShare.Builder
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateNfsShareRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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