Class CorsPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
- io.envoyproxy.envoy.config.route.v3.CorsPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,CorsPolicyOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CorsPolicy
public static final class CorsPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder> implements CorsPolicyOrBuilder
Cors policy configuration. .. attention:: This message has been deprecated. Please use :ref:`CorsPolicy in filter extension <envoy_v3_api_msg_extensions.filters.http.cors.v3.CorsPolicy>` as as alternative. [#next-free-field: 14]
Protobuf typeenvoy.config.route.v3.CorsPolicy
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.BoolValue
allowCredentials_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
allowCredentialsBuilder_
private java.lang.Object
allowHeaders_
private java.lang.Object
allowMethods_
private java.util.List<StringMatcher>
allowOriginStringMatch_
private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder,StringMatcherOrBuilder>
allowOriginStringMatchBuilder_
private com.google.protobuf.BoolValue
allowPrivateNetworkAccess_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
allowPrivateNetworkAccessBuilder_
private int
bitField0_
private java.lang.Object
enabledSpecifier_
private int
enabledSpecifierCase_
private java.lang.Object
exposeHeaders_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder>
filterEnabledBuilder_
private com.google.protobuf.BoolValue
forwardNotMatchingPreflights_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
forwardNotMatchingPreflightsBuilder_
private java.lang.Object
maxAge_
private RuntimeFractionalPercent
shadowEnabled_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder>
shadowEnabledBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsPolicy.Builder
addAllAllowOriginStringMatch(java.lang.Iterable<? extends StringMatcher> values)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
addAllowOriginStringMatch(int index, StringMatcher value)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
addAllowOriginStringMatch(StringMatcher value)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
addAllowOriginStringMatch(StringMatcher.Builder builderForValue)
Specifies string patterns that match allowed origins.StringMatcher.Builder
addAllowOriginStringMatchBuilder()
Specifies string patterns that match allowed origins.StringMatcher.Builder
addAllowOriginStringMatchBuilder(int index)
Specifies string patterns that match allowed origins.CorsPolicy
build()
CorsPolicy
buildPartial()
private void
buildPartial0(CorsPolicy result)
private void
buildPartialOneofs(CorsPolicy result)
private void
buildPartialRepeatedFields(CorsPolicy result)
CorsPolicy.Builder
clear()
CorsPolicy.Builder
clearAllowCredentials()
Specifies whether the resource allows credentials.CorsPolicy.Builder
clearAllowHeaders()
Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.Builder
clearAllowMethods()
Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.Builder
clearAllowOriginStringMatch()
Specifies string patterns that match allowed origins.CorsPolicy.Builder
clearAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.CorsPolicy.Builder
clearEnabledSpecifier()
CorsPolicy.Builder
clearExposeHeaders()
Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.Builder
clearFilterEnabled()
Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.Builder
clearForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.CorsPolicy.Builder
clearMaxAge()
Specifies the content for the ``access-control-max-age`` header.CorsPolicy.Builder
clearShadowEnabled()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.private void
ensureAllowOriginStringMatchIsMutable()
com.google.protobuf.BoolValue
getAllowCredentials()
Specifies whether the resource allows credentials.com.google.protobuf.BoolValue.Builder
getAllowCredentialsBuilder()
Specifies whether the resource allows credentials.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
getAllowCredentialsFieldBuilder()
Specifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuilder
getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.java.lang.String
getAllowHeaders()
Specifies the content for the ``access-control-allow-headers`` header.com.google.protobuf.ByteString
getAllowHeadersBytes()
Specifies the content for the ``access-control-allow-headers`` header.java.lang.String
getAllowMethods()
Specifies the content for the ``access-control-allow-methods`` header.com.google.protobuf.ByteString
getAllowMethodsBytes()
Specifies the content for the ``access-control-allow-methods`` header.StringMatcher
getAllowOriginStringMatch(int index)
Specifies string patterns that match allowed origins.StringMatcher.Builder
getAllowOriginStringMatchBuilder(int index)
Specifies string patterns that match allowed origins.java.util.List<StringMatcher.Builder>
getAllowOriginStringMatchBuilderList()
Specifies string patterns that match allowed origins.int
getAllowOriginStringMatchCount()
Specifies string patterns that match allowed origins.private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder,StringMatcherOrBuilder>
getAllowOriginStringMatchFieldBuilder()
java.util.List<StringMatcher>
getAllowOriginStringMatchList()
Specifies string patterns that match allowed origins.StringMatcherOrBuilder
getAllowOriginStringMatchOrBuilder(int index)
Specifies string patterns that match allowed origins.java.util.List<? extends StringMatcherOrBuilder>
getAllowOriginStringMatchOrBuilderList()
Specifies string patterns that match allowed origins.com.google.protobuf.BoolValue
getAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.com.google.protobuf.BoolValue.Builder
getAllowPrivateNetworkAccessBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
getAllowPrivateNetworkAccessFieldBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.com.google.protobuf.BoolValueOrBuilder
getAllowPrivateNetworkAccessOrBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.CorsPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CorsPolicy.EnabledSpecifierCase
getEnabledSpecifierCase()
java.lang.String
getExposeHeaders()
Specifies the content for the ``access-control-expose-headers`` header.com.google.protobuf.ByteString
getExposeHeadersBytes()
Specifies the content for the ``access-control-expose-headers`` header.RuntimeFractionalPercent
getFilterEnabled()
Specifies the % of requests for which the CORS filter is enabled.RuntimeFractionalPercent.Builder
getFilterEnabledBuilder()
Specifies the % of requests for which the CORS filter is enabled.private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder>
getFilterEnabledFieldBuilder()
Specifies the % of requests for which the CORS filter is enabled.RuntimeFractionalPercentOrBuilder
getFilterEnabledOrBuilder()
Specifies the % of requests for which the CORS filter is enabled.com.google.protobuf.BoolValue
getForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValue.Builder
getForwardNotMatchingPreflightsBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
getForwardNotMatchingPreflightsFieldBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValueOrBuilder
getForwardNotMatchingPreflightsOrBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.java.lang.String
getMaxAge()
Specifies the content for the ``access-control-max-age`` header.com.google.protobuf.ByteString
getMaxAgeBytes()
Specifies the content for the ``access-control-max-age`` header.RuntimeFractionalPercent
getShadowEnabled()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.RuntimeFractionalPercent.Builder
getShadowEnabledBuilder()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder>
getShadowEnabledFieldBuilder()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.RuntimeFractionalPercentOrBuilder
getShadowEnabledOrBuilder()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.boolean
hasAllowCredentials()
Specifies whether the resource allows credentials.boolean
hasAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.boolean
hasFilterEnabled()
Specifies the % of requests for which the CORS filter is enabled.boolean
hasForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.boolean
hasShadowEnabled()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
CorsPolicy.Builder
mergeAllowCredentials(com.google.protobuf.BoolValue value)
Specifies whether the resource allows credentials.CorsPolicy.Builder
mergeAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.CorsPolicy.Builder
mergeFilterEnabled(RuntimeFractionalPercent value)
Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.Builder
mergeForwardNotMatchingPreflights(com.google.protobuf.BoolValue value)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.CorsPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CorsPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
CorsPolicy.Builder
mergeFrom(CorsPolicy other)
CorsPolicy.Builder
mergeShadowEnabled(RuntimeFractionalPercent value)
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.Builder
removeAllowOriginStringMatch(int index)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
setAllowCredentials(com.google.protobuf.BoolValue value)
Specifies whether the resource allows credentials.CorsPolicy.Builder
setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies whether the resource allows credentials.CorsPolicy.Builder
setAllowHeaders(java.lang.String value)
Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.Builder
setAllowHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.Builder
setAllowMethods(java.lang.String value)
Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.Builder
setAllowMethodsBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.Builder
setAllowOriginStringMatch(int index, StringMatcher value)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)
Specifies string patterns that match allowed origins.CorsPolicy.Builder
setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.CorsPolicy.Builder
setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue.Builder builderForValue)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.CorsPolicy.Builder
setExposeHeaders(java.lang.String value)
Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.Builder
setExposeHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.Builder
setFilterEnabled(RuntimeFractionalPercent value)
Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.Builder
setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.Builder
setForwardNotMatchingPreflights(com.google.protobuf.BoolValue value)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.CorsPolicy.Builder
setForwardNotMatchingPreflights(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.CorsPolicy.Builder
setMaxAge(java.lang.String value)
Specifies the content for the ``access-control-max-age`` header.CorsPolicy.Builder
setMaxAgeBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-max-age`` header.CorsPolicy.Builder
setShadowEnabled(RuntimeFractionalPercent value)
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.Builder
setShadowEnabled(RuntimeFractionalPercent.Builder builderForValue)
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
enabledSpecifierCase_
private int enabledSpecifierCase_
-
enabledSpecifier_
private java.lang.Object enabledSpecifier_
-
bitField0_
private int bitField0_
-
allowOriginStringMatch_
private java.util.List<StringMatcher> allowOriginStringMatch_
-
allowOriginStringMatchBuilder_
private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder,StringMatcherOrBuilder> allowOriginStringMatchBuilder_
-
allowMethods_
private java.lang.Object allowMethods_
-
allowHeaders_
private java.lang.Object allowHeaders_
-
exposeHeaders_
private java.lang.Object exposeHeaders_
-
maxAge_
private java.lang.Object maxAge_
-
allowCredentials_
private com.google.protobuf.BoolValue allowCredentials_
-
allowCredentialsBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> allowCredentialsBuilder_
-
filterEnabledBuilder_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder> filterEnabledBuilder_
-
shadowEnabled_
private RuntimeFractionalPercent shadowEnabled_
-
shadowEnabledBuilder_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder> shadowEnabledBuilder_
-
allowPrivateNetworkAccess_
private com.google.protobuf.BoolValue allowPrivateNetworkAccess_
-
allowPrivateNetworkAccessBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> allowPrivateNetworkAccessBuilder_
-
forwardNotMatchingPreflights_
private com.google.protobuf.BoolValue forwardNotMatchingPreflights_
-
forwardNotMatchingPreflightsBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> forwardNotMatchingPreflightsBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public CorsPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
getDefaultInstanceForType
public CorsPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CorsPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CorsPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(CorsPolicy result)
-
buildPartial0
private void buildPartial0(CorsPolicy result)
-
buildPartialOneofs
private void buildPartialOneofs(CorsPolicy result)
-
mergeFrom
public CorsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(CorsPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
- Throws:
java.io.IOException
-
getEnabledSpecifierCase
public CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
- Specified by:
getEnabledSpecifierCase
in interfaceCorsPolicyOrBuilder
-
clearEnabledSpecifier
public CorsPolicy.Builder clearEnabledSpecifier()
-
ensureAllowOriginStringMatchIsMutable
private void ensureAllowOriginStringMatchIsMutable()
-
getAllowOriginStringMatchList
public java.util.List<StringMatcher> getAllowOriginStringMatchList()
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
- Specified by:
getAllowOriginStringMatchList
in 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.v3.StringMatcher allow_origin_string_match = 11;
- Specified by:
getAllowOriginStringMatchCount
in interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatch
public StringMatcher getAllowOriginStringMatch(int index)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
- Specified by:
getAllowOriginStringMatch
in interfaceCorsPolicyOrBuilder
-
setAllowOriginStringMatch
public CorsPolicy.Builder setAllowOriginStringMatch(int index, StringMatcher value)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.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.v3.StringMatcher allow_origin_string_match = 11;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(StringMatcher value)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(int index, StringMatcher value)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(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.v3.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.v3.StringMatcher allow_origin_string_match = 11;
-
addAllAllowOriginStringMatch
public CorsPolicy.Builder addAllAllowOriginStringMatch(java.lang.Iterable<? extends StringMatcher> values)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
clearAllowOriginStringMatch
public CorsPolicy.Builder clearAllowOriginStringMatch()
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
removeAllowOriginStringMatch
public CorsPolicy.Builder removeAllowOriginStringMatch(int index)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
getAllowOriginStringMatchBuilder
public StringMatcher.Builder getAllowOriginStringMatchBuilder(int index)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
getAllowOriginStringMatchOrBuilder
public StringMatcherOrBuilder getAllowOriginStringMatchOrBuilder(int index)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
- Specified by:
getAllowOriginStringMatchOrBuilder
in interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilderList
public java.util.List<? extends StringMatcherOrBuilder> getAllowOriginStringMatchOrBuilderList()
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
- Specified by:
getAllowOriginStringMatchOrBuilderList
in interfaceCorsPolicyOrBuilder
-
addAllowOriginStringMatchBuilder
public StringMatcher.Builder addAllowOriginStringMatchBuilder()
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
addAllowOriginStringMatchBuilder
public StringMatcher.Builder addAllowOriginStringMatchBuilder(int index)
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
getAllowOriginStringMatchBuilderList
public java.util.List<StringMatcher.Builder> getAllowOriginStringMatchBuilderList()
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;
-
getAllowOriginStringMatchFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder,StringMatcherOrBuilder> getAllowOriginStringMatchFieldBuilder()
-
getAllowMethods
public java.lang.String getAllowMethods()
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;
- Specified by:
getAllowMethods
in 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:
getAllowMethodsBytes
in interfaceCorsPolicyOrBuilder
- Returns:
- The bytes for allowMethods.
-
setAllowMethods
public CorsPolicy.Builder setAllowMethods(java.lang.String value)
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
public CorsPolicy.Builder clearAllowMethods()
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;
- Returns:
- This builder for chaining.
-
setAllowMethodsBytes
public CorsPolicy.Builder setAllowMethodsBytes(com.google.protobuf.ByteString value)
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
public java.lang.String getAllowHeaders()
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;
- Specified by:
getAllowHeaders
in 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:
getAllowHeadersBytes
in interfaceCorsPolicyOrBuilder
- Returns:
- The bytes for allowHeaders.
-
setAllowHeaders
public CorsPolicy.Builder setAllowHeaders(java.lang.String value)
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
public CorsPolicy.Builder clearAllowHeaders()
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;
- Returns:
- This builder for chaining.
-
setAllowHeadersBytes
public CorsPolicy.Builder setAllowHeadersBytes(com.google.protobuf.ByteString value)
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
public java.lang.String getExposeHeaders()
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;
- Specified by:
getExposeHeaders
in 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:
getExposeHeadersBytes
in interfaceCorsPolicyOrBuilder
- Returns:
- The bytes for exposeHeaders.
-
setExposeHeaders
public CorsPolicy.Builder setExposeHeaders(java.lang.String value)
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
public CorsPolicy.Builder clearExposeHeaders()
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;
- Returns:
- This builder for chaining.
-
setExposeHeadersBytes
public CorsPolicy.Builder setExposeHeadersBytes(com.google.protobuf.ByteString value)
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
public java.lang.String getMaxAge()
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;
- Specified by:
getMaxAge
in 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:
getMaxAgeBytes
in interfaceCorsPolicyOrBuilder
- Returns:
- The bytes for maxAge.
-
setMaxAge
public CorsPolicy.Builder setMaxAge(java.lang.String value)
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
public CorsPolicy.Builder clearMaxAge()
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;
- Returns:
- This builder for chaining.
-
setMaxAgeBytes
public CorsPolicy.Builder setMaxAgeBytes(com.google.protobuf.ByteString value)
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:
hasAllowCredentials
in 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:
getAllowCredentials
in interfaceCorsPolicyOrBuilder
- Returns:
- The allowCredentials.
-
setAllowCredentials
public CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue value)
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
public CorsPolicy.Builder mergeAllowCredentials(com.google.protobuf.BoolValue value)
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
clearAllowCredentials
public CorsPolicy.Builder 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:
getAllowCredentialsOrBuilder
in interfaceCorsPolicyOrBuilder
-
getAllowCredentialsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> getAllowCredentialsFieldBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
- Specified by:
hasFilterEnabled
in interfaceCorsPolicyOrBuilder
- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
public RuntimeFractionalPercent 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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
- Specified by:
getFilterEnabled
in interfaceCorsPolicyOrBuilder
- Returns:
- The filterEnabled.
-
setFilterEnabled
public CorsPolicy.Builder setFilterEnabled(RuntimeFractionalPercent value)
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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
setFilterEnabled
public CorsPolicy.Builder setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
mergeFilterEnabled
public CorsPolicy.Builder mergeFilterEnabled(RuntimeFractionalPercent value)
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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
clearFilterEnabled
public CorsPolicy.Builder 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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
getFilterEnabledBuilder
public RuntimeFractionalPercent.Builder 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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
getFilterEnabledOrBuilder
public RuntimeFractionalPercentOrBuilder 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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
- Specified by:
getFilterEnabledOrBuilder
in interfaceCorsPolicyOrBuilder
-
getFilterEnabledFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder> getFilterEnabledFieldBuilder()
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_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;
-
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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
- Specified by:
hasShadowEnabled
in interfaceCorsPolicyOrBuilder
- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
public RuntimeFractionalPercent 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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
- Specified by:
getShadowEnabled
in interfaceCorsPolicyOrBuilder
- Returns:
- The shadowEnabled.
-
setShadowEnabled
public CorsPolicy.Builder setShadowEnabled(RuntimeFractionalPercent value)
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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
setShadowEnabled
public CorsPolicy.Builder setShadowEnabled(RuntimeFractionalPercent.Builder builderForValue)
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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
mergeShadowEnabled
public CorsPolicy.Builder mergeShadowEnabled(RuntimeFractionalPercent value)
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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
clearShadowEnabled
public CorsPolicy.Builder 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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
getShadowEnabledBuilder
public RuntimeFractionalPercent.Builder 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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
getShadowEnabledOrBuilder
public RuntimeFractionalPercentOrBuilder 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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
- Specified by:
getShadowEnabledOrBuilder
in interfaceCorsPolicyOrBuilder
-
getShadowEnabledFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder,RuntimeFractionalPercentOrBuilder> getShadowEnabledFieldBuilder()
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_v3_api_field_config.core.v3.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.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;
-
hasAllowPrivateNetworkAccess
public boolean hasAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
- Specified by:
hasAllowPrivateNetworkAccess
in interfaceCorsPolicyOrBuilder
- Returns:
- Whether the allowPrivateNetworkAccess field is set.
-
getAllowPrivateNetworkAccess
public com.google.protobuf.BoolValue getAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
- Specified by:
getAllowPrivateNetworkAccess
in interfaceCorsPolicyOrBuilder
- Returns:
- The allowPrivateNetworkAccess.
-
setAllowPrivateNetworkAccess
public CorsPolicy.Builder setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
setAllowPrivateNetworkAccess
public CorsPolicy.Builder setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue.Builder builderForValue)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
mergeAllowPrivateNetworkAccess
public CorsPolicy.Builder mergeAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value)
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
clearAllowPrivateNetworkAccess
public CorsPolicy.Builder clearAllowPrivateNetworkAccess()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
getAllowPrivateNetworkAccessBuilder
public com.google.protobuf.BoolValue.Builder getAllowPrivateNetworkAccessBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
getAllowPrivateNetworkAccessOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowPrivateNetworkAccessOrBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
- Specified by:
getAllowPrivateNetworkAccessOrBuilder
in interfaceCorsPolicyOrBuilder
-
getAllowPrivateNetworkAccessFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> getAllowPrivateNetworkAccessFieldBuilder()
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;
-
hasForwardNotMatchingPreflights
public boolean hasForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
- Specified by:
hasForwardNotMatchingPreflights
in interfaceCorsPolicyOrBuilder
- Returns:
- Whether the forwardNotMatchingPreflights field is set.
-
getForwardNotMatchingPreflights
public com.google.protobuf.BoolValue getForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
- Specified by:
getForwardNotMatchingPreflights
in interfaceCorsPolicyOrBuilder
- Returns:
- The forwardNotMatchingPreflights.
-
setForwardNotMatchingPreflights
public CorsPolicy.Builder setForwardNotMatchingPreflights(com.google.protobuf.BoolValue value)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
setForwardNotMatchingPreflights
public CorsPolicy.Builder setForwardNotMatchingPreflights(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
mergeForwardNotMatchingPreflights
public CorsPolicy.Builder mergeForwardNotMatchingPreflights(com.google.protobuf.BoolValue value)
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
clearForwardNotMatchingPreflights
public CorsPolicy.Builder clearForwardNotMatchingPreflights()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
getForwardNotMatchingPreflightsBuilder
public com.google.protobuf.BoolValue.Builder getForwardNotMatchingPreflightsBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
getForwardNotMatchingPreflightsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getForwardNotMatchingPreflightsOrBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
- Specified by:
getForwardNotMatchingPreflightsOrBuilder
in interfaceCorsPolicyOrBuilder
-
getForwardNotMatchingPreflightsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> getForwardNotMatchingPreflightsFieldBuilder()
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;
-
-