public static final class CorsPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder> implements CorsPolicyOrBuilder
The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard.Protobuf type
google.cloud.compute.v1.CorsPolicy| Modifier and Type | Method and Description |
|---|---|
CorsPolicy.Builder |
addAllAllowHeaders(Iterable<String> values)
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy.Builder |
addAllAllowMethods(Iterable<String> values)
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy.Builder |
addAllAllowOriginRegexes(Iterable<String> values)
Specifies a regular expression that matches allowed origins.
|
CorsPolicy.Builder |
addAllAllowOrigins(Iterable<String> values)
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy.Builder |
addAllExposeHeaders(Iterable<String> values)
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy.Builder |
addAllowHeaders(String value)
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy.Builder |
addAllowHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy.Builder |
addAllowMethods(String value)
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy.Builder |
addAllowMethodsBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy.Builder |
addAllowOriginRegexes(String value)
Specifies a regular expression that matches allowed origins.
|
CorsPolicy.Builder |
addAllowOriginRegexesBytes(com.google.protobuf.ByteString value)
Specifies a regular expression that matches allowed origins.
|
CorsPolicy.Builder |
addAllowOrigins(String value)
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy.Builder |
addAllowOriginsBytes(com.google.protobuf.ByteString value)
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy.Builder |
addExposeHeaders(String value)
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy.Builder |
addExposeHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CorsPolicy |
build() |
CorsPolicy |
buildPartial() |
CorsPolicy.Builder |
clear() |
CorsPolicy.Builder |
clearAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
|
CorsPolicy.Builder |
clearAllowHeaders()
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy.Builder |
clearAllowMethods()
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy.Builder |
clearAllowOriginRegexes()
Specifies a regular expression that matches allowed origins.
|
CorsPolicy.Builder |
clearAllowOrigins()
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy.Builder |
clearDisabled()
If true, the setting specifies the CORS policy is disabled.
|
CorsPolicy.Builder |
clearExposeHeaders()
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CorsPolicy.Builder |
clearMaxAge()
Specifies how long results of a preflight request can be cached in seconds.
|
CorsPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CorsPolicy.Builder |
clone() |
boolean |
getAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
|
String |
getAllowHeaders(int index)
Specifies the content for the Access-Control-Allow-Headers header.
|
com.google.protobuf.ByteString |
getAllowHeadersBytes(int index)
Specifies the content for the Access-Control-Allow-Headers header.
|
int |
getAllowHeadersCount()
Specifies the content for the Access-Control-Allow-Headers header.
|
com.google.protobuf.ProtocolStringList |
getAllowHeadersList()
Specifies the content for the Access-Control-Allow-Headers header.
|
String |
getAllowMethods(int index)
Specifies the content for the Access-Control-Allow-Methods header.
|
com.google.protobuf.ByteString |
getAllowMethodsBytes(int index)
Specifies the content for the Access-Control-Allow-Methods header.
|
int |
getAllowMethodsCount()
Specifies the content for the Access-Control-Allow-Methods header.
|
com.google.protobuf.ProtocolStringList |
getAllowMethodsList()
Specifies the content for the Access-Control-Allow-Methods header.
|
String |
getAllowOriginRegexes(int index)
Specifies a regular expression that matches allowed origins.
|
com.google.protobuf.ByteString |
getAllowOriginRegexesBytes(int index)
Specifies a regular expression that matches allowed origins.
|
int |
getAllowOriginRegexesCount()
Specifies a regular expression that matches allowed origins.
|
com.google.protobuf.ProtocolStringList |
getAllowOriginRegexesList()
Specifies a regular expression that matches allowed origins.
|
String |
getAllowOrigins(int index)
Specifies the list of origins that is allowed to do CORS requests.
|
com.google.protobuf.ByteString |
getAllowOriginsBytes(int index)
Specifies the list of origins that is allowed to do CORS requests.
|
int |
getAllowOriginsCount()
Specifies the list of origins that is allowed to do CORS requests.
|
com.google.protobuf.ProtocolStringList |
getAllowOriginsList()
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisabled()
If true, the setting specifies the CORS policy is disabled.
|
String |
getExposeHeaders(int index)
Specifies the content for the Access-Control-Expose-Headers header.
|
com.google.protobuf.ByteString |
getExposeHeadersBytes(int index)
Specifies the content for the Access-Control-Expose-Headers header.
|
int |
getExposeHeadersCount()
Specifies the content for the Access-Control-Expose-Headers header.
|
com.google.protobuf.ProtocolStringList |
getExposeHeadersList()
Specifies the content for the Access-Control-Expose-Headers header.
|
int |
getMaxAge()
Specifies how long results of a preflight request can be cached in seconds.
|
boolean |
hasAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
|
boolean |
hasDisabled()
If true, the setting specifies the CORS policy is disabled.
|
boolean |
hasMaxAge()
Specifies how long results of a preflight request can be cached in seconds.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CorsPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CorsPolicy.Builder |
mergeFrom(CorsPolicy other) |
CorsPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
CorsPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CorsPolicy.Builder |
setAllowCredentials(boolean value)
In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
|
CorsPolicy.Builder |
setAllowHeaders(int index,
String value)
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy.Builder |
setAllowMethods(int index,
String value)
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy.Builder |
setAllowOriginRegexes(int index,
String value)
Specifies a regular expression that matches allowed origins.
|
CorsPolicy.Builder |
setAllowOrigins(int index,
String value)
Specifies the list of origins that is allowed to do CORS requests.
|
CorsPolicy.Builder |
setDisabled(boolean value)
If true, the setting specifies the CORS policy is disabled.
|
CorsPolicy.Builder |
setExposeHeaders(int index,
String value)
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CorsPolicy.Builder |
setMaxAge(int value)
Specifies how long results of a preflight request can be cached in seconds.
|
CorsPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CorsPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CorsPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CorsPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CorsPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>public CorsPolicy.Builder mergeFrom(CorsPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>IOExceptionpublic boolean hasAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
optional bool allow_credentials = 481263366;hasAllowCredentials in interface CorsPolicyOrBuilderpublic boolean getAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
optional bool allow_credentials = 481263366;getAllowCredentials in interface CorsPolicyOrBuilderpublic CorsPolicy.Builder setAllowCredentials(boolean value)
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
optional bool allow_credentials = 481263366;value - The allowCredentials to set.public CorsPolicy.Builder clearAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
optional bool allow_credentials = 481263366;public com.google.protobuf.ProtocolStringList getAllowHeadersList()
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;getAllowHeadersList in interface CorsPolicyOrBuilderpublic int getAllowHeadersCount()
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;getAllowHeadersCount in interface CorsPolicyOrBuilderpublic String getAllowHeaders(int index)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;getAllowHeaders in interface CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowHeadersBytes(int index)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;getAllowHeadersBytes in interface CorsPolicyOrBuilderindex - The index of the value to return.public CorsPolicy.Builder setAllowHeaders(int index, String value)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;index - The index to set the value at.value - The allowHeaders to set.public CorsPolicy.Builder addAllowHeaders(String value)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;value - The allowHeaders to add.public CorsPolicy.Builder addAllAllowHeaders(Iterable<String> values)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;values - The allowHeaders to add.public CorsPolicy.Builder clearAllowHeaders()
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;public CorsPolicy.Builder addAllowHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Allow-Headers header.
repeated string allow_headers = 45179024;value - The bytes of the allowHeaders to add.public com.google.protobuf.ProtocolStringList getAllowMethodsList()
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;getAllowMethodsList in interface CorsPolicyOrBuilderpublic int getAllowMethodsCount()
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;getAllowMethodsCount in interface CorsPolicyOrBuilderpublic String getAllowMethods(int index)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;getAllowMethods in interface CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowMethodsBytes(int index)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;getAllowMethodsBytes in interface CorsPolicyOrBuilderindex - The index of the value to return.public CorsPolicy.Builder setAllowMethods(int index, String value)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;index - The index to set the value at.value - The allowMethods to set.public CorsPolicy.Builder addAllowMethods(String value)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;value - The allowMethods to add.public CorsPolicy.Builder addAllAllowMethods(Iterable<String> values)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;values - The allowMethods to add.public CorsPolicy.Builder clearAllowMethods()
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;public CorsPolicy.Builder addAllowMethodsBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Allow-Methods header.
repeated string allow_methods = 205405372;value - The bytes of the allowMethods to add.public com.google.protobuf.ProtocolStringList getAllowOriginRegexesList()
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;getAllowOriginRegexesList in interface CorsPolicyOrBuilderpublic int getAllowOriginRegexesCount()
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;getAllowOriginRegexesCount in interface CorsPolicyOrBuilderpublic String getAllowOriginRegexes(int index)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;getAllowOriginRegexes in interface CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowOriginRegexesBytes(int index)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;getAllowOriginRegexesBytes in interface CorsPolicyOrBuilderindex - The index of the value to return.public CorsPolicy.Builder setAllowOriginRegexes(int index, String value)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;index - The index to set the value at.value - The allowOriginRegexes to set.public CorsPolicy.Builder addAllowOriginRegexes(String value)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;value - The allowOriginRegexes to add.public CorsPolicy.Builder addAllAllowOriginRegexes(Iterable<String> values)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;values - The allowOriginRegexes to add.public CorsPolicy.Builder clearAllowOriginRegexes()
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;public CorsPolicy.Builder addAllowOriginRegexesBytes(com.google.protobuf.ByteString value)
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
repeated string allow_origin_regexes = 215385810;value - The bytes of the allowOriginRegexes to add.public com.google.protobuf.ProtocolStringList getAllowOriginsList()
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;getAllowOriginsList in interface CorsPolicyOrBuilderpublic int getAllowOriginsCount()
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;getAllowOriginsCount in interface CorsPolicyOrBuilderpublic String getAllowOrigins(int index)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;getAllowOrigins in interface CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowOriginsBytes(int index)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;getAllowOriginsBytes in interface CorsPolicyOrBuilderindex - The index of the value to return.public CorsPolicy.Builder setAllowOrigins(int index, String value)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;index - The index to set the value at.value - The allowOrigins to set.public CorsPolicy.Builder addAllowOrigins(String value)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;value - The allowOrigins to add.public CorsPolicy.Builder addAllAllowOrigins(Iterable<String> values)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;values - The allowOrigins to add.public CorsPolicy.Builder clearAllowOrigins()
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;public CorsPolicy.Builder addAllowOriginsBytes(com.google.protobuf.ByteString value)
Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
repeated string allow_origins = 194914071;value - The bytes of the allowOrigins to add.public boolean hasDisabled()
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
optional bool disabled = 270940796;hasDisabled in interface CorsPolicyOrBuilderpublic boolean getDisabled()
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
optional bool disabled = 270940796;getDisabled in interface CorsPolicyOrBuilderpublic CorsPolicy.Builder setDisabled(boolean value)
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
optional bool disabled = 270940796;value - The disabled to set.public CorsPolicy.Builder clearDisabled()
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
optional bool disabled = 270940796;public com.google.protobuf.ProtocolStringList getExposeHeadersList()
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;getExposeHeadersList in interface CorsPolicyOrBuilderpublic int getExposeHeadersCount()
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;getExposeHeadersCount in interface CorsPolicyOrBuilderpublic String getExposeHeaders(int index)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;getExposeHeaders in interface CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExposeHeadersBytes(int index)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;getExposeHeadersBytes in interface CorsPolicyOrBuilderindex - The index of the value to return.public CorsPolicy.Builder setExposeHeaders(int index, String value)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;index - The index to set the value at.value - The exposeHeaders to set.public CorsPolicy.Builder addExposeHeaders(String value)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;value - The exposeHeaders to add.public CorsPolicy.Builder addAllExposeHeaders(Iterable<String> values)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;values - The exposeHeaders to add.public CorsPolicy.Builder clearExposeHeaders()
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;public CorsPolicy.Builder addExposeHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the Access-Control-Expose-Headers header.
repeated string expose_headers = 247604747;value - The bytes of the exposeHeaders to add.public boolean hasMaxAge()
Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
optional int32 max_age = 307559332;hasMaxAge in interface CorsPolicyOrBuilderpublic int getMaxAge()
Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
optional int32 max_age = 307559332;getMaxAge in interface CorsPolicyOrBuilderpublic CorsPolicy.Builder setMaxAge(int value)
Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
optional int32 max_age = 307559332;value - The maxAge to set.public CorsPolicy.Builder clearMaxAge()
Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
optional int32 max_age = 307559332;public final CorsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>public final CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>Copyright © 2023 Google LLC. All rights reserved.