public static final class Bucket.Website.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
Bucket.Website.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.Website |
build() |
Bucket.Website |
buildPartial() |
Bucket.Website.Builder |
clear() |
Bucket.Website.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
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][404 Not Found]
result.
|
Bucket.Website.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Bucket.Website.Builder |
clone() |
Bucket.Website |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
com.google.protobuf.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.
|
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][404 Not Found]
result.
|
com.google.protobuf.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][404 Not Found]
result.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Bucket.Website.Builder |
mergeFrom(Bucket.Website other) |
Bucket.Website.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Bucket.Website.Builder |
mergeFrom(com.google.protobuf.Message other) |
Bucket.Website.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Bucket.Website.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
Bucket.Website.Builder |
setMainPageSuffixBytes(com.google.protobuf.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.
|
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][404 Not Found]
result.
|
Bucket.Website.Builder |
setNotFoundPageBytes(com.google.protobuf.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][404 Not Found]
result.
|
Bucket.Website.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Bucket.Website.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Bucket.Website build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Bucket.Website buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Bucket.Website.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Bucket.Website.Builder>public Bucket.Website.Builder mergeFrom(Bucket.Website other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public Bucket.Website.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Bucket.Website.Builder>IOExceptionpublic 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;getMainPageSuffix in interface Bucket.WebsiteOrBuilderpublic com.google.protobuf.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;getMainPageSuffixBytes in interface Bucket.WebsiteOrBuilderpublic 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;value - The mainPageSuffix to set.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;public Bucket.Website.Builder setMainPageSuffixBytes(com.google.protobuf.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;value - The bytes for mainPageSuffix to set.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][404 Not Found] result.
string not_found_page = 2;getNotFoundPage in interface Bucket.WebsiteOrBuilderpublic com.google.protobuf.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][404 Not Found] result.
string not_found_page = 2;getNotFoundPageBytes in interface Bucket.WebsiteOrBuilderpublic 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][404 Not Found] result.
string not_found_page = 2;value - The notFoundPage to set.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][404 Not Found] result.
string not_found_page = 2;public Bucket.Website.Builder setNotFoundPageBytes(com.google.protobuf.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][404 Not Found] result.
string not_found_page = 2;value - The bytes for notFoundPage to set.public final Bucket.Website.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>public final Bucket.Website.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>Copyright © 2023 Google LLC. All rights reserved.