Class ThriftToMetadata.Builder
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 Summary
Modifier and TypeMethodDescriptionaddAllAllowContentTypes(Iterable<String> values) Allowed content-type for thrift payload to filter metadata transformation.addAllowContentTypes(String value) Allowed content-type for thrift payload to filter metadata transformation.addAllowContentTypesBytes(com.google.protobuf.ByteString value) Allowed content-type for thrift payload to filter metadata transformation.addAllRequestRules(Iterable<? extends Rule> values) The list of rules to apply to http request body to extract thrift metadata.addAllResponseRules(Iterable<? extends Rule> values) The list of rules to apply to http response body to extract thrift metadata.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRequestRules(int index, Rule value) The list of rules to apply to http request body to extract thrift metadata.addRequestRules(int index, Rule.Builder builderForValue) The list of rules to apply to http request body to extract thrift metadata.addRequestRules(Rule value) The list of rules to apply to http request body to extract thrift metadata.addRequestRules(Rule.Builder builderForValue) 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.addRequestRulesBuilder(int index) The list of rules to apply to http request body to extract thrift metadata.addResponseRules(int index, Rule value) The list of rules to apply to http response body to extract thrift metadata.addResponseRules(int index, Rule.Builder builderForValue) The list of rules to apply to http response body to extract thrift metadata.addResponseRules(Rule value) The list of rules to apply to http response body to extract thrift metadata.addResponseRules(Rule.Builder builderForValue) 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.addResponseRulesBuilder(int index) The list of rules to apply to http response body to extract thrift metadata.build()clear()Allowed content-type for thrift payload to filter metadata transformation.Allowed empty content-type for thrift payload to filter metadata transformation.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Supplies the type of protocol that the Thrift proxy should use.The list of rules to apply to http request body to extract thrift metadata.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.clone()getAllowContentTypes(int index) Allowed content-type for thrift payload to filter metadata transformation.com.google.protobuf.ByteStringgetAllowContentTypesBytes(int index) Allowed content-type for thrift payload to filter metadata transformation.intAllowed content-type for thrift payload to filter metadata transformation.com.google.protobuf.ProtocolStringListAllowed content-type for thrift payload to filter metadata transformation.booleanAllowed empty content-type for thrift payload to filter metadata transformation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSupplies the type of protocol that the Thrift proxy should use.intSupplies 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.getRequestRulesBuilder(int index) 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.intThe 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.getRequestRulesOrBuilder(int index) 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.getResponseRulesBuilder(int index) 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.intThe 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.getResponseRulesOrBuilder(int index) 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.intSupplies the type of transport that the Thrift proxy should use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ThriftToMetadata other) final ThriftToMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRequestRules(int index) The list of rules to apply to http request body to extract thrift metadata.removeResponseRules(int index) The list of rules to apply to http response body to extract thrift metadata.setAllowContentTypes(int index, String value) Allowed content-type for thrift payload to filter metadata transformation.setAllowEmptyContentType(boolean value) Allowed empty content-type for thrift payload to filter metadata transformation.setProtocol(ProtocolType value) Supplies the type of protocol that the Thrift proxy should use.setProtocolValue(int value) Supplies the type of protocol that the Thrift proxy should use.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestRules(int index, Rule value) The list of rules to apply to http request body to extract thrift metadata.setRequestRules(int index, Rule.Builder builderForValue) The list of rules to apply to http request body to extract thrift metadata.setResponseRules(int index, Rule value) The list of rules to apply to http response body to extract thrift metadata.setResponseRules(int index, Rule.Builder builderForValue) The list of rules to apply to http response body to extract thrift metadata.setTransport(TransportType value) Supplies the type of transport that the Thrift proxy should use.setTransportValue(int value) Supplies the type of transport that the Thrift proxy should use.final ThriftToMetadata.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
setField
public ThriftToMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
setRepeatedField
public ThriftToMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
addRepeatedField
public ThriftToMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThriftToMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThriftToMetadata.Builder>- Throws:
IOException
-
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:
getRequestRulesListin interfaceThriftToMetadataOrBuilder
-
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:
getRequestRulesCountin interfaceThriftToMetadataOrBuilder
-
getRequestRules
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:
getRequestRulesin interfaceThriftToMetadataOrBuilder
-
setRequestRules
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
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
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
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
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
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
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
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
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
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
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:
getRequestRulesOrBuilderin interfaceThriftToMetadataOrBuilder
-
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:
getRequestRulesOrBuilderListin interfaceThriftToMetadataOrBuilder
-
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
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
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
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:
getResponseRulesListin interfaceThriftToMetadataOrBuilder
-
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:
getResponseRulesCountin interfaceThriftToMetadataOrBuilder
-
getResponseRules
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:
getResponseRulesin interfaceThriftToMetadataOrBuilder
-
setResponseRules
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
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
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
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
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
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
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
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
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
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
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:
getResponseRulesOrBuilderin interfaceThriftToMetadataOrBuilder
-
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:
getResponseRulesOrBuilderListin interfaceThriftToMetadataOrBuilder
-
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
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
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:
getTransportValuein interfaceThriftToMetadataOrBuilder- Returns:
- The enum numeric value on the wire for transport.
-
setTransportValue
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
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:
getTransportin interfaceThriftToMetadataOrBuilder- Returns:
- The transport.
-
setTransport
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
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:
getProtocolValuein interfaceThriftToMetadataOrBuilder- Returns:
- The enum numeric value on the wire for protocol.
-
setProtocolValue
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
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:
getProtocolin interfaceThriftToMetadataOrBuilder- Returns:
- The protocol.
-
setProtocol
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
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:
getAllowContentTypesListin interfaceThriftToMetadataOrBuilder- 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:
getAllowContentTypesCountin interfaceThriftToMetadataOrBuilder- Returns:
- The count of allowContentTypes.
-
getAllowContentTypes
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:
getAllowContentTypesin interfaceThriftToMetadataOrBuilder- 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:
getAllowContentTypesBytesin interfaceThriftToMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowContentTypes at the given index.
-
setAllowContentTypes
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
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
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
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
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:
getAllowEmptyContentTypein interfaceThriftToMetadataOrBuilder- Returns:
- The allowEmptyContentType.
-
setAllowEmptyContentType
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-
mergeUnknownFields
public final ThriftToMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThriftToMetadata.Builder>
-