Package io.opentelemetry.proto.common.v1
Class EntityRef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<EntityRef,EntityRef.Builder>
io.opentelemetry.proto.common.v1.EntityRef.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,EntityRefOrBuilder,Cloneable
- Enclosing class:
- EntityRef
public static final class EntityRef.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EntityRef,EntityRef.Builder>
implements EntityRefOrBuilder
A reference to an Entity. Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs. Status: [Development]Protobuf type
opentelemetry.proto.common.v1.EntityRef-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllDescriptionKeys(Iterable<String> values) Descriptive (non-identifying) attribute keys of the entity.addAllIdKeys(Iterable<String> values) Attribute Keys that identify the entity.addDescriptionKeys(String value) Descriptive (non-identifying) attribute keys of the entity.addDescriptionKeysBytes(com.google.protobuf.ByteString value) Descriptive (non-identifying) attribute keys of the entity.Attribute Keys that identify the entity.addIdKeysBytes(com.google.protobuf.ByteString value) Attribute Keys that identify the entity.Descriptive (non-identifying) attribute keys of the entity.Attribute Keys that identify the entity.The Schema URL, if known.Defines the type of the entity.getDescriptionKeys(int index) Descriptive (non-identifying) attribute keys of the entity.com.google.protobuf.ByteStringgetDescriptionKeysBytes(int index) Descriptive (non-identifying) attribute keys of the entity.intDescriptive (non-identifying) attribute keys of the entity.Descriptive (non-identifying) attribute keys of the entity.getIdKeys(int index) Attribute Keys that identify the entity.com.google.protobuf.ByteStringgetIdKeysBytes(int index) Attribute Keys that identify the entity.intAttribute Keys that identify the entity.Attribute Keys that identify the entity.The Schema URL, if known.com.google.protobuf.ByteStringThe Schema URL, if known.getType()Defines the type of the entity.com.google.protobuf.ByteStringDefines the type of the entity.setDescriptionKeys(int index, String value) Descriptive (non-identifying) attribute keys of the entity.Attribute Keys that identify the entity.setSchemaUrl(String value) The Schema URL, if known.setSchemaUrlBytes(com.google.protobuf.ByteString value) The Schema URL, if known.Defines the type of the entity.setTypeBytes(com.google.protobuf.ByteString value) Defines the type of the entity.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the entity data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in this message and to the Resource attributes referenced by id_keys and description_keys. TODO: discuss if we are happy with this somewhat complicated definition of what the schema_url applies to. This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
string schema_url = 1 [json_name = "schemaUrl"];- Specified by:
getSchemaUrlin interfaceEntityRefOrBuilder- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
public com.google.protobuf.ByteString getSchemaUrlBytes()The Schema URL, if known. This is the identifier of the Schema that the entity data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in this message and to the Resource attributes referenced by id_keys and description_keys. TODO: discuss if we are happy with this somewhat complicated definition of what the schema_url applies to. This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
string schema_url = 1 [json_name = "schemaUrl"];- Specified by:
getSchemaUrlBytesin interfaceEntityRefOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the entity data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in this message and to the Resource attributes referenced by id_keys and description_keys. TODO: discuss if we are happy with this somewhat complicated definition of what the schema_url applies to. This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
string schema_url = 1 [json_name = "schemaUrl"];- Parameters:
value- The schemaUrl to set.- Returns:
- This builder for chaining.
-
clearSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the entity data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in this message and to the Resource attributes referenced by id_keys and description_keys. TODO: discuss if we are happy with this somewhat complicated definition of what the schema_url applies to. This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
string schema_url = 1 [json_name = "schemaUrl"];- Returns:
- This builder for chaining.
-
setSchemaUrlBytes
The Schema URL, if known. This is the identifier of the Schema that the entity data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in this message and to the Resource attributes referenced by id_keys and description_keys. TODO: discuss if we are happy with this somewhat complicated definition of what the schema_url applies to. This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
string schema_url = 1 [json_name = "schemaUrl"];- Parameters:
value- The bytes for schemaUrl to set.- Returns:
- This builder for chaining.
-
getType
Defines the type of the entity. MUST not change during the lifetime of the entity. For example: "service" or "host". This field is required and MUST not be empty for valid entities.
string type = 2 [json_name = "type"];- Specified by:
getTypein interfaceEntityRefOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Defines the type of the entity. MUST not change during the lifetime of the entity. For example: "service" or "host". This field is required and MUST not be empty for valid entities.
string type = 2 [json_name = "type"];- Specified by:
getTypeBytesin interfaceEntityRefOrBuilder- Returns:
- The bytes for type.
-
setType
Defines the type of the entity. MUST not change during the lifetime of the entity. For example: "service" or "host". This field is required and MUST not be empty for valid entities.
string type = 2 [json_name = "type"];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Defines the type of the entity. MUST not change during the lifetime of the entity. For example: "service" or "host". This field is required and MUST not be empty for valid entities.
string type = 2 [json_name = "type"];- Returns:
- This builder for chaining.
-
setTypeBytes
Defines the type of the entity. MUST not change during the lifetime of the entity. For example: "service" or "host". This field is required and MUST not be empty for valid entities.
string type = 2 [json_name = "type"];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getIdKeysList
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Specified by:
getIdKeysListin interfaceEntityRefOrBuilder- Returns:
- A list containing the idKeys.
-
getIdKeysCount
public int getIdKeysCount()Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Specified by:
getIdKeysCountin interfaceEntityRefOrBuilder- Returns:
- The count of idKeys.
-
getIdKeys
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Specified by:
getIdKeysin interfaceEntityRefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The idKeys at the given index.
-
getIdKeysBytes
public com.google.protobuf.ByteString getIdKeysBytes(int index) Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Specified by:
getIdKeysBytesin interfaceEntityRefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the idKeys at the given index.
-
setIdKeys
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Parameters:
index- The index to set the value at.value- The idKeys to set.- Returns:
- This builder for chaining.
-
addIdKeys
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Parameters:
value- The idKeys to add.- Returns:
- This builder for chaining.
-
addAllIdKeys
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Parameters:
values- The idKeys to add.- Returns:
- This builder for chaining.
-
clearIdKeys
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Returns:
- This builder for chaining.
-
addIdKeysBytes
Attribute Keys that identify the entity. MUST not change during the lifetime of the entity. The Id must contain at least one attribute. These keys MUST exist in the containing {message}.attributes.repeated string id_keys = 3 [json_name = "idKeys"];- Parameters:
value- The bytes of the idKeys to add.- Returns:
- This builder for chaining.
-
getDescriptionKeysList
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Specified by:
getDescriptionKeysListin interfaceEntityRefOrBuilder- Returns:
- A list containing the descriptionKeys.
-
getDescriptionKeysCount
public int getDescriptionKeysCount()Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Specified by:
getDescriptionKeysCountin interfaceEntityRefOrBuilder- Returns:
- The count of descriptionKeys.
-
getDescriptionKeys
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Specified by:
getDescriptionKeysin interfaceEntityRefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The descriptionKeys at the given index.
-
getDescriptionKeysBytes
public com.google.protobuf.ByteString getDescriptionKeysBytes(int index) Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Specified by:
getDescriptionKeysBytesin interfaceEntityRefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the descriptionKeys at the given index.
-
setDescriptionKeys
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Parameters:
index- The index to set the value at.value- The descriptionKeys to set.- Returns:
- This builder for chaining.
-
addDescriptionKeys
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Parameters:
value- The descriptionKeys to add.- Returns:
- This builder for chaining.
-
addAllDescriptionKeys
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Parameters:
values- The descriptionKeys to add.- Returns:
- This builder for chaining.
-
clearDescriptionKeys
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Returns:
- This builder for chaining.
-
addDescriptionKeysBytes
Descriptive (non-identifying) attribute keys of the entity. MAY change over the lifetime of the entity. MAY be empty. These attribute keys are not part of entity's identity. These keys MUST exist in the containing {message}.attributes.repeated string description_keys = 4 [json_name = "descriptionKeys"];- Parameters:
value- The bytes of the descriptionKeys to add.- Returns:
- This builder for chaining.
-