java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, JsonToMetadata.RuleOrBuilder, Serializable
Enclosing class:
JsonToMetadata

public static final class JsonToMetadata.Rule extends com.google.protobuf.GeneratedMessageV3 implements JsonToMetadata.RuleOrBuilder
 A Rule defines what metadata to apply when a key-value is present, missing in the json
 or fail to parse the payload.
 
Protobuf type envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule
See Also:
  • Field Details

  • Method Details

    • newInstance

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

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getSelectorsList

      public List<JsonToMetadata.Selector> getSelectorsList()
       Specifies that a match will be performed on the value of a property.
       Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2}
      
       selectors:
       - key: foo
       - key: bar
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... }
      Specified by:
      getSelectorsList in interface JsonToMetadata.RuleOrBuilder
    • getSelectorsOrBuilderList

      public List<? extends JsonToMetadata.SelectorOrBuilder> getSelectorsOrBuilderList()
       Specifies that a match will be performed on the value of a property.
       Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2}
      
       selectors:
       - key: foo
       - key: bar
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... }
      Specified by:
      getSelectorsOrBuilderList in interface JsonToMetadata.RuleOrBuilder
    • getSelectorsCount

      public int getSelectorsCount()
       Specifies that a match will be performed on the value of a property.
       Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2}
      
       selectors:
       - key: foo
       - key: bar
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... }
      Specified by:
      getSelectorsCount in interface JsonToMetadata.RuleOrBuilder
    • getSelectors

      public JsonToMetadata.Selector getSelectors(int index)
       Specifies that a match will be performed on the value of a property.
       Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2}
      
       selectors:
       - key: foo
       - key: bar
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... }
      Specified by:
      getSelectors in interface JsonToMetadata.RuleOrBuilder
    • getSelectorsOrBuilder

      public JsonToMetadata.SelectorOrBuilder getSelectorsOrBuilder(int index)
       Specifies that a match will be performed on the value of a property.
       Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2}
      
       selectors:
       - key: foo
       - key: bar
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... }
      Specified by:
      getSelectorsOrBuilder in interface JsonToMetadata.RuleOrBuilder
    • hasOnPresent

      public boolean hasOnPresent()
       If the attribute is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;
      Specified by:
      hasOnPresent in interface JsonToMetadata.RuleOrBuilder
      Returns:
      Whether the onPresent field is set.
    • getOnPresent

      public JsonToMetadata.KeyValuePair getOnPresent()
       If the attribute is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;
      Specified by:
      getOnPresent in interface JsonToMetadata.RuleOrBuilder
      Returns:
      The onPresent.
    • getOnPresentOrBuilder

      public JsonToMetadata.KeyValuePairOrBuilder getOnPresentOrBuilder()
       If the attribute is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;
      Specified by:
      getOnPresentOrBuilder in interface JsonToMetadata.RuleOrBuilder
    • hasOnMissing

      public boolean hasOnMissing()
       If the attribute is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3;
      Specified by:
      hasOnMissing in interface JsonToMetadata.RuleOrBuilder
      Returns:
      Whether the onMissing field is set.
    • getOnMissing

      public JsonToMetadata.KeyValuePair getOnMissing()
       If the attribute is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3;
      Specified by:
      getOnMissing in interface JsonToMetadata.RuleOrBuilder
      Returns:
      The onMissing.
    • getOnMissingOrBuilder

      public JsonToMetadata.KeyValuePairOrBuilder getOnMissingOrBuilder()
       If the attribute is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3;
      Specified by:
      getOnMissingOrBuilder in interface JsonToMetadata.RuleOrBuilder
    • hasOnError

      public boolean hasOnError()
       If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;
      Specified by:
      hasOnError in interface JsonToMetadata.RuleOrBuilder
      Returns:
      Whether the onError field is set.
    • getOnError

      public JsonToMetadata.KeyValuePair getOnError()
       If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;
      Specified by:
      getOnError in interface JsonToMetadata.RuleOrBuilder
      Returns:
      The onError.
    • getOnErrorOrBuilder

      public JsonToMetadata.KeyValuePairOrBuilder getOnErrorOrBuilder()
       If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set.
       
      .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;
      Specified by:
      getOnErrorOrBuilder in interface JsonToMetadata.RuleOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static JsonToMetadata.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static JsonToMetadata.Rule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JsonToMetadata.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JsonToMetadata.Rule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JsonToMetadata.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JsonToMetadata.Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public JsonToMetadata.Rule.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static JsonToMetadata.Rule.Builder newBuilder()
    • newBuilder

      public static JsonToMetadata.Rule.Builder newBuilder(JsonToMetadata.Rule prototype)
    • toBuilder

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

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

      public static JsonToMetadata.Rule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<JsonToMetadata.Rule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public JsonToMetadata.Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder