Class CorsPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
io.envoyproxy.envoy.api.v2.route.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 type envoy.api.v2.route.CorsPolicy
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • clear

      public CorsPolicy.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • getDefaultInstanceForType

      public CorsPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CorsPolicy build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CorsPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public CorsPolicy.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • setField

      public CorsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • clearField

      public CorsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • clearOneof

      public CorsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • setRepeatedField

      public CorsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • addRepeatedField

      public CorsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • mergeFrom

      public CorsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
    • mergeFrom

      public CorsPolicy.Builder mergeFrom(CorsPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
      Throws:
      IOException
    • getEnabledSpecifierCase

      public CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
      Specified by:
      getEnabledSpecifierCase in interface CorsPolicyOrBuilder
    • clearEnabledSpecifier

      public CorsPolicy.Builder clearEnabledSpecifier()
    • getAllowOriginList

      @Deprecated public com.google.protobuf.ProtocolStringList getAllowOriginList()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getAllowOriginList in interface CorsPolicyOrBuilder
      Returns:
      A list containing the allowOrigin.
    • getAllowOriginCount

      @Deprecated public int getAllowOriginCount()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getAllowOriginCount in interface CorsPolicyOrBuilder
      Returns:
      The count of allowOrigin.
    • getAllowOrigin

      @Deprecated public String getAllowOrigin(int index)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getAllowOrigin in interface CorsPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowOrigin at the given index.
    • getAllowOriginBytes

      @Deprecated public com.google.protobuf.ByteString getAllowOriginBytes(int index)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getAllowOriginBytes in interface CorsPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowOrigin at the given index.
    • setAllowOrigin

      @Deprecated public CorsPolicy.Builder setAllowOrigin(int index, String value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Parameters:
      index - The index to set the value at.
      value - The allowOrigin to set.
      Returns:
      This builder for chaining.
    • addAllowOrigin

      @Deprecated public CorsPolicy.Builder addAllowOrigin(String value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Parameters:
      value - The allowOrigin to add.
      Returns:
      This builder for chaining.
    • addAllAllowOrigin

      @Deprecated public CorsPolicy.Builder addAllAllowOrigin(Iterable<String> values)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Parameters:
      values - The allowOrigin to add.
      Returns:
      This builder for chaining.
    • clearAllowOrigin

      @Deprecated public CorsPolicy.Builder clearAllowOrigin()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Returns:
      This builder for chaining.
    • addAllowOriginBytes

      @Deprecated public CorsPolicy.Builder addAllowOriginBytes(com.google.protobuf.ByteString value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495
       Specifies the origins that will be allowed to do CORS requests.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
        This field has been deprecated in favor of `allow_origin_string_match`.
       
      repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];
      Parameters:
      value - The bytes of the allowOrigin to add.
      Returns:
      This builder for chaining.
    • getAllowOriginRegexList

      @Deprecated public com.google.protobuf.ProtocolStringList getAllowOriginRegexList()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Specified by:
      getAllowOriginRegexList in interface CorsPolicyOrBuilder
      Returns:
      A list containing the allowOriginRegex.
    • getAllowOriginRegexCount

      @Deprecated public int getAllowOriginRegexCount()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Specified by:
      getAllowOriginRegexCount in interface CorsPolicyOrBuilder
      Returns:
      The count of allowOriginRegex.
    • getAllowOriginRegex

      @Deprecated public String getAllowOriginRegex(int index)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Specified by:
      getAllowOriginRegex in interface CorsPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowOriginRegex at the given index.
    • getAllowOriginRegexBytes

      @Deprecated public com.google.protobuf.ByteString getAllowOriginRegexBytes(int index)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Specified by:
      getAllowOriginRegexBytes in interface CorsPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowOriginRegex at the given index.
    • setAllowOriginRegex

      @Deprecated public CorsPolicy.Builder setAllowOriginRegex(int index, String value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allowOriginRegex to set.
      Returns:
      This builder for chaining.
    • addAllowOriginRegex

      @Deprecated public CorsPolicy.Builder addAllowOriginRegex(String value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Parameters:
      value - The allowOriginRegex to add.
      Returns:
      This builder for chaining.
    • addAllAllowOriginRegex

      @Deprecated public CorsPolicy.Builder addAllAllowOriginRegex(Iterable<String> values)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Parameters:
      values - The allowOriginRegex to add.
      Returns:
      This builder for chaining.
    • clearAllowOriginRegex

      @Deprecated public CorsPolicy.Builder clearAllowOriginRegex()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addAllowOriginRegexBytes

      @Deprecated public CorsPolicy.Builder addAllowOriginRegexBytes(com.google.protobuf.ByteString value)
      Deprecated.
      envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505
       Specifies regex patterns that match allowed origins.
      
       An origin is allowed if either allow_origin or allow_origin_regex match.
      
       .. attention::
         This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for
         use with untrusted input in all cases.
       
      repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }
      Parameters:
      value - The bytes of the allowOriginRegex to add.
      Returns:
      This builder for chaining.
    • 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.StringMatcher allow_origin_string_match = 11;
      Specified by:
      getAllowOriginStringMatchList in interface CorsPolicyOrBuilder
    • 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.StringMatcher allow_origin_string_match = 11;
      Specified by:
      getAllowOriginStringMatchCount in interface CorsPolicyOrBuilder
    • 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.StringMatcher allow_origin_string_match = 11;
      Specified by:
      getAllowOriginStringMatch in interface CorsPolicyOrBuilder
    • 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.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.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.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.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.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.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.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.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.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.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.StringMatcher allow_origin_string_match = 11;
      Specified by:
      getAllowOriginStringMatchOrBuilder in interface CorsPolicyOrBuilder
    • 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.StringMatcher allow_origin_string_match = 11;
      Specified by:
      getAllowOriginStringMatchOrBuilderList in interface CorsPolicyOrBuilder
    • 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.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.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.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:
      getAllowMethods in interface CorsPolicyOrBuilder
      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:
      getAllowMethodsBytes in interface CorsPolicyOrBuilder
      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:
      getAllowHeaders in interface CorsPolicyOrBuilder
      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:
      getAllowHeadersBytes in interface CorsPolicyOrBuilder
      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:
      getExposeHeaders in interface CorsPolicyOrBuilder
      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:
      getExposeHeadersBytes in interface CorsPolicyOrBuilder
      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:
      getMaxAge in interface CorsPolicyOrBuilder
      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:
      getMaxAgeBytes in interface CorsPolicyOrBuilder
      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:
      hasAllowCredentials in interface CorsPolicyOrBuilder
      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:
      getAllowCredentials in interface CorsPolicyOrBuilder
      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:
      getAllowCredentialsOrBuilder in interface CorsPolicyOrBuilder
    • hasEnabled

      @Deprecated public boolean hasEnabled()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      hasEnabled in interface CorsPolicyOrBuilder
      Returns:
      Whether the enabled field is set.
    • getEnabled

      @Deprecated public com.google.protobuf.BoolValue getEnabled()
      Deprecated.
      envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getEnabled in interface CorsPolicyOrBuilder
      Returns:
      The enabled.
    • setEnabled

      @Deprecated public CorsPolicy.Builder setEnabled(com.google.protobuf.BoolValue value)
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
    • setEnabled

      @Deprecated public CorsPolicy.Builder setEnabled(com.google.protobuf.BoolValue.Builder builderForValue)
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
    • mergeEnabled

      @Deprecated public CorsPolicy.Builder mergeEnabled(com.google.protobuf.BoolValue value)
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
    • clearEnabled

      @Deprecated public CorsPolicy.Builder clearEnabled()
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
    • getEnabledBuilder

      @Deprecated public com.google.protobuf.BoolValue.Builder getEnabledBuilder()
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
    • getEnabledOrBuilder

      @Deprecated public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
      Deprecated.
       Specifies if the CORS filter 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, (.envoy.annotations.disallowed_by_default) = true];
      Specified by:
      getEnabledOrBuilder in interface CorsPolicyOrBuilder
    • 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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;
      Specified by:
      hasFilterEnabled in interface CorsPolicyOrBuilder
      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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;
      Specified by:
      getFilterEnabled in interface CorsPolicyOrBuilder
      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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.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_api_field_core.RuntimeFractionalPercent.runtime_key>` is
       specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
       
      .envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;
      Specified by:
      getFilterEnabledOrBuilder in interface CorsPolicyOrBuilder
    • 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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;
      Specified by:
      hasShadowEnabled in interface CorsPolicyOrBuilder
      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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;
      Specified by:
      getShadowEnabled in interface CorsPolicyOrBuilder
      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_api_field_core.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.api.v2.core.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_api_field_core.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.api.v2.core.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_api_field_core.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.api.v2.core.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_api_field_core.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.api.v2.core.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_api_field_core.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.api.v2.core.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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;
      Specified by:
      getShadowEnabledOrBuilder in interface CorsPolicyOrBuilder
    • setUnknownFields

      public final CorsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>
    • mergeUnknownFields

      public final CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CorsPolicy.Builder>