public final class CorsPolicy extends com.google.protobuf.GeneratedMessageV3 implements CorsPolicyOrBuilder
[#comment:next free field: 11]Protobuf type
envoy.api.v2.route.CorsPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
CorsPolicy.Builder
[#comment:next free field: 11]
Protobuf type
envoy.api.v2.route.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| 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_FIELD_NUMBER |
static int |
ALLOW_ORIGIN_REGEX_FIELD_NUMBER |
static int |
ENABLED_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.
|
String |
getAllowOrigin(int index)
Specifies the origins that will be allowed to do CORS requests.
|
com.google.protobuf.ByteString |
getAllowOriginBytes(int index)
Specifies the origins that will be allowed to do CORS requests.
|
int |
getAllowOriginCount()
Specifies the origins that will be allowed to do CORS requests.
|
com.google.protobuf.ProtocolStringList |
getAllowOriginList()
Specifies the origins that will be allowed to do CORS requests.
|
String |
getAllowOriginRegex(int index)
Specifies regex patterns that match allowed origins.
|
com.google.protobuf.ByteString |
getAllowOriginRegexBytes(int index)
Specifies regex patterns that match allowed origins.
|
int |
getAllowOriginRegexCount()
Specifies regex patterns that match allowed origins.
|
com.google.protobuf.ProtocolStringList |
getAllowOriginRegexList()
Specifies regex patterns that match allowed origins.
|
static CorsPolicy |
getDefaultInstance() |
CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.BoolValue |
getEnabled()
Deprecated.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Deprecated.
|
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 if CORS is enabled.
|
RuntimeFractionalPercentOrBuilder |
getFilterEnabledOrBuilder()
Specifies if CORS 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 if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
RuntimeFractionalPercentOrBuilder |
getShadowEnabledOrBuilder()
Specifies if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowCredentials()
Specifies whether the resource allows credentials.
|
boolean |
hasEnabled()
Deprecated.
|
boolean |
hasFilterEnabled()
Specifies if CORS is enabled.
|
int |
hashCode() |
boolean |
hasShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
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) |
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, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ALLOW_ORIGIN_FIELD_NUMBER
public static final int ALLOW_ORIGIN_REGEX_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 ENABLED_FIELD_NUMBER
public static final int FILTER_ENABLED_FIELD_NUMBER
public static final int SHADOW_ENABLED_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
getEnabledSpecifierCase in interface CorsPolicyOrBuilderpublic com.google.protobuf.ProtocolStringList getAllowOriginList()
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;getAllowOriginList in interface CorsPolicyOrBuilderpublic int getAllowOriginCount()
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;getAllowOriginCount in interface CorsPolicyOrBuilderpublic String getAllowOrigin(int index)
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;getAllowOrigin in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowOriginBytes(int index)
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;getAllowOriginBytes in interface CorsPolicyOrBuilderpublic com.google.protobuf.ProtocolStringList getAllowOriginRegexList()
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }getAllowOriginRegexList in interface CorsPolicyOrBuilderpublic int getAllowOriginRegexCount()
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }getAllowOriginRegexCount in interface CorsPolicyOrBuilderpublic String getAllowOriginRegex(int index)
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }getAllowOriginRegex in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowOriginRegexBytes(int index)
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }getAllowOriginRegexBytes in interface CorsPolicyOrBuilderpublic String getAllowMethods()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;getAllowMethods in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowMethodsBytes()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;getAllowMethodsBytes in interface CorsPolicyOrBuilderpublic String getAllowHeaders()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;getAllowHeaders in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowHeadersBytes()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;getAllowHeadersBytes in interface CorsPolicyOrBuilderpublic String getExposeHeaders()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;getExposeHeaders in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getExposeHeadersBytes()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;getExposeHeadersBytes in interface CorsPolicyOrBuilderpublic String getMaxAge()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;getMaxAge in interface CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getMaxAgeBytes()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;getMaxAgeBytes in interface CorsPolicyOrBuilderpublic boolean hasAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;hasAllowCredentials in interface CorsPolicyOrBuilderpublic com.google.protobuf.BoolValue getAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;getAllowCredentials in interface CorsPolicyOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;getAllowCredentialsOrBuilder in interface CorsPolicyOrBuilder@Deprecated public boolean hasEnabled()
Specifies if CORS 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];hasEnabled in interface CorsPolicyOrBuilder@Deprecated public com.google.protobuf.BoolValue getEnabled()
Specifies if CORS 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];getEnabled in interface CorsPolicyOrBuilder@Deprecated public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Specifies if CORS 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];getEnabledOrBuilder in interface CorsPolicyOrBuilderpublic boolean hasFilterEnabled()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;hasFilterEnabled in interface CorsPolicyOrBuilderpublic RuntimeFractionalPercent getFilterEnabled()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;getFilterEnabled in interface CorsPolicyOrBuilderpublic RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;getFilterEnabledOrBuilder in interface CorsPolicyOrBuilderpublic boolean hasShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;hasShadowEnabled in interface CorsPolicyOrBuilderpublic RuntimeFractionalPercent getShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;getShadowEnabled in interface CorsPolicyOrBuilderpublic RuntimeFractionalPercentOrBuilder getShadowEnabledOrBuilder()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;getShadowEnabledOrBuilder in interface CorsPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CorsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CorsPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static CorsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CorsPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CorsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CorsPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CorsPolicy.Builder newBuilder()
public static CorsPolicy.Builder newBuilder(CorsPolicy prototype)
public CorsPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CorsPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CorsPolicy getDefaultInstance()
public static com.google.protobuf.Parser<CorsPolicy> parser()
public com.google.protobuf.Parser<CorsPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.