java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.thrift_to_metadata.v3.ThriftToMetadata
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftToMetadataOrBuilder, Serializable

public final class ThriftToMetadata extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The configuration for transforming thrift metadata into filter metadata.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    com.google.protobuf.ProtocolStringList
    Allowed content-type for thrift payload to filter metadata transformation.
    boolean
    Allowed empty content-type for thrift payload to filter metadata transformation.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<ThriftToMetadata>
     
    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.
    int
     
    Supplies the type of transport that the Thrift proxy should use.
    int
    Supplies the type of transport that the Thrift proxy should use.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ThriftToMetadata>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • REQUEST_RULES_FIELD_NUMBER

      public static final int REQUEST_RULES_FIELD_NUMBER
      See Also:
    • RESPONSE_RULES_FIELD_NUMBER

      public static final int RESPONSE_RULES_FIELD_NUMBER
      See Also:
    • TRANSPORT_FIELD_NUMBER

      public static final int TRANSPORT_FIELD_NUMBER
      See Also:
    • PROTOCOL_FIELD_NUMBER

      public static final int PROTOCOL_FIELD_NUMBER
      See Also:
    • ALLOW_CONTENT_TYPES_FIELD_NUMBER

      public static final int ALLOW_CONTENT_TYPES_FIELD_NUMBER
      See Also:
    • ALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBER

      public static final int ALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ThriftToMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThriftToMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThriftToMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ThriftToMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ThriftToMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThriftToMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThriftToMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ThriftToMetadata.Builder newBuilder()
    • newBuilder

      public static ThriftToMetadata.Builder newBuilder(ThriftToMetadata prototype)
    • toBuilder

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

      protected ThriftToMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ThriftToMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ThriftToMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<ThriftToMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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