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 Summary
Modifier and TypeMethodDescriptionaddAllAllowContentTypes(Iterable<String> values) Allowed content-type for json to metadata transformation.addAllowContentTypes(String value) Allowed content-type for json to metadata transformation.addAllowContentTypesBytes(com.google.protobuf.ByteString value) Allowed content-type for json to metadata transformation.addAllRules(Iterable<? extends JsonToMetadata.Rule> values) The list of rules to apply.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRules(int index, JsonToMetadata.Rule value) The list of rules to apply.addRules(int index, JsonToMetadata.Rule.Builder builderForValue) The list of rules to apply.addRules(JsonToMetadata.Rule value) The list of rules to apply.addRules(JsonToMetadata.Rule.Builder builderForValue) The list of rules to apply.The list of rules to apply.addRulesBuilder(int index) The list of rules to apply.build()clear()Allowed content-type for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.Allowed empty content-type for json to metadata transformation.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The list of rules to apply.clone()getAllowContentTypes(int index) Allowed content-type for json to metadata transformation.com.google.protobuf.ByteStringgetAllowContentTypesBytes(int index) Allowed content-type for json to metadata transformation.intAllowed content-type for json to metadata transformation.com.google.protobuf.ProtocolStringListAllowed content-type for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.booleanAllowed empty content-type for json to metadata transformation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRules(int index) The list of rules to apply.getRulesBuilder(int index) The list of rules to apply.The list of rules to apply.intThe list of rules to apply.The list of rules to apply.getRulesOrBuilder(int index) The list of rules to apply.List<? extends JsonToMetadata.RuleOrBuilder>The list of rules to apply.booleanAllowed content-type by regex match for json to metadata transformation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanAllowed content-type by regex match for json to metadata transformation.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRules(int index) The list of rules to apply.setAllowContentTypes(int index, String value) Allowed content-type for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.setAllowContentTypesRegex(RegexMatcher.Builder builderForValue) Allowed content-type by regex match for json to metadata transformation.setAllowEmptyContentType(boolean value) Allowed empty content-type for json to metadata transformation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRules(int index, JsonToMetadata.Rule value) The list of rules to apply.setRules(int index, JsonToMetadata.Rule.Builder builderForValue) The list of rules to apply.setUnknownFields(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<JsonToMetadata.MatchRules.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<JsonToMetadata.MatchRules.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<JsonToMetadata.MatchRules.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<JsonToMetadata.MatchRules.Builder>
-
setField
public JsonToMetadata.MatchRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
-
clearField
public JsonToMetadata.MatchRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
-
clearOneof
public JsonToMetadata.MatchRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
-
addRepeatedField
public JsonToMetadata.MatchRules.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<JsonToMetadata.MatchRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JsonToMetadata.MatchRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JsonToMetadata.MatchRules.Builder>- Throws:
IOException
-
getRulesList
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesListin interfaceJsonToMetadata.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:
getRulesCountin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRules
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesin interfaceJsonToMetadata.MatchRulesOrBuilder
-
setRules
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
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
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
removeRules
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRulesBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRulesOrBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesOrBuilderin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRulesOrBuilderList
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesOrBuilderListin interfaceJsonToMetadata.MatchRulesOrBuilder
-
addRulesBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
addRulesBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
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:
getAllowContentTypesListin interfaceJsonToMetadata.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:
getAllowContentTypesCountin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- The count of allowContentTypes.
-
getAllowContentTypes
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:
getAllowContentTypesin interfaceJsonToMetadata.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:
getAllowContentTypesBytesin interfaceJsonToMetadata.MatchRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowContentTypes at the given index.
-
setAllowContentTypes
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
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
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
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:
getAllowEmptyContentTypein interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- The allowEmptyContentType.
-
setAllowEmptyContentType
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
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:
hasAllowContentTypesRegexin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- Whether the allowContentTypesRegex field is set.
-
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:
getAllowContentTypesRegexin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- The allowContentTypesRegex.
-
setAllowContentTypesRegex
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
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
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
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
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:
getAllowContentTypesRegexOrBuilderin interfaceJsonToMetadata.MatchRulesOrBuilder
-
setUnknownFields
public final JsonToMetadata.MatchRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
-
mergeUnknownFields
public final JsonToMetadata.MatchRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.MatchRules.Builder>
-