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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Bucket.WebsiteImplements
Bucket.WebsiteOrBuilderStatic Fields
MAIN_PAGE_SUFFIX_FIELD_NUMBER
public static final int MAIN_PAGE_SUFFIX_FIELD_NUMBER
Type | Description |
int |
NOT_FOUND_PAGE_FIELD_NUMBER
public static final int NOT_FOUND_PAGE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Bucket.Website getDefaultInstance()
Type | Description |
Bucket.Website |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Bucket.Website.Builder newBuilder()
Type | Description |
Bucket.Website.Builder |
newBuilder(Bucket.Website prototype)
public static Bucket.Website.Builder newBuilder(Bucket.Website prototype)
Name | Description |
prototype | Bucket.Website |
Type | Description |
Bucket.Website.Builder |
parseDelimitedFrom(InputStream input)
public static Bucket.Website parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Bucket.Website parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Bucket.Website parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Bucket.Website parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Bucket.Website parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Bucket.Website parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Website parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Website |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Bucket.Website> parser()
Type | Description |
Parser<Website> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Bucket.Website getDefaultInstanceForType()
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;
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;
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;
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;
Type | Description |
ByteString | The bytes for notFoundPage. |
getParserForType()
public Parser<Bucket.Website> getParserForType()
Type | Description |
Parser<Website> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Bucket.Website.Builder newBuilderForType()
Type | Description |
Bucket.Website.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.Website.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Bucket.Website.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Bucket.Website.Builder toBuilder()
Type | Description |
Bucket.Website.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |