public static final class Bucket.Cors extends GeneratedMessageV3 implements Bucket.CorsOrBuilder
Static Fields
MAX_AGE_SECONDS_FIELD_NUMBER
public static final int MAX_AGE_SECONDS_FIELD_NUMBER
Field Value
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
Field Value
ORIGIN_FIELD_NUMBER
public static final int ORIGIN_FIELD_NUMBER
Field Value
public static final int RESPONSE_HEADER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Bucket.Cors getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Bucket.Cors.Builder newBuilder()
Returns
newBuilder(Bucket.Cors prototype)
public static Bucket.Cors.Builder newBuilder(Bucket.Cors prototype)
Parameter
Returns
public static Bucket.Cors parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Bucket.Cors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Bucket.Cors parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Bucket.Cors parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Bucket.Cors parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Bucket.Cors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Bucket.Cors parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Bucket.Cors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Bucket.Cors parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Cors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Bucket.Cors> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Bucket.Cors getDefaultInstanceForType()
Returns
getMaxAgeSeconds()
public int getMaxAgeSeconds()
Returns
Type | Description |
int | The maxAgeSeconds.
|
getMethod(int index)
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;
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)
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;
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()
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;
Returns
Type | Description |
int | The count of method.
|
getMethodList()
public 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;
Returns
getOrigin(int index)
public String getOrigin(int index)
The list of Origins eligible to receive CORS response headers. See
https://tools.ietf.org/html/rfc6454 for more on origins.
Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
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)
The list of Origins eligible to receive CORS response headers. See
https://tools.ietf.org/html/rfc6454 for more on origins.
Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
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()
The list of Origins eligible to receive CORS response headers. See
https://tools.ietf.org/html/rfc6454 for more on origins.
Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
Returns
Type | Description |
int | The count of origin.
|
getOriginList()
public ProtocolStringList getOriginList()
The list of Origins eligible to receive CORS response headers. See
https://tools.ietf.org/html/rfc6454 for more on origins.
Note: "*" is permitted in the list of origins, and means "any Origin".
repeated string origin = 1;
Returns
getParserForType()
public Parser<Bucket.Cors> getParserForType()
Returns
Overrides
public String getResponseHeader(int index)
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)
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()
Returns
Type | Description |
int | The count of responseHeader.
|
public ProtocolStringList getResponseHeaderList()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Bucket.Cors.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.Cors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Bucket.Cors.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions