Class Cluster.ControlPlane.Local.Builder (0.36.0)

public static final class Cluster.ControlPlane.Local.Builder extends GeneratedMessageV3.Builder<Cluster.ControlPlane.Local.Builder> implements Cluster.ControlPlane.LocalOrBuilder

Configuration specific to clusters with a control plane hosted locally.

Warning: Local control plane clusters must be created in their own project. Local control plane clusters cannot coexist in the same project with any other type of clusters, including non-GDCE clusters. Mixing local control plane GDCE clusters with any other type of clusters in the same project can result in data loss.

Protobuf type google.cloud.edgecontainer.v1.Cluster.ControlPlane.Local

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cluster.ControlPlane.Local build()
Returns
TypeDescription
Cluster.ControlPlane.Local

buildPartial()

public Cluster.ControlPlane.Local buildPartial()
Returns
TypeDescription
Cluster.ControlPlane.Local

clear()

public Cluster.ControlPlane.Local.Builder clear()
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Cluster.ControlPlane.Local.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

clearMachineFilter()

public Cluster.ControlPlane.Local.Builder clearMachineFilter()

Only machines matching this filter will be allowed to host control plane nodes. The filtering language accepts strings like "name=<name>", and is documented here: AIP-160.

string machine_filter = 3;

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

clearNodeCount()

public Cluster.ControlPlane.Local.Builder clearNodeCount()

The number of nodes to serve as replicas of the Control Plane.

int32 node_count = 2;

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

clearNodeLocation()

public Cluster.ControlPlane.Local.Builder clearNodeLocation()

Name of the Google Distributed Cloud Edge zones where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 1;

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.ControlPlane.Local.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

clearSharedDeploymentPolicy()

public Cluster.ControlPlane.Local.Builder clearSharedDeploymentPolicy()

Policy configuration about how user applications are deployed.

.google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

clone()

public Cluster.ControlPlane.Local.Builder clone()
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

getDefaultInstanceForType()

public Cluster.ControlPlane.Local getDefaultInstanceForType()
Returns
TypeDescription
Cluster.ControlPlane.Local

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineFilter()

public String getMachineFilter()

Only machines matching this filter will be allowed to host control plane nodes. The filtering language accepts strings like "name=<name>", and is documented here: AIP-160.

string machine_filter = 3;

Returns
TypeDescription
String

The machineFilter.

getMachineFilterBytes()

public ByteString getMachineFilterBytes()

Only machines matching this filter will be allowed to host control plane nodes. The filtering language accepts strings like "name=<name>", and is documented here: AIP-160.

string machine_filter = 3;

Returns
TypeDescription
ByteString

The bytes for machineFilter.

getNodeCount()

public int getNodeCount()

The number of nodes to serve as replicas of the Control Plane.

int32 node_count = 2;

Returns
TypeDescription
int

The nodeCount.

getNodeLocation()

public String getNodeLocation()

Name of the Google Distributed Cloud Edge zones where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 1;

Returns
TypeDescription
String

The nodeLocation.

getNodeLocationBytes()

public ByteString getNodeLocationBytes()

Name of the Google Distributed Cloud Edge zones where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 1;

Returns
TypeDescription
ByteString

The bytes for nodeLocation.

getSharedDeploymentPolicy()

public Cluster.ControlPlane.SharedDeploymentPolicy getSharedDeploymentPolicy()

Policy configuration about how user applications are deployed.

.google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;

Returns
TypeDescription
Cluster.ControlPlane.SharedDeploymentPolicy

The sharedDeploymentPolicy.

getSharedDeploymentPolicyValue()

public int getSharedDeploymentPolicyValue()

Policy configuration about how user applications are deployed.

.google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for sharedDeploymentPolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cluster.ControlPlane.Local other)

public Cluster.ControlPlane.Local.Builder mergeFrom(Cluster.ControlPlane.Local other)
Parameter
NameDescription
otherCluster.ControlPlane.Local
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Cluster.ControlPlane.Local.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ControlPlane.Local.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineFilter(String value)

public Cluster.ControlPlane.Local.Builder setMachineFilter(String value)

Only machines matching this filter will be allowed to host control plane nodes. The filtering language accepts strings like "name=<name>", and is documented here: AIP-160.

string machine_filter = 3;

Parameter
NameDescription
valueString

The machineFilter to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setMachineFilterBytes(ByteString value)

public Cluster.ControlPlane.Local.Builder setMachineFilterBytes(ByteString value)

Only machines matching this filter will be allowed to host control plane nodes. The filtering language accepts strings like "name=<name>", and is documented here: AIP-160.

string machine_filter = 3;

Parameter
NameDescription
valueByteString

The bytes for machineFilter to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setNodeCount(int value)

public Cluster.ControlPlane.Local.Builder setNodeCount(int value)

The number of nodes to serve as replicas of the Control Plane.

int32 node_count = 2;

Parameter
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setNodeLocation(String value)

public Cluster.ControlPlane.Local.Builder setNodeLocation(String value)

Name of the Google Distributed Cloud Edge zones where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 1;

Parameter
NameDescription
valueString

The nodeLocation to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setNodeLocationBytes(ByteString value)

public Cluster.ControlPlane.Local.Builder setNodeLocationBytes(ByteString value)

Name of the Google Distributed Cloud Edge zones where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 1;

Parameter
NameDescription
valueByteString

The bytes for nodeLocation to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

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

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

setSharedDeploymentPolicy(Cluster.ControlPlane.SharedDeploymentPolicy value)

public Cluster.ControlPlane.Local.Builder setSharedDeploymentPolicy(Cluster.ControlPlane.SharedDeploymentPolicy value)

Policy configuration about how user applications are deployed.

.google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;

Parameter
NameDescription
valueCluster.ControlPlane.SharedDeploymentPolicy

The sharedDeploymentPolicy to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setSharedDeploymentPolicyValue(int value)

public Cluster.ControlPlane.Local.Builder setSharedDeploymentPolicyValue(int value)

Policy configuration about how user applications are deployed.

.google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sharedDeploymentPolicy to set.

Returns
TypeDescription
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ControlPlane.Local.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.ControlPlane.Local.Builder
Overrides