Class Bucket.Website.Builder (2.38.0)

public static final class Bucket.Website.Builder extends GeneratedMessageV3.Builder<Bucket.Website.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Website.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Website.Builder
Overrides

build()

public Bucket.Website build()
Returns
Type Description
Bucket.Website

buildPartial()

public Bucket.Website buildPartial()
Returns
Type Description
Bucket.Website

clear()

public Bucket.Website.Builder clear()
Returns
Type Description
Bucket.Website.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.Website.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Bucket.Website.Builder
Overrides

clearMainPageSuffix()

public Bucket.Website.Builder clearMainPageSuffix()

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
Bucket.Website.Builder

This builder for chaining.

clearNotFoundPage()

public Bucket.Website.Builder clearNotFoundPage()

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
Bucket.Website.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Website.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Bucket.Website.Builder
Overrides

clone()

public Bucket.Website.Builder clone()
Returns
Type Description
Bucket.Website.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Website getDefaultInstanceForType()
Returns
Type Description
Bucket.Website

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Website.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Website.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Bucket.Website.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.Website.Builder
Overrides

mergeFrom(Bucket.Website other)

public Bucket.Website.Builder mergeFrom(Bucket.Website other)
Parameter
Name Description
other Bucket.Website
Returns
Type Description
Bucket.Website.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Website.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Website.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Website.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Website.Builder
Overrides

setMainPageSuffix(String value)

public Bucket.Website.Builder setMainPageSuffix(String value)

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;

Parameter
Name Description
value String

The mainPageSuffix to set.

Returns
Type Description
Bucket.Website.Builder

This builder for chaining.

setMainPageSuffixBytes(ByteString value)

public Bucket.Website.Builder setMainPageSuffixBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for mainPageSuffix to set.

Returns
Type Description
Bucket.Website.Builder

This builder for chaining.

setNotFoundPage(String value)

public Bucket.Website.Builder setNotFoundPage(String value)

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;

Parameter
Name Description
value String

The notFoundPage to set.

Returns
Type Description
Bucket.Website.Builder

This builder for chaining.

setNotFoundPageBytes(ByteString value)

public Bucket.Website.Builder setNotFoundPageBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for notFoundPage to set.

Returns
Type Description
Bucket.Website.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Bucket.Website.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.Website.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Website.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Website.Builder
Overrides