Class JsonToMetadata.MatchRules.Builder

    • Method Detail

      • 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>
      • 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
      • 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>
      • 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
      • 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
      • 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) = { ... }
      • 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.
      • 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>