Class MonitoringConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MonitoringConfig.Builder>
com.google.cloud.gkehub.v1beta1.MonitoringConfig.Builder
All Implemented Interfaces:
MonitoringConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MonitoringConfig

public static final class MonitoringConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<MonitoringConfig.Builder> implements MonitoringConfigOrBuilder
 This field informs Fleet-based applications/services/UIs with the necessary
 information for where each underlying Cluster reports its metrics.
 
Protobuf type google.cloud.gkehub.v1beta1.MonitoringConfig
  • 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<MonitoringConfig.Builder>
    • clear

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

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

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

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

      public MonitoringConfig.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<MonitoringConfig.Builder>
    • mergeFrom

      public MonitoringConfig.Builder mergeFrom(MonitoringConfig other)
    • isInitialized

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

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

      public String getProjectId()
       Immutable. Project used to report Metrics
       
      string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProjectId in interface MonitoringConfigOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Immutable. Project used to report Metrics
       
      string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProjectIdBytes in interface MonitoringConfigOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public MonitoringConfig.Builder setProjectId(String value)
       Immutable. Project used to report Metrics
       
      string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public MonitoringConfig.Builder clearProjectId()
       Immutable. Project used to report Metrics
       
      string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public MonitoringConfig.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Immutable. Project used to report Metrics
       
      string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Immutable. Location used to report Metrics
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocation in interface MonitoringConfigOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Immutable. Location used to report Metrics
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocationBytes in interface MonitoringConfigOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public MonitoringConfig.Builder setLocation(String value)
       Immutable. Location used to report Metrics
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public MonitoringConfig.Builder clearLocation()
       Immutable. Location used to report Metrics
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public MonitoringConfig.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Immutable. Location used to report Metrics
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getCluster

      public String getCluster()
       Immutable. Cluster name used to report metrics.
       For Anthos on VMWare/Baremetal, it would be in format
       `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
       format
       `{azureClusters, awsClusters}/cluster_name`.
       
      string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCluster in interface MonitoringConfigOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Immutable. Cluster name used to report metrics.
       For Anthos on VMWare/Baremetal, it would be in format
       `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
       format
       `{azureClusters, awsClusters}/cluster_name`.
       
      string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getClusterBytes in interface MonitoringConfigOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public MonitoringConfig.Builder setCluster(String value)
       Immutable. Cluster name used to report metrics.
       For Anthos on VMWare/Baremetal, it would be in format
       `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
       format
       `{azureClusters, awsClusters}/cluster_name`.
       
      string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public MonitoringConfig.Builder clearCluster()
       Immutable. Cluster name used to report metrics.
       For Anthos on VMWare/Baremetal, it would be in format
       `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
       format
       `{azureClusters, awsClusters}/cluster_name`.
       
      string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setClusterBytes

      public MonitoringConfig.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Immutable. Cluster name used to report metrics.
       For Anthos on VMWare/Baremetal, it would be in format
       `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
       format
       `{azureClusters, awsClusters}/cluster_name`.
       
      string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getKubernetesMetricsPrefix

      public String getKubernetesMetricsPrefix()
       Kubernetes system metrics, if available, are written to this prefix.
       This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
       eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
       but will migration to be under kubernetes.io/anthos
       
      string kubernetes_metrics_prefix = 4;
      Specified by:
      getKubernetesMetricsPrefix in interface MonitoringConfigOrBuilder
      Returns:
      The kubernetesMetricsPrefix.
    • getKubernetesMetricsPrefixBytes

      public com.google.protobuf.ByteString getKubernetesMetricsPrefixBytes()
       Kubernetes system metrics, if available, are written to this prefix.
       This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
       eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
       but will migration to be under kubernetes.io/anthos
       
      string kubernetes_metrics_prefix = 4;
      Specified by:
      getKubernetesMetricsPrefixBytes in interface MonitoringConfigOrBuilder
      Returns:
      The bytes for kubernetesMetricsPrefix.
    • setKubernetesMetricsPrefix

      public MonitoringConfig.Builder setKubernetesMetricsPrefix(String value)
       Kubernetes system metrics, if available, are written to this prefix.
       This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
       eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
       but will migration to be under kubernetes.io/anthos
       
      string kubernetes_metrics_prefix = 4;
      Parameters:
      value - The kubernetesMetricsPrefix to set.
      Returns:
      This builder for chaining.
    • clearKubernetesMetricsPrefix

      public MonitoringConfig.Builder clearKubernetesMetricsPrefix()
       Kubernetes system metrics, if available, are written to this prefix.
       This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
       eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
       but will migration to be under kubernetes.io/anthos
       
      string kubernetes_metrics_prefix = 4;
      Returns:
      This builder for chaining.
    • setKubernetesMetricsPrefixBytes

      public MonitoringConfig.Builder setKubernetesMetricsPrefixBytes(com.google.protobuf.ByteString value)
       Kubernetes system metrics, if available, are written to this prefix.
       This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
       eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
       but will migration to be under kubernetes.io/anthos
       
      string kubernetes_metrics_prefix = 4;
      Parameters:
      value - The bytes for kubernetesMetricsPrefix to set.
      Returns:
      This builder for chaining.
    • getClusterHash

      public String getClusterHash()
       Immutable. Cluster hash, this is a unique string generated by google code,
       which does not contain any PII, which we can use to reference the cluster.
       This is expected to be created by the monitoring stack and persisted into
       the Cluster object as well as to GKE-Hub.
       
      string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getClusterHash in interface MonitoringConfigOrBuilder
      Returns:
      The clusterHash.
    • getClusterHashBytes

      public com.google.protobuf.ByteString getClusterHashBytes()
       Immutable. Cluster hash, this is a unique string generated by google code,
       which does not contain any PII, which we can use to reference the cluster.
       This is expected to be created by the monitoring stack and persisted into
       the Cluster object as well as to GKE-Hub.
       
      string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getClusterHashBytes in interface MonitoringConfigOrBuilder
      Returns:
      The bytes for clusterHash.
    • setClusterHash

      public MonitoringConfig.Builder setClusterHash(String value)
       Immutable. Cluster hash, this is a unique string generated by google code,
       which does not contain any PII, which we can use to reference the cluster.
       This is expected to be created by the monitoring stack and persisted into
       the Cluster object as well as to GKE-Hub.
       
      string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The clusterHash to set.
      Returns:
      This builder for chaining.
    • clearClusterHash

      public MonitoringConfig.Builder clearClusterHash()
       Immutable. Cluster hash, this is a unique string generated by google code,
       which does not contain any PII, which we can use to reference the cluster.
       This is expected to be created by the monitoring stack and persisted into
       the Cluster object as well as to GKE-Hub.
       
      string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setClusterHashBytes

      public MonitoringConfig.Builder setClusterHashBytes(com.google.protobuf.ByteString value)
       Immutable. Cluster hash, this is a unique string generated by google code,
       which does not contain any PII, which we can use to reference the cluster.
       This is expected to be created by the monitoring stack and persisted into
       the Cluster object as well as to GKE-Hub.
       
      string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for clusterHash to set.
      Returns:
      This builder for chaining.