Class Cluster.Builder

  • All Implemented Interfaces:
    ClusterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Cluster

    public static final class Cluster.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
    implements ClusterOrBuilder
     A Google Distributed Cloud Edge Kubernetes cluster.
     
    Protobuf type google.cloud.edgecontainer.v1.Cluster
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetFieldAccessorTable

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

        public Cluster.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.GeneratedMessageV3.Builder<Cluster.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.GeneratedMessageV3.Builder<Cluster.Builder>
      • getDefaultInstanceForType

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

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

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

        public Cluster.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • setField

        public Cluster.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • clearField

        public Cluster.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • clearOneof

        public Cluster.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • setRepeatedField

        public Cluster.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • addRepeatedField

        public Cluster.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • mergeFrom

        public Cluster.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.Builder>
      • isInitialized

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

        public Cluster.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.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The resource name of the cluster.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ClusterOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the cluster.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ClusterOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Cluster.Builder setName​(String value)
         Required. The resource name of the cluster.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Cluster.Builder clearName()
         Required. The resource name of the cluster.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public Cluster.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the cluster.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ClusterOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ClusterOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Cluster.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Cluster.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Cluster.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Cluster.Builder clearCreateTime()
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the cluster was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ClusterOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ClusterOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ClusterOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Cluster.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Cluster.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Cluster.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Cluster.Builder clearUpdateTime()
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the cluster was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ClusterOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ClusterOrBuilder
         Labels associated with this resource.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsCount in interface ClusterOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels associated with this resource.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface ClusterOrBuilder
      • removeLabels

        public Cluster.Builder removeLabels​(String key)
         Labels associated with this resource.
         
        map<string, string> labels = 4;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Cluster.Builder putLabels​(String key,
                                         String value)
         Labels associated with this resource.
         
        map<string, string> labels = 4;
      • putAllLabels

        public Cluster.Builder putAllLabels​(Map<String,​String> values)
         Labels associated with this resource.
         
        map<string, string> labels = 4;
      • hasFleet

        public boolean hasFleet()
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasFleet in interface ClusterOrBuilder
        Returns:
        Whether the fleet field is set.
      • getFleet

        public Fleet getFleet()
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFleet in interface ClusterOrBuilder
        Returns:
        The fleet.
      • setFleet

        public Cluster.Builder setFleet​(Fleet value)
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
      • setFleet

        public Cluster.Builder setFleet​(Fleet.Builder builderForValue)
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
      • mergeFleet

        public Cluster.Builder mergeFleet​(Fleet value)
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
      • clearFleet

        public Cluster.Builder clearFleet()
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getFleetBuilder

        public Fleet.Builder getFleetBuilder()
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getFleetOrBuilder

        public FleetOrBuilder getFleetOrBuilder()
         Optional. Fleet configuration.
         
        .google.cloud.edgecontainer.v1.Fleet fleet = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFleetOrBuilder in interface ClusterOrBuilder
      • hasNetworking

        public boolean hasNetworking()
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasNetworking in interface ClusterOrBuilder
        Returns:
        Whether the networking field is set.
      • getNetworking

        public ClusterNetworking getNetworking()
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNetworking in interface ClusterOrBuilder
        Returns:
        The networking.
      • setNetworking

        public Cluster.Builder setNetworking​(ClusterNetworking value)
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
      • setNetworking

        public Cluster.Builder setNetworking​(ClusterNetworking.Builder builderForValue)
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
      • mergeNetworking

        public Cluster.Builder mergeNetworking​(ClusterNetworking value)
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
      • clearNetworking

        public Cluster.Builder clearNetworking()
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
      • getNetworkingBuilder

        public ClusterNetworking.Builder getNetworkingBuilder()
         Required. Cluster-wide networking configuration.
         
        .google.cloud.edgecontainer.v1.ClusterNetworking networking = 7 [(.google.api.field_behavior) = REQUIRED];
      • hasAuthorization

        public boolean hasAuthorization()
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasAuthorization in interface ClusterOrBuilder
        Returns:
        Whether the authorization field is set.
      • getAuthorization

        public Authorization getAuthorization()
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getAuthorization in interface ClusterOrBuilder
        Returns:
        The authorization.
      • setAuthorization

        public Cluster.Builder setAuthorization​(Authorization value)
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      • setAuthorization

        public Cluster.Builder setAuthorization​(Authorization.Builder builderForValue)
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      • mergeAuthorization

        public Cluster.Builder mergeAuthorization​(Authorization value)
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      • clearAuthorization

        public Cluster.Builder clearAuthorization()
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      • getAuthorizationBuilder

        public Authorization.Builder getAuthorizationBuilder()
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      • getAuthorizationOrBuilder

        public AuthorizationOrBuilder getAuthorizationOrBuilder()
         Required. Immutable. RBAC policy that will be applied and managed by GEC.
         
        .google.cloud.edgecontainer.v1.Authorization authorization = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getAuthorizationOrBuilder in interface ClusterOrBuilder
      • getDefaultMaxPodsPerNode

        public int getDefaultMaxPodsPerNode()
         Optional. The default maximum number of pods per node used if a maximum value is not
         specified explicitly for a node pool in this cluster. If unspecified, the
         Kubernetes default value will be used.
         
        int32 default_max_pods_per_node = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDefaultMaxPodsPerNode in interface ClusterOrBuilder
        Returns:
        The defaultMaxPodsPerNode.
      • setDefaultMaxPodsPerNode

        public Cluster.Builder setDefaultMaxPodsPerNode​(int value)
         Optional. The default maximum number of pods per node used if a maximum value is not
         specified explicitly for a node pool in this cluster. If unspecified, the
         Kubernetes default value will be used.
         
        int32 default_max_pods_per_node = 8 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The defaultMaxPodsPerNode to set.
        Returns:
        This builder for chaining.
      • clearDefaultMaxPodsPerNode

        public Cluster.Builder clearDefaultMaxPodsPerNode()
         Optional. The default maximum number of pods per node used if a maximum value is not
         specified explicitly for a node pool in this cluster. If unspecified, the
         Kubernetes default value will be used.
         
        int32 default_max_pods_per_node = 8 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getEndpoint

        public String getEndpoint()
         Output only. The IP address of the Kubernetes API server.
         
        string endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpoint in interface ClusterOrBuilder
        Returns:
        The endpoint.
      • getEndpointBytes

        public com.google.protobuf.ByteString getEndpointBytes()
         Output only. The IP address of the Kubernetes API server.
         
        string endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpointBytes in interface ClusterOrBuilder
        Returns:
        The bytes for endpoint.
      • setEndpoint

        public Cluster.Builder setEndpoint​(String value)
         Output only. The IP address of the Kubernetes API server.
         
        string endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The endpoint to set.
        Returns:
        This builder for chaining.
      • clearEndpoint

        public Cluster.Builder clearEndpoint()
         Output only. The IP address of the Kubernetes API server.
         
        string endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEndpointBytes

        public Cluster.Builder setEndpointBytes​(com.google.protobuf.ByteString value)
         Output only. The IP address of the Kubernetes API server.
         
        string endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for endpoint to set.
        Returns:
        This builder for chaining.
      • getClusterCaCertificate

        public String getClusterCaCertificate()
         Output only. The PEM-encoded public certificate of the cluster's CA.
         
        string cluster_ca_certificate = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterCaCertificate in interface ClusterOrBuilder
        Returns:
        The clusterCaCertificate.
      • getClusterCaCertificateBytes

        public com.google.protobuf.ByteString getClusterCaCertificateBytes()
         Output only. The PEM-encoded public certificate of the cluster's CA.
         
        string cluster_ca_certificate = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterCaCertificateBytes in interface ClusterOrBuilder
        Returns:
        The bytes for clusterCaCertificate.
      • setClusterCaCertificate

        public Cluster.Builder setClusterCaCertificate​(String value)
         Output only. The PEM-encoded public certificate of the cluster's CA.
         
        string cluster_ca_certificate = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterCaCertificate to set.
        Returns:
        This builder for chaining.
      • clearClusterCaCertificate

        public Cluster.Builder clearClusterCaCertificate()
         Output only. The PEM-encoded public certificate of the cluster's CA.
         
        string cluster_ca_certificate = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterCaCertificateBytes

        public Cluster.Builder setClusterCaCertificateBytes​(com.google.protobuf.ByteString value)
         Output only. The PEM-encoded public certificate of the cluster's CA.
         
        string cluster_ca_certificate = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for clusterCaCertificate to set.
        Returns:
        This builder for chaining.
      • hasMaintenancePolicy

        public boolean hasMaintenancePolicy()
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasMaintenancePolicy in interface ClusterOrBuilder
        Returns:
        Whether the maintenancePolicy field is set.
      • getMaintenancePolicy

        public MaintenancePolicy getMaintenancePolicy()
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMaintenancePolicy in interface ClusterOrBuilder
        Returns:
        The maintenancePolicy.
      • setMaintenancePolicy

        public Cluster.Builder setMaintenancePolicy​(MaintenancePolicy value)
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
      • setMaintenancePolicy

        public Cluster.Builder setMaintenancePolicy​(MaintenancePolicy.Builder builderForValue)
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
      • mergeMaintenancePolicy

        public Cluster.Builder mergeMaintenancePolicy​(MaintenancePolicy value)
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
      • clearMaintenancePolicy

        public Cluster.Builder clearMaintenancePolicy()
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
      • getMaintenancePolicyBuilder

        public MaintenancePolicy.Builder getMaintenancePolicyBuilder()
         Optional. Cluster-wide maintenance policy configuration.
         
        .google.cloud.edgecontainer.v1.MaintenancePolicy maintenance_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final Cluster.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • mergeUnknownFields

        public final Cluster.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>