java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
io.envoyproxy.envoy.extensions.filters.http.thrift_to_metadata.v3.ThriftToMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftToMetadataOrBuilder, Cloneable
Enclosing class:
ThriftToMetadata

public static final class ThriftToMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder> implements ThriftToMetadataOrBuilder
 The configuration for transforming thrift metadata into filter metadata.

 [#next-free-field: 7]
 
Protobuf type envoy.extensions.filters.http.thrift_to_metadata.v3.ThriftToMetadata
  • 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<ThriftToMetadata.Builder>
    • clear

      public ThriftToMetadata.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<ThriftToMetadata.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<ThriftToMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • setField

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • clearField

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • clearOneof

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • setRepeatedField

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • addRepeatedField

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • mergeFrom

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
    • mergeFrom

      public ThriftToMetadata.Builder mergeFrom(ThriftToMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
    • mergeFrom

      public ThriftToMetadata.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<ThriftToMetadata.Builder>
      Throws:
      IOException
    • getRequestRulesList

      public List<Rule> getRequestRulesList()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
      Specified by:
      getRequestRulesList in interface ThriftToMetadataOrBuilder
    • getRequestRulesCount

      public int getRequestRulesCount()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
      Specified by:
      getRequestRulesCount in interface ThriftToMetadataOrBuilder
    • getRequestRules

      public Rule getRequestRules(int index)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
      Specified by:
      getRequestRules in interface ThriftToMetadataOrBuilder
    • setRequestRules

      public ThriftToMetadata.Builder setRequestRules(int index, Rule value)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • setRequestRules

      public ThriftToMetadata.Builder setRequestRules(int index, Rule.Builder builderForValue)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addRequestRules

      public ThriftToMetadata.Builder addRequestRules(Rule value)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addRequestRules

      public ThriftToMetadata.Builder addRequestRules(int index, Rule value)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addRequestRules

      public ThriftToMetadata.Builder addRequestRules(Rule.Builder builderForValue)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addRequestRules

      public ThriftToMetadata.Builder addRequestRules(int index, Rule.Builder builderForValue)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addAllRequestRules

      public ThriftToMetadata.Builder addAllRequestRules(Iterable<? extends Rule> values)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • clearRequestRules

      public ThriftToMetadata.Builder clearRequestRules()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • removeRequestRules

      public ThriftToMetadata.Builder removeRequestRules(int index)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • getRequestRulesBuilder

      public Rule.Builder getRequestRulesBuilder(int index)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • getRequestRulesOrBuilder

      public RuleOrBuilder getRequestRulesOrBuilder(int index)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
      Specified by:
      getRequestRulesOrBuilder in interface ThriftToMetadataOrBuilder
    • getRequestRulesOrBuilderList

      public List<? extends RuleOrBuilder> getRequestRulesOrBuilderList()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
      Specified by:
      getRequestRulesOrBuilderList in interface ThriftToMetadataOrBuilder
    • addRequestRulesBuilder

      public Rule.Builder addRequestRulesBuilder()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • addRequestRulesBuilder

      public Rule.Builder addRequestRulesBuilder(int index)
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • getRequestRulesBuilderList

      public List<Rule.Builder> getRequestRulesBuilderList()
       The list of rules to apply to http request body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule request_rules = 1;
    • getResponseRulesList

      public List<Rule> getResponseRulesList()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
      Specified by:
      getResponseRulesList in interface ThriftToMetadataOrBuilder
    • getResponseRulesCount

      public int getResponseRulesCount()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
      Specified by:
      getResponseRulesCount in interface ThriftToMetadataOrBuilder
    • getResponseRules

      public Rule getResponseRules(int index)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
      Specified by:
      getResponseRules in interface ThriftToMetadataOrBuilder
    • setResponseRules

      public ThriftToMetadata.Builder setResponseRules(int index, Rule value)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • setResponseRules

      public ThriftToMetadata.Builder setResponseRules(int index, Rule.Builder builderForValue)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addResponseRules

      public ThriftToMetadata.Builder addResponseRules(Rule value)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addResponseRules

      public ThriftToMetadata.Builder addResponseRules(int index, Rule value)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addResponseRules

      public ThriftToMetadata.Builder addResponseRules(Rule.Builder builderForValue)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addResponseRules

      public ThriftToMetadata.Builder addResponseRules(int index, Rule.Builder builderForValue)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addAllResponseRules

      public ThriftToMetadata.Builder addAllResponseRules(Iterable<? extends Rule> values)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • clearResponseRules

      public ThriftToMetadata.Builder clearResponseRules()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • removeResponseRules

      public ThriftToMetadata.Builder removeResponseRules(int index)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • getResponseRulesBuilder

      public Rule.Builder getResponseRulesBuilder(int index)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • getResponseRulesOrBuilder

      public RuleOrBuilder getResponseRulesOrBuilder(int index)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
      Specified by:
      getResponseRulesOrBuilder in interface ThriftToMetadataOrBuilder
    • getResponseRulesOrBuilderList

      public List<? extends RuleOrBuilder> getResponseRulesOrBuilderList()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
      Specified by:
      getResponseRulesOrBuilderList in interface ThriftToMetadataOrBuilder
    • addResponseRulesBuilder

      public Rule.Builder addResponseRulesBuilder()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • addResponseRulesBuilder

      public Rule.Builder addResponseRulesBuilder(int index)
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • getResponseRulesBuilderList

      public List<Rule.Builder> getResponseRulesBuilderList()
       The list of rules to apply to http response body to extract thrift metadata.
       
      repeated .envoy.extensions.filters.http.thrift_to_metadata.v3.Rule response_rules = 2;
    • getTransportValue

      public int getTransportValue()
       Supplies the type of transport that the Thrift proxy should use. Defaults to
       :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 3 [(.validate.rules) = { ... }
      Specified by:
      getTransportValue in interface ThriftToMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for transport.
    • setTransportValue

      public ThriftToMetadata.Builder setTransportValue(int value)
       Supplies the type of transport that the Thrift proxy should use. Defaults to
       :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for transport to set.
      Returns:
      This builder for chaining.
    • getTransport

      public TransportType getTransport()
       Supplies the type of transport that the Thrift proxy should use. Defaults to
       :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 3 [(.validate.rules) = { ... }
      Specified by:
      getTransport in interface ThriftToMetadataOrBuilder
      Returns:
      The transport.
    • setTransport

      public ThriftToMetadata.Builder setTransport(TransportType value)
       Supplies the type of transport that the Thrift proxy should use. Defaults to
       :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The transport to set.
      Returns:
      This builder for chaining.
    • clearTransport

      public ThriftToMetadata.Builder clearTransport()
       Supplies the type of transport that the Thrift proxy should use. Defaults to
       :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getProtocolValue

      public int getProtocolValue()
       Supplies the type of protocol that the Thrift proxy should use. Defaults to
       :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`.
       Note that :ref:`LAX_BINARY<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.LAX_BINARY>`
       is not distinguished by :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`,
       which is the same with :ref:`thrift_proxy network filter <envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProxy>`.
       Note that :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` is
       not supported due to deprecation in envoy.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 4 [(.validate.rules) = { ... }
      Specified by:
      getProtocolValue in interface ThriftToMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for protocol.
    • setProtocolValue

      public ThriftToMetadata.Builder setProtocolValue(int value)
       Supplies the type of protocol that the Thrift proxy should use. Defaults to
       :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`.
       Note that :ref:`LAX_BINARY<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.LAX_BINARY>`
       is not distinguished by :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`,
       which is the same with :ref:`thrift_proxy network filter <envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProxy>`.
       Note that :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` is
       not supported due to deprecation in envoy.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 4 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for protocol to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public ProtocolType getProtocol()
       Supplies the type of protocol that the Thrift proxy should use. Defaults to
       :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`.
       Note that :ref:`LAX_BINARY<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.LAX_BINARY>`
       is not distinguished by :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`,
       which is the same with :ref:`thrift_proxy network filter <envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProxy>`.
       Note that :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` is
       not supported due to deprecation in envoy.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 4 [(.validate.rules) = { ... }
      Specified by:
      getProtocol in interface ThriftToMetadataOrBuilder
      Returns:
      The protocol.
    • setProtocol

      public ThriftToMetadata.Builder setProtocol(ProtocolType value)
       Supplies the type of protocol that the Thrift proxy should use. Defaults to
       :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`.
       Note that :ref:`LAX_BINARY<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.LAX_BINARY>`
       is not distinguished by :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`,
       which is the same with :ref:`thrift_proxy network filter <envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProxy>`.
       Note that :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` is
       not supported due to deprecation in envoy.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 4 [(.validate.rules) = { ... }
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

      public ThriftToMetadata.Builder clearProtocol()
       Supplies the type of protocol that the Thrift proxy should use. Defaults to
       :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`.
       Note that :ref:`LAX_BINARY<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.LAX_BINARY>`
       is not distinguished by :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`,
       which is the same with :ref:`thrift_proxy network filter <envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProxy>`.
       Note that :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` is
       not supported due to deprecation in envoy.
       
      .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 4 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getAllowContentTypesList

      public com.google.protobuf.ProtocolStringList getAllowContentTypesList()
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesList in interface ThriftToMetadataOrBuilder
      Returns:
      A list containing the allowContentTypes.
    • getAllowContentTypesCount

      public int getAllowContentTypesCount()
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesCount in interface ThriftToMetadataOrBuilder
      Returns:
      The count of allowContentTypes.
    • getAllowContentTypes

      public String getAllowContentTypes(int index)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypes in interface ThriftToMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowContentTypes at the given index.
    • getAllowContentTypesBytes

      public com.google.protobuf.ByteString getAllowContentTypesBytes(int index)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesBytes in interface ThriftToMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowContentTypes at the given index.
    • setAllowContentTypes

      public ThriftToMetadata.Builder setAllowContentTypes(int index, String value)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allowContentTypes to set.
      Returns:
      This builder for chaining.
    • addAllowContentTypes

      public ThriftToMetadata.Builder addAllowContentTypes(String value)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The allowContentTypes to add.
      Returns:
      This builder for chaining.
    • addAllAllowContentTypes

      public ThriftToMetadata.Builder addAllAllowContentTypes(Iterable<String> values)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Parameters:
      values - The allowContentTypes to add.
      Returns:
      This builder for chaining.
    • clearAllowContentTypes

      public ThriftToMetadata.Builder clearAllowContentTypes()
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addAllowContentTypesBytes

      public ThriftToMetadata.Builder addAllowContentTypesBytes(com.google.protobuf.ByteString value)
       Allowed content-type for thrift payload to filter metadata transformation.
       Default to ``{"application/x-thrift"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes of the allowContentTypes to add.
      Returns:
      This builder for chaining.
    • getAllowEmptyContentType

      public boolean getAllowEmptyContentType()
       Allowed empty content-type for thrift payload to filter metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 6;
      Specified by:
      getAllowEmptyContentType in interface ThriftToMetadataOrBuilder
      Returns:
      The allowEmptyContentType.
    • setAllowEmptyContentType

      public ThriftToMetadata.Builder setAllowEmptyContentType(boolean value)
       Allowed empty content-type for thrift payload to filter metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 6;
      Parameters:
      value - The allowEmptyContentType to set.
      Returns:
      This builder for chaining.
    • clearAllowEmptyContentType

      public ThriftToMetadata.Builder clearAllowEmptyContentType()
       Allowed empty content-type for thrift payload to filter metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ThriftToMetadata.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<ThriftToMetadata.Builder>
    • mergeUnknownFields

      public final ThriftToMetadata.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<ThriftToMetadata.Builder>