Class Service.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
com.google.monitoring.v3.Service.Builder
All Implemented Interfaces:
ServiceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Service

public static final class Service.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder
 A `Service` is a discrete, autonomous, and network-accessible unit, designed
 to solve an individual concern
 ([Wikipedia](https://en.wikipedia.org/wiki/Service-orientation)). In
 Cloud Monitoring, a `Service` acts as the root resource under which
 operational aspects of the service are accessible.
 
Protobuf type google.monitoring.v3.Service
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public Service.Builder mergeFrom(Service other)
    • isInitialized

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

      public Service.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<Service.Builder>
      Throws:
      IOException
    • getIdentifierCase

      public Service.IdentifierCase getIdentifierCase()
      Specified by:
      getIdentifierCase in interface ServiceOrBuilder
    • clearIdentifier

      public Service.Builder clearIdentifier()
    • getName

      public String getName()
       Identifier. Resource name for this Service. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ServiceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name for this Service. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ServiceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Service.Builder setName(String value)
       Identifier. Resource name for this Service. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Service.Builder clearName()
       Identifier. Resource name for this Service. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Service.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name for this Service. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Name used for UI elements listing this Service.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface ServiceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Name used for UI elements listing this Service.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface ServiceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Service.Builder setDisplayName(String value)
       Name used for UI elements listing this Service.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Service.Builder clearDisplayName()
       Name used for UI elements listing this Service.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Service.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Name used for UI elements listing this Service.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCustom

      public boolean hasCustom()
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
      Specified by:
      hasCustom in interface ServiceOrBuilder
      Returns:
      Whether the custom field is set.
    • getCustom

      public Service.Custom getCustom()
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
      Specified by:
      getCustom in interface ServiceOrBuilder
      Returns:
      The custom.
    • setCustom

      public Service.Builder setCustom(Service.Custom value)
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
    • setCustom

      public Service.Builder setCustom(Service.Custom.Builder builderForValue)
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
    • mergeCustom

      public Service.Builder mergeCustom(Service.Custom value)
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
    • clearCustom

      public Service.Builder clearCustom()
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
    • getCustomBuilder

      public Service.Custom.Builder getCustomBuilder()
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
    • getCustomOrBuilder

      public Service.CustomOrBuilder getCustomOrBuilder()
       Custom service type.
       
      .google.monitoring.v3.Service.Custom custom = 6;
      Specified by:
      getCustomOrBuilder in interface ServiceOrBuilder
    • hasAppEngine

      public boolean hasAppEngine()
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
      Specified by:
      hasAppEngine in interface ServiceOrBuilder
      Returns:
      Whether the appEngine field is set.
    • getAppEngine

      public Service.AppEngine getAppEngine()
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
      Specified by:
      getAppEngine in interface ServiceOrBuilder
      Returns:
      The appEngine.
    • setAppEngine

      public Service.Builder setAppEngine(Service.AppEngine value)
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
    • setAppEngine

      public Service.Builder setAppEngine(Service.AppEngine.Builder builderForValue)
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
    • mergeAppEngine

      public Service.Builder mergeAppEngine(Service.AppEngine value)
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
    • clearAppEngine

      public Service.Builder clearAppEngine()
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
    • getAppEngineBuilder

      public Service.AppEngine.Builder getAppEngineBuilder()
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
    • getAppEngineOrBuilder

      public Service.AppEngineOrBuilder getAppEngineOrBuilder()
       Type used for App Engine services.
       
      .google.monitoring.v3.Service.AppEngine app_engine = 7;
      Specified by:
      getAppEngineOrBuilder in interface ServiceOrBuilder
    • hasCloudEndpoints

      public boolean hasCloudEndpoints()
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
      Specified by:
      hasCloudEndpoints in interface ServiceOrBuilder
      Returns:
      Whether the cloudEndpoints field is set.
    • getCloudEndpoints

      public Service.CloudEndpoints getCloudEndpoints()
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
      Specified by:
      getCloudEndpoints in interface ServiceOrBuilder
      Returns:
      The cloudEndpoints.
    • setCloudEndpoints

      public Service.Builder setCloudEndpoints(Service.CloudEndpoints value)
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
    • setCloudEndpoints

      public Service.Builder setCloudEndpoints(Service.CloudEndpoints.Builder builderForValue)
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
    • mergeCloudEndpoints

      public Service.Builder mergeCloudEndpoints(Service.CloudEndpoints value)
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
    • clearCloudEndpoints

      public Service.Builder clearCloudEndpoints()
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
    • getCloudEndpointsBuilder

      public Service.CloudEndpoints.Builder getCloudEndpointsBuilder()
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
    • getCloudEndpointsOrBuilder

      public Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder()
       Type used for Cloud Endpoints services.
       
      .google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
      Specified by:
      getCloudEndpointsOrBuilder in interface ServiceOrBuilder
    • hasClusterIstio

      public boolean hasClusterIstio()
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
      Specified by:
      hasClusterIstio in interface ServiceOrBuilder
      Returns:
      Whether the clusterIstio field is set.
    • getClusterIstio

      public Service.ClusterIstio getClusterIstio()
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
      Specified by:
      getClusterIstio in interface ServiceOrBuilder
      Returns:
      The clusterIstio.
    • setClusterIstio

      public Service.Builder setClusterIstio(Service.ClusterIstio value)
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
    • setClusterIstio

      public Service.Builder setClusterIstio(Service.ClusterIstio.Builder builderForValue)
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
    • mergeClusterIstio

      public Service.Builder mergeClusterIstio(Service.ClusterIstio value)
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
    • clearClusterIstio

      public Service.Builder clearClusterIstio()
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
    • getClusterIstioBuilder

      public Service.ClusterIstio.Builder getClusterIstioBuilder()
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
    • getClusterIstioOrBuilder

      public Service.ClusterIstioOrBuilder getClusterIstioOrBuilder()
       Type used for Istio services that live in a Kubernetes cluster.
       
      .google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
      Specified by:
      getClusterIstioOrBuilder in interface ServiceOrBuilder
    • hasMeshIstio

      public boolean hasMeshIstio()
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
      Specified by:
      hasMeshIstio in interface ServiceOrBuilder
      Returns:
      Whether the meshIstio field is set.
    • getMeshIstio

      public Service.MeshIstio getMeshIstio()
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
      Specified by:
      getMeshIstio in interface ServiceOrBuilder
      Returns:
      The meshIstio.
    • setMeshIstio

      public Service.Builder setMeshIstio(Service.MeshIstio value)
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
    • setMeshIstio

      public Service.Builder setMeshIstio(Service.MeshIstio.Builder builderForValue)
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
    • mergeMeshIstio

      public Service.Builder mergeMeshIstio(Service.MeshIstio value)
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
    • clearMeshIstio

      public Service.Builder clearMeshIstio()
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
    • getMeshIstioBuilder

      public Service.MeshIstio.Builder getMeshIstioBuilder()
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
    • getMeshIstioOrBuilder

      public Service.MeshIstioOrBuilder getMeshIstioOrBuilder()
       Type used for Istio services scoped to an Istio mesh.
       
      .google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
      Specified by:
      getMeshIstioOrBuilder in interface ServiceOrBuilder
    • hasIstioCanonicalService

      public boolean hasIstioCanonicalService()
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
      Specified by:
      hasIstioCanonicalService in interface ServiceOrBuilder
      Returns:
      Whether the istioCanonicalService field is set.
    • getIstioCanonicalService

      public Service.IstioCanonicalService getIstioCanonicalService()
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
      Specified by:
      getIstioCanonicalService in interface ServiceOrBuilder
      Returns:
      The istioCanonicalService.
    • setIstioCanonicalService

      public Service.Builder setIstioCanonicalService(Service.IstioCanonicalService value)
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    • setIstioCanonicalService

      public Service.Builder setIstioCanonicalService(Service.IstioCanonicalService.Builder builderForValue)
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    • mergeIstioCanonicalService

      public Service.Builder mergeIstioCanonicalService(Service.IstioCanonicalService value)
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    • clearIstioCanonicalService

      public Service.Builder clearIstioCanonicalService()
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    • getIstioCanonicalServiceBuilder

      public Service.IstioCanonicalService.Builder getIstioCanonicalServiceBuilder()
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
    • getIstioCanonicalServiceOrBuilder

      public Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder()
       Type used for canonical services scoped to an Istio mesh.
       Metrics for Istio are
       [documented here](https://istio.io/latest/docs/reference/config/metrics/)
       
      .google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
      Specified by:
      getIstioCanonicalServiceOrBuilder in interface ServiceOrBuilder
    • hasCloudRun

      public boolean hasCloudRun()
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
      Specified by:
      hasCloudRun in interface ServiceOrBuilder
      Returns:
      Whether the cloudRun field is set.
    • getCloudRun

      public Service.CloudRun getCloudRun()
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
      Specified by:
      getCloudRun in interface ServiceOrBuilder
      Returns:
      The cloudRun.
    • setCloudRun

      public Service.Builder setCloudRun(Service.CloudRun value)
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
    • setCloudRun

      public Service.Builder setCloudRun(Service.CloudRun.Builder builderForValue)
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
    • mergeCloudRun

      public Service.Builder mergeCloudRun(Service.CloudRun value)
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
    • clearCloudRun

      public Service.Builder clearCloudRun()
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
    • getCloudRunBuilder

      public Service.CloudRun.Builder getCloudRunBuilder()
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
    • getCloudRunOrBuilder

      public Service.CloudRunOrBuilder getCloudRunOrBuilder()
       Type used for Cloud Run services.
       
      .google.monitoring.v3.Service.CloudRun cloud_run = 12;
      Specified by:
      getCloudRunOrBuilder in interface ServiceOrBuilder
    • hasGkeNamespace

      public boolean hasGkeNamespace()
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
      Specified by:
      hasGkeNamespace in interface ServiceOrBuilder
      Returns:
      Whether the gkeNamespace field is set.
    • getGkeNamespace

      public Service.GkeNamespace getGkeNamespace()
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
      Specified by:
      getGkeNamespace in interface ServiceOrBuilder
      Returns:
      The gkeNamespace.
    • setGkeNamespace

      public Service.Builder setGkeNamespace(Service.GkeNamespace value)
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
    • setGkeNamespace

      public Service.Builder setGkeNamespace(Service.GkeNamespace.Builder builderForValue)
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
    • mergeGkeNamespace

      public Service.Builder mergeGkeNamespace(Service.GkeNamespace value)
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
    • clearGkeNamespace

      public Service.Builder clearGkeNamespace()
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
    • getGkeNamespaceBuilder

      public Service.GkeNamespace.Builder getGkeNamespaceBuilder()
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
    • getGkeNamespaceOrBuilder

      public Service.GkeNamespaceOrBuilder getGkeNamespaceOrBuilder()
       Type used for GKE Namespaces.
       
      .google.monitoring.v3.Service.GkeNamespace gke_namespace = 15;
      Specified by:
      getGkeNamespaceOrBuilder in interface ServiceOrBuilder
    • hasGkeWorkload

      public boolean hasGkeWorkload()
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
      Specified by:
      hasGkeWorkload in interface ServiceOrBuilder
      Returns:
      Whether the gkeWorkload field is set.
    • getGkeWorkload

      public Service.GkeWorkload getGkeWorkload()
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
      Specified by:
      getGkeWorkload in interface ServiceOrBuilder
      Returns:
      The gkeWorkload.
    • setGkeWorkload

      public Service.Builder setGkeWorkload(Service.GkeWorkload value)
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
    • setGkeWorkload

      public Service.Builder setGkeWorkload(Service.GkeWorkload.Builder builderForValue)
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
    • mergeGkeWorkload

      public Service.Builder mergeGkeWorkload(Service.GkeWorkload value)
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
    • clearGkeWorkload

      public Service.Builder clearGkeWorkload()
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
    • getGkeWorkloadBuilder

      public Service.GkeWorkload.Builder getGkeWorkloadBuilder()
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
    • getGkeWorkloadOrBuilder

      public Service.GkeWorkloadOrBuilder getGkeWorkloadOrBuilder()
       Type used for GKE Workloads.
       
      .google.monitoring.v3.Service.GkeWorkload gke_workload = 16;
      Specified by:
      getGkeWorkloadOrBuilder in interface ServiceOrBuilder
    • hasGkeService

      public boolean hasGkeService()
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
      Specified by:
      hasGkeService in interface ServiceOrBuilder
      Returns:
      Whether the gkeService field is set.
    • getGkeService

      public Service.GkeService getGkeService()
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
      Specified by:
      getGkeService in interface ServiceOrBuilder
      Returns:
      The gkeService.
    • setGkeService

      public Service.Builder setGkeService(Service.GkeService value)
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
    • setGkeService

      public Service.Builder setGkeService(Service.GkeService.Builder builderForValue)
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
    • mergeGkeService

      public Service.Builder mergeGkeService(Service.GkeService value)
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
    • clearGkeService

      public Service.Builder clearGkeService()
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
    • getGkeServiceBuilder

      public Service.GkeService.Builder getGkeServiceBuilder()
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
    • getGkeServiceOrBuilder

      public Service.GkeServiceOrBuilder getGkeServiceOrBuilder()
       Type used for GKE Services (the Kubernetes concept of a service).
       
      .google.monitoring.v3.Service.GkeService gke_service = 17;
      Specified by:
      getGkeServiceOrBuilder in interface ServiceOrBuilder
    • hasBasicService

      public boolean hasBasicService()
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
      Specified by:
      hasBasicService in interface ServiceOrBuilder
      Returns:
      Whether the basicService field is set.
    • getBasicService

      public Service.BasicService getBasicService()
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
      Specified by:
      getBasicService in interface ServiceOrBuilder
      Returns:
      The basicService.
    • setBasicService

      public Service.Builder setBasicService(Service.BasicService value)
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
    • setBasicService

      public Service.Builder setBasicService(Service.BasicService.Builder builderForValue)
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
    • mergeBasicService

      public Service.Builder mergeBasicService(Service.BasicService value)
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
    • clearBasicService

      public Service.Builder clearBasicService()
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
    • getBasicServiceBuilder

      public Service.BasicService.Builder getBasicServiceBuilder()
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
    • getBasicServiceOrBuilder

      public Service.BasicServiceOrBuilder getBasicServiceOrBuilder()
       Message that contains the service type and service labels of this service
       if it is a basic service.
       Documentation and examples
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      .google.monitoring.v3.Service.BasicService basic_service = 19;
      Specified by:
      getBasicServiceOrBuilder in interface ServiceOrBuilder
    • hasTelemetry

      public boolean hasTelemetry()
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
      Specified by:
      hasTelemetry in interface ServiceOrBuilder
      Returns:
      Whether the telemetry field is set.
    • getTelemetry

      public Service.Telemetry getTelemetry()
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
      Specified by:
      getTelemetry in interface ServiceOrBuilder
      Returns:
      The telemetry.
    • setTelemetry

      public Service.Builder setTelemetry(Service.Telemetry value)
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
    • setTelemetry

      public Service.Builder setTelemetry(Service.Telemetry.Builder builderForValue)
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
    • mergeTelemetry

      public Service.Builder mergeTelemetry(Service.Telemetry value)
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
    • clearTelemetry

      public Service.Builder clearTelemetry()
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
    • getTelemetryBuilder

      public Service.Telemetry.Builder getTelemetryBuilder()
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
    • getTelemetryOrBuilder

      public Service.TelemetryOrBuilder getTelemetryOrBuilder()
       Configuration for how to query telemetry on a Service.
       
      .google.monitoring.v3.Service.Telemetry telemetry = 13;
      Specified by:
      getTelemetryOrBuilder in interface ServiceOrBuilder
    • getUserLabelsCount

      public int getUserLabelsCount()
      Description copied from interface: ServiceOrBuilder
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
      Specified by:
      getUserLabelsCount in interface ServiceOrBuilder
    • containsUserLabels

      public boolean containsUserLabels(String key)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
      Specified by:
      containsUserLabels in interface ServiceOrBuilder
    • getUserLabels

      @Deprecated public Map<String,String> getUserLabels()
      Deprecated.
      Use getUserLabelsMap() instead.
      Specified by:
      getUserLabels in interface ServiceOrBuilder
    • getUserLabelsMap

      public Map<String,String> getUserLabelsMap()
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
      Specified by:
      getUserLabelsMap in interface ServiceOrBuilder
    • getUserLabelsOrDefault

      public String getUserLabelsOrDefault(String key, String defaultValue)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
      Specified by:
      getUserLabelsOrDefault in interface ServiceOrBuilder
    • getUserLabelsOrThrow

      public String getUserLabelsOrThrow(String key)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
      Specified by:
      getUserLabelsOrThrow in interface ServiceOrBuilder
    • clearUserLabels

      public Service.Builder clearUserLabels()
    • removeUserLabels

      public Service.Builder removeUserLabels(String key)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
    • getMutableUserLabels

      @Deprecated public Map<String,String> getMutableUserLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putUserLabels

      public Service.Builder putUserLabels(String key, String value)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;
    • putAllUserLabels

      public Service.Builder putAllUserLabels(Map<String,String> values)
       Labels which have been used to annotate the service. Label keys must start
       with a letter. Label keys and values may contain lowercase letters,
       numbers, underscores, and dashes. Label keys and values have a maximum
       length of 63 characters, and must be less than 128 bytes in size. Up to 64
       label entries may be stored. For labels which do not have a semantic value,
       the empty string may be supplied for the label value.
       
      map<string, string> user_labels = 14;