Class Service.IstioCanonicalService.Builder (3.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Service.IstioCanonicalService build()
Returns
TypeDescription
Service.IstioCanonicalService

buildPartial()

public Service.IstioCanonicalService buildPartial()
Returns
TypeDescription
Service.IstioCanonicalService

clear()

public Service.IstioCanonicalService.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Service.IstioCanonicalService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Service.IstioCanonicalService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Service.IstioCanonicalService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Service.IstioCanonicalService.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for canonicalServiceNamespace.

getDefaultInstanceForType()

public Service.IstioCanonicalService getDefaultInstanceForType()
Returns
TypeDescription
Service.IstioCanonicalService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for meshUid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Service.IstioCanonicalService other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.IstioCanonicalService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The canonicalService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for canonicalService to set.

Returns
TypeDescription
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
NameDescription
valueString

The canonicalServiceNamespace to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for canonicalServiceNamespace to set.

Returns
TypeDescription
Service.IstioCanonicalService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Service.IstioCanonicalService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The meshUid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for meshUid to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Service.IstioCanonicalService.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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