public static final class HttpRoute.CorsPolicy extends GeneratedMessageV3 implements HttpRoute.CorsPolicyOrBuilder
   
   The Specification for allowing client side cross-origin requests.
 Protobuf type google.cloud.networkservices.v1.HttpRoute.CorsPolicy
 
  
  
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
  
  ALLOW_CREDENTIALS_FIELD_NUMBER
  
    public static final int ALLOW_CREDENTIALS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int ALLOW_HEADERS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  ALLOW_METHODS_FIELD_NUMBER
  
    public static final int ALLOW_METHODS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  ALLOW_ORIGINS_FIELD_NUMBER
  
    public static final int ALLOW_ORIGINS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  ALLOW_ORIGIN_REGEXES_FIELD_NUMBER
  
    public static final int ALLOW_ORIGIN_REGEXES_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  DISABLED_FIELD_NUMBER
  
    public static final int DISABLED_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int EXPOSE_HEADERS_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  MAX_AGE_FIELD_NUMBER
  
    public static final int MAX_AGE_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static HttpRoute.CorsPolicy getDefaultInstance()
   
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  
  newBuilder()
  
    public static HttpRoute.CorsPolicy.Builder newBuilder()
   
  
  
  newBuilder(HttpRoute.CorsPolicy prototype)
  
    public static HttpRoute.CorsPolicy.Builder newBuilder(HttpRoute.CorsPolicy prototype)
   
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseDelimitedFrom(InputStream input)
   
  
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(byte[] data)
  
    public static HttpRoute.CorsPolicy parseFrom(byte[] data)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        data | 
        byte[]
  | 
      
    
  
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static HttpRoute.CorsPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteString data)
  
    public static HttpRoute.CorsPolicy parseFrom(ByteString data)
   
  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static HttpRoute.CorsPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseFrom(CodedInputStream input)
   
  
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseFrom(InputStream input)
   
  
  
  
  
  
  
    public static HttpRoute.CorsPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteBuffer data)
  
    public static HttpRoute.CorsPolicy parseFrom(ByteBuffer data)
   
  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static HttpRoute.CorsPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parser()
  
    public static Parser<HttpRoute.CorsPolicy> parser()
   
  
  Methods
  
  
  equals(Object obj)
  
    public boolean equals(Object obj)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        obj | 
        Object
  | 
      
    
  
  
  Overrides
  
  
  getAllowCredentials()
  
    public boolean getAllowCredentials()
   
   In response to a preflight request, setting this to true indicates that
 the actual request can include user credentials. This translates to the
 Access-Control-Allow-Credentials header.
 Default value is false.
 bool allow_credentials = 7;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        The allowCredentials. 
 | 
      
    
  
  
  
  
    public String getAllowHeaders(int index)
   
   Specifies the content for Access-Control-Allow-Headers header.
 repeated string allow_headers = 4;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The allowHeaders at the given index. 
 | 
      
    
  
  
  
  
    public ByteString getAllowHeadersBytes(int index)
   
   Specifies the content for Access-Control-Allow-Headers header.
 repeated string allow_headers = 4;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the allowHeaders at the given index. 
 | 
      
    
  
  
  
  
    public int getAllowHeadersCount()
   
   Specifies the content for Access-Control-Allow-Headers header.
 repeated string allow_headers = 4;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
        The count of allowHeaders. 
 | 
      
    
  
  
  
  
    public ProtocolStringList getAllowHeadersList()
   
   Specifies the content for Access-Control-Allow-Headers header.
 repeated string allow_headers = 4;
 
  
  
  getAllowMethods(int index)
  
    public String getAllowMethods(int index)
   
   Specifies the content for Access-Control-Allow-Methods header.
 repeated string allow_methods = 3;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The allowMethods at the given index. 
 | 
      
    
  
  
  getAllowMethodsBytes(int index)
  
    public ByteString getAllowMethodsBytes(int index)
   
   Specifies the content for Access-Control-Allow-Methods header.
 repeated string allow_methods = 3;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the allowMethods at the given index. 
 | 
      
    
  
  
  getAllowMethodsCount()
  
    public int getAllowMethodsCount()
   
   Specifies the content for Access-Control-Allow-Methods header.
 repeated string allow_methods = 3;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
        The count of allowMethods. 
 | 
      
    
  
  
  getAllowMethodsList()
  
    public ProtocolStringList getAllowMethodsList()
   
   Specifies the content for Access-Control-Allow-Methods header.
 repeated string allow_methods = 3;
 
  
  
  getAllowOriginRegexes(int index)
  
    public String getAllowOriginRegexes(int index)
   
  
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The allowOriginRegexes at the given index. 
 | 
      
    
  
  
  getAllowOriginRegexesBytes(int index)
  
    public ByteString getAllowOriginRegexesBytes(int index)
   
  
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the allowOriginRegexes at the given index. 
 | 
      
    
  
  
  getAllowOriginRegexesCount()
  
    public int getAllowOriginRegexesCount()
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
        The count of allowOriginRegexes. 
 | 
      
    
  
  
  getAllowOriginRegexesList()
  
    public ProtocolStringList getAllowOriginRegexesList()
   
  
  
  
  getAllowOrigins(int index)
  
    public String getAllowOrigins(int index)
   
   Specifies the list of origins that will be allowed to do CORS requests.
 An origin is allowed if it matches either an item in allow_origins or
 an item in allow_origin_regexes.
 repeated string allow_origins = 1;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The allowOrigins at the given index. 
 | 
      
    
  
  
  getAllowOriginsBytes(int index)
  
    public ByteString getAllowOriginsBytes(int index)
   
   Specifies the list of origins that will be allowed to do CORS requests.
 An origin is allowed if it matches either an item in allow_origins or
 an item in allow_origin_regexes.
 repeated string allow_origins = 1;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the allowOrigins at the given index. 
 | 
      
    
  
  
  getAllowOriginsCount()
  
    public int getAllowOriginsCount()
   
   Specifies the list of origins that will be allowed to do CORS requests.
 An origin is allowed if it matches either an item in allow_origins or
 an item in allow_origin_regexes.
 repeated string allow_origins = 1;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
        The count of allowOrigins. 
 | 
      
    
  
  
  getAllowOriginsList()
  
    public ProtocolStringList getAllowOriginsList()
   
   Specifies the list of origins that will be allowed to do CORS requests.
 An origin is allowed if it matches either an item in allow_origins or
 an item in allow_origin_regexes.
 repeated string allow_origins = 1;
 
  
  
  getDefaultInstanceForType()
  
    public HttpRoute.CorsPolicy getDefaultInstanceForType()
   
  
  
  getDisabled()
  
    public boolean getDisabled()
   
   If true, the CORS policy is disabled. The default value is false, which
 indicates that the CORS policy is in effect.
 bool disabled = 8;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        The disabled. 
 | 
      
    
  
  
  
  
    public String getExposeHeaders(int index)
   
   Specifies the content for Access-Control-Expose-Headers header.
 repeated string expose_headers = 5;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The exposeHeaders at the given index. 
 | 
      
    
  
  
  
  
    public ByteString getExposeHeadersBytes(int index)
   
   Specifies the content for Access-Control-Expose-Headers header.
 repeated string expose_headers = 5;
 
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the exposeHeaders at the given index. 
 | 
      
    
  
  
  
  
    public int getExposeHeadersCount()
   
   Specifies the content for Access-Control-Expose-Headers header.
 repeated string expose_headers = 5;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
        The count of exposeHeaders. 
 | 
      
    
  
  
  
  
    public ProtocolStringList getExposeHeadersList()
   
   Specifies the content for Access-Control-Expose-Headers header.
 repeated string expose_headers = 5;
 
  
  
  getMaxAge()
  
    public String getMaxAge()
   
   Specifies how long result of a preflight request can be cached in
 seconds. This translates to the Access-Control-Max-Age header.
 string max_age = 6;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The maxAge. 
 | 
      
    
  
  
  getMaxAgeBytes()
  
    public ByteString getMaxAgeBytes()
   
   Specifies how long result of a preflight request can be cached in
 seconds. This translates to the Access-Control-Max-Age header.
 string max_age = 6;
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes for maxAge. 
 | 
      
    
  
  
  getParserForType()
  
    public Parser<HttpRoute.CorsPolicy> getParserForType()
   
  
  Overrides
  
  
  getSerializedSize()
  
    public int getSerializedSize()
   
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Overrides
  
  
  hashCode()
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  newBuilderForType()
  
    public HttpRoute.CorsPolicy.Builder newBuilderForType()
   
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected HttpRoute.CorsPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Object | 
         | 
      
    
  
  Overrides
  
  
  toBuilder()
  
    public HttpRoute.CorsPolicy.Builder toBuilder()
   
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  
  Overrides