Class Bucket.Website.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
com.google.storage.v2.Bucket.Website.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Bucket.WebsiteOrBuilder, Cloneable
Enclosing class:
Bucket.Website

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
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    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.
    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.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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
    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.
    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
    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
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object 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.
    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.
    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.
    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.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • clear

      public Bucket.Website.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • getDefaultInstanceForType

      public Bucket.Website getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Bucket.Website build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Bucket.Website buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Bucket.Website.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • setField

      public Bucket.Website.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • clearField

      public Bucket.Website.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • clearOneof

      public Bucket.Website.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • setRepeatedField

      public Bucket.Website.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • addRepeatedField

      public Bucket.Website.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • mergeFrom

      public Bucket.Website.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Bucket.Website.Builder>
    • mergeFrom

      public Bucket.Website.Builder mergeFrom(Bucket.Website other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • mergeFrom

      public Bucket.Website.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Bucket.Website.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getMainPageSuffix in interface Bucket.WebsiteOrBuilder
      Returns:
      The mainPageSuffix.
    • getMainPageSuffixBytes

      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;
      Specified by:
      getMainPageSuffixBytes in interface Bucket.WebsiteOrBuilder
      Returns:
      The bytes for mainPageSuffix.
    • setMainPageSuffix

      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;
      Parameters:
      value - The mainPageSuffix to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setMainPageSuffixBytes

      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;
      Parameters:
      value - The bytes for mainPageSuffix to set.
      Returns:
      This builder for chaining.
    • 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][404 Not Found]
       result.
       
      string not_found_page = 2;
      Specified by:
      getNotFoundPage in interface Bucket.WebsiteOrBuilder
      Returns:
      The notFoundPage.
    • getNotFoundPageBytes

      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;
      Specified by:
      getNotFoundPageBytes in interface Bucket.WebsiteOrBuilder
      Returns:
      The bytes for notFoundPage.
    • setNotFoundPage

      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;
      Parameters:
      value - The notFoundPage to set.
      Returns:
      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][404 Not Found]
       result.
       
      string not_found_page = 2;
      Returns:
      This builder for chaining.
    • setNotFoundPageBytes

      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;
      Parameters:
      value - The bytes for notFoundPage to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Bucket.Website.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>
    • mergeUnknownFields

      public final Bucket.Website.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Website.Builder>