@Generated(value="by GAPIC") @BetaApi public final class CorsPolicy extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
CorsPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Boolean |
getAllowCredentials()
In response to a preflight request, setting this to true indicates that the actual request can
include user credentials.
|
List<String> |
getAllowHeadersList()
Specifies the content for the Access-Control-Allow-Headers header.
|
List<String> |
getAllowMethodsList()
Specifies the content for the Access-Control-Allow-Methods header.
|
List<String> |
getAllowOriginRegexesList()
Specifies the regualar expression patterns that match allowed origins.
|
List<String> |
getAllowOriginsList()
Specifies the list of origins that will be allowed to do CORS requests.
|
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
static CorsPolicy |
getDefaultInstance() |
Boolean |
getDisabled()
If true, specifies the CORS policy is disabled.
|
List<String> |
getExposeHeadersList()
Specifies the content for the Access-Control-Expose-Headers header.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
Integer |
getMaxAge()
Specifies how long the results of a preflight request can be cached.
|
int |
hashCode() |
static CorsPolicy.Builder |
newBuilder() |
static CorsPolicy.Builder |
newBuilder(CorsPolicy prototype) |
CorsPolicy.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public Boolean getAllowCredentials()
public List<String> getAllowHeadersList()
public List<String> getAllowMethodsList()
public List<String> getAllowOriginRegexesList()
public List<String> getAllowOriginsList()
public Boolean getDisabled()
public List<String> getExposeHeadersList()
public Integer getMaxAge()
public static CorsPolicy.Builder newBuilder()
public static CorsPolicy.Builder newBuilder(CorsPolicy prototype)
public CorsPolicy.Builder toBuilder()
public static CorsPolicy getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.