Class SetMonitoringServiceRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SetMonitoringServiceRequest.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<SetMonitoringServiceRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public SetMonitoringServiceRequest.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<SetMonitoringServiceRequest.Builder>
        Throws:
        IOException
      • getProjectId

        @Deprecated
        public String getProjectId()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2799
         Deprecated. The Google Developers Console [project ID or project
         number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
         This field has been deprecated and replaced by the name field.
         
        string project_id = 1 [deprecated = true];
        Specified by:
        getProjectId in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        @Deprecated
        public com.google.protobuf.ByteString getProjectIdBytes()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2799
         Deprecated. The Google Developers Console [project ID or project
         number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
         This field has been deprecated and replaced by the name field.
         
        string project_id = 1 [deprecated = true];
        Specified by:
        getProjectIdBytes in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        @Deprecated
        public SetMonitoringServiceRequest.Builder setProjectId​(String value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2799
         Deprecated. The Google Developers Console [project ID or project
         number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
         This field has been deprecated and replaced by the name field.
         
        string project_id = 1 [deprecated = true];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        @Deprecated
        public SetMonitoringServiceRequest.Builder clearProjectId()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2799
         Deprecated. The Google Developers Console [project ID or project
         number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
         This field has been deprecated and replaced by the name field.
         
        string project_id = 1 [deprecated = true];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        @Deprecated
        public SetMonitoringServiceRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2799
         Deprecated. The Google Developers Console [project ID or project
         number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
         This field has been deprecated and replaced by the name field.
         
        string project_id = 1 [deprecated = true];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getZone

        @Deprecated
        public String getZone()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2805
         Deprecated. The name of the Google Compute Engine
         [zone](https://cloud.google.com/compute/docs/zones#available) in which the
         cluster resides. This field has been deprecated and replaced by the name
         field.
         
        string zone = 2 [deprecated = true];
        Specified by:
        getZone in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The zone.
      • getZoneBytes

        @Deprecated
        public com.google.protobuf.ByteString getZoneBytes()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2805
         Deprecated. The name of the Google Compute Engine
         [zone](https://cloud.google.com/compute/docs/zones#available) in which the
         cluster resides. This field has been deprecated and replaced by the name
         field.
         
        string zone = 2 [deprecated = true];
        Specified by:
        getZoneBytes in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The bytes for zone.
      • setZone

        @Deprecated
        public SetMonitoringServiceRequest.Builder setZone​(String value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2805
         Deprecated. The name of the Google Compute Engine
         [zone](https://cloud.google.com/compute/docs/zones#available) in which the
         cluster resides. This field has been deprecated and replaced by the name
         field.
         
        string zone = 2 [deprecated = true];
        Parameters:
        value - The zone to set.
        Returns:
        This builder for chaining.
      • clearZone

        @Deprecated
        public SetMonitoringServiceRequest.Builder clearZone()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2805
         Deprecated. The name of the Google Compute Engine
         [zone](https://cloud.google.com/compute/docs/zones#available) in which the
         cluster resides. This field has been deprecated and replaced by the name
         field.
         
        string zone = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • setZoneBytes

        @Deprecated
        public SetMonitoringServiceRequest.Builder setZoneBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2805
         Deprecated. The name of the Google Compute Engine
         [zone](https://cloud.google.com/compute/docs/zones#available) in which the
         cluster resides. This field has been deprecated and replaced by the name
         field.
         
        string zone = 2 [deprecated = true];
        Parameters:
        value - The bytes for zone to set.
        Returns:
        This builder for chaining.
      • getClusterId

        @Deprecated
        public String getClusterId()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2809
         Deprecated. The name of the cluster to upgrade.
         This field has been deprecated and replaced by the name field.
         
        string cluster_id = 3 [deprecated = true];
        Specified by:
        getClusterId in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The clusterId.
      • getClusterIdBytes

        @Deprecated
        public com.google.protobuf.ByteString getClusterIdBytes()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2809
         Deprecated. The name of the cluster to upgrade.
         This field has been deprecated and replaced by the name field.
         
        string cluster_id = 3 [deprecated = true];
        Specified by:
        getClusterIdBytes in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The bytes for clusterId.
      • setClusterId

        @Deprecated
        public SetMonitoringServiceRequest.Builder setClusterId​(String value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2809
         Deprecated. The name of the cluster to upgrade.
         This field has been deprecated and replaced by the name field.
         
        string cluster_id = 3 [deprecated = true];
        Parameters:
        value - The clusterId to set.
        Returns:
        This builder for chaining.
      • clearClusterId

        @Deprecated
        public SetMonitoringServiceRequest.Builder clearClusterId()
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2809
         Deprecated. The name of the cluster to upgrade.
         This field has been deprecated and replaced by the name field.
         
        string cluster_id = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • setClusterIdBytes

        @Deprecated
        public SetMonitoringServiceRequest.Builder setClusterIdBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2809
         Deprecated. The name of the cluster to upgrade.
         This field has been deprecated and replaced by the name field.
         
        string cluster_id = 3 [deprecated = true];
        Parameters:
        value - The bytes for clusterId to set.
        Returns:
        This builder for chaining.
      • getMonitoringService

        public String getMonitoringService()
         Required. The monitoring service the cluster should use to write metrics.
         Currently available options:
        
         * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
         service with a Kubernetes-native resource model
         * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
           longer available as of GKE 1.15).
         * `none` - No metrics will be exported from the cluster.
        
         If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
         used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
         
        string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMonitoringService in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The monitoringService.
      • getMonitoringServiceBytes

        public com.google.protobuf.ByteString getMonitoringServiceBytes()
         Required. The monitoring service the cluster should use to write metrics.
         Currently available options:
        
         * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
         service with a Kubernetes-native resource model
         * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
           longer available as of GKE 1.15).
         * `none` - No metrics will be exported from the cluster.
        
         If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
         used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
         
        string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMonitoringServiceBytes in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The bytes for monitoringService.
      • setMonitoringService

        public SetMonitoringServiceRequest.Builder setMonitoringService​(String value)
         Required. The monitoring service the cluster should use to write metrics.
         Currently available options:
        
         * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
         service with a Kubernetes-native resource model
         * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
           longer available as of GKE 1.15).
         * `none` - No metrics will be exported from the cluster.
        
         If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
         used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
         
        string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The monitoringService to set.
        Returns:
        This builder for chaining.
      • clearMonitoringService

        public SetMonitoringServiceRequest.Builder clearMonitoringService()
         Required. The monitoring service the cluster should use to write metrics.
         Currently available options:
        
         * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
         service with a Kubernetes-native resource model
         * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
           longer available as of GKE 1.15).
         * `none` - No metrics will be exported from the cluster.
        
         If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
         used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
         
        string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setMonitoringServiceBytes

        public SetMonitoringServiceRequest.Builder setMonitoringServiceBytes​(com.google.protobuf.ByteString value)
         Required. The monitoring service the cluster should use to write metrics.
         Currently available options:
        
         * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
         service with a Kubernetes-native resource model
         * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
           longer available as of GKE 1.15).
         * `none` - No metrics will be exported from the cluster.
        
         If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
         used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
         
        string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for monitoringService to set.
        Returns:
        This builder for chaining.
      • getName

        public String getName()
         The name (project, location, cluster) of the cluster to set monitoring.
         Specified in the format `projects/*/locations/*/clusters/*`.
         
        string name = 6;
        Specified by:
        getName in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name (project, location, cluster) of the cluster to set monitoring.
         Specified in the format `projects/*/locations/*/clusters/*`.
         
        string name = 6;
        Specified by:
        getNameBytes in interface SetMonitoringServiceRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SetMonitoringServiceRequest.Builder setName​(String value)
         The name (project, location, cluster) of the cluster to set monitoring.
         Specified in the format `projects/*/locations/*/clusters/*`.
         
        string name = 6;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SetMonitoringServiceRequest.Builder clearName()
         The name (project, location, cluster) of the cluster to set monitoring.
         Specified in the format `projects/*/locations/*/clusters/*`.
         
        string name = 6;
        Returns:
        This builder for chaining.
      • setNameBytes

        public SetMonitoringServiceRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name (project, location, cluster) of the cluster to set monitoring.
         Specified in the format `projects/*/locations/*/clusters/*`.
         
        string name = 6;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final SetMonitoringServiceRequest.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<SetMonitoringServiceRequest.Builder>