Class Rule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.thrift_to_metadata.v3.Rule
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RuleOrBuilder,Serializable
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.http.thrift_to_metadata.v3.Rule- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Rulestatic final com.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.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 present in *thrift metadata*.The key-value pair to set in the *filter metadata* if the field is present in *thrift metadata*.com.google.protobuf.Parser<Rule>intbooleanSpecifies that a match will be performed on the value of a field in the thrift body.inthashCode()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 booleanstatic Rule.Builderstatic Rule.BuildernewBuilder(Rule prototype) protected Rule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RuleparseDelimitedFrom(InputStream input) static RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(byte[] data) static RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(com.google.protobuf.ByteString data) static RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(com.google.protobuf.CodedInputStream input) static RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(InputStream input) static RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(ByteBuffer data) static RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Rule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FIELD_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER- See Also:
-
FIELD_SELECTOR_FIELD_NUMBER
public static final int FIELD_SELECTOR_FIELD_NUMBER- See Also:
-
METHOD_NAME_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER- See Also:
-
ON_PRESENT_FIELD_NUMBER
public static final int ON_PRESENT_FIELD_NUMBER- See Also:
-
ON_MISSING_FIELD_NUMBER
public static final int ON_MISSING_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Rule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-