Package io.envoyproxy.envoy.api.v2.route
Class CorsPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.api.v2.route.CorsPolicy
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CorsPolicyOrBuilder,Serializable
public final class CorsPolicy
extends com.google.protobuf.GeneratedMessageV3
implements CorsPolicyOrBuilder
[#next-free-field: 12]Protobuf type
envoy.api.v2.route.CorsPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 12]static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.BoolValueSpecifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuilderSpecifies whether the resource allows credentials.Specifies the content for the *access-control-allow-headers* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-allow-headers* header.Specifies the content for the *access-control-allow-methods* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-allow-methods* header.getAllowOrigin(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ByteStringgetAllowOriginBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ProtocolStringListDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.getAllowOriginRegex(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.com.google.protobuf.ByteStringgetAllowOriginRegexBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.com.google.protobuf.ProtocolStringListDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.getAllowOriginStringMatch(int index) Specifies string patterns that match allowed origins.intSpecifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.getAllowOriginStringMatchOrBuilder(int index) Specifies string patterns that match allowed origins.List<? extends StringMatcherOrBuilder>Specifies string patterns that match allowed origins.static CorsPolicystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.BoolValueDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.com.google.protobuf.BoolValueOrBuilderDeprecated.Specifies the content for the *access-control-expose-headers* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-expose-headers* header.Specifies the % of requests for which the CORS filter is enabled.Specifies the % of requests for which the CORS filter is enabled.Specifies the content for the *access-control-max-age* header.com.google.protobuf.ByteStringSpecifies the content for the *access-control-max-age* header.com.google.protobuf.Parser<CorsPolicy>intSpecifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.booleanSpecifies whether the resource allows credentials.booleanDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.booleanSpecifies the % of requests for which the CORS filter is enabled.inthashCode()booleanSpecifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CorsPolicy.Builderstatic CorsPolicy.BuildernewBuilder(CorsPolicy prototype) protected CorsPolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CorsPolicyparseDelimitedFrom(InputStream input) static CorsPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CorsPolicyparseFrom(byte[] data) static CorsPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CorsPolicyparseFrom(com.google.protobuf.ByteString data) static CorsPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CorsPolicyparseFrom(com.google.protobuf.CodedInputStream input) static CorsPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CorsPolicyparseFrom(InputStream input) static CorsPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CorsPolicyparseFrom(ByteBuffer data) static CorsPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CorsPolicy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ALLOW_ORIGIN_FIELD_NUMBER
public static final int ALLOW_ORIGIN_FIELD_NUMBER- See Also:
-
ALLOW_ORIGIN_REGEX_FIELD_NUMBER
public static final int ALLOW_ORIGIN_REGEX_FIELD_NUMBER- See Also:
-
ALLOW_ORIGIN_STRING_MATCH_FIELD_NUMBER
public static final int ALLOW_ORIGIN_STRING_MATCH_FIELD_NUMBER- See Also:
-
ALLOW_METHODS_FIELD_NUMBER
public static final int ALLOW_METHODS_FIELD_NUMBER- See Also:
-
ALLOW_HEADERS_FIELD_NUMBER
public static final int ALLOW_HEADERS_FIELD_NUMBER- See Also:
-
EXPOSE_HEADERS_FIELD_NUMBER
public static final int EXPOSE_HEADERS_FIELD_NUMBER- See Also:
-
MAX_AGE_FIELD_NUMBER
public static final int MAX_AGE_FIELD_NUMBER- See Also:
-
ALLOW_CREDENTIALS_FIELD_NUMBER
public static final int ALLOW_CREDENTIALS_FIELD_NUMBER- See Also:
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER- See Also:
-
FILTER_ENABLED_FIELD_NUMBER
public static final int FILTER_ENABLED_FIELD_NUMBER- See Also:
-
SHADOW_ENABLED_FIELD_NUMBER
public static final int SHADOW_ENABLED_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getEnabledSpecifierCase
- Specified by:
getEnabledSpecifierCasein interfaceCorsPolicyOrBuilder
-
getAllowOriginList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginListin interfaceCorsPolicyOrBuilder- Returns:
- A list containing the allowOrigin.
-
getAllowOriginCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginCountin interfaceCorsPolicyOrBuilder- Returns:
- The count of allowOrigin.
-
getAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowOrigin at the given index.
-
getAllowOriginBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getAllowOriginBytesin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOrigin at the given index.
-
getAllowOriginRegexList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexListin interfaceCorsPolicyOrBuilder- Returns:
- A list containing the allowOriginRegex.
-
getAllowOriginRegexCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexCountin interfaceCorsPolicyOrBuilder- Returns:
- The count of allowOriginRegex.
-
getAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowOriginRegex at the given index.
-
getAllowOriginRegexBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getAllowOriginRegexBytesin interfaceCorsPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOriginRegex at the given index.
-
getAllowOriginStringMatchList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchListin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilderList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderListin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchCount
public int getAllowOriginStringMatchCount()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchCountin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderin interfaceCorsPolicyOrBuilder
-
getAllowMethods
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Specified by:
getAllowMethodsin interfaceCorsPolicyOrBuilder- Returns:
- The allowMethods.
-
getAllowMethodsBytes
public com.google.protobuf.ByteString getAllowMethodsBytes()Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Specified by:
getAllowMethodsBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowMethods.
-
getAllowHeaders
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Specified by:
getAllowHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The allowHeaders.
-
getAllowHeadersBytes
public com.google.protobuf.ByteString getAllowHeadersBytes()Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Specified by:
getAllowHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowHeaders.
-
getExposeHeaders
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Specified by:
getExposeHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The exposeHeaders.
-
getExposeHeadersBytes
public com.google.protobuf.ByteString getExposeHeadersBytes()Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Specified by:
getExposeHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for exposeHeaders.
-
getMaxAge
Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Specified by:
getMaxAgein interfaceCorsPolicyOrBuilder- Returns:
- The maxAge.
-
getMaxAgeBytes
public com.google.protobuf.ByteString getMaxAgeBytes()Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Specified by:
getMaxAgeBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for maxAge.
-
hasAllowCredentials
public boolean hasAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
hasAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- Whether the allowCredentials field is set.
-
getAllowCredentials
public com.google.protobuf.BoolValue getAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- The allowCredentials.
-
getAllowCredentialsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsOrBuilderin interfaceCorsPolicyOrBuilder
-
hasEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
hasEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The enabled.
-
getEnabledOrBuilder
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasFilterEnabled
public boolean hasFilterEnabled()Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
hasFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The filterEnabled.
-
getFilterEnabledOrBuilder
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasShadowEnabled
public boolean hasShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
hasShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The shadowEnabled.
-
getShadowEnabledOrBuilder
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* to determine if it's valid but will not enforce any policies.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CorsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CorsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CorsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CorsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CorsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CorsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CorsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CorsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CorsPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-