Class CorsPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
- io.envoyproxy.envoy.config.route.v3.CorsPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CorsPolicyOrBuilder,Cloneable
- Enclosing class:
- CorsPolicy
public static final class CorsPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder> implements CorsPolicyOrBuilder
[#next-free-field: 12]
Protobuf typeenvoy.config.route.v3.CorsPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CorsPolicy.BuilderaddAllAllowOriginStringMatch(Iterable<? extends StringMatcher> values)Specifies string patterns that match allowed origins.CorsPolicy.BuilderaddAllowOriginStringMatch(int index, StringMatcher value)Specifies string patterns that match allowed origins.CorsPolicy.BuilderaddAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)Specifies string patterns that match allowed origins.CorsPolicy.BuilderaddAllowOriginStringMatch(StringMatcher value)Specifies string patterns that match allowed origins.CorsPolicy.BuilderaddAllowOriginStringMatch(StringMatcher.Builder builderForValue)Specifies string patterns that match allowed origins.StringMatcher.BuilderaddAllowOriginStringMatchBuilder()Specifies string patterns that match allowed origins.StringMatcher.BuilderaddAllowOriginStringMatchBuilder(int index)Specifies string patterns that match allowed origins.CorsPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CorsPolicybuild()CorsPolicybuildPartial()CorsPolicy.Builderclear()CorsPolicy.BuilderclearAllowCredentials()Specifies whether the resource allows credentials.CorsPolicy.BuilderclearAllowHeaders()Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.BuilderclearAllowMethods()Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.BuilderclearAllowOriginStringMatch()Specifies string patterns that match allowed origins.CorsPolicy.BuilderclearEnabledSpecifier()CorsPolicy.BuilderclearExposeHeaders()Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CorsPolicy.BuilderclearFilterEnabled()Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.BuilderclearMaxAge()Specifies the content for the ``access-control-max-age`` header.CorsPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CorsPolicy.BuilderclearShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.Builderclone()com.google.protobuf.BoolValuegetAllowCredentials()Specifies whether the resource allows credentials.com.google.protobuf.BoolValue.BuildergetAllowCredentialsBuilder()Specifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuildergetAllowCredentialsOrBuilder()Specifies whether the resource allows credentials.StringgetAllowHeaders()Specifies the content for the ``access-control-allow-headers`` header.com.google.protobuf.ByteStringgetAllowHeadersBytes()Specifies the content for the ``access-control-allow-headers`` header.StringgetAllowMethods()Specifies the content for the ``access-control-allow-methods`` header.com.google.protobuf.ByteStringgetAllowMethodsBytes()Specifies the content for the ``access-control-allow-methods`` header.StringMatchergetAllowOriginStringMatch(int index)Specifies string patterns that match allowed origins.StringMatcher.BuildergetAllowOriginStringMatchBuilder(int index)Specifies string patterns that match allowed origins.List<StringMatcher.Builder>getAllowOriginStringMatchBuilderList()Specifies string patterns that match allowed origins.intgetAllowOriginStringMatchCount()Specifies string patterns that match allowed origins.List<StringMatcher>getAllowOriginStringMatchList()Specifies string patterns that match allowed origins.StringMatcherOrBuildergetAllowOriginStringMatchOrBuilder(int index)Specifies string patterns that match allowed origins.List<? extends StringMatcherOrBuilder>getAllowOriginStringMatchOrBuilderList()Specifies string patterns that match allowed origins.CorsPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CorsPolicy.EnabledSpecifierCasegetEnabledSpecifierCase()StringgetExposeHeaders()Specifies the content for the ``access-control-expose-headers`` header.com.google.protobuf.ByteStringgetExposeHeadersBytes()Specifies the content for the ``access-control-expose-headers`` header.RuntimeFractionalPercentgetFilterEnabled()Specifies the % of requests for which the CORS filter is enabled.RuntimeFractionalPercent.BuildergetFilterEnabledBuilder()Specifies the % of requests for which the CORS filter is enabled.RuntimeFractionalPercentOrBuildergetFilterEnabledOrBuilder()Specifies the % of requests for which the CORS filter is enabled.StringgetMaxAge()Specifies the content for the ``access-control-max-age`` header.com.google.protobuf.ByteStringgetMaxAgeBytes()Specifies the content for the ``access-control-max-age`` header.RuntimeFractionalPercentgetShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.RuntimeFractionalPercent.BuildergetShadowEnabledBuilder()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.RuntimeFractionalPercentOrBuildergetShadowEnabledOrBuilder()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.booleanhasAllowCredentials()Specifies whether the resource allows credentials.booleanhasFilterEnabled()Specifies the % of requests for which the CORS filter is enabled.booleanhasShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CorsPolicy.BuildermergeAllowCredentials(com.google.protobuf.BoolValue value)Specifies whether the resource allows credentials.CorsPolicy.BuildermergeFilterEnabled(RuntimeFractionalPercent value)Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CorsPolicy.BuildermergeFrom(com.google.protobuf.Message other)CorsPolicy.BuildermergeFrom(CorsPolicy other)CorsPolicy.BuildermergeShadowEnabled(RuntimeFractionalPercent value)Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CorsPolicy.BuilderremoveAllowOriginStringMatch(int index)Specifies string patterns that match allowed origins.CorsPolicy.BuildersetAllowCredentials(com.google.protobuf.BoolValue value)Specifies whether the resource allows credentials.CorsPolicy.BuildersetAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue)Specifies whether the resource allows credentials.CorsPolicy.BuildersetAllowHeaders(String value)Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.BuildersetAllowHeadersBytes(com.google.protobuf.ByteString value)Specifies the content for the ``access-control-allow-headers`` header.CorsPolicy.BuildersetAllowMethods(String value)Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.BuildersetAllowMethodsBytes(com.google.protobuf.ByteString value)Specifies the content for the ``access-control-allow-methods`` header.CorsPolicy.BuildersetAllowOriginStringMatch(int index, StringMatcher value)Specifies string patterns that match allowed origins.CorsPolicy.BuildersetAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)Specifies string patterns that match allowed origins.CorsPolicy.BuildersetExposeHeaders(String value)Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.BuildersetExposeHeadersBytes(com.google.protobuf.ByteString value)Specifies the content for the ``access-control-expose-headers`` header.CorsPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CorsPolicy.BuildersetFilterEnabled(RuntimeFractionalPercent value)Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.BuildersetFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)Specifies the % of requests for which the CORS filter is enabled.CorsPolicy.BuildersetMaxAge(String value)Specifies the content for the ``access-control-max-age`` header.CorsPolicy.BuildersetMaxAgeBytes(com.google.protobuf.ByteString value)Specifies the content for the ``access-control-max-age`` header.CorsPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CorsPolicy.BuildersetShadowEnabled(RuntimeFractionalPercent value)Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.BuildersetShadowEnabled(RuntimeFractionalPercent.Builder builderForValue)Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.CorsPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<CorsPolicy.Builder>
-
clear
public CorsPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
getDefaultInstanceForType
public CorsPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CorsPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CorsPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CorsPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
setField
public CorsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
clearField
public CorsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
clearOneof
public CorsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
setRepeatedField
public CorsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
addRepeatedField
public CorsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(CorsPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>- Throws:
IOException
-
getEnabledSpecifierCase
public CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
- Specified by:
getEnabledSpecifierCasein interfaceCorsPolicyOrBuilder
-
clearEnabledSpecifier
public CorsPolicy.Builder clearEnabledSpecifier()
-
getAllowOriginStringMatchList
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;- Specified by:
getAllowOriginStringMatchListin 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.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchCountin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatch
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;- Specified by:
getAllowOriginStringMatchin interfaceCorsPolicyOrBuilder
-
setAllowOriginStringMatch
public CorsPolicy.Builder setAllowOriginStringMatch(int index, StringMatcher value)
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;
-
setAllowOriginStringMatch
public CorsPolicy.Builder setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)
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;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(StringMatcher value)
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;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(int index, StringMatcher value)
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;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(StringMatcher.Builder builderForValue)
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;
-
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue)
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;
-
addAllAllowOriginStringMatch
public CorsPolicy.Builder addAllAllowOriginStringMatch(Iterable<? extends StringMatcher> values)
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;
-
clearAllowOriginStringMatch
public CorsPolicy.Builder clearAllowOriginStringMatch()
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;
-
removeAllowOriginStringMatch
public CorsPolicy.Builder removeAllowOriginStringMatch(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;
-
getAllowOriginStringMatchBuilder
public StringMatcher.Builder getAllowOriginStringMatchBuilder(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
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;- Specified by:
getAllowOriginStringMatchOrBuilderin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilderList
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;- Specified by:
getAllowOriginStringMatchOrBuilderListin interfaceCorsPolicyOrBuilder
-
addAllowOriginStringMatchBuilder
public StringMatcher.Builder addAllowOriginStringMatchBuilder()
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;
-
addAllowOriginStringMatchBuilder
public StringMatcher.Builder addAllowOriginStringMatchBuilder(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;
-
getAllowOriginStringMatchBuilderList
public List<StringMatcher.Builder> getAllowOriginStringMatchBuilderList()
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;
-
getAllowMethods
public String 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.
-
setAllowMethods
public CorsPolicy.Builder setAllowMethods(String value)
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Parameters:
value- The allowMethods to set.- Returns:
- This builder for chaining.
-
clearAllowMethods
public CorsPolicy.Builder clearAllowMethods()
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Returns:
- This builder for chaining.
-
setAllowMethodsBytes
public CorsPolicy.Builder setAllowMethodsBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Parameters:
value- The bytes for allowMethods to set.- Returns:
- This builder for chaining.
-
getAllowHeaders
public String 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.
-
setAllowHeaders
public CorsPolicy.Builder setAllowHeaders(String value)
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Parameters:
value- The allowHeaders to set.- Returns:
- This builder for chaining.
-
clearAllowHeaders
public CorsPolicy.Builder clearAllowHeaders()
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Returns:
- This builder for chaining.
-
setAllowHeadersBytes
public CorsPolicy.Builder setAllowHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Parameters:
value- The bytes for allowHeaders to set.- Returns:
- This builder for chaining.
-
getExposeHeaders
public String 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.
-
setExposeHeaders
public CorsPolicy.Builder setExposeHeaders(String value)
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Parameters:
value- The exposeHeaders to set.- Returns:
- This builder for chaining.
-
clearExposeHeaders
public CorsPolicy.Builder clearExposeHeaders()
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Returns:
- This builder for chaining.
-
setExposeHeadersBytes
public CorsPolicy.Builder setExposeHeadersBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Parameters:
value- The bytes for exposeHeaders to set.- Returns:
- This builder for chaining.
-
getMaxAge
public String 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.
-
setMaxAge
public CorsPolicy.Builder setMaxAge(String value)
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Parameters:
value- The maxAge to set.- Returns:
- This builder for chaining.
-
clearMaxAge
public CorsPolicy.Builder clearMaxAge()
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Returns:
- This builder for chaining.
-
setMaxAgeBytes
public CorsPolicy.Builder setMaxAgeBytes(com.google.protobuf.ByteString value)
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Parameters:
value- The bytes for maxAge to set.- Returns:
- This builder for chaining.
-
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.
-
setAllowCredentials
public CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue value)
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
setAllowCredentials
public CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
mergeAllowCredentials
public CorsPolicy.Builder mergeAllowCredentials(com.google.protobuf.BoolValue value)
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
clearAllowCredentials
public CorsPolicy.Builder clearAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
getAllowCredentialsBuilder
public com.google.protobuf.BoolValue.Builder getAllowCredentialsBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;
-
getAllowCredentialsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsOrBuilderin 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_v3_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;- Specified by:
hasFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
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_v3_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;- Specified by:
getFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The filterEnabled.
-
setFilterEnabled
public CorsPolicy.Builder setFilterEnabled(RuntimeFractionalPercent value)
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_v3_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;
-
setFilterEnabled
public CorsPolicy.Builder setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
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_v3_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;
-
mergeFilterEnabled
public CorsPolicy.Builder mergeFilterEnabled(RuntimeFractionalPercent value)
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_v3_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;
-
clearFilterEnabled
public CorsPolicy.Builder clearFilterEnabled()
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_v3_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;
-
getFilterEnabledBuilder
public RuntimeFractionalPercent.Builder getFilterEnabledBuilder()
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_v3_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
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_v3_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;- 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_v3_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;- Specified by:
hasShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
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_v3_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;- Specified by:
getShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The shadowEnabled.
-
setShadowEnabled
public CorsPolicy.Builder setShadowEnabled(RuntimeFractionalPercent value)
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_v3_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;
-
setShadowEnabled
public CorsPolicy.Builder setShadowEnabled(RuntimeFractionalPercent.Builder builderForValue)
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_v3_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;
-
mergeShadowEnabled
public CorsPolicy.Builder mergeShadowEnabled(RuntimeFractionalPercent value)
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_v3_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;
-
clearShadowEnabled
public CorsPolicy.Builder clearShadowEnabled()
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_v3_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;
-
getShadowEnabledBuilder
public RuntimeFractionalPercent.Builder getShadowEnabledBuilder()
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_v3_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
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_v3_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;- Specified by:
getShadowEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
setUnknownFields
public final CorsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
mergeUnknownFields
public final CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
-
-