Class CustomTag
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.type.tracing.v3.CustomTag
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CustomTagOrBuilder,Serializable
public final class CustomTag extends com.google.protobuf.GeneratedMessageV3 implements CustomTagOrBuilder
Describes custom tags for the active span. [#next-free-field: 6]
Protobuf typeenvoy.type.tracing.v3.CustomTag- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomTag.BuilderDescribes custom tags for the active span.static classCustomTag.EnvironmentEnvironment type custom tag with environment name and default value.static interfaceCustomTag.EnvironmentOrBuilderstatic classCustomTag.HeaderHeader type custom tag with header name and default value.static interfaceCustomTag.HeaderOrBuilderstatic classCustomTag.LiteralLiteral type custom tag with static value for the tag value.static interfaceCustomTag.LiteralOrBuilderstatic classCustomTag.MetadataMetadata type custom tag using :ref:`MetadataKey <envoy_v3_api_msg_type.metadata.v3.MetadataKey>` to retrieve the protobuf value from :ref:`Metadata <envoy_v3_api_msg_config.core.v3.Metadata>`, and populate the tag value with `the canonical JSON <https://developers.google.com/protocol-buffers/docs/proto3#json>`_ representation of it.static interfaceCustomTag.MetadataOrBuilderstatic classCustomTag.TypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intENVIRONMENT_FIELD_NUMBERstatic intLITERAL_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intREQUEST_HEADER_FIELD_NUMBERstatic intTAG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static CustomTaggetDefaultInstance()CustomTaggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()CustomTag.EnvironmentgetEnvironment()An environment custom tag.CustomTag.EnvironmentOrBuildergetEnvironmentOrBuilder()An environment custom tag.CustomTag.LiteralgetLiteral()A literal custom tag.CustomTag.LiteralOrBuildergetLiteralOrBuilder()A literal custom tag.CustomTag.MetadatagetMetadata()A custom tag to obtain tag value from the metadata.CustomTag.MetadataOrBuildergetMetadataOrBuilder()A custom tag to obtain tag value from the metadata.com.google.protobuf.Parser<CustomTag>getParserForType()CustomTag.HeadergetRequestHeader()A request header custom tag.CustomTag.HeaderOrBuildergetRequestHeaderOrBuilder()A request header custom tag.intgetSerializedSize()StringgetTag()Used to populate the tag name.com.google.protobuf.ByteStringgetTagBytes()Used to populate the tag name.CustomTag.TypeCasegetTypeCase()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasEnvironment()An environment custom tag.inthashCode()booleanhasLiteral()A literal custom tag.booleanhasMetadata()A custom tag to obtain tag value from the metadata.booleanhasRequestHeader()A request header custom tag.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CustomTag.BuildernewBuilder()static CustomTag.BuildernewBuilder(CustomTag prototype)CustomTag.BuildernewBuilderForType()protected CustomTag.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CustomTagparseDelimitedFrom(InputStream input)static CustomTagparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomTagparseFrom(byte[] data)static CustomTagparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomTagparseFrom(com.google.protobuf.ByteString data)static CustomTagparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomTagparseFrom(com.google.protobuf.CodedInputStream input)static CustomTagparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomTagparseFrom(InputStream input)static CustomTagparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CustomTagparseFrom(ByteBuffer data)static CustomTagparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CustomTag>parser()CustomTag.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LITERAL_FIELD_NUMBER
public static final int LITERAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_HEADER_FIELD_NUMBER
public static final int REQUEST_HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTypeCase
public CustomTag.TypeCase getTypeCase()
- Specified by:
getTypeCasein interfaceCustomTagOrBuilder
-
getTag
public String getTag()
Used to populate the tag name.
string tag = 1 [(.validate.rules) = { ... }- Specified by:
getTagin interfaceCustomTagOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()
Used to populate the tag name.
string tag = 1 [(.validate.rules) = { ... }- Specified by:
getTagBytesin interfaceCustomTagOrBuilder- Returns:
- The bytes for tag.
-
hasLiteral
public boolean hasLiteral()
A literal custom tag.
.envoy.type.tracing.v3.CustomTag.Literal literal = 2;- Specified by:
hasLiteralin interfaceCustomTagOrBuilder- Returns:
- Whether the literal field is set.
-
getLiteral
public CustomTag.Literal getLiteral()
A literal custom tag.
.envoy.type.tracing.v3.CustomTag.Literal literal = 2;- Specified by:
getLiteralin interfaceCustomTagOrBuilder- Returns:
- The literal.
-
getLiteralOrBuilder
public CustomTag.LiteralOrBuilder getLiteralOrBuilder()
A literal custom tag.
.envoy.type.tracing.v3.CustomTag.Literal literal = 2;- Specified by:
getLiteralOrBuilderin interfaceCustomTagOrBuilder
-
hasEnvironment
public boolean hasEnvironment()
An environment custom tag.
.envoy.type.tracing.v3.CustomTag.Environment environment = 3;- Specified by:
hasEnvironmentin interfaceCustomTagOrBuilder- Returns:
- Whether the environment field is set.
-
getEnvironment
public CustomTag.Environment getEnvironment()
An environment custom tag.
.envoy.type.tracing.v3.CustomTag.Environment environment = 3;- Specified by:
getEnvironmentin interfaceCustomTagOrBuilder- Returns:
- The environment.
-
getEnvironmentOrBuilder
public CustomTag.EnvironmentOrBuilder getEnvironmentOrBuilder()
An environment custom tag.
.envoy.type.tracing.v3.CustomTag.Environment environment = 3;- Specified by:
getEnvironmentOrBuilderin interfaceCustomTagOrBuilder
-
hasRequestHeader
public boolean hasRequestHeader()
A request header custom tag.
.envoy.type.tracing.v3.CustomTag.Header request_header = 4;- Specified by:
hasRequestHeaderin interfaceCustomTagOrBuilder- Returns:
- Whether the requestHeader field is set.
-
getRequestHeader
public CustomTag.Header getRequestHeader()
A request header custom tag.
.envoy.type.tracing.v3.CustomTag.Header request_header = 4;- Specified by:
getRequestHeaderin interfaceCustomTagOrBuilder- Returns:
- The requestHeader.
-
getRequestHeaderOrBuilder
public CustomTag.HeaderOrBuilder getRequestHeaderOrBuilder()
A request header custom tag.
.envoy.type.tracing.v3.CustomTag.Header request_header = 4;- Specified by:
getRequestHeaderOrBuilderin interfaceCustomTagOrBuilder
-
hasMetadata
public boolean hasMetadata()
A custom tag to obtain tag value from the metadata.
.envoy.type.tracing.v3.CustomTag.Metadata metadata = 5;- Specified by:
hasMetadatain interfaceCustomTagOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public CustomTag.Metadata getMetadata()
A custom tag to obtain tag value from the metadata.
.envoy.type.tracing.v3.CustomTag.Metadata metadata = 5;- Specified by:
getMetadatain interfaceCustomTagOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public CustomTag.MetadataOrBuilder getMetadataOrBuilder()
A custom tag to obtain tag value from the metadata.
.envoy.type.tracing.v3.CustomTag.Metadata metadata = 5;- Specified by:
getMetadataOrBuilderin interfaceCustomTagOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CustomTag parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTag parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomTag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CustomTag parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CustomTag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomTag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CustomTag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CustomTag.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CustomTag.Builder newBuilder()
-
newBuilder
public static CustomTag.Builder newBuilder(CustomTag prototype)
-
toBuilder
public CustomTag.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomTag.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CustomTag getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CustomTag> parser()
-
getParserForType
public com.google.protobuf.Parser<CustomTag> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CustomTag getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-