public static final class RouteOuterClass.CorsPolicy extends com.google.protobuf.GeneratedMessageV3 implements RouteOuterClass.CorsPolicyOrBuilder
[#comment:next free field: 9]Protobuf type
envoy.api.v2.route.CorsPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
RouteOuterClass.CorsPolicy.Builder
[#comment:next free field: 9]
Protobuf type
envoy.api.v2.route.CorsPolicy |
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 |
MAX_AGE_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 RouteOuterClass.CorsPolicy |
getDefaultInstance() |
RouteOuterClass.CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.BoolValue |
getEnabled()
Specifies if CORS is enabled.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Specifies if CORS is enabled.
|
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.
|
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<RouteOuterClass.CorsPolicy> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowCredentials()
Specifies whether the resource allows credentials.
|
boolean |
hasEnabled()
Specifies if CORS is enabled.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteOuterClass.CorsPolicy.Builder |
newBuilder() |
static RouteOuterClass.CorsPolicy.Builder |
newBuilder(RouteOuterClass.CorsPolicy prototype) |
RouteOuterClass.CorsPolicy.Builder |
newBuilderForType() |
protected RouteOuterClass.CorsPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RouteOuterClass.CorsPolicy |
parseDelimitedFrom(InputStream input) |
static RouteOuterClass.CorsPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.CorsPolicy |
parseFrom(byte[] data) |
static RouteOuterClass.CorsPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.CorsPolicy |
parseFrom(ByteBuffer data) |
static RouteOuterClass.CorsPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static RouteOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.CorsPolicy |
parseFrom(InputStream input) |
static RouteOuterClass.CorsPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteOuterClass.CorsPolicy> |
parser() |
RouteOuterClass.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 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 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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.CorsPolicyOrBuilderpublic String getAllowMethods()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;getAllowMethods in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowMethodsBytes()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;getAllowMethodsBytes in interface RouteOuterClass.CorsPolicyOrBuilderpublic String getAllowHeaders()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;getAllowHeaders in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getAllowHeadersBytes()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;getAllowHeadersBytes in interface RouteOuterClass.CorsPolicyOrBuilderpublic String getExposeHeaders()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;getExposeHeaders in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getExposeHeadersBytes()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;getExposeHeadersBytes in interface RouteOuterClass.CorsPolicyOrBuilderpublic String getMaxAge()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;getMaxAge in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.ByteString getMaxAgeBytes()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;getMaxAgeBytes in interface RouteOuterClass.CorsPolicyOrBuilderpublic boolean hasAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;hasAllowCredentials in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.BoolValue getAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;getAllowCredentials in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;getAllowCredentialsOrBuilder in interface RouteOuterClass.CorsPolicyOrBuilderpublic boolean hasEnabled()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;hasEnabled in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.BoolValue getEnabled()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;getEnabled in interface RouteOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;getEnabledOrBuilder in interface RouteOuterClass.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 RouteOuterClass.CorsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteOuterClass.CorsPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.CorsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteOuterClass.CorsPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteOuterClass.CorsPolicy.Builder newBuilder()
public static RouteOuterClass.CorsPolicy.Builder newBuilder(RouteOuterClass.CorsPolicy prototype)
public RouteOuterClass.CorsPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteOuterClass.CorsPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteOuterClass.CorsPolicy getDefaultInstance()
public static com.google.protobuf.Parser<RouteOuterClass.CorsPolicy> parser()
public com.google.protobuf.Parser<RouteOuterClass.CorsPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteOuterClass.CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.