public static final class Bucket.Cors extends GeneratedMessageV3 implements Bucket.CorsOrBuilder
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
MAX_AGE_SECONDS_FIELD_NUMBER
public static final int MAX_AGE_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ORIGIN_FIELD_NUMBER
public static final int ORIGIN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RESPONSE_HEADER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Bucket.Cors getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Bucket.Cors.Builder newBuilder()
newBuilder(Bucket.Cors prototype)
public static Bucket.Cors.Builder newBuilder(Bucket.Cors prototype)
public static Bucket.Cors parseDelimitedFrom(InputStream input)
public static Bucket.Cors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Bucket.Cors parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Bucket.Cors parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(CodedInputStream input)
public static Bucket.Cors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(InputStream input)
public static Bucket.Cors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Bucket.Cors parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Bucket.Cors> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Bucket.Cors getDefaultInstanceForType()
getMaxAgeSeconds()
public int getMaxAgeSeconds()
Optional. The value, in seconds, to return in the Access-Control-Max-Age
header
used in preflight responses.
int32 max_age_seconds = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The maxAgeSeconds.
|
getMethod(int index)
public String getMethod(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];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The method at the given index.
|
getMethodBytes(int index)
public 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];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the method at the given index.
|
getMethodCount()
public 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 |
| Type |
Description |
int |
The count of method.
|
getMethodList()
public ProtocolStringList 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];
getOrigin(int index)
public String getOrigin(int index)
Optional. The list of origins eligible to receive CORS response headers.
For more information about origins, see RFC
6454. Note: * is permitted in the
list of origins, and means any origin.
repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The origin at the given index.
|
getOriginBytes(int index)
public ByteString getOriginBytes(int index)
Optional. The list of origins eligible to receive CORS response headers.
For more information about origins, see RFC
6454. Note: * is permitted in the
list of origins, and means any origin.
repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the origin at the given index.
|
getOriginCount()
public int getOriginCount()
Optional. The list of origins eligible to receive CORS response headers.
For more information about origins, see RFC
6454. Note: * is permitted in the
list of origins, and means any origin.
repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of origin.
|
getOriginList()
public ProtocolStringList getOriginList()
Optional. The list of origins eligible to receive CORS response headers.
For more information about origins, see RFC
6454. Note: * is permitted in the
list of origins, and means any origin.
repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
getParserForType()
public Parser<Bucket.Cors> getParserForType()
Overrides
public String getResponseHeader(int index)
Optional. The list of HTTP headers other than the simple response
headers to give
permission for the user-agent to share across domains.
repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The responseHeader at the given index.
|
public ByteString getResponseHeaderBytes(int index)
Optional. The list of HTTP headers other than the simple response
headers to give
permission for the user-agent to share across domains.
repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the responseHeader at the given index.
|
public int getResponseHeaderCount()
Optional. The list of HTTP headers other than the 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 |
| Type |
Description |
int |
The count of responseHeader.
|
public ProtocolStringList getResponseHeaderList()
Optional. The list of HTTP headers other than the simple response
headers to give
permission for the user-agent to share across domains.
repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
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 Bucket.Cors.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.Cors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
| Returns |
| Type |
Description |
Object |
|
Overrides
toBuilder()
public Bucket.Cors.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides