public final class CorsPolicy extends com.google.protobuf.GeneratedMessageV3 implements CorsPolicyOrBuilder
[#next-free-field: 12]Protobuf type
envoy.config.route.v3.CorsPolicy
Modifier and Type | Class and Description |
---|---|
static class |
CorsPolicy.Builder
[#next-free-field: 12]
Protobuf type
envoy.config.route.v3.CorsPolicy |
static class |
CorsPolicy.EnabledSpecifierCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_CREDENTIALS_FIELD_NUMBER |
static int |
ALLOW_HEADERS_FIELD_NUMBER |
static int |
ALLOW_METHODS_FIELD_NUMBER |
static int |
ALLOW_ORIGIN_STRING_MATCH_FIELD_NUMBER |
static int |
EXPOSE_HEADERS_FIELD_NUMBER |
static int |
FILTER_ENABLED_FIELD_NUMBER |
static int |
MAX_AGE_FIELD_NUMBER |
static int |
SHADOW_ENABLED_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
com.google.protobuf.BoolValue |
getAllowCredentials()
Specifies whether the resource allows credentials.
|
com.google.protobuf.BoolValueOrBuilder |
getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
|
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.
|
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.
|
int |
getAllowOriginStringMatchCount()
Specifies string patterns that match allowed origins.
|
List<StringMatcher> |
getAllowOriginStringMatchList()
Specifies string patterns that match allowed origins.
|
StringMatcherOrBuilder |
getAllowOriginStringMatchOrBuilder(int index)
Specifies string patterns that match allowed origins.
|
List<? extends StringMatcherOrBuilder> |
getAllowOriginStringMatchOrBuilderList()
Specifies string patterns that match allowed origins.
|
static CorsPolicy |
getDefaultInstance() |
CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
CorsPolicy.EnabledSpecifierCase |
getEnabledSpecifierCase() |
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.
|
RuntimeFractionalPercentOrBuilder |
getFilterEnabledOrBuilder()
Specifies the % of requests for which the CORS filter is enabled.
|
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.
|
com.google.protobuf.Parser<CorsPolicy> |
getParserForType() |
int |
getSerializedSize() |
RuntimeFractionalPercent |
getShadowEnabled()
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowCredentials()
Specifies whether the resource allows credentials.
|
boolean |
hasFilterEnabled()
Specifies the % of requests for which the CORS filter is enabled.
|
int |
hashCode() |
boolean |
hasShadowEnabled()
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not
enforced.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CorsPolicy.Builder |
newBuilder() |
static CorsPolicy.Builder |
newBuilder(CorsPolicy prototype) |
CorsPolicy.Builder |
newBuilderForType() |
protected CorsPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CorsPolicy |
parseDelimitedFrom(InputStream input) |
static CorsPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CorsPolicy |
parseFrom(byte[] data) |
static CorsPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CorsPolicy |
parseFrom(ByteBuffer data) |
static CorsPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CorsPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static CorsPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CorsPolicy |
parseFrom(InputStream input) |
static CorsPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CorsPolicy> |
parser() |
CorsPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int ALLOW_ORIGIN_STRING_MATCH_FIELD_NUMBER
public static final int ALLOW_METHODS_FIELD_NUMBER
public static final int ALLOW_HEADERS_FIELD_NUMBER
public static final int EXPOSE_HEADERS_FIELD_NUMBER
public static final int MAX_AGE_FIELD_NUMBER
public static final int ALLOW_CREDENTIALS_FIELD_NUMBER
public static final int FILTER_ENABLED_FIELD_NUMBER
public static final int SHADOW_ENABLED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
getEnabledSpecifierCase
in interface CorsPolicyOrBuilder
public 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;
getAllowOriginStringMatchList
in interface CorsPolicyOrBuilder
public 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;
getAllowOriginStringMatchOrBuilderList
in interface CorsPolicyOrBuilder
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;
getAllowOriginStringMatchCount
in interface CorsPolicyOrBuilder
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;
getAllowOriginStringMatch
in interface CorsPolicyOrBuilder
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;
getAllowOriginStringMatchOrBuilder
in interface CorsPolicyOrBuilder
public String getAllowMethods()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;
getAllowMethods
in interface CorsPolicyOrBuilder
public com.google.protobuf.ByteString getAllowMethodsBytes()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;
getAllowMethodsBytes
in interface CorsPolicyOrBuilder
public String getAllowHeaders()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;
getAllowHeaders
in interface CorsPolicyOrBuilder
public com.google.protobuf.ByteString getAllowHeadersBytes()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;
getAllowHeadersBytes
in interface CorsPolicyOrBuilder
public String getExposeHeaders()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;
getExposeHeaders
in interface CorsPolicyOrBuilder
public com.google.protobuf.ByteString getExposeHeadersBytes()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;
getExposeHeadersBytes
in interface CorsPolicyOrBuilder
public String getMaxAge()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;
getMaxAge
in interface CorsPolicyOrBuilder
public com.google.protobuf.ByteString getMaxAgeBytes()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;
getMaxAgeBytes
in interface CorsPolicyOrBuilder
public boolean hasAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
hasAllowCredentials
in interface CorsPolicyOrBuilder
public com.google.protobuf.BoolValue getAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
getAllowCredentials
in interface CorsPolicyOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
getAllowCredentialsOrBuilder
in interface CorsPolicyOrBuilder
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_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;
hasFilterEnabled
in interface CorsPolicyOrBuilder
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_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;
getFilterEnabled
in interface CorsPolicyOrBuilder
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_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
in interface CorsPolicyOrBuilder
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_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;
hasShadowEnabled
in interface CorsPolicyOrBuilder
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_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;
getShadowEnabled
in interface CorsPolicyOrBuilder
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_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
in interface CorsPolicyOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static CorsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CorsPolicy parseFrom(InputStream input) throws IOException
IOException
public static CorsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CorsPolicy parseDelimitedFrom(InputStream input) throws IOException
IOException
public static CorsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public CorsPolicy.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static CorsPolicy.Builder newBuilder()
public static CorsPolicy.Builder newBuilder(CorsPolicy prototype)
public CorsPolicy.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CorsPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static CorsPolicy getDefaultInstance()
public static com.google.protobuf.Parser<CorsPolicy> parser()
public com.google.protobuf.Parser<CorsPolicy> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018–2021 The Envoy Project. All rights reserved.