Send feedback
Class Bucket.Cors (2.20.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.20.2 keyboard_arrow_down
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
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 ()
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;
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;
getParserForType()
public Parser<Bucket . Cors > getParserForType ()
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 ()
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-26 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-26 UTC."],[],[]]