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 int
bitField0_
private java.lang.Object
defaultValue_
private MetadataKind
kind_
private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder>
kindBuilder_
private MetadataKey
metadataKey_
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.Metadata
build()
CustomTag.Metadata
buildPartial()
private void
buildPartial0(CustomTag.Metadata result)
CustomTag.Metadata.Builder
clear()
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.CustomTag.Metadata.Builder
clearKind()
Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.Builder
clearMetadataKey()
Metadata key to define the path to retrieve the tag value.CustomTag.Metadata
getDefaultInstanceForType()
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.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.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
MetadataKind
getKind()
Specify what kind of metadata to obtain tag value from.MetadataKind.Builder
getKindBuilder()
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.MetadataKindOrBuilder
getKindOrBuilder()
Specify what kind of metadata to obtain tag value from.MetadataKey
getMetadataKey()
Metadata key to define the path to retrieve the tag value.MetadataKey.Builder
getMetadataKeyBuilder()
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.MetadataKeyOrBuilder
getMetadataKeyOrBuilder()
Metadata key to define the path to retrieve the tag value.boolean
hasKind()
Specify what kind of metadata to obtain tag value from.boolean
hasMetadataKey()
Metadata key to define the path to retrieve the tag value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
CustomTag.Metadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CustomTag.Metadata.Builder
mergeFrom(com.google.protobuf.Message other)
CustomTag.Metadata.Builder
mergeFrom(CustomTag.Metadata other)
CustomTag.Metadata.Builder
mergeKind(MetadataKind value)
Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.Builder
mergeMetadataKey(MetadataKey value)
Metadata key to define the path to retrieve the tag value.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.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.CustomTag.Metadata.Builder
setKind(MetadataKind value)
Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.Builder
setKind(MetadataKind.Builder builderForValue)
Specify what kind of metadata to obtain tag value from.CustomTag.Metadata.Builder
setMetadataKey(MetadataKey value)
Metadata key to define the path to retrieve the tag value.CustomTag.Metadata.Builder
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
-
-
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public CustomTag.Metadata.Builder 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
public CustomTag.Metadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomTag.Metadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomTag.Metadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
-
mergeFrom
public CustomTag.Metadata.Builder mergeFrom(CustomTag.Metadata other)
-
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 java.io.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:
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:
hasKind
in 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:
getKind
in 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:
getKindOrBuilder
in 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:
hasMetadataKey
in 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:
getMetadataKey
in 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:
getMetadataKeyOrBuilder
in 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:
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
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.
-
-