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 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()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainPageSuffix in interface Bucket.WebsiteOrBuilder
      Returns:
      The mainPageSuffix.
    • getMainPageSuffixBytes

      public com.google.protobuf.ByteString getMainPageSuffixBytes()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainPageSuffixBytes in interface Bucket.WebsiteOrBuilder
      Returns:
      The bytes for mainPageSuffix.
    • setMainPageSuffix

      public Bucket.Website.Builder setMainPageSuffix(String value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mainPageSuffix to set.
      Returns:
      This builder for chaining.
    • clearMainPageSuffix

      public Bucket.Website.Builder clearMainPageSuffix()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMainPageSuffixBytes

      public Bucket.Website.Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for mainPageSuffix to set.
      Returns:
      This builder for chaining.
    • getNotFoundPage

      public String getNotFoundPage()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotFoundPage in interface Bucket.WebsiteOrBuilder
      Returns:
      The notFoundPage.
    • getNotFoundPageBytes

      public com.google.protobuf.ByteString getNotFoundPageBytes()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotFoundPageBytes in interface Bucket.WebsiteOrBuilder
      Returns:
      The bytes for notFoundPage.
    • setNotFoundPage

      public Bucket.Website.Builder setNotFoundPage(String value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The notFoundPage to set.
      Returns:
      This builder for chaining.
    • clearNotFoundPage

      public Bucket.Website.Builder clearNotFoundPage()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNotFoundPageBytes

      public Bucket.Website.Builder setNotFoundPageBytes(com.google.protobuf.ByteString value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      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>