Class Bucket.Website (2.29.0)

public static final class Bucket.Website extends GeneratedMessageV3 implements Bucket.WebsiteOrBuilder

Properties of a bucket related to accessing the contents as a static website. For more on hosting a static website via Cloud Storage, see https://cloud.google.com/storage/docs/hosting-static-website.

Protobuf type google.storage.v2.Bucket.Website

Static Fields

MAIN_PAGE_SUFFIX_FIELD_NUMBER

public static final int MAIN_PAGE_SUFFIX_FIELD_NUMBER
Field Value
TypeDescription
int

NOT_FOUND_PAGE_FIELD_NUMBER

public static final int NOT_FOUND_PAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Bucket.Website getDefaultInstance()
Returns
TypeDescription
Bucket.Website

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Bucket.Website.Builder newBuilder()
Returns
TypeDescription
Bucket.Website.Builder

newBuilder(Bucket.Website prototype)

public static Bucket.Website.Builder newBuilder(Bucket.Website prototype)
Parameter
NameDescription
prototypeBucket.Website
Returns
TypeDescription
Bucket.Website.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.Website parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Bucket.Website parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.Website parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.Website parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Bucket.Website parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Bucket.Website parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Bucket.Website> parser()
Returns
TypeDescription
Parser<Website>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Bucket.Website getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Website

getMainPageSuffix()

public String getMainPageSuffix()

If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.

string main_page_suffix = 1;

Returns
TypeDescription
String

The mainPageSuffix.

getMainPageSuffixBytes()

public ByteString getMainPageSuffixBytes()

If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.

string main_page_suffix = 1;

Returns
TypeDescription
ByteString

The bytes for mainPageSuffix.

getNotFoundPage()

public String getNotFoundPage()

If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a https://tools.ietf.org/html/rfc7231#section-6.5.4 result.

string not_found_page = 2;

Returns
TypeDescription
String

The notFoundPage.

getNotFoundPageBytes()

public ByteString getNotFoundPageBytes()

If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a https://tools.ietf.org/html/rfc7231#section-6.5.4 result.

string not_found_page = 2;

Returns
TypeDescription
ByteString

The bytes for notFoundPage.

getParserForType()

public Parser<Bucket.Website> getParserForType()
Returns
TypeDescription
Parser<Website>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Bucket.Website.Builder newBuilderForType()
Returns
TypeDescription
Bucket.Website.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.Website.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Bucket.Website.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Bucket.Website.Builder toBuilder()
Returns
TypeDescription
Bucket.Website.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException