Interface ThriftToMetadataOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ThriftToMetadata, ThriftToMetadata.Builder

public interface ThriftToMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Allowed content-type for thrift payload to filter metadata transformation.
    com.google.protobuf.ByteString
    Allowed content-type for thrift payload to filter metadata transformation.
    int
    Allowed content-type for thrift payload to filter metadata transformation.
    Allowed content-type for thrift payload to filter metadata transformation.
    boolean
    Allowed empty content-type for thrift payload to filter metadata transformation.
    Supplies the type of protocol that the Thrift proxy should use.
    int
    Supplies the type of protocol that the Thrift proxy should use.
    getRequestRules(int index)
    The list of rules to apply to http request body to extract thrift metadata.
    int
    The list of rules to apply to http request body to extract thrift metadata.
    The list of rules to apply to http request body to extract thrift metadata.
    The list of rules to apply to http request body to extract thrift metadata.
    List<? extends RuleOrBuilder>
    The list of rules to apply to http request body to extract thrift metadata.
    getResponseRules(int index)
    The list of rules to apply to http response body to extract thrift metadata.
    int
    The list of rules to apply to http response body to extract thrift metadata.
    The list of rules to apply to http response body to extract thrift metadata.
    The list of rules to apply to http response body to extract thrift metadata.
    List<? extends RuleOrBuilder>
    The list of rules to apply to http response body to extract thrift metadata.
    Supplies the type of transport that the Thrift proxy should use.
    int
    Supplies the type of transport that the Thrift proxy should use.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getRequestRulesList

      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;
    • getRequestRules

      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;
    • getRequestRulesCount

      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;
    • getRequestRulesOrBuilderList

      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;
    • getRequestRulesOrBuilder

      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;
    • getResponseRulesList

      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;
    • getResponseRules

      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;
    • getResponseRulesCount

      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;
    • getResponseRulesOrBuilderList

      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;
    • getResponseRulesOrBuilder

      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;
    • getTransportValue

      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) = { ... }
      Returns:
      The enum numeric value on the wire for transport.
    • getTransport

      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) = { ... }
      Returns:
      The transport.
    • getProtocolValue

      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) = { ... }
      Returns:
      The enum numeric value on the wire for protocol.
    • getProtocol

      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) = { ... }
      Returns:
      The protocol.
    • getAllowContentTypesList

      List<String> 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) = { ... }
      Returns:
      A list containing the allowContentTypes.
    • getAllowContentTypesCount

      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) = { ... }
      Returns:
      The count of allowContentTypes.
    • getAllowContentTypes

      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) = { ... }
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowContentTypes at the given index.
    • getAllowContentTypesBytes

      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) = { ... }
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowContentTypes at the given index.
    • getAllowEmptyContentType

      boolean getAllowEmptyContentType()
       Allowed empty content-type for thrift payload to filter metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 6;
      Returns:
      The allowEmptyContentType.