Class Rule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
io.envoyproxy.envoy.extensions.filters.http.thrift_to_metadata.v3.Rule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RuleOrBuilder,Cloneable
- Enclosing class:
- Rule
public static final class Rule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
implements RuleOrBuilder
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.http.thrift_to_metadata.v3.Rule-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The field to match on.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies that a match will be performed on the value of a field in the thrift body.If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()The field to match on.Specifies that a match will be performed on the value of a field in the thrift body.Specifies that a match will be performed on the value of a field in the thrift body.Specifies that a match will be performed on the value of a field in the thrift body.intThe field to match on.If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.com.google.protobuf.ByteStringIf specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.booleanSpecifies that a match will be performed on the value of a field in the thrift body.booleanThe key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.booleanThe key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFieldSelector(FieldSelector value) Specifies that a match will be performed on the value of a field in the thrift body.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOnMissing(KeyValuePair value) The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.mergeOnPresent(KeyValuePair value) The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.final Rule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The field to match on.setFieldSelector(FieldSelector value) Specifies that a match will be performed on the value of a field in the thrift body.setFieldSelector(FieldSelector.Builder builderForValue) Specifies that a match will be performed on the value of a field in the thrift body.setFieldValue(int value) The field to match on.setMethodName(String value) If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.setMethodNameBytes(com.google.protobuf.ByteString value) If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.setOnMissing(KeyValuePair value) The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.setOnMissing(KeyValuePair.Builder builderForValue) The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*.setOnPresent(KeyValuePair value) The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.setOnPresent(KeyValuePair.Builder builderForValue) The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Rule.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<Rule.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<Rule.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<Rule.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<Rule.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
setRepeatedField
public Rule.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<Rule.Builder>
-
addRepeatedField
public Rule.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<Rule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeFrom
public Rule.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<Rule.Builder>- Throws:
IOException
-
getFieldValue
public int getFieldValue()The field to match on. :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` takes precedence if both are set.
.envoy.extensions.filters.http.thrift_to_metadata.v3.Field field = 1;- Specified by:
getFieldValuein interfaceRuleOrBuilder- Returns:
- The enum numeric value on the wire for field.
-
setFieldValue
The field to match on. :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` takes precedence if both are set.
.envoy.extensions.filters.http.thrift_to_metadata.v3.Field field = 1;- Parameters:
value- The enum numeric value on the wire for field to set.- Returns:
- This builder for chaining.
-
getField
The field to match on. :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` takes precedence if both are set.
.envoy.extensions.filters.http.thrift_to_metadata.v3.Field field = 1;- Specified by:
getFieldin interfaceRuleOrBuilder- Returns:
- The field.
-
setField
The field to match on. :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` takes precedence if both are set.
.envoy.extensions.filters.http.thrift_to_metadata.v3.Field field = 1;- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
The field to match on. :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` takes precedence if both are set.
.envoy.extensions.filters.http.thrift_to_metadata.v3.Field field = 1;- Returns:
- This builder for chaining.
-
hasFieldSelector
public boolean hasFieldSelector()Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2;- Specified by:
hasFieldSelectorin interfaceRuleOrBuilder- Returns:
- Whether the fieldSelector field is set.
-
getFieldSelector
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2;- Specified by:
getFieldSelectorin interfaceRuleOrBuilder- Returns:
- The fieldSelector.
-
setFieldSelector
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2; -
setFieldSelector
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2; -
mergeFieldSelector
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2; -
clearFieldSelector
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2; -
getFieldSelectorBuilder
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2; -
getFieldSelectorOrBuilder
Specifies that a match will be performed on the value of a field in the thrift body. If set, the whole http body will be buffered to extract the field value, which may have performance implications. It's a thrift over http version of :ref:`field_selector<envoy_v3_api_field_extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.field_selector>`. See also `payload-to-metadata <https://www.envoyproxy.io/docs/envoy/latest/configuration/other_protocols/thrift_filters/payload_to_metadata_filter>`_ for more reference. Example: .. code-block:: yaml method_name: foo field_selector: name: info id: 2 child: name: version id: 1 The above yaml will match on value of ``info.version`` in the below thrift schema as input of :ref:`on_present<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_present>` or :ref:`on_missing<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.on_missing>` while we are processing ``foo`` method. This rule won't be applied to ``bar`` method. .. code-block:: thrift struct Info { 1: required string version; } service Server { bool foo(1: i32 id, 2: Info info); bool bar(1: i32 id, 2: Info info); }.envoy.extensions.filters.http.thrift_to_metadata.v3.FieldSelector field_selector = 2;- Specified by:
getFieldSelectorOrBuilderin interfaceRuleOrBuilder
-
getMethodName
If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.
string method_name = 3;- Specified by:
getMethodNamein interfaceRuleOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.ByteString getMethodNameBytes()If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.
string method_name = 3;- Specified by:
getMethodNameBytesin interfaceRuleOrBuilder- Returns:
- The bytes for methodName.
-
setMethodName
If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.
string method_name = 3;- Parameters:
value- The methodName to set.- Returns:
- This builder for chaining.
-
clearMethodName
If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.
string method_name = 3;- Returns:
- This builder for chaining.
-
setMethodNameBytes
If specified, :ref:`field_selector<envoy_v3_api_field_extensions.filters.http.thrift_to_metadata.v3.Rule.field_selector>` will be used to extract the field value *only* on the thrift message with method name.
string method_name = 3;- Parameters:
value- The bytes for methodName to set.- Returns:
- This builder for chaining.
-
hasOnPresent
public boolean hasOnPresent()The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4;- Specified by:
hasOnPresentin interfaceRuleOrBuilder- Returns:
- Whether the onPresent field is set.
-
getOnPresent
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4;- Specified by:
getOnPresentin interfaceRuleOrBuilder- Returns:
- The onPresent.
-
setOnPresent
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4; -
setOnPresent
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4; -
mergeOnPresent
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4; -
clearOnPresent
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4; -
getOnPresentBuilder
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4; -
getOnPresentOrBuilder
The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*. If the value in the KeyValuePair is non-empty, it'll be used instead of field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_present = 4;- Specified by:
getOnPresentOrBuilderin interfaceRuleOrBuilder
-
hasOnMissing
public boolean hasOnMissing()The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5;- Specified by:
hasOnMissingin interfaceRuleOrBuilder- Returns:
- Whether the onMissing field is set.
-
getOnMissing
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5;- Specified by:
getOnMissingin interfaceRuleOrBuilder- Returns:
- The onMissing.
-
setOnMissing
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5; -
setOnMissing
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5; -
mergeOnMissing
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5; -
clearOnMissing
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5; -
getOnMissingBuilder
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5; -
getOnMissingOrBuilder
The key-value pair to set in the *filter metadata* if the field is missing in *thrift metadata*. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.http.thrift_to_metadata.v3.KeyValuePair on_missing = 5;- Specified by:
getOnMissingOrBuilderin interfaceRuleOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-