Class Cluster.ControlPlane.Local.Builder (0.39.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cluster.ControlPlane.Local build()
Returns
Type Description
Cluster.ControlPlane.Local

buildPartial()

public Cluster.ControlPlane.Local buildPartial()
Returns
Type Description
Cluster.ControlPlane.Local

clear()

public Cluster.ControlPlane.Local.Builder clear()
Returns
Type Description
Cluster.ControlPlane.Local.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.ControlPlane.Local.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Cluster.ControlPlane.Local.Builder

This builder for chaining.

clone()

public Cluster.ControlPlane.Local.Builder clone()
Returns
Type Description
Cluster.ControlPlane.Local.Builder
Overrides

getDefaultInstanceForType()

public Cluster.ControlPlane.Local getDefaultInstanceForType()
Returns
Type Description
Cluster.ControlPlane.Local

getDescriptorForType()

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

The enum numeric value on the wire for sharedDeploymentPolicy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.ControlPlane.Local other)

public Cluster.ControlPlane.Local.Builder mergeFrom(Cluster.ControlPlane.Local other)
Parameter
Name Description
other Cluster.ControlPlane.Local
Returns
Type Description
Cluster.ControlPlane.Local.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Cluster.ControlPlane.Local.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Cluster.ControlPlane.Local.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ControlPlane.Local.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.ControlPlane.Local.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The machineFilter to set.

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

The bytes for machineFilter to set.

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

The nodeCount to set.

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

The nodeLocation to set.

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

The bytes for nodeLocation to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Cluster.ControlPlane.SharedDeploymentPolicy

The sharedDeploymentPolicy to set.

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

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

Returns
Type Description
Cluster.ControlPlane.Local.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ControlPlane.Local.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.ControlPlane.Local.Builder
Overrides