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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • clear

      public TlvEntry.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • getDefaultInstanceForType

      public TlvEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TlvEntry build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TlvEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public TlvEntry.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • setField

      public TlvEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • clearField

      public TlvEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • clearOneof

      public TlvEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • setRepeatedField

      public TlvEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • addRepeatedField

      public TlvEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • mergeFrom

      public TlvEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TlvEntry.Builder>
    • mergeFrom

      public TlvEntry.Builder mergeFrom(TlvEntry other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getType in interface TlvEntryOrBuilder
      Returns:
      The type.
    • setType

      public TlvEntry.Builder setType(int value)
       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

      public TlvEntry.Builder 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:
      getValue in interface TlvEntryOrBuilder
      Returns:
      The value.
    • setValue

      public TlvEntry.Builder setValue(com.google.protobuf.ByteString value)
       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

      public TlvEntry.Builder 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:
      hasFormatString in interface TlvEntryOrBuilder
      Returns:
      Whether the formatString field is set.
    • getFormatString

      public SubstitutionFormatString 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:
      getFormatString in interface TlvEntryOrBuilder
      Returns:
      The formatString.
    • setFormatString

      public TlvEntry.Builder setFormatString(SubstitutionFormatString value)
       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

      public TlvEntry.Builder setFormatString(SubstitutionFormatString.Builder builderForValue)
       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

      public TlvEntry.Builder mergeFormatString(SubstitutionFormatString value)
       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

      public TlvEntry.Builder 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

      public SubstitutionFormatString.Builder 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

      public SubstitutionFormatStringOrBuilder 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:
      getFormatStringOrBuilder in interface TlvEntryOrBuilder
    • setUnknownFields

      public final TlvEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>
    • mergeUnknownFields

      public final TlvEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TlvEntry.Builder>