Class Cluster.ControlPlane.Local.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlane.Local.Builder>
com.google.cloud.edgecontainer.v1.Cluster.ControlPlane.Local.Builder
All Implemented Interfaces:
Cluster.ControlPlane.LocalOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Cluster.ControlPlane.Local

public static final class Cluster.ControlPlane.Local.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlane.Local.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlane.Local.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlane.Local.Builder>
    • getDefaultInstanceForType

      public Cluster.ControlPlane.Local getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Cluster.ControlPlane.Local buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Cluster.ControlPlane.Local.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.ControlPlane.Local.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlane.Local.Builder>
    • mergeFrom

      public Cluster.ControlPlane.Local.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.ControlPlane.Local.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getNodeLocation in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The nodeLocation.
    • getNodeLocationBytes

      public com.google.protobuf.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;
      Specified by:
      getNodeLocationBytes in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The bytes for nodeLocation.
    • setNodeLocation

      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;
      Parameters:
      value - The nodeLocation to set.
      Returns:
      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:
      This builder for chaining.
    • setNodeLocationBytes

      public Cluster.ControlPlane.Local.Builder setNodeLocationBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for nodeLocation to set.
      Returns:
      This builder for chaining.
    • getNodeCount

      public int getNodeCount()
       The number of nodes to serve as replicas of the Control Plane.
       
      int32 node_count = 2;
      Specified by:
      getNodeCount in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The nodeCount.
    • setNodeCount

      public Cluster.ControlPlane.Local.Builder setNodeCount(int value)
       The number of nodes to serve as replicas of the Control Plane.
       
      int32 node_count = 2;
      Parameters:
      value - The nodeCount to set.
      Returns:
      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:
      This builder for chaining.
    • 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](https://google.aip.dev/160).
       
      string machine_filter = 3;
      Specified by:
      getMachineFilter in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The machineFilter.
    • getMachineFilterBytes

      public com.google.protobuf.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](https://google.aip.dev/160).
       
      string machine_filter = 3;
      Specified by:
      getMachineFilterBytes in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The bytes for machineFilter.
    • setMachineFilter

      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](https://google.aip.dev/160).
       
      string machine_filter = 3;
      Parameters:
      value - The machineFilter to set.
      Returns:
      This builder for chaining.
    • 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](https://google.aip.dev/160).
       
      string machine_filter = 3;
      Returns:
      This builder for chaining.
    • setMachineFilterBytes

      public Cluster.ControlPlane.Local.Builder setMachineFilterBytes(com.google.protobuf.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](https://google.aip.dev/160).
       
      string machine_filter = 3;
      Parameters:
      value - The bytes for machineFilter to set.
      Returns:
      This builder for chaining.
    • getSharedDeploymentPolicyValue

      public int getSharedDeploymentPolicyValue()
       Policy configuration about how user applications are deployed.
       
      .google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;
      Specified by:
      getSharedDeploymentPolicyValue in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The enum numeric value on the wire for sharedDeploymentPolicy.
    • setSharedDeploymentPolicyValue

      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;
      Parameters:
      value - The enum numeric value on the wire for sharedDeploymentPolicy to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getSharedDeploymentPolicy in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The sharedDeploymentPolicy.
    • setSharedDeploymentPolicy

       Policy configuration about how user applications are deployed.
       
      .google.cloud.edgecontainer.v1.Cluster.ControlPlane.SharedDeploymentPolicy shared_deployment_policy = 4;
      Parameters:
      value - The sharedDeploymentPolicy to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getControlPlaneNodeStorageSchema

      public String getControlPlaneNodeStorageSchema()
       Optional. Name for the storage schema of control plane nodes.
      
       Warning: Configurable node local storage schema feature is an
       experimental feature, and is not recommended for general use
       in production clusters/nodepools.
       
      string control_plane_node_storage_schema = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPlaneNodeStorageSchema in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The controlPlaneNodeStorageSchema.
    • getControlPlaneNodeStorageSchemaBytes

      public com.google.protobuf.ByteString getControlPlaneNodeStorageSchemaBytes()
       Optional. Name for the storage schema of control plane nodes.
      
       Warning: Configurable node local storage schema feature is an
       experimental feature, and is not recommended for general use
       in production clusters/nodepools.
       
      string control_plane_node_storage_schema = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPlaneNodeStorageSchemaBytes in interface Cluster.ControlPlane.LocalOrBuilder
      Returns:
      The bytes for controlPlaneNodeStorageSchema.
    • setControlPlaneNodeStorageSchema

      public Cluster.ControlPlane.Local.Builder setControlPlaneNodeStorageSchema(String value)
       Optional. Name for the storage schema of control plane nodes.
      
       Warning: Configurable node local storage schema feature is an
       experimental feature, and is not recommended for general use
       in production clusters/nodepools.
       
      string control_plane_node_storage_schema = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The controlPlaneNodeStorageSchema to set.
      Returns:
      This builder for chaining.
    • clearControlPlaneNodeStorageSchema

      public Cluster.ControlPlane.Local.Builder clearControlPlaneNodeStorageSchema()
       Optional. Name for the storage schema of control plane nodes.
      
       Warning: Configurable node local storage schema feature is an
       experimental feature, and is not recommended for general use
       in production clusters/nodepools.
       
      string control_plane_node_storage_schema = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setControlPlaneNodeStorageSchemaBytes

      public Cluster.ControlPlane.Local.Builder setControlPlaneNodeStorageSchemaBytes(com.google.protobuf.ByteString value)
       Optional. Name for the storage schema of control plane nodes.
      
       Warning: Configurable node local storage schema feature is an
       experimental feature, and is not recommended for general use
       in production clusters/nodepools.
       
      string control_plane_node_storage_schema = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for controlPlaneNodeStorageSchema to set.
      Returns:
      This builder for chaining.