public static interface Bucket.CorsOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
int |
getMaxAgeSeconds()
The value, in seconds, to return in the
[https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
header] used in preflight responses.
|
String |
getMethod(int index)
The list of HTTP methods on which to include CORS response headers,
(`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
methods, and means "any method".
|
com.google.protobuf.ByteString |
getMethodBytes(int index)
The list of HTTP methods on which to include CORS response headers,
(`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
methods, and means "any method".
|
int |
getMethodCount()
The list of HTTP methods on which to include CORS response headers,
(`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
methods, and means "any method".
|
List<String> |
getMethodList()
The list of HTTP methods on which to include CORS response headers,
(`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
methods, and means "any method".
|
String |
getOrigin(int index)
The list of Origins eligible to receive CORS response headers.
|
com.google.protobuf.ByteString |
getOriginBytes(int index)
The list of Origins eligible to receive CORS response headers.
|
int |
getOriginCount()
The list of Origins eligible to receive CORS response headers.
|
List<String> |
getOriginList()
The list of Origins eligible to receive CORS response headers.
|
String |
getResponseHeader(int index)
The list of HTTP headers other than the
[https://www.w3.org/TR/cors/#simple-response-header][simple response
headers] to give permission for the user-agent to share across domains.
|
com.google.protobuf.ByteString |
getResponseHeaderBytes(int index)
The list of HTTP headers other than the
[https://www.w3.org/TR/cors/#simple-response-header][simple response
headers] to give permission for the user-agent to share across domains.
|
int |
getResponseHeaderCount()
The list of HTTP headers other than the
[https://www.w3.org/TR/cors/#simple-response-header][simple response
headers] to give permission for the user-agent to share across domains.
|
List<String> |
getResponseHeaderList()
The list of HTTP headers other than the
[https://www.w3.org/TR/cors/#simple-response-header][simple response
headers] to give permission for the user-agent to share across domains.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
List<String> getOriginList()
The list of Origins eligible to receive CORS response headers. See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins. Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
int getOriginCount()
The list of Origins eligible to receive CORS response headers. See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins. Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
String getOrigin(int index)
The list of Origins eligible to receive CORS response headers. See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins. Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
index
- The index of the element to return.com.google.protobuf.ByteString getOriginBytes(int index)
The list of Origins eligible to receive CORS response headers. See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins. Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
index
- The index of the value to return.List<String> getMethodList()
The list of HTTP methods on which to include CORS response headers, (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of methods, and means "any method".
repeated string method = 2;
int getMethodCount()
The list of HTTP methods on which to include CORS response headers, (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of methods, and means "any method".
repeated string method = 2;
String getMethod(int index)
The list of HTTP methods on which to include CORS response headers, (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of methods, and means "any method".
repeated string method = 2;
index
- The index of the element to return.com.google.protobuf.ByteString getMethodBytes(int index)
The list of HTTP methods on which to include CORS response headers, (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of methods, and means "any method".
repeated string method = 2;
index
- The index of the value to return.List<String> getResponseHeaderList()
The list of HTTP headers other than the [https://www.w3.org/TR/cors/#simple-response-header][simple response headers] to give permission for the user-agent to share across domains.
repeated string response_header = 3;
int getResponseHeaderCount()
The list of HTTP headers other than the [https://www.w3.org/TR/cors/#simple-response-header][simple response headers] to give permission for the user-agent to share across domains.
repeated string response_header = 3;
String getResponseHeader(int index)
The list of HTTP headers other than the [https://www.w3.org/TR/cors/#simple-response-header][simple response headers] to give permission for the user-agent to share across domains.
repeated string response_header = 3;
index
- The index of the element to return.com.google.protobuf.ByteString getResponseHeaderBytes(int index)
The list of HTTP headers other than the [https://www.w3.org/TR/cors/#simple-response-header][simple response headers] to give permission for the user-agent to share across domains.
repeated string response_header = 3;
index
- The index of the value to return.int getMaxAgeSeconds()
The value, in seconds, to return in the [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age header] used in preflight responses.
int32 max_age_seconds = 4;
Copyright © 2023 Google LLC. All rights reserved.