Package com.google.storage.v2
Interface Bucket.CorsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Bucket.Cors,Bucket.Cors.Builder
- Enclosing class:
- Bucket
public static interface Bucket.CorsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintOptional.getMethod(int index) Optional.com.google.protobuf.ByteStringgetMethodBytes(int index) Optional.intOptional.Optional.getOrigin(int index) Optional.com.google.protobuf.ByteStringgetOriginBytes(int index) Optional.intOptional.Optional.getResponseHeader(int index) Optional.com.google.protobuf.ByteStringgetResponseHeaderBytes(int index) Optional.intOptional.Optional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getOriginList
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the origin.
-
getOriginCount
int getOriginCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of origin.
-
getOrigin
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The origin at the given index.
-
getOriginBytes
com.google.protobuf.ByteString getOriginBytes(int index) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the origin at the given index.
-
getMethodList
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the method.
-
getMethodCount
int getMethodCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of method.
-
getMethod
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The method at the given index.
-
getMethodBytes
com.google.protobuf.ByteString getMethodBytes(int index) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the method at the given index.
-
getResponseHeaderList
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the responseHeader.
-
getResponseHeaderCount
int getResponseHeaderCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of responseHeader.
-
getResponseHeader
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The responseHeader at the given index.
-
getResponseHeaderBytes
com.google.protobuf.ByteString getResponseHeaderBytes(int index) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the responseHeader at the given index.
-
getMaxAgeSeconds
int getMaxAgeSeconds()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The maxAgeSeconds.
-