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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
public Bucket.Website getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Bucket.Website build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Website buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Website.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.Website.Builder>
IOException
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;
getMainPageSuffix
in interface Bucket.WebsiteOrBuilder
public 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.WebsiteOrBuilder
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;
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.WebsiteOrBuilder
public 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.WebsiteOrBuilder
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][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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
Copyright © 2023 Google LLC. All rights reserved.