public static final class Bucket.Cors.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder> implements Bucket.CorsOrBuilder
Cross-Origin Response sharing (CORS) properties for a bucket. For more on Cloud Storage and CORS, see https://cloud.google.com/storage/docs/cross-origin. For more on CORS in general, see https://tools.ietf.org/html/rfc6454.Protobuf type
google.storage.v2.Bucket.Cors
Modifier and Type | Method and Description |
---|---|
Bucket.Cors.Builder |
addAllMethod(Iterable<String> values)
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".
|
Bucket.Cors.Builder |
addAllOrigin(Iterable<String> values)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors.Builder |
addAllResponseHeader(Iterable<String> values)
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.
|
Bucket.Cors.Builder |
addMethod(String value)
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".
|
Bucket.Cors.Builder |
addMethodBytes(com.google.protobuf.ByteString value)
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".
|
Bucket.Cors.Builder |
addOrigin(String value)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors.Builder |
addOriginBytes(com.google.protobuf.ByteString value)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.Cors.Builder |
addResponseHeader(String value)
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.
|
Bucket.Cors.Builder |
addResponseHeaderBytes(com.google.protobuf.ByteString value)
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.
|
Bucket.Cors |
build() |
Bucket.Cors |
buildPartial() |
Bucket.Cors.Builder |
clear() |
Bucket.Cors.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Bucket.Cors.Builder |
clearMaxAgeSeconds()
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.
|
Bucket.Cors.Builder |
clearMethod()
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".
|
Bucket.Cors.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Bucket.Cors.Builder |
clearOrigin()
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors.Builder |
clearResponseHeader()
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.
|
Bucket.Cors.Builder |
clone() |
Bucket.Cors |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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".
|
com.google.protobuf.ProtocolStringList |
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.
|
com.google.protobuf.ProtocolStringList |
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.
|
com.google.protobuf.ProtocolStringList |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Bucket.Cors.Builder |
mergeFrom(Bucket.Cors other) |
Bucket.Cors.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Bucket.Cors.Builder |
mergeFrom(com.google.protobuf.Message other) |
Bucket.Cors.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Bucket.Cors.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.Cors.Builder |
setMaxAgeSeconds(int value)
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.
|
Bucket.Cors.Builder |
setMethod(int index,
String value)
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".
|
Bucket.Cors.Builder |
setOrigin(int index,
String value)
The list of Origins eligible to receive CORS response headers.
|
Bucket.Cors.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Bucket.Cors.Builder |
setResponseHeader(int index,
String value)
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.
|
Bucket.Cors.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Bucket.Cors build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Cors buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Cors.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder mergeFrom(Bucket.Cors other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public Bucket.Cors.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.Cors.Builder>
IOException
public com.google.protobuf.ProtocolStringList 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;
getOriginList
in interface Bucket.CorsOrBuilder
public 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;
getOriginCount
in interface Bucket.CorsOrBuilder
public 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;
getOrigin
in interface Bucket.CorsOrBuilder
index
- The index of the element to return.public 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;
getOriginBytes
in interface Bucket.CorsOrBuilder
index
- The index of the value to return.public Bucket.Cors.Builder setOrigin(int index, String value)
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 to set the value at.value
- The origin to set.public Bucket.Cors.Builder addOrigin(String value)
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;
value
- The origin to add.public Bucket.Cors.Builder addAllOrigin(Iterable<String> values)
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;
values
- The origin to add.public Bucket.Cors.Builder clearOrigin()
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;
public Bucket.Cors.Builder addOriginBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes of the origin to add.public com.google.protobuf.ProtocolStringList 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;
getMethodList
in interface Bucket.CorsOrBuilder
public 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;
getMethodCount
in interface Bucket.CorsOrBuilder
public 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;
getMethod
in interface Bucket.CorsOrBuilder
index
- The index of the element to return.public 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;
getMethodBytes
in interface Bucket.CorsOrBuilder
index
- The index of the value to return.public Bucket.Cors.Builder setMethod(int index, String value)
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 to set the value at.value
- The method to set.public Bucket.Cors.Builder addMethod(String value)
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;
value
- The method to add.public Bucket.Cors.Builder addAllMethod(Iterable<String> values)
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;
values
- The method to add.public Bucket.Cors.Builder clearMethod()
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;
public Bucket.Cors.Builder addMethodBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes of the method to add.public com.google.protobuf.ProtocolStringList 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;
getResponseHeaderList
in interface Bucket.CorsOrBuilder
public 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;
getResponseHeaderCount
in interface Bucket.CorsOrBuilder
public 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;
getResponseHeader
in interface Bucket.CorsOrBuilder
index
- The index of the element to return.public 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;
getResponseHeaderBytes
in interface Bucket.CorsOrBuilder
index
- The index of the value to return.public Bucket.Cors.Builder setResponseHeader(int index, String value)
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 to set the value at.value
- The responseHeader to set.public Bucket.Cors.Builder addResponseHeader(String value)
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;
value
- The responseHeader to add.public Bucket.Cors.Builder addAllResponseHeader(Iterable<String> values)
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;
values
- The responseHeader to add.public Bucket.Cors.Builder clearResponseHeader()
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;
public Bucket.Cors.Builder addResponseHeaderBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes of the responseHeader to add.public 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;
getMaxAgeSeconds
in interface Bucket.CorsOrBuilder
public Bucket.Cors.Builder setMaxAgeSeconds(int value)
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;
value
- The maxAgeSeconds to set.public Bucket.Cors.Builder clearMaxAgeSeconds()
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;
public final Bucket.Cors.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
public final Bucket.Cors.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Cors.Builder>
Copyright © 2023 Google LLC. All rights reserved.