Package io.envoyproxy.envoy.api.v2.route
Class CorsPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
io.envoyproxy.envoy.api.v2.route.CorsPolicy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CorsPolicyOrBuilder,Cloneable
- Enclosing class:
- CorsPolicy
public static final class CorsPolicy.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
implements CorsPolicyOrBuilder
[#next-free-field: 12]Protobuf type
envoy.api.v2.route.CorsPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowOrigin(Iterable<String> values) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.addAllAllowOriginRegex(Iterable<String> values) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.addAllAllowOriginStringMatch(Iterable<? extends StringMatcher> values) Specifies string patterns that match allowed origins.addAllowOrigin(String value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.addAllowOriginBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.addAllowOriginRegex(String value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.addAllowOriginRegexBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.addAllowOriginStringMatch(int index, StringMatcher value) Specifies string patterns that match allowed origins.addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.addAllowOriginStringMatch(StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.addAllowOriginStringMatchBuilder(int index) Specifies string patterns that match allowed origins.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies whether the resource allows credentials.Specifies the content for the *access-control-allow-headers* header.Specifies the content for the *access-control-allow-methods* header.Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.Specifies string patterns that match allowed origins.Deprecated.Specifies the content for the *access-control-expose-headers* header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies the % of requests for which the CORS filter is enabled.Specifies the content for the *access-control-max-age* header.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.clone()com.google.protobuf.BoolValueSpecifies whether the resource allows credentials.com.google.protobuf.BoolValue.BuilderSpecifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuilderSpecifies whether the resource allows credentials.Specifies the content for the *access-control-allow-headers* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-allow-headers* header.Specifies the content for the *access-control-allow-methods* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-allow-methods* header.getAllowOrigin(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ByteStringgetAllowOriginBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ProtocolStringListDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.getAllowOriginRegex(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.com.google.protobuf.ByteStringgetAllowOriginRegexBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.com.google.protobuf.ProtocolStringListDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.getAllowOriginStringMatch(int index) Specifies string patterns that match allowed origins.getAllowOriginStringMatchBuilder(int index) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.intSpecifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.getAllowOriginStringMatchOrBuilder(int index) Specifies string patterns that match allowed origins.List<? extends StringMatcherOrBuilder>Specifies string patterns that match allowed origins.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.BoolValueDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.com.google.protobuf.BoolValue.BuilderDeprecated.com.google.protobuf.BoolValueOrBuilderDeprecated.Specifies the content for the *access-control-expose-headers* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-expose-headers* header.Specifies the % of requests for which the CORS filter is enabled.Specifies the % of requests for which the CORS filter is enabled.Specifies the % of requests for which the CORS filter is enabled.Specifies the content for the *access-control-max-age* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-max-age* header.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.booleanSpecifies whether the resource allows credentials.booleanDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.booleanSpecifies the % of requests for which the CORS filter is enabled.booleanSpecifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAllowCredentials(com.google.protobuf.BoolValue value) Specifies whether the resource allows credentials.mergeEnabled(com.google.protobuf.BoolValue value) Deprecated.Specifies the % of requests for which the CORS filter is enabled.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CorsPolicy other) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.final CorsPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAllowOriginStringMatch(int index) Specifies string patterns that match allowed origins.setAllowCredentials(com.google.protobuf.BoolValue value) Specifies whether the resource allows credentials.setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Specifies whether the resource allows credentials.setAllowHeaders(String value) Specifies the content for the *access-control-allow-headers* header.setAllowHeadersBytes(com.google.protobuf.ByteString value) Specifies the content for the *access-control-allow-headers* header.setAllowMethods(String value) Specifies the content for the *access-control-allow-methods* header.setAllowMethodsBytes(com.google.protobuf.ByteString value) Specifies the content for the *access-control-allow-methods* header.setAllowOrigin(int index, String value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.setAllowOriginRegex(int index, String value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.setAllowOriginStringMatch(int index, StringMatcher value) Specifies string patterns that match allowed origins.setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.setEnabled(com.google.protobuf.BoolValue value) Deprecated.setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Deprecated.setExposeHeaders(String value) Specifies the content for the *access-control-expose-headers* header.setExposeHeadersBytes(com.google.protobuf.ByteString value) Specifies the content for the *access-control-expose-headers* header.Specifies the % of requests for which the CORS filter is enabled.setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue) Specifies the % of requests for which the CORS filter is enabled.Specifies the content for the *access-control-max-age* header.setMaxAgeBytes(com.google.protobuf.ByteString value) Specifies the content for the *access-control-max-age* header.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.setShadowEnabled(RuntimeFractionalPercent.Builder builderForValue) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.final CorsPolicy.BuildersetUnknownFields(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<CorsPolicy.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<CorsPolicy.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<CorsPolicy.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<CorsPolicy.Builder>
-
setField
public CorsPolicy.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<CorsPolicy.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
setRepeatedField
public CorsPolicy.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<CorsPolicy.Builder>
-
addRepeatedField
public CorsPolicy.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<CorsPolicy.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.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<CorsPolicy.Builder>- Throws:
IOException
-
getEnabledSpecifierCase
- Specified by:
getEnabledSpecifierCasein interfaceCorsPolicyOrBuilder
-
clearEnabledSpecifier
-
getAllowOriginList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginListin interfaceCorsPolicyOrBuilder- Returns:
- A list containing the allowOrigin.
-
getAllowOriginCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginCountin interfaceCorsPolicyOrBuilder- Returns:
- The count of allowOrigin.
-
getAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowOrigin at the given index.
-
getAllowOriginBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginBytesin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOrigin at the given index.
-
setAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
index- The index to set the value at.value- The allowOrigin to set.- Returns:
- This builder for chaining.
-
addAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
value- The allowOrigin to add.- Returns:
- This builder for chaining.
-
addAllAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
values- The allowOrigin to add.- Returns:
- This builder for chaining.
-
clearAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- This builder for chaining.
-
addAllowOriginBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
value- The bytes of the allowOrigin to add.- Returns:
- This builder for chaining.
-
getAllowOriginRegexList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexListin interfaceCorsPolicyOrBuilder- Returns:
- A list containing the allowOriginRegex.
-
getAllowOriginRegexCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexCountin interfaceCorsPolicyOrBuilder- Returns:
- The count of allowOriginRegex.
-
getAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowOriginRegex at the given index.
-
getAllowOriginRegexBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexBytesin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOriginRegex at the given index.
-
setAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The allowOriginRegex to set.- Returns:
- This builder for chaining.
-
addAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
value- The allowOriginRegex to add.- Returns:
- This builder for chaining.
-
addAllAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
values- The allowOriginRegex to add.- Returns:
- This builder for chaining.
-
clearAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addAllowOriginRegexBytes
@Deprecated public CorsPolicy.Builder addAllowOriginRegexBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
value- The bytes of the allowOriginRegex to add.- Returns:
- This builder for chaining.
-
getAllowOriginStringMatchList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchListin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchCount
public int getAllowOriginStringMatchCount()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchCountin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchin interfaceCorsPolicyOrBuilder
-
setAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
setAllowOriginStringMatch
public CorsPolicy.Builder setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
clearAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
removeAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchOrBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilderList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderListin interfaceCorsPolicyOrBuilder
-
addAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchBuilderList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowMethods
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Specified by:
getAllowMethodsin interfaceCorsPolicyOrBuilder- Returns:
- The allowMethods.
-
getAllowMethodsBytes
public com.google.protobuf.ByteString getAllowMethodsBytes()Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Specified by:
getAllowMethodsBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowMethods.
-
setAllowMethods
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Parameters:
value- The allowMethods to set.- Returns:
- This builder for chaining.
-
clearAllowMethods
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Returns:
- This builder for chaining.
-
setAllowMethodsBytes
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Parameters:
value- The bytes for allowMethods to set.- Returns:
- This builder for chaining.
-
getAllowHeaders
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Specified by:
getAllowHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The allowHeaders.
-
getAllowHeadersBytes
public com.google.protobuf.ByteString getAllowHeadersBytes()Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Specified by:
getAllowHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowHeaders.
-
setAllowHeaders
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Parameters:
value- The allowHeaders to set.- Returns:
- This builder for chaining.
-
clearAllowHeaders
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Returns:
- This builder for chaining.
-
setAllowHeadersBytes
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Parameters:
value- The bytes for allowHeaders to set.- Returns:
- This builder for chaining.
-
getExposeHeaders
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Specified by:
getExposeHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The exposeHeaders.
-
getExposeHeadersBytes
public com.google.protobuf.ByteString getExposeHeadersBytes()Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Specified by:
getExposeHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for exposeHeaders.
-
setExposeHeaders
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Parameters:
value- The exposeHeaders to set.- Returns:
- This builder for chaining.
-
clearExposeHeaders
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Returns:
- This builder for chaining.
-
setExposeHeadersBytes
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Parameters:
value- The bytes for exposeHeaders to set.- Returns:
- This builder for chaining.
-
getMaxAge
Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Specified by:
getMaxAgein interfaceCorsPolicyOrBuilder- Returns:
- The maxAge.
-
getMaxAgeBytes
public com.google.protobuf.ByteString getMaxAgeBytes()Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Specified by:
getMaxAgeBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for maxAge.
-
setMaxAge
Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Parameters:
value- The maxAge to set.- Returns:
- This builder for chaining.
-
clearMaxAge
Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Returns:
- This builder for chaining.
-
setMaxAgeBytes
Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Parameters:
value- The bytes for maxAge to set.- Returns:
- This builder for chaining.
-
hasAllowCredentials
public boolean hasAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
hasAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- Whether the allowCredentials field is set.
-
getAllowCredentials
public com.google.protobuf.BoolValue getAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- The allowCredentials.
-
setAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
setAllowCredentials
public CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
mergeAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
clearAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsBuilder
public com.google.protobuf.BoolValue.Builder getAllowCredentialsBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsOrBuilderin interfaceCorsPolicyOrBuilder
-
hasEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
hasEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The enabled.
-
setEnabled
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
setEnabled
@Deprecated public CorsPolicy.Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue) Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
mergeEnabled
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
clearEnabled
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
getEnabledBuilder
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
getEnabledOrBuilder
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasFilterEnabled
public boolean hasFilterEnabled()Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
hasFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The filterEnabled.
-
setFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
setFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
mergeFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
clearFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
getFilterEnabledBuilder
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
getFilterEnabledOrBuilder
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasShadowEnabled
public boolean hasShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
hasShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The shadowEnabled.
-
setShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
setShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
mergeShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
clearShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
getShadowEnabledBuilder
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
getShadowEnabledOrBuilder
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
mergeUnknownFields
public final CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-