public final class Service extends GeneratedMessageV3 implements ServiceOrBuilder
A Service
is a discrete, autonomous, and network-accessible unit, designed
to solve an individual concern
(Wikipedia). 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
Static Fields
APP_ENGINE_FIELD_NUMBER
public static final int APP_ENGINE_FIELD_NUMBER
Field Value
CLOUD_ENDPOINTS_FIELD_NUMBER
public static final int CLOUD_ENDPOINTS_FIELD_NUMBER
Field Value
CLUSTER_ISTIO_FIELD_NUMBER
public static final int CLUSTER_ISTIO_FIELD_NUMBER
Field Value
CUSTOM_FIELD_NUMBER
public static final int CUSTOM_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ISTIO_CANONICAL_SERVICE_FIELD_NUMBER
public static final int ISTIO_CANONICAL_SERVICE_FIELD_NUMBER
Field Value
MESH_ISTIO_FIELD_NUMBER
public static final int MESH_ISTIO_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TELEMETRY_FIELD_NUMBER
public static final int TELEMETRY_FIELD_NUMBER
Field Value
USER_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Service getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Service.Builder newBuilder()
Returns
newBuilder(Service prototype)
public static Service.Builder newBuilder(Service prototype)
Parameter
Returns
public static Service parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Service parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Service parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Service parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Service parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Service parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Service parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Service parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Service parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Service> parser()
Returns
Methods
containsUserLabels(String key)
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;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAppEngine()
public Service.AppEngine getAppEngine()
Type used for App Engine services.
.google.monitoring.v3.Service.AppEngine app_engine = 7;
Returns
getAppEngineOrBuilder()
public Service.AppEngineOrBuilder getAppEngineOrBuilder()
Type used for App Engine services.
.google.monitoring.v3.Service.AppEngine app_engine = 7;
Returns
getCloudEndpoints()
public Service.CloudEndpoints getCloudEndpoints()
Type used for Cloud Endpoints services.
.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
Returns
getCloudEndpointsOrBuilder()
public Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder()
Type used for Cloud Endpoints services.
.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
Returns
getClusterIstio()
public Service.ClusterIstio getClusterIstio()
Type used for Istio services that live in a Kubernetes cluster.
.google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
Returns
getClusterIstioOrBuilder()
public Service.ClusterIstioOrBuilder getClusterIstioOrBuilder()
Type used for Istio services that live in a Kubernetes cluster.
.google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
Returns
getCustom()
public Service.Custom getCustom()
Custom service type.
.google.monitoring.v3.Service.Custom custom = 6;
Returns
getCustomOrBuilder()
public Service.CustomOrBuilder getCustomOrBuilder()
Custom service type.
.google.monitoring.v3.Service.Custom custom = 6;
Returns
getDefaultInstanceForType()
public Service getDefaultInstanceForType()
Returns
getDisplayName()
public String getDisplayName()
Name used for UI elements listing this Service.
string display_name = 2;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Name used for UI elements listing this Service.
string display_name = 2;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getIdentifierCase()
public Service.IdentifierCase getIdentifierCase()
Returns
getIstioCanonicalService()
public Service.IstioCanonicalService getIstioCanonicalService()
Type used for canonical services scoped to an Istio mesh.
Metrics for Istio are
documented here
.google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
Returns
getIstioCanonicalServiceOrBuilder()
public Service.IstioCanonicalServiceOrBuilder getIstioCanonicalServiceOrBuilder()
Type used for canonical services scoped to an Istio mesh.
Metrics for Istio are
documented here
.google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
Returns
getMeshIstio()
public Service.MeshIstio getMeshIstio()
Type used for Istio services scoped to an Istio mesh.
.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
Returns
getMeshIstioOrBuilder()
public Service.MeshIstioOrBuilder getMeshIstioOrBuilder()
Type used for Istio services scoped to an Istio mesh.
.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
Returns
getName()
Resource name for this Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource name for this Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
string name = 1;
Returns
getParserForType()
public Parser<Service> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTelemetry()
public Service.Telemetry getTelemetry()
Configuration for how to query telemetry on a Service.
.google.monitoring.v3.Service.Telemetry telemetry = 13;
Returns
getTelemetryOrBuilder()
public Service.TelemetryOrBuilder getTelemetryOrBuilder()
Configuration for how to query telemetry on a Service.
.google.monitoring.v3.Service.Telemetry telemetry = 13;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUserLabels()
public Map<String,String> getUserLabels()
Returns
getUserLabelsCount()
public int getUserLabelsCount()
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;
Returns
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;
Returns
getUserLabelsOrDefault(String key, String defaultValue)
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;
Parameters
Returns
getUserLabelsOrThrow(String key)
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;
Parameter
Returns
hasAppEngine()
public boolean hasAppEngine()
Type used for App Engine services.
.google.monitoring.v3.Service.AppEngine app_engine = 7;
Returns
Type | Description |
boolean | Whether the appEngine field is set.
|
hasCloudEndpoints()
public boolean hasCloudEndpoints()
Type used for Cloud Endpoints services.
.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;
Returns
Type | Description |
boolean | Whether the cloudEndpoints field is set.
|
hasClusterIstio()
public boolean hasClusterIstio()
Type used for Istio services that live in a Kubernetes cluster.
.google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;
Returns
Type | Description |
boolean | Whether the clusterIstio field is set.
|
hasCustom()
public boolean hasCustom()
Custom service type.
.google.monitoring.v3.Service.Custom custom = 6;
Returns
Type | Description |
boolean | Whether the custom field is set.
|
hasIstioCanonicalService()
public boolean hasIstioCanonicalService()
Type used for canonical services scoped to an Istio mesh.
Metrics for Istio are
documented here
.google.monitoring.v3.Service.IstioCanonicalService istio_canonical_service = 11;
Returns
Type | Description |
boolean | Whether the istioCanonicalService field is set.
|
hasMeshIstio()
public boolean hasMeshIstio()
Type used for Istio services scoped to an Istio mesh.
.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;
Returns
Type | Description |
boolean | Whether the meshIstio field is set.
|
hasTelemetry()
public boolean hasTelemetry()
Configuration for how to query telemetry on a Service.
.google.monitoring.v3.Service.Telemetry telemetry = 13;
Returns
Type | Description |
boolean | Whether the telemetry field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Service.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Service.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Service.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions