Class ReplicaPlacement.Builder (0.20.0)

public static final class ReplicaPlacement.Builder extends GeneratedMessageV3.Builder<ReplicaPlacement.Builder> implements ReplicaPlacementOrBuilder

Configuration for the placement of a control plane replica.

Protobuf type google.cloud.gkemulticloud.v1.ReplicaPlacement

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplicaPlacement build()
Returns
TypeDescription
ReplicaPlacement

buildPartial()

public ReplicaPlacement buildPartial()
Returns
TypeDescription
ReplicaPlacement

clear()

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

clearAzureAvailabilityZone()

public ReplicaPlacement.Builder clearAzureAvailabilityZone()

Required. For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.

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

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetId()

public ReplicaPlacement.Builder clearSubnetId()

Required. For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.

string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

clone()

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

getAzureAvailabilityZone()

public String getAzureAvailabilityZone()

Required. For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.

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

Returns
TypeDescription
String

The azureAvailabilityZone.

getAzureAvailabilityZoneBytes()

public ByteString getAzureAvailabilityZoneBytes()

Required. For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.

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

Returns
TypeDescription
ByteString

The bytes for azureAvailabilityZone.

getDefaultInstanceForType()

public ReplicaPlacement getDefaultInstanceForType()
Returns
TypeDescription
ReplicaPlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSubnetId()

public String getSubnetId()

Required. For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.

string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The subnetId.

getSubnetIdBytes()

public ByteString getSubnetIdBytes()

Required. For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.

string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for subnetId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReplicaPlacement other)

public ReplicaPlacement.Builder mergeFrom(ReplicaPlacement other)
Parameter
NameDescription
otherReplicaPlacement
Returns
TypeDescription
ReplicaPlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAzureAvailabilityZone(String value)

public ReplicaPlacement.Builder setAzureAvailabilityZone(String value)

Required. For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.

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

Parameter
NameDescription
valueString

The azureAvailabilityZone to set.

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

setAzureAvailabilityZoneBytes(ByteString value)

public ReplicaPlacement.Builder setAzureAvailabilityZoneBytes(ByteString value)

Required. For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.

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

Parameter
NameDescription
valueByteString

The bytes for azureAvailabilityZone to set.

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubnetId(String value)

public ReplicaPlacement.Builder setSubnetId(String value)

Required. For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.

string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The subnetId to set.

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

setSubnetIdBytes(ByteString value)

public ReplicaPlacement.Builder setSubnetIdBytes(ByteString value)

Required. For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.

string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for subnetId to set.

Returns
TypeDescription
ReplicaPlacement.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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