Class CustomTag.Metadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
- io.envoyproxy.envoy.type.tracing.v3.CustomTag.Metadata.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CustomTag.MetadataOrBuilder,java.lang.Cloneable
- Enclosing class:
- CustomTag.Metadata
public static final class CustomTag.Metadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder> implements CustomTag.MetadataOrBuilder
Metadata 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.
Protobuf typeenvoy.type.tracing.v3.CustomTag.Metadata
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.ObjectdefaultValue_private MetadataKindkind_private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder>kindBuilder_private MetadataKeymetadataKey_private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder,MetadataKeyOrBuilder>metadataKeyBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomTag.Metadatabuild()CustomTag.MetadatabuildPartial()private voidbuildPartial0(CustomTag.Metadata result)CustomTag.Metadata.Builderclear()CustomTag.Metadata.BuilderclearDefaultValue()When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.CustomTag.Metadata.BuilderclearKind()Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.BuilderclearMetadataKey()Metadata key to define the path to retrieve the tag value.CustomTag.MetadatagetDefaultInstanceForType()java.lang.StringgetDefaultValue()When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.com.google.protobuf.ByteStringgetDefaultValueBytes()When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MetadataKindgetKind()Specify what kind of metadata to obtain tag value from.MetadataKind.BuildergetKindBuilder()Specify what kind of metadata to obtain tag value from.private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder>getKindFieldBuilder()Specify what kind of metadata to obtain tag value from.MetadataKindOrBuildergetKindOrBuilder()Specify what kind of metadata to obtain tag value from.MetadataKeygetMetadataKey()Metadata key to define the path to retrieve the tag value.MetadataKey.BuildergetMetadataKeyBuilder()Metadata key to define the path to retrieve the tag value.private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder,MetadataKeyOrBuilder>getMetadataKeyFieldBuilder()Metadata key to define the path to retrieve the tag value.MetadataKeyOrBuildergetMetadataKeyOrBuilder()Metadata key to define the path to retrieve the tag value.booleanhasKind()Specify what kind of metadata to obtain tag value from.booleanhasMetadataKey()Metadata key to define the path to retrieve the tag value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()CustomTag.Metadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CustomTag.Metadata.BuildermergeFrom(com.google.protobuf.Message other)CustomTag.Metadata.BuildermergeFrom(CustomTag.Metadata other)CustomTag.Metadata.BuildermergeKind(MetadataKind value)Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.BuildermergeMetadataKey(MetadataKey value)Metadata key to define the path to retrieve the tag value.CustomTag.Metadata.BuildersetDefaultValue(java.lang.String value)When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.CustomTag.Metadata.BuildersetDefaultValueBytes(com.google.protobuf.ByteString value)When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.CustomTag.Metadata.BuildersetKind(MetadataKind value)Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.BuildersetKind(MetadataKind.Builder builderForValue)Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.BuildersetMetadataKey(MetadataKey value)Metadata key to define the path to retrieve the tag value.CustomTag.Metadata.BuildersetMetadataKey(MetadataKey.Builder builderForValue)Metadata key to define the path to retrieve the tag value.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
kind_
private MetadataKind kind_
-
kindBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder> kindBuilder_
-
metadataKey_
private MetadataKey metadataKey_
-
metadataKeyBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder,MetadataKeyOrBuilder> metadataKeyBuilder_
-
defaultValue_
private java.lang.Object defaultValue_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public CustomTag.Metadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
getDefaultInstanceForType
public CustomTag.Metadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomTag.Metadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomTag.Metadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(CustomTag.Metadata result)
-
mergeFrom
public CustomTag.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
-
mergeFrom
public CustomTag.Metadata.Builder mergeFrom(CustomTag.Metadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
mergeFrom
public CustomTag.Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>- Throws:
java.io.IOException
-
hasKind
public boolean hasKind()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;- Specified by:
hasKindin interfaceCustomTag.MetadataOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public MetadataKind getKind()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;- Specified by:
getKindin interfaceCustomTag.MetadataOrBuilder- Returns:
- The kind.
-
setKind
public CustomTag.Metadata.Builder setKind(MetadataKind value)
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
setKind
public CustomTag.Metadata.Builder setKind(MetadataKind.Builder builderForValue)
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
mergeKind
public CustomTag.Metadata.Builder mergeKind(MetadataKind value)
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
clearKind
public CustomTag.Metadata.Builder clearKind()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
getKindBuilder
public MetadataKind.Builder getKindBuilder()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
getKindOrBuilder
public MetadataKindOrBuilder getKindOrBuilder()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;- Specified by:
getKindOrBuilderin interfaceCustomTag.MetadataOrBuilder
-
getKindFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder> getKindFieldBuilder()
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;
-
hasMetadataKey
public boolean hasMetadataKey()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;- Specified by:
hasMetadataKeyin interfaceCustomTag.MetadataOrBuilder- Returns:
- Whether the metadataKey field is set.
-
getMetadataKey
public MetadataKey getMetadataKey()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;- Specified by:
getMetadataKeyin interfaceCustomTag.MetadataOrBuilder- Returns:
- The metadataKey.
-
setMetadataKey
public CustomTag.Metadata.Builder setMetadataKey(MetadataKey value)
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
setMetadataKey
public CustomTag.Metadata.Builder setMetadataKey(MetadataKey.Builder builderForValue)
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
mergeMetadataKey
public CustomTag.Metadata.Builder mergeMetadataKey(MetadataKey value)
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
clearMetadataKey
public CustomTag.Metadata.Builder clearMetadataKey()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
getMetadataKeyBuilder
public MetadataKey.Builder getMetadataKeyBuilder()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
getMetadataKeyOrBuilder
public MetadataKeyOrBuilder getMetadataKeyOrBuilder()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;- Specified by:
getMetadataKeyOrBuilderin interfaceCustomTag.MetadataOrBuilder
-
getMetadataKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder,MetadataKeyOrBuilder> getMetadataKeyFieldBuilder()
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2;
-
getDefaultValue
public java.lang.String getDefaultValue()
When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.
string default_value = 3;- Specified by:
getDefaultValuein interfaceCustomTag.MetadataOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()
When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.
string default_value = 3;- Specified by:
getDefaultValueBytesin interfaceCustomTag.MetadataOrBuilder- Returns:
- The bytes for defaultValue.
-
setDefaultValue
public CustomTag.Metadata.Builder setDefaultValue(java.lang.String value)
When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.
string default_value = 3;- Parameters:
value- The defaultValue to set.- Returns:
- This builder for chaining.
-
clearDefaultValue
public CustomTag.Metadata.Builder clearDefaultValue()
When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.
string default_value = 3;- Returns:
- This builder for chaining.
-
setDefaultValueBytes
public CustomTag.Metadata.Builder setDefaultValueBytes(com.google.protobuf.ByteString value)
When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.
string default_value = 3;- Parameters:
value- The bytes for defaultValue to set.- Returns:
- This builder for chaining.
-
-