Class JsonToMetadata.MatchRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
io.envoyproxy.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, JsonToMetadata.MatchRulesOrBuilder, Cloneable
Enclosing class:
JsonToMetadata.MatchRules

public static final class JsonToMetadata.MatchRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder> implements JsonToMetadata.MatchRulesOrBuilder
Protobuf type envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRules
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • setField

      public JsonToMetadata.MatchRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • clearField

      public JsonToMetadata.MatchRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • clearOneof

      public JsonToMetadata.MatchRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • setRepeatedField

      public JsonToMetadata.MatchRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • addRepeatedField

      public JsonToMetadata.MatchRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • mergeFrom

      public JsonToMetadata.MatchRules.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JsonToMetadata.MatchRules.Builder>
    • mergeFrom

    • isInitialized

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

      public JsonToMetadata.MatchRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JsonToMetadata.MatchRules.Builder>
      Throws:
      IOException
    • getRulesList

      public List<JsonToMetadata.Rule> getRulesList()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
      Specified by:
      getRulesList in interface JsonToMetadata.MatchRulesOrBuilder
    • getRulesCount

      public int getRulesCount()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
      Specified by:
      getRulesCount in interface JsonToMetadata.MatchRulesOrBuilder
    • getRules

      public JsonToMetadata.Rule getRules(int index)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
      Specified by:
      getRules in interface JsonToMetadata.MatchRulesOrBuilder
    • setRules

      public JsonToMetadata.MatchRules.Builder setRules(int index, JsonToMetadata.Rule value)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • setRules

      public JsonToMetadata.MatchRules.Builder setRules(int index, JsonToMetadata.Rule.Builder builderForValue)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addRules

       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addRules

      public JsonToMetadata.MatchRules.Builder addRules(int index, JsonToMetadata.Rule value)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addRules

       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addRules

      public JsonToMetadata.MatchRules.Builder addRules(int index, JsonToMetadata.Rule.Builder builderForValue)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addAllRules

      public JsonToMetadata.MatchRules.Builder addAllRules(Iterable<? extends JsonToMetadata.Rule> values)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • clearRules

      public JsonToMetadata.MatchRules.Builder clearRules()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • removeRules

      public JsonToMetadata.MatchRules.Builder removeRules(int index)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • getRulesBuilder

      public JsonToMetadata.Rule.Builder getRulesBuilder(int index)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • getRulesOrBuilder

      public JsonToMetadata.RuleOrBuilder getRulesOrBuilder(int index)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
      Specified by:
      getRulesOrBuilder in interface JsonToMetadata.MatchRulesOrBuilder
    • getRulesOrBuilderList

      public List<? extends JsonToMetadata.RuleOrBuilder> getRulesOrBuilderList()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
      Specified by:
      getRulesOrBuilderList in interface JsonToMetadata.MatchRulesOrBuilder
    • addRulesBuilder

      public JsonToMetadata.Rule.Builder addRulesBuilder()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • addRulesBuilder

      public JsonToMetadata.Rule.Builder addRulesBuilder(int index)
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • getRulesBuilderList

      public List<JsonToMetadata.Rule.Builder> getRulesBuilderList()
       The list of rules to apply.
       
      repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }
    • getAllowContentTypesList

      public com.google.protobuf.ProtocolStringList getAllowContentTypesList()
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesList in interface JsonToMetadata.MatchRulesOrBuilder
      Returns:
      A list containing the allowContentTypes.
    • getAllowContentTypesCount

      public int getAllowContentTypesCount()
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesCount in interface JsonToMetadata.MatchRulesOrBuilder
      Returns:
      The count of allowContentTypes.
    • getAllowContentTypes

      public String getAllowContentTypes(int index)
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypes in interface JsonToMetadata.MatchRulesOrBuilder
      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 json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Specified by:
      getAllowContentTypesBytes in interface JsonToMetadata.MatchRulesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowContentTypes at the given index.
    • setAllowContentTypes

      public JsonToMetadata.MatchRules.Builder setAllowContentTypes(int index, String value)
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allowContentTypes to set.
      Returns:
      This builder for chaining.
    • addAllowContentTypes

      public JsonToMetadata.MatchRules.Builder addAllowContentTypes(String value)
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The allowContentTypes to add.
      Returns:
      This builder for chaining.
    • addAllAllowContentTypes

      public JsonToMetadata.MatchRules.Builder addAllAllowContentTypes(Iterable<String> values)
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Parameters:
      values - The allowContentTypes to add.
      Returns:
      This builder for chaining.
    • clearAllowContentTypes

      public JsonToMetadata.MatchRules.Builder clearAllowContentTypes()
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addAllowContentTypesBytes

      public JsonToMetadata.MatchRules.Builder addAllowContentTypesBytes(com.google.protobuf.ByteString value)
       Allowed content-type for json to metadata transformation.
       Default to ``{"application/json"}``.
      
       Set ``allow_empty_content_type`` if empty/missing content-type header
       is allowed.
       
      repeated string allow_content_types = 2 [(.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 json to metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 3;
      Specified by:
      getAllowEmptyContentType in interface JsonToMetadata.MatchRulesOrBuilder
      Returns:
      The allowEmptyContentType.
    • setAllowEmptyContentType

      public JsonToMetadata.MatchRules.Builder setAllowEmptyContentType(boolean value)
       Allowed empty content-type for json to metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 3;
      Parameters:
      value - The allowEmptyContentType to set.
      Returns:
      This builder for chaining.
    • clearAllowEmptyContentType

      public JsonToMetadata.MatchRules.Builder clearAllowEmptyContentType()
       Allowed empty content-type for json to metadata transformation.
       Default to false.
       
      bool allow_empty_content_type = 3;
      Returns:
      This builder for chaining.
    • hasAllowContentTypesRegex

      public boolean hasAllowContentTypesRegex()
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
      Specified by:
      hasAllowContentTypesRegex in interface JsonToMetadata.MatchRulesOrBuilder
      Returns:
      Whether the allowContentTypesRegex field is set.
    • getAllowContentTypesRegex

      public RegexMatcher getAllowContentTypesRegex()
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
      Specified by:
      getAllowContentTypesRegex in interface JsonToMetadata.MatchRulesOrBuilder
      Returns:
      The allowContentTypesRegex.
    • setAllowContentTypesRegex

      public JsonToMetadata.MatchRules.Builder setAllowContentTypesRegex(RegexMatcher value)
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
    • setAllowContentTypesRegex

      public JsonToMetadata.MatchRules.Builder setAllowContentTypesRegex(RegexMatcher.Builder builderForValue)
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
    • mergeAllowContentTypesRegex

      public JsonToMetadata.MatchRules.Builder mergeAllowContentTypesRegex(RegexMatcher value)
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
    • clearAllowContentTypesRegex

      public JsonToMetadata.MatchRules.Builder clearAllowContentTypesRegex()
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
    • getAllowContentTypesRegexBuilder

      public RegexMatcher.Builder getAllowContentTypesRegexBuilder()
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
    • getAllowContentTypesRegexOrBuilder

      public RegexMatcherOrBuilder getAllowContentTypesRegexOrBuilder()
       Allowed content-type by regex match for json to metadata transformation.
       This can be used in parallel with ``allow_content_types``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
      Specified by:
      getAllowContentTypesRegexOrBuilder in interface JsonToMetadata.MatchRulesOrBuilder
    • setUnknownFields

      public final JsonToMetadata.MatchRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
    • mergeUnknownFields

      public final JsonToMetadata.MatchRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>