Class Bucket.Website.Builder (2.27.1-SNAPSHOT)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Website.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.Website.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Bucket.Website.Builder clear()
Returns
TypeDescription
Bucket.Website.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.Website.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Bucket.Website.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Website.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Bucket.Website.Builder
Overrides

clone()

public Bucket.Website.Builder clone()
Returns
TypeDescription
Bucket.Website.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Website.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Website.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Bucket.Website.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Bucket.Website.Builder
Overrides

mergeFrom(Bucket.Website other)

public Bucket.Website.Builder mergeFrom(Bucket.Website other)
Parameter
NameDescription
otherBucket.Website
Returns
TypeDescription
Bucket.Website.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Website.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Website.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Website.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The mainPageSuffix to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mainPageSuffix to set.

Returns
TypeDescription
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
NameDescription
valueString

The notFoundPage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for notFoundPage to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Bucket.Website.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Website.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Website.Builder
Overrides