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 int
private Object
private MetadataKind
private com.google.protobuf.SingleFieldBuilder
<MetadataKind, MetadataKind.Builder, MetadataKindOrBuilder> private MetadataKey
private com.google.protobuf.SingleFieldBuilder
<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(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.ByteString
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 final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKind()
Specify what kind of metadata to obtain tag value from.Specify what kind of metadata to obtain tag value from.private com.google.protobuf.SingleFieldBuilder
<MetadataKind, MetadataKind.Builder, MetadataKindOrBuilder> 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.private com.google.protobuf.SingleFieldBuilder
<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> Metadata key to define the path to retrieve the tag value.Metadata key to define the path to retrieve the tag value.boolean
hasKind()
Specify what kind of metadata to obtain tag value from.boolean
Metadata key to define the path to retrieve the tag value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasKind
in 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:
getKind
in 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:
getKindOrBuilder
in interfaceCustomTag.MetadataOrBuilder
-
getKindFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder, getKindFieldBuilder()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:
hasMetadataKey
in 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:
getMetadataKey
in 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:
getMetadataKeyOrBuilder
in interfaceCustomTag.MetadataOrBuilder
-
getMetadataKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, getMetadataKeyFieldBuilder()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:
getDefaultValue
in 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:
getDefaultValueBytes
in 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.
-