Class RenameNfsShareRequest.Builder (0.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameNfsShareRequest build()
Returns
TypeDescription
RenameNfsShareRequest

buildPartial()

public RenameNfsShareRequest buildPartial()
Returns
TypeDescription
RenameNfsShareRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RenameNfsShareRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RenameNfsShareRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameNfsShareRequest getDefaultInstanceForType()
Returns
TypeDescription
RenameNfsShareRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for newNfsshareId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RenameNfsShareRequest other)

public RenameNfsShareRequest.Builder mergeFrom(RenameNfsShareRequest other)
Parameter
NameDescription
otherRenameNfsShareRequest
Returns
TypeDescription
RenameNfsShareRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The newNfsshareId to set.

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

The bytes for newNfsshareId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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