Class TlvEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
io.envoyproxy.envoy.config.core.v3.TlvEntry.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TlvEntryOrBuilder,Cloneable
- Enclosing class:
- TlvEntry
public static final class TlvEntry.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
implements TlvEntryOrBuilder
Represents a single Type-Length-Value (TLV) entry.Protobuf type
envoy.config.core.v3.TlvEntry-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The type of the TLV.The static value of the TLV.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.intgetType()The type of the TLV.com.google.protobuf.ByteStringgetValue()The static value of the TLV.booleanUses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanUses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final TlvEntry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.setFormatString(SubstitutionFormatString.Builder builderForValue) Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setType(int value) The type of the TLV.final TlvEntry.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(com.google.protobuf.ByteString value) The static value of the TLV.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
Method Details
-
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.Builder<TlvEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.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.GeneratedMessageV3.Builder<TlvEntry.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
setField
public TlvEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
setRepeatedField
public TlvEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
addRepeatedField
public TlvEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TlvEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
mergeFrom
public TlvEntry.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<TlvEntry.Builder>- Throws:
IOException
-
getType
public int getType()The type of the TLV. Must be a uint8 (0-255) as per the Proxy Protocol v2 specification.
uint32 type = 1 [(.validate.rules) = { ... }- Specified by:
getTypein interfaceTlvEntryOrBuilder- Returns:
- The type.
-
setType
The type of the TLV. Must be a uint8 (0-255) as per the Proxy Protocol v2 specification.
uint32 type = 1 [(.validate.rules) = { ... }- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the TLV. Must be a uint8 (0-255) as per the Proxy Protocol v2 specification.
uint32 type = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getValue
public com.google.protobuf.ByteString getValue()The static value of the TLV. Only one of ``value`` or ``format_string`` may be set.
bytes value = 2;- Specified by:
getValuein interfaceTlvEntryOrBuilder- Returns:
- The value.
-
setValue
The static value of the TLV. Only one of ``value`` or ``format_string`` may be set.
bytes value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The static value of the TLV. Only one of ``value`` or ``format_string`` may be set.
bytes value = 2;- Returns:
- This builder for chaining.
-
hasFormatString
public boolean hasFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3;- Specified by:
hasFormatStringin interfaceTlvEntryOrBuilder- Returns:
- Whether the formatString field is set.
-
getFormatString
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3;- Specified by:
getFormatStringin interfaceTlvEntryOrBuilder- Returns:
- The formatString.
-
setFormatString
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3; -
setFormatString
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3; -
mergeFormatString
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3; -
clearFormatString
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3; -
getFormatStringBuilder
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3; -
getFormatStringOrBuilder
Uses the :ref:`format string <config_access_log_format_strings>` to dynamically populate the TLV value from stream information. This allows dynamic values such as metadata, filter state, or other stream properties to be included in the TLV. For example: .. code-block:: yaml type: 0xF0 format_string: text_format_source: inline_string: "%DYNAMIC_METADATA(envoy.filters.network:key)%" The formatted string will be used directly as the TLV value. Only one of ``value`` or ``format_string`` may be set..envoy.config.core.v3.SubstitutionFormatString format_string = 3;- Specified by:
getFormatStringOrBuilderin interfaceTlvEntryOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
-