Class RenameInstanceRequest.Builder (0.47.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameInstanceRequest build()
Returns
Type Description
RenameInstanceRequest

buildPartial()

public RenameInstanceRequest buildPartial()
Returns
Type Description
RenameInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameInstanceRequest getDefaultInstanceForType()
Returns
Type Description
RenameInstanceRequest

getDescriptorForType()

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

The bytes for newInstanceId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenameInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The newInstanceId to set.

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

The bytes for newInstanceId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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