Class RenameNfsShareRequest.Builder (0.42.0)

public static final class RenameNfsShareRequest.Builder extends GeneratedMessageV3.Builder<RenameNfsShareRequest.Builder> implements RenameNfsShareRequestOrBuilder

Message requesting rename of a server.

Protobuf type google.cloud.baremetalsolution.v2.RenameNfsShareRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameNfsShareRequest build()
Returns
Type Description
RenameNfsShareRequest

buildPartial()

public RenameNfsShareRequest buildPartial()
Returns
Type Description
RenameNfsShareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RenameNfsShareRequest.Builder clearName()

Required. The name field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}

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

Returns
Type Description
RenameNfsShareRequest.Builder

This builder for chaining.

clearNewNfsshareId()

public RenameNfsShareRequest.Builder clearNewNfsshareId()

Required. The new id of the nfsshare.

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

Returns
Type Description
RenameNfsShareRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameNfsShareRequest getDefaultInstanceForType()
Returns
Type Description
RenameNfsShareRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}

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

Returns
Type Description
ByteString

The bytes for name.

getNewNfsshareId()

public String getNewNfsshareId()

Required. The new id of the nfsshare.

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

Returns
Type Description
String

The newNfsshareId.

getNewNfsshareIdBytes()

public ByteString getNewNfsshareIdBytes()

Required. The new id of the nfsshare.

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

Returns
Type Description
ByteString

The bytes for newNfsshareId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenameNfsShareRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RenameNfsShareRequest.Builder setName(String value)

Required. The name field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RenameNfsShareRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RenameNfsShareRequest.Builder setNameBytes(ByteString value)

Required. The name field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}

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
RenameNfsShareRequest.Builder

This builder for chaining.

setNewNfsshareId(String value)

public RenameNfsShareRequest.Builder setNewNfsshareId(String value)

Required. The new id of the nfsshare.

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

Parameter
Name Description
value String

The newNfsshareId to set.

Returns
Type Description
RenameNfsShareRequest.Builder

This builder for chaining.

setNewNfsshareIdBytes(ByteString value)

public RenameNfsShareRequest.Builder setNewNfsshareIdBytes(ByteString value)

Required. The new id of the nfsshare.

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

Parameter
Name Description
value ByteString

The bytes for newNfsshareId to set.

Returns
Type Description
RenameNfsShareRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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