Class Bucket.Website (2.11.3)

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
Type Description
int

NOT_FOUND_PAGE_FIELD_NUMBER

public static final int NOT_FOUND_PAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Bucket.Website getDefaultInstance()
Returns
Type Description
Bucket.Website

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Bucket.Website.Builder newBuilder()
Returns
Type Description
Bucket.Website.Builder

newBuilder(Bucket.Website prototype)

public static Bucket.Website.Builder newBuilder(Bucket.Website prototype)
Parameter
Name Description
prototype Bucket.Website
Returns
Type Description
Bucket.Website.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.Website parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Bucket.Website parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.Website parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.Website parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Bucket.Website parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Bucket.Website parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Website parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Bucket.Website getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for notFoundPage.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Bucket.Website.Builder newBuilderForType()
Returns
Type Description
Bucket.Website.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.Website.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Bucket.Website.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Bucket.Website.Builder toBuilder()
Returns
Type Description
Bucket.Website.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException