Class ThriftProxy.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftProxyOrBuilder, Cloneable
    Enclosing class:
    ThriftProxy

    public static final class ThriftProxy.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ThriftProxy.Builder>
    implements ThriftProxyOrBuilder
     [#next-free-field: 6]
     
    Protobuf type envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftProxy
    • Method Detail

      • 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<ThriftProxy.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public ThriftProxy.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<ThriftProxy.Builder>
      • isInitialized

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

        public ThriftProxy.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<ThriftProxy.Builder>
        Throws:
        IOException
      • getTransportValue

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

        public ThriftProxy.Builder setTransportValue​(int value)
         Supplies the type of transport that the Thrift proxy should use. Defaults to
         :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 2 [(.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_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 2 [(.validate.rules) = { ... }
        Specified by:
        getTransport in interface ThriftProxyOrBuilder
        Returns:
        The transport.
      • setTransport

        public ThriftProxy.Builder setTransport​(TransportType value)
         Supplies the type of transport that the Thrift proxy should use. Defaults to
         :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The transport to set.
        Returns:
        This builder for chaining.
      • clearTransport

        public ThriftProxy.Builder clearTransport()
         Supplies the type of transport that the Thrift proxy should use. Defaults to
         :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 2 [(.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_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocolValue in interface ThriftProxyOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • setProtocolValue

        public ThriftProxy.Builder setProtocolValue​(int value)
         Supplies the type of protocol that the Thrift proxy should use. Defaults to
         :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 3 [(.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_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocol in interface ThriftProxyOrBuilder
        Returns:
        The protocol.
      • setProtocol

        public ThriftProxy.Builder setProtocol​(ProtocolType value)
         Supplies the type of protocol that the Thrift proxy should use. Defaults to
         :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public ThriftProxy.Builder clearProtocol()
         Supplies the type of protocol that the Thrift proxy should use. Defaults to
         :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • 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.
      • setStatPrefix

        public ThriftProxy.Builder setStatPrefix​(String value)
         The human readable prefix to use when emitting statistics.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The statPrefix to set.
        Returns:
        This builder for chaining.
      • clearStatPrefix

        public ThriftProxy.Builder clearStatPrefix()
         The human readable prefix to use when emitting statistics.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setStatPrefixBytes

        public ThriftProxy.Builder setStatPrefixBytes​(com.google.protobuf.ByteString value)
         The human readable prefix to use when emitting statistics.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for statPrefix to set.
        Returns:
        This builder for chaining.
      • hasRouteConfig

        public boolean hasRouteConfig()
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
        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.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
        Specified by:
        getRouteConfig in interface ThriftProxyOrBuilder
        Returns:
        The routeConfig.
      • setRouteConfig

        public ThriftProxy.Builder setRouteConfig​(RouteConfiguration value)
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
      • setRouteConfig

        public ThriftProxy.Builder setRouteConfig​(RouteConfiguration.Builder builderForValue)
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
      • mergeRouteConfig

        public ThriftProxy.Builder mergeRouteConfig​(RouteConfiguration value)
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
      • clearRouteConfig

        public ThriftProxy.Builder clearRouteConfig()
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
      • getRouteConfigBuilder

        public RouteConfiguration.Builder getRouteConfigBuilder()
         The route table for the connection manager is static and is specified in this property.
         
        .envoy.config.filter.network.thrift_proxy.v2alpha1.RouteConfiguration route_config = 4;
      • 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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersList 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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFilters in interface ThriftProxyOrBuilder
      • setThriftFilters

        public ThriftProxy.Builder setThriftFilters​(int index,
                                                    ThriftFilter value)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • setThriftFilters

        public ThriftProxy.Builder setThriftFilters​(int index,
                                                    ThriftFilter.Builder builderForValue)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addThriftFilters

        public ThriftProxy.Builder addThriftFilters​(ThriftFilter value)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addThriftFilters

        public ThriftProxy.Builder addThriftFilters​(int index,
                                                    ThriftFilter value)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addThriftFilters

        public ThriftProxy.Builder addThriftFilters​(ThriftFilter.Builder builderForValue)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addThriftFilters

        public ThriftProxy.Builder addThriftFilters​(int index,
                                                    ThriftFilter.Builder builderForValue)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addAllThriftFilters

        public ThriftProxy.Builder addAllThriftFilters​(Iterable<? extends ThriftFilter> values)
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • clearThriftFilters

        public ThriftProxy.Builder clearThriftFilters()
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • removeThriftFilters

        public ThriftProxy.Builder removeThriftFilters​(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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • getThriftFiltersBuilder

        public ThriftFilter.Builder getThriftFiltersBuilder​(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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • 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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersOrBuilder 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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
        Specified by:
        getThriftFiltersOrBuilderList in interface ThriftProxyOrBuilder
      • addThriftFiltersBuilder

        public ThriftFilter.Builder addThriftFiltersBuilder()
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • addThriftFiltersBuilder

        public ThriftFilter.Builder addThriftFiltersBuilder​(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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • getThriftFiltersBuilderList

        public List<ThriftFilter.Builder> getThriftFiltersBuilderList()
         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.
         
        repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftFilter thrift_filters = 5;
      • setUnknownFields

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

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