Class CorsPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
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
,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 type
envoy.config.route.v3.CorsPolicy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.BoolValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> private Object
private Object
private List
<StringMatcher> private com.google.protobuf.RepeatedFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> private com.google.protobuf.BoolValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> private int
private Object
private int
private Object
private com.google.protobuf.SingleFieldBuilder
<RuntimeFractionalPercent, RuntimeFractionalPercent.Builder, RuntimeFractionalPercentOrBuilder> private com.google.protobuf.BoolValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> private Object
private RuntimeFractionalPercent
private com.google.protobuf.SingleFieldBuilder
<RuntimeFractionalPercent, RuntimeFractionalPercent.Builder, RuntimeFractionalPercentOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowOriginStringMatch
(Iterable<? extends StringMatcher> values) Specifies string patterns that match allowed origins.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.build()
private void
buildPartial0
(CorsPolicy result) private void
buildPartialOneofs
(CorsPolicy result) private void
buildPartialRepeatedFields
(CorsPolicy result) 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.Specifies string patterns that match allowed origins.Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.Specifies the content for the ``access-control-expose-headers`` header.Specifies the % of requests for which the CORS filter is enabled.Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.Specifies 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.private void
com.google.protobuf.BoolValue
Specifies whether the resource allows credentials.com.google.protobuf.BoolValue.Builder
Specifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuilder
Specifies whether the resource allows credentials.Specifies the content for the ``access-control-allow-headers`` header.com.google.protobuf.ByteString
Specifies the content for the ``access-control-allow-headers`` header.Specifies the content for the ``access-control-allow-methods`` header.com.google.protobuf.ByteString
Specifies the content for the ``access-control-allow-methods`` header.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.int
Specifies 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.com.google.protobuf.BoolValue
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
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
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Specifies the content for the ``access-control-expose-headers`` header.com.google.protobuf.ByteString
Specifies 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.com.google.protobuf.BoolValue
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValue.Builder
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValueOrBuilder
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.Specifies the content for the ``access-control-max-age`` header.com.google.protobuf.ByteString
Specifies 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.boolean
Specifies whether the resource allows credentials.boolean
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.boolean
Specifies the % of requests for which the CORS filter is enabled.boolean
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.boolean
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> Specifies whether the resource allows credentials.private com.google.protobuf.RepeatedFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<RuntimeFractionalPercent, RuntimeFractionalPercent.Builder, RuntimeFractionalPercentOrBuilder> Specifies the % of requests for which the CORS filter is enabled.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.private com.google.protobuf.SingleFieldBuilder
<RuntimeFractionalPercent, RuntimeFractionalPercent.Builder, RuntimeFractionalPercentOrBuilder> Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.final boolean
private void
mergeAllowCredentials
(com.google.protobuf.BoolValue value) Specifies whether the resource allows credentials.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.Specifies the % of requests for which the CORS filter is enabled.mergeForwardNotMatchingPreflights
(com.google.protobuf.BoolValue value) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.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.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.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.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.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.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.setForwardNotMatchingPreflights
(com.google.protobuf.BoolValue value) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.setForwardNotMatchingPreflights
(com.google.protobuf.BoolValue.Builder builderForValue) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.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.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.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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
enabledSpecifierCase_
private int enabledSpecifierCase_ -
enabledSpecifier_
-
bitField0_
private int bitField0_ -
allowOriginStringMatch_
-
allowOriginStringMatchBuilder_
private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder, allowOriginStringMatchBuilder_StringMatcherOrBuilder> -
allowMethods_
-
allowHeaders_
-
exposeHeaders_
-
maxAge_
-
allowCredentials_
private com.google.protobuf.BoolValue allowCredentials_ -
allowCredentialsBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, allowCredentialsBuilder_com.google.protobuf.BoolValueOrBuilder> -
filterEnabledBuilder_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder, filterEnabledBuilder_RuntimeFractionalPercentOrBuilder> -
shadowEnabled_
-
shadowEnabledBuilder_
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder, shadowEnabledBuilder_RuntimeFractionalPercentOrBuilder> -
allowPrivateNetworkAccess_
private com.google.protobuf.BoolValue allowPrivateNetworkAccess_ -
allowPrivateNetworkAccessBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, allowPrivateNetworkAccessBuilder_com.google.protobuf.BoolValueOrBuilder> -
forwardNotMatchingPreflights_
private com.google.protobuf.BoolValue forwardNotMatchingPreflights_ -
forwardNotMatchingPreflightsBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, forwardNotMatchingPreflightsBuilder_com.google.protobuf.BoolValueOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
-
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 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:
IOException
-
getEnabledSpecifierCase
- Specified by:
getEnabledSpecifierCase
in interfaceCorsPolicyOrBuilder
-
clearEnabledSpecifier
-
ensureAllowOriginStringMatchIsMutable
private void ensureAllowOriginStringMatchIsMutable() -
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
-
internalGetAllowOriginStringMatchFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<StringMatcher,StringMatcher.Builder, internalGetAllowOriginStringMatchFieldBuilder()StringMatcherOrBuilder> -
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
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:
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
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:
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
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:
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
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:
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
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:
getAllowCredentialsOrBuilder
in interfaceCorsPolicyOrBuilder
-
internalGetAllowCredentialsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetAllowCredentialsFieldBuilder()com.google.protobuf.BoolValueOrBuilder> 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
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
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
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
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
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
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
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
-
internalGetFilterEnabledFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder, internalGetFilterEnabledFieldBuilder()RuntimeFractionalPercentOrBuilder> 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
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
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
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
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
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
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
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
-
internalGetShadowEnabledFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RuntimeFractionalPercent,RuntimeFractionalPercent.Builder, internalGetShadowEnabledFieldBuilder()RuntimeFractionalPercentOrBuilder> 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
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
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
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
-
internalGetAllowPrivateNetworkAccessFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetAllowPrivateNetworkAccessFieldBuilder()com.google.protobuf.BoolValueOrBuilder> 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
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
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
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
-
internalGetForwardNotMatchingPreflightsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetForwardNotMatchingPreflightsFieldBuilder()com.google.protobuf.BoolValueOrBuilder> 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;
-