Class RenameInstanceRequest.Builder (0.34.0)

public static final class RenameInstanceRequest.Builder extends GeneratedMessageV3.Builder<RenameInstanceRequest.Builder> implements RenameInstanceRequestOrBuilder

Message requesting rename of a server.

Protobuf type google.cloud.baremetalsolution.v2.RenameInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameInstanceRequest build()
Returns
TypeDescription
RenameInstanceRequest

buildPartial()

public RenameInstanceRequest buildPartial()
Returns
TypeDescription
RenameInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RenameInstanceRequest.Builder clearName()

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

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

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

clearNewInstanceId()

public RenameInstanceRequest.Builder clearNewInstanceId()

Required. The new id of the instance.

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

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RenameInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

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 instance. Format: projects/{project}/locations/{location}/instances/{instance}

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

Returns
TypeDescription
ByteString

The bytes for name.

getNewInstanceId()

public String getNewInstanceId()

Required. The new id of the instance.

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

Returns
TypeDescription
String

The newInstanceId.

getNewInstanceIdBytes()

public ByteString getNewInstanceIdBytes()

Required. The new id of the instance.

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

Returns
TypeDescription
ByteString

The bytes for newInstanceId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RenameInstanceRequest other)

public RenameInstanceRequest.Builder mergeFrom(RenameInstanceRequest other)
Parameter
NameDescription
otherRenameInstanceRequest
Returns
TypeDescription
RenameInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RenameInstanceRequest.Builder setName(String value)

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

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RenameInstanceRequest.Builder setNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

setNewInstanceId(String value)

public RenameInstanceRequest.Builder setNewInstanceId(String value)

Required. The new id of the instance.

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

Parameter
NameDescription
valueString

The newInstanceId to set.

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

setNewInstanceIdBytes(ByteString value)

public RenameInstanceRequest.Builder setNewInstanceIdBytes(ByteString value)

Required. The new id of the instance.

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

Parameter
NameDescription
valueByteString

The bytes for newInstanceId to set.

Returns
TypeDescription
RenameInstanceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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