Class CustomTag.Metadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
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,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 type
envoy.type.tracing.v3.CustomTag.Metadata-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate MetadataKindprivate com.google.protobuf.SingleFieldBuilder<MetadataKind, MetadataKind.Builder, MetadataKindOrBuilder> private MetadataKeyprivate com.google.protobuf.SingleFieldBuilder<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(CustomTag.Metadata result) clear()When no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.Specify what kind of metadata to obtain tag value from.Metadata key to define the path to retrieve the tag 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.com.google.protobuf.ByteStringWhen no valid metadata is found, the tag value would be populated with this default value if specified, otherwise no tag would be populated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKind()Specify what kind of metadata to obtain tag value from.Specify what kind of metadata to obtain tag value from.Specify what kind of metadata to obtain tag value from.Metadata key to define the path to retrieve the tag value.Metadata key to define the path to retrieve the tag value.Metadata key to define the path to retrieve the tag value.booleanhasKind()Specify what kind of metadata to obtain tag value from.booleanMetadata key to define the path to retrieve the tag value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<MetadataKind, MetadataKind.Builder, MetadataKindOrBuilder> Specify what kind of metadata to obtain tag value from.private com.google.protobuf.SingleFieldBuilder<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> Metadata key to define the path to retrieve the tag value.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CustomTag.Metadata other) mergeKind(MetadataKind value) Specify what kind of metadata to obtain tag value from.mergeMetadataKey(MetadataKey value) Metadata key to define the path to retrieve the tag value.setDefaultValue(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.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.setKind(MetadataKind value) Specify what kind of metadata to obtain tag value from.setKind(MetadataKind.Builder builderForValue) Specify what kind of metadata to obtain tag value from.setMetadataKey(MetadataKey value) Metadata key to define the path to retrieve the tag value.setMetadataKey(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
kind_
-
kindBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder, kindBuilder_MetadataKindOrBuilder> -
metadataKey_
-
metadataKeyBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, metadataKeyBuilder_MetadataKeyOrBuilder> -
defaultValue_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
-
mergeFrom
-
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 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:
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
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
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1; -
setKind
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1; -
mergeKind
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1; -
clearKind
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1; -
getKindBuilder
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1; -
getKindOrBuilder
Specify what kind of metadata to obtain tag value from.
.envoy.type.metadata.v3.MetadataKind kind = 1;- Specified by:
getKindOrBuilderin interfaceCustomTag.MetadataOrBuilder
-
internalGetKindFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder, internalGetKindFieldBuilder()MetadataKindOrBuilder> 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
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
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
setMetadataKey
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
mergeMetadataKey
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
clearMetadataKey
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
getMetadataKeyBuilder
Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
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
-
internalGetMetadataKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, internalGetMetadataKeyFieldBuilder()MetadataKeyOrBuilder> Metadata key to define the path to retrieve the tag value.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2; -
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
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
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
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.
-