Class ThriftProxy

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftProxyOrBuilder, Serializable

    public final class ThriftProxy
    extends com.google.protobuf.GeneratedMessageV3
    implements ThriftProxyOrBuilder
     [#next-free-field: 11]
     
    Protobuf type envoy.extensions.filters.network.thrift_proxy.v3.ThriftProxy
    See Also:
    Serialized Form
    • Field Detail

      • STAT_PREFIX_FIELD_NUMBER

        public static final int STAT_PREFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ROUTE_CONFIG_FIELD_NUMBER

        public static final int ROUTE_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • THRIFT_FILTERS_FIELD_NUMBER

        public static final int THRIFT_FILTERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PAYLOAD_PASSTHROUGH_FIELD_NUMBER

        public static final int PAYLOAD_PASSTHROUGH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER

        public static final int MAX_REQUESTS_PER_CONNECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCESS_LOG_FIELD_NUMBER

        public static final int ACCESS_LOG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HEADER_KEYS_PRESERVE_CASE_FIELD_NUMBER

        public static final int HEADER_KEYS_PRESERVE_CASE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • 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 = 2 [(.validate.rules) = { ... }
        Specified by:
        getTransportValue in interface ThriftProxyOrBuilder
        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 = 2 [(.validate.rules) = { ... }
        Specified by:
        getTransport in interface ThriftProxyOrBuilder
        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>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocolValue in interface ThriftProxyOrBuilder
        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>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocol in interface ThriftProxyOrBuilder
        Returns:
        The protocol.
      • getStatPrefix

        public String getStatPrefix()
         The human readable prefix to use when emitting statistics.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefix in interface ThriftProxyOrBuilder
        Returns:
        The statPrefix.
      • getStatPrefixBytes

        public com.google.protobuf.ByteString getStatPrefixBytes()
         The human readable prefix to use when emitting statistics.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefixBytes in interface ThriftProxyOrBuilder
        Returns:
        The bytes for statPrefix.
      • hasRouteConfig

        public boolean hasRouteConfig()
         The route table for the connection manager is static and is specified in this property.
         It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration route_config = 4 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        hasRouteConfig in interface ThriftProxyOrBuilder
        Returns:
        Whether the routeConfig field is set.
      • getRouteConfig

        public RouteConfiguration getRouteConfig()
         The route table for the connection manager is static and is specified in this property.
         It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration route_config = 4 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getRouteConfig in interface ThriftProxyOrBuilder
        Returns:
        The routeConfig.
      • getRouteConfigOrBuilder

        public RouteConfigurationOrBuilder getRouteConfigOrBuilder()
         The route table for the connection manager is static and is specified in this property.
         It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration route_config = 4 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getRouteConfigOrBuilder in interface ThriftProxyOrBuilder
      • hasTrds

        public boolean hasTrds()
         Use xDS to fetch the route configuration. It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.Trds trds = 8 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        hasTrds in interface ThriftProxyOrBuilder
        Returns:
        Whether the trds field is set.
      • getTrds

        public Trds getTrds()
         Use xDS to fetch the route configuration. It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.Trds trds = 8 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getTrds in interface ThriftProxyOrBuilder
        Returns:
        The trds.
      • getTrdsOrBuilder

        public TrdsOrBuilder getTrdsOrBuilder()
         Use xDS to fetch the route configuration. It is invalid to define both ``route_config`` and ``trds``.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.Trds trds = 8 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getTrdsOrBuilder in interface ThriftProxyOrBuilder
      • getThriftFiltersList

        public List<ThriftFilter> getThriftFiltersList()
         A list of individual Thrift filters that make up the filter chain for requests made to the
         Thrift proxy. Order matters as the filters are processed sequentially. For backwards
         compatibility, if no thrift_filters are specified, a default Thrift router filter
         (``envoy.filters.thrift.router``) is used.
         [#extension-category: envoy.thrift_proxy.filters]
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersList in interface ThriftProxyOrBuilder
      • getThriftFiltersOrBuilderList

        public List<? extends ThriftFilterOrBuilder> getThriftFiltersOrBuilderList()
         A list of individual Thrift filters that make up the filter chain for requests made to the
         Thrift proxy. Order matters as the filters are processed sequentially. For backwards
         compatibility, if no thrift_filters are specified, a default Thrift router filter
         (``envoy.filters.thrift.router``) is used.
         [#extension-category: envoy.thrift_proxy.filters]
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersOrBuilderList in interface ThriftProxyOrBuilder
      • getThriftFiltersCount

        public int getThriftFiltersCount()
         A list of individual Thrift filters that make up the filter chain for requests made to the
         Thrift proxy. Order matters as the filters are processed sequentially. For backwards
         compatibility, if no thrift_filters are specified, a default Thrift router filter
         (``envoy.filters.thrift.router``) is used.
         [#extension-category: envoy.thrift_proxy.filters]
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersCount in interface ThriftProxyOrBuilder
      • getThriftFilters

        public ThriftFilter getThriftFilters​(int index)
         A list of individual Thrift filters that make up the filter chain for requests made to the
         Thrift proxy. Order matters as the filters are processed sequentially. For backwards
         compatibility, if no thrift_filters are specified, a default Thrift router filter
         (``envoy.filters.thrift.router``) is used.
         [#extension-category: envoy.thrift_proxy.filters]
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFilters in interface ThriftProxyOrBuilder
      • getThriftFiltersOrBuilder

        public ThriftFilterOrBuilder getThriftFiltersOrBuilder​(int index)
         A list of individual Thrift filters that make up the filter chain for requests made to the
         Thrift proxy. Order matters as the filters are processed sequentially. For backwards
         compatibility, if no thrift_filters are specified, a default Thrift router filter
         (``envoy.filters.thrift.router``) is used.
         [#extension-category: envoy.thrift_proxy.filters]
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersOrBuilder in interface ThriftProxyOrBuilder
      • getPayloadPassthrough

        public boolean getPayloadPassthrough()
         If set to true, Envoy will try to skip decode data after metadata in the Thrift message.
         This mode will only work if the upstream and downstream protocols are the same and the transports
         are Framed or Header, and the protocol is not Twitter. Otherwise Envoy will
         fallback to decode the data.
         
        bool payload_passthrough = 6;
        Specified by:
        getPayloadPassthrough in interface ThriftProxyOrBuilder
        Returns:
        The payloadPassthrough.
      • hasMaxRequestsPerConnection

        public boolean hasMaxRequestsPerConnection()
         Optional maximum requests for a single downstream connection. If not specified, there is no limit.
         
        .google.protobuf.UInt32Value max_requests_per_connection = 7;
        Specified by:
        hasMaxRequestsPerConnection in interface ThriftProxyOrBuilder
        Returns:
        Whether the maxRequestsPerConnection field is set.
      • getMaxRequestsPerConnection

        public com.google.protobuf.UInt32Value getMaxRequestsPerConnection()
         Optional maximum requests for a single downstream connection. If not specified, there is no limit.
         
        .google.protobuf.UInt32Value max_requests_per_connection = 7;
        Specified by:
        getMaxRequestsPerConnection in interface ThriftProxyOrBuilder
        Returns:
        The maxRequestsPerConnection.
      • getMaxRequestsPerConnectionOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestsPerConnectionOrBuilder()
         Optional maximum requests for a single downstream connection. If not specified, there is no limit.
         
        .google.protobuf.UInt32Value max_requests_per_connection = 7;
        Specified by:
        getMaxRequestsPerConnectionOrBuilder in interface ThriftProxyOrBuilder
      • getAccessLogList

        public List<AccessLog> getAccessLogList()
         Configuration for :ref:`access logs <arch_overview_access_logs>`
         emitted by Thrift proxy.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 9;
        Specified by:
        getAccessLogList in interface ThriftProxyOrBuilder
      • getAccessLogCount

        public int getAccessLogCount()
         Configuration for :ref:`access logs <arch_overview_access_logs>`
         emitted by Thrift proxy.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 9;
        Specified by:
        getAccessLogCount in interface ThriftProxyOrBuilder
      • getAccessLog

        public AccessLog getAccessLog​(int index)
         Configuration for :ref:`access logs <arch_overview_access_logs>`
         emitted by Thrift proxy.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 9;
        Specified by:
        getAccessLog in interface ThriftProxyOrBuilder
      • getAccessLogOrBuilder

        public AccessLogOrBuilder getAccessLogOrBuilder​(int index)
         Configuration for :ref:`access logs <arch_overview_access_logs>`
         emitted by Thrift proxy.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 9;
        Specified by:
        getAccessLogOrBuilder in interface ThriftProxyOrBuilder
      • getHeaderKeysPreserveCase

        public boolean getHeaderKeysPreserveCase()
         If set to true, Envoy will preserve the case of Thrift header keys instead of serializing them to
         lower case as per the default behavior. Note that NUL, CR and LF characters will also be preserved
         as mandated by the Thrift spec.
         More info: https://github.com/apache/thrift/commit/e165fa3c85d00cb984f4d9635ed60909a1266ce1.
         
        bool header_keys_preserve_case = 10;
        Specified by:
        getHeaderKeysPreserveCase in interface ThriftProxyOrBuilder
        Returns:
        The headerKeysPreserveCase.
      • 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 ThriftProxy parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static ThriftProxy getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<ThriftProxy> 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 ThriftProxy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder