Class Service.Builder (3.6.0)

public static final class Service.Builder extends GeneratedMessageV3.Builder<Service.Builder> 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

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

build()

public Service build()
Returns
TypeDescription
Service

buildPartial()

public Service buildPartial()
Returns
TypeDescription
Service

clear()

public Service.Builder clear()
Returns
TypeDescription
Service.Builder
Overrides

clearAppEngine()

public Service.Builder clearAppEngine()

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Returns
TypeDescription
Service.Builder

clearCloudEndpoints()

public Service.Builder clearCloudEndpoints()

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Returns
TypeDescription
Service.Builder

clearClusterIstio()

public Service.Builder clearClusterIstio()

Type used for Istio services that live in a Kubernetes cluster.

.google.monitoring.v3.Service.ClusterIstio cluster_istio = 9;

Returns
TypeDescription
Service.Builder

clearCustom()

public Service.Builder clearCustom()

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Returns
TypeDescription
Service.Builder

clearDisplayName()

public Service.Builder clearDisplayName()

Name used for UI elements listing this Service.

string display_name = 2;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearIdentifier()

public Service.Builder clearIdentifier()
Returns
TypeDescription
Service.Builder

clearIstioCanonicalService()

public Service.Builder clearIstioCanonicalService()

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
TypeDescription
Service.Builder

clearMeshIstio()

public Service.Builder clearMeshIstio()

Type used for Istio services scoped to an Istio mesh.

.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;

Returns
TypeDescription
Service.Builder

clearName()

public Service.Builder clearName()

Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

string name = 1;

Returns
TypeDescription
Service.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Service.Builder
Overrides

clearTelemetry()

public Service.Builder clearTelemetry()

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Returns
TypeDescription
Service.Builder

clearUserLabels()

public Service.Builder clearUserLabels()
Returns
TypeDescription
Service.Builder

clone()

public Service.Builder clone()
Returns
TypeDescription
Service.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
boolean

getAppEngine()

public Service.AppEngine getAppEngine()

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Returns
TypeDescription
Service.AppEngine

The appEngine.

getAppEngineBuilder()

public Service.AppEngine.Builder getAppEngineBuilder()

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Returns
TypeDescription
Service.AppEngine.Builder

getAppEngineOrBuilder()

public Service.AppEngineOrBuilder getAppEngineOrBuilder()

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Returns
TypeDescription
Service.AppEngineOrBuilder

getCloudEndpoints()

public Service.CloudEndpoints getCloudEndpoints()

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Returns
TypeDescription
Service.CloudEndpoints

The cloudEndpoints.

getCloudEndpointsBuilder()

public Service.CloudEndpoints.Builder getCloudEndpointsBuilder()

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Returns
TypeDescription
Service.CloudEndpoints.Builder

getCloudEndpointsOrBuilder()

public Service.CloudEndpointsOrBuilder getCloudEndpointsOrBuilder()

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Returns
TypeDescription
Service.CloudEndpointsOrBuilder

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
TypeDescription
Service.ClusterIstio

The clusterIstio.

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;

Returns
TypeDescription
Service.ClusterIstio.Builder

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
TypeDescription
Service.ClusterIstioOrBuilder

getCustom()

public Service.Custom getCustom()

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Returns
TypeDescription
Service.Custom

The custom.

getCustomBuilder()

public Service.Custom.Builder getCustomBuilder()

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Returns
TypeDescription
Service.Custom.Builder

getCustomOrBuilder()

public Service.CustomOrBuilder getCustomOrBuilder()

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Returns
TypeDescription
Service.CustomOrBuilder

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
TypeDescription
Service

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name used for UI elements listing this Service.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name used for UI elements listing this Service.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getIdentifierCase()

public Service.IdentifierCase getIdentifierCase()
Returns
TypeDescription
Service.IdentifierCase

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
TypeDescription
Service.IstioCanonicalService

The istioCanonicalService.

getIstioCanonicalServiceBuilder()

public Service.IstioCanonicalService.Builder getIstioCanonicalServiceBuilder()

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
TypeDescription
Service.IstioCanonicalService.Builder

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
TypeDescription
Service.IstioCanonicalServiceOrBuilder

getMeshIstio()

public Service.MeshIstio getMeshIstio()

Type used for Istio services scoped to an Istio mesh.

.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;

Returns
TypeDescription
Service.MeshIstio

The meshIstio.

getMeshIstioBuilder()

public Service.MeshIstio.Builder getMeshIstioBuilder()

Type used for Istio services scoped to an Istio mesh.

.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;

Returns
TypeDescription
Service.MeshIstio.Builder

getMeshIstioOrBuilder()

public Service.MeshIstioOrBuilder getMeshIstioOrBuilder()

Type used for Istio services scoped to an Istio mesh.

.google.monitoring.v3.Service.MeshIstio mesh_istio = 10;

Returns
TypeDescription
Service.MeshIstioOrBuilder

getMutableUserLabels()

public Map<String,String> getMutableUserLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

string name = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getTelemetry()

public Service.Telemetry getTelemetry()

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Returns
TypeDescription
Service.Telemetry

The telemetry.

getTelemetryBuilder()

public Service.Telemetry.Builder getTelemetryBuilder()

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Returns
TypeDescription
Service.Telemetry.Builder

getTelemetryOrBuilder()

public Service.TelemetryOrBuilder getTelemetryOrBuilder()

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Returns
TypeDescription
Service.TelemetryOrBuilder

getUserLabels()

public Map<String,String> getUserLabels()

Use #getUserLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

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
TypeDescription
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;

Returns
TypeDescription
Map<String,String>

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

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
NameDescription
keyString
Returns
TypeDescription
String

hasAppEngine()

public boolean hasAppEngine()

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the clusterIstio field is set.

hasCustom()

public boolean hasCustom()

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the telemetry field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAppEngine(Service.AppEngine value)

public Service.Builder mergeAppEngine(Service.AppEngine value)

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Parameter
NameDescription
valueService.AppEngine
Returns
TypeDescription
Service.Builder

mergeCloudEndpoints(Service.CloudEndpoints value)

public Service.Builder mergeCloudEndpoints(Service.CloudEndpoints value)

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Parameter
NameDescription
valueService.CloudEndpoints
Returns
TypeDescription
Service.Builder

mergeClusterIstio(Service.ClusterIstio value)

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;

Parameter
NameDescription
valueService.ClusterIstio
Returns
TypeDescription
Service.Builder

mergeCustom(Service.Custom value)

public Service.Builder mergeCustom(Service.Custom value)

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Parameter
NameDescription
valueService.Custom
Returns
TypeDescription
Service.Builder

mergeFrom(Service other)

public Service.Builder mergeFrom(Service other)
Parameter
NameDescription
otherService
Returns
TypeDescription
Service.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Service.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Service.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Service.Builder
Overrides

mergeIstioCanonicalService(Service.IstioCanonicalService value)

public Service.Builder mergeIstioCanonicalService(Service.IstioCanonicalService value)

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;

Parameter
NameDescription
valueService.IstioCanonicalService
Returns
TypeDescription
Service.Builder

mergeMeshIstio(Service.MeshIstio value)

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;

Parameter
NameDescription
valueService.MeshIstio
Returns
TypeDescription
Service.Builder

mergeTelemetry(Service.Telemetry value)

public Service.Builder mergeTelemetry(Service.Telemetry value)

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Parameter
NameDescription
valueService.Telemetry
Returns
TypeDescription
Service.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides

putAllUserLabels(Map<String,String> values)

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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Service.Builder

putUserLabels(String key, String value)

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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Service.Builder

removeUserLabels(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
Service.Builder

setAppEngine(Service.AppEngine value)

public Service.Builder setAppEngine(Service.AppEngine value)

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Parameter
NameDescription
valueService.AppEngine
Returns
TypeDescription
Service.Builder

setAppEngine(Service.AppEngine.Builder builderForValue)

public Service.Builder setAppEngine(Service.AppEngine.Builder builderForValue)

Type used for App Engine services.

.google.monitoring.v3.Service.AppEngine app_engine = 7;

Parameter
NameDescription
builderForValueService.AppEngine.Builder
Returns
TypeDescription
Service.Builder

setCloudEndpoints(Service.CloudEndpoints value)

public Service.Builder setCloudEndpoints(Service.CloudEndpoints value)

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Parameter
NameDescription
valueService.CloudEndpoints
Returns
TypeDescription
Service.Builder

setCloudEndpoints(Service.CloudEndpoints.Builder builderForValue)

public Service.Builder setCloudEndpoints(Service.CloudEndpoints.Builder builderForValue)

Type used for Cloud Endpoints services.

.google.monitoring.v3.Service.CloudEndpoints cloud_endpoints = 8;

Parameter
NameDescription
builderForValueService.CloudEndpoints.Builder
Returns
TypeDescription
Service.Builder

setClusterIstio(Service.ClusterIstio value)

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;

Parameter
NameDescription
valueService.ClusterIstio
Returns
TypeDescription
Service.Builder

setClusterIstio(Service.ClusterIstio.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueService.ClusterIstio.Builder
Returns
TypeDescription
Service.Builder

setCustom(Service.Custom value)

public Service.Builder setCustom(Service.Custom value)

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Parameter
NameDescription
valueService.Custom
Returns
TypeDescription
Service.Builder

setCustom(Service.Custom.Builder builderForValue)

public Service.Builder setCustom(Service.Custom.Builder builderForValue)

Custom service type.

.google.monitoring.v3.Service.Custom custom = 6;

Parameter
NameDescription
builderForValueService.Custom.Builder
Returns
TypeDescription
Service.Builder

setDisplayName(String value)

public Service.Builder setDisplayName(String value)

Name used for UI elements listing this Service.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Service.Builder setDisplayNameBytes(ByteString value)

Name used for UI elements listing this Service.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setIstioCanonicalService(Service.IstioCanonicalService value)

public Service.Builder setIstioCanonicalService(Service.IstioCanonicalService value)

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;

Parameter
NameDescription
valueService.IstioCanonicalService
Returns
TypeDescription
Service.Builder

setIstioCanonicalService(Service.IstioCanonicalService.Builder builderForValue)

public Service.Builder setIstioCanonicalService(Service.IstioCanonicalService.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueService.IstioCanonicalService.Builder
Returns
TypeDescription
Service.Builder

setMeshIstio(Service.MeshIstio value)

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;

Parameter
NameDescription
valueService.MeshIstio
Returns
TypeDescription
Service.Builder

setMeshIstio(Service.MeshIstio.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueService.MeshIstio.Builder
Returns
TypeDescription
Service.Builder

setName(String value)

public Service.Builder setName(String value)

Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.Builder setNameBytes(ByteString value)

Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Service.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Service.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Service.Builder
Overrides

setTelemetry(Service.Telemetry value)

public Service.Builder setTelemetry(Service.Telemetry value)

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Parameter
NameDescription
valueService.Telemetry
Returns
TypeDescription
Service.Builder

setTelemetry(Service.Telemetry.Builder builderForValue)

public Service.Builder setTelemetry(Service.Telemetry.Builder builderForValue)

Configuration for how to query telemetry on a Service.

.google.monitoring.v3.Service.Telemetry telemetry = 13;

Parameter
NameDescription
builderForValueService.Telemetry.Builder
Returns
TypeDescription
Service.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.Builder
Overrides