Class Service

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.v3.Service
All Implemented Interfaces:
ServiceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Service extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • CUSTOM_FIELD_NUMBER

      public static final int CUSTOM_FIELD_NUMBER
      See Also:
    • APP_ENGINE_FIELD_NUMBER

      public static final int APP_ENGINE_FIELD_NUMBER
      See Also:
    • CLOUD_ENDPOINTS_FIELD_NUMBER

      public static final int CLOUD_ENDPOINTS_FIELD_NUMBER
      See Also:
    • CLUSTER_ISTIO_FIELD_NUMBER

      public static final int CLUSTER_ISTIO_FIELD_NUMBER
      See Also:
    • MESH_ISTIO_FIELD_NUMBER

      public static final int MESH_ISTIO_FIELD_NUMBER
      See Also:
    • ISTIO_CANONICAL_SERVICE_FIELD_NUMBER

      public static final int ISTIO_CANONICAL_SERVICE_FIELD_NUMBER
      See Also:
    • CLOUD_RUN_FIELD_NUMBER

      public static final int CLOUD_RUN_FIELD_NUMBER
      See Also:
    • GKE_NAMESPACE_FIELD_NUMBER

      public static final int GKE_NAMESPACE_FIELD_NUMBER
      See Also:
    • GKE_WORKLOAD_FIELD_NUMBER

      public static final int GKE_WORKLOAD_FIELD_NUMBER
      See Also:
    • GKE_SERVICE_FIELD_NUMBER

      public static final int GKE_SERVICE_FIELD_NUMBER
      See Also:
    • BASIC_SERVICE_FIELD_NUMBER

      public static final int BASIC_SERVICE_FIELD_NUMBER
      See Also:
    • TELEMETRY_FIELD_NUMBER

      public static final int TELEMETRY_FIELD_NUMBER
      See Also:
    • USER_LABELS_FIELD_NUMBER

      public static final int USER_LABELS_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getIdentifierCase

      public Service.IdentifierCase getIdentifierCase()
      Specified by:
      getIdentifierCase in interface ServiceOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Service parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Service parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Service parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Service.Builder newBuilder()
    • newBuilder

      public static Service.Builder newBuilder(Service prototype)
    • toBuilder

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

      protected Service.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Service getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Service> parser()
    • getParserForType

      public com.google.protobuf.Parser<Service> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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