Class Service.IstioCanonicalService.Builder (3.56.0)

public static final class Service.IstioCanonicalService.Builder extends GeneratedMessageV3.Builder<Service.IstioCanonicalService.Builder> implements Service.IstioCanonicalServiceOrBuilder

Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.8 will have their services ingested as this type.

Protobuf type google.monitoring.v3.Service.IstioCanonicalService

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.IstioCanonicalService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

build()

public Service.IstioCanonicalService build()
Returns
Type Description
Service.IstioCanonicalService

buildPartial()

public Service.IstioCanonicalService buildPartial()
Returns
Type Description
Service.IstioCanonicalService

clear()

public Service.IstioCanonicalService.Builder clear()
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

clearCanonicalService()

public Service.IstioCanonicalService.Builder clearCanonicalService()

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

string canonical_service = 4;

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

clearCanonicalServiceNamespace()

public Service.IstioCanonicalService.Builder clearCanonicalServiceNamespace()

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

string canonical_service_namespace = 3;

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.IstioCanonicalService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

clearMeshUid()

public Service.IstioCanonicalService.Builder clearMeshUid()

Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics.

string mesh_uid = 1;

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.IstioCanonicalService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

clone()

public Service.IstioCanonicalService.Builder clone()
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

getCanonicalService()

public String getCanonicalService()

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

string canonical_service = 4;

Returns
Type Description
String

The canonicalService.

getCanonicalServiceBytes()

public ByteString getCanonicalServiceBytes()

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

string canonical_service = 4;

Returns
Type Description
ByteString

The bytes for canonicalService.

getCanonicalServiceNamespace()

public String getCanonicalServiceNamespace()

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

string canonical_service_namespace = 3;

Returns
Type Description
String

The canonicalServiceNamespace.

getCanonicalServiceNamespaceBytes()

public ByteString getCanonicalServiceNamespaceBytes()

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

string canonical_service_namespace = 3;

Returns
Type Description
ByteString

The bytes for canonicalServiceNamespace.

getDefaultInstanceForType()

public Service.IstioCanonicalService getDefaultInstanceForType()
Returns
Type Description
Service.IstioCanonicalService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMeshUid()

public String getMeshUid()

Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics.

string mesh_uid = 1;

Returns
Type Description
String

The meshUid.

getMeshUidBytes()

public ByteString getMeshUidBytes()

Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics.

string mesh_uid = 1;

Returns
Type Description
ByteString

The bytes for meshUid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Service.IstioCanonicalService other)

public Service.IstioCanonicalService.Builder mergeFrom(Service.IstioCanonicalService other)
Parameter
Name Description
other Service.IstioCanonicalService
Returns
Type Description
Service.IstioCanonicalService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.IstioCanonicalService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Service.IstioCanonicalService.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.IstioCanonicalService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

setCanonicalService(String value)

public Service.IstioCanonicalService.Builder setCanonicalService(String value)

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

string canonical_service = 4;

Parameter
Name Description
value String

The canonicalService to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

setCanonicalServiceBytes(ByteString value)

public Service.IstioCanonicalService.Builder setCanonicalServiceBytes(ByteString value)

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

string canonical_service = 4;

Parameter
Name Description
value ByteString

The bytes for canonicalService to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

setCanonicalServiceNamespace(String value)

public Service.IstioCanonicalService.Builder setCanonicalServiceNamespace(String value)

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

string canonical_service_namespace = 3;

Parameter
Name Description
value String

The canonicalServiceNamespace to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

setCanonicalServiceNamespaceBytes(ByteString value)

public Service.IstioCanonicalService.Builder setCanonicalServiceNamespaceBytes(ByteString value)

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

string canonical_service_namespace = 3;

Parameter
Name Description
value ByteString

The bytes for canonicalServiceNamespace to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.IstioCanonicalService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

setMeshUid(String value)

public Service.IstioCanonicalService.Builder setMeshUid(String value)

Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics.

string mesh_uid = 1;

Parameter
Name Description
value String

The meshUid to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

setMeshUidBytes(ByteString value)

public Service.IstioCanonicalService.Builder setMeshUidBytes(ByteString value)

Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics.

string mesh_uid = 1;

Parameter
Name Description
value ByteString

The bytes for meshUid to set.

Returns
Type Description
Service.IstioCanonicalService.Builder

This builder for chaining.

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

public Service.IstioCanonicalService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.IstioCanonicalService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.IstioCanonicalService.Builder
Overrides