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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
APP_ENGINE_FIELD_NUMBER
public static final int APP_ENGINE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CLOUD_ENDPOINTS_FIELD_NUMBER
public static final int CLOUD_ENDPOINTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CLUSTER_ISTIO_FIELD_NUMBER
public static final int CLUSTER_ISTIO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CUSTOM_FIELD_NUMBER
public static final int CUSTOM_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ISTIO_CANONICAL_SERVICE_FIELD_NUMBER
public static final int ISTIO_CANONICAL_SERVICE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MESH_ISTIO_FIELD_NUMBER
public static final int MESH_ISTIO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TELEMETRY_FIELD_NUMBER
public static final int TELEMETRY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
USER_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Service getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Service.Builder newBuilder()
newBuilder(Service prototype)
public static Service.Builder newBuilder(Service prototype)
Parameter |
---|
Name | Description |
prototype | Service
|
public static Service parseDelimitedFrom(InputStream input)
public static Service parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Service parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Service parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(CodedInputStream input)
public static Service parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(InputStream input)
public static Service parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Service parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Service> parser()
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 |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAppEngine()
public Service.AppEngine getAppEngine()
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;
getCloudEndpoints()
public Service.CloudEndpoints getCloudEndpoints()
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;
getClusterIstio()
public Service.ClusterIstio getClusterIstio()
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;
getCustom()
public Service.Custom getCustom()
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;
getDefaultInstanceForType()
public Service getDefaultInstanceForType()
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()
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;
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;
getMeshIstio()
public Service.MeshIstio getMeshIstio()
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;
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Service> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTelemetry()
public Service.Telemetry getTelemetry()
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;
getUserLabels() (deprecated)
public Map<String,String> getUserLabels()
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 |
---|
Type | Description |
int | |
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;
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;
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 |
---|
Name | Description |
key | String
|
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Service.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Service.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Service.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides