Class Sitemap.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sitemap.Builder>
com.google.cloud.discoveryengine.v1beta.Sitemap.Builder
All Implemented Interfaces:
SitemapOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Sitemap

public static final class Sitemap.Builder extends com.google.protobuf.GeneratedMessage.Builder<Sitemap.Builder> implements SitemapOrBuilder
 A sitemap for the SiteSearchEngine.
 
Protobuf type google.cloud.discoveryengine.v1beta.Sitemap
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Output only.
     
    Output only.
    Public URI for the sitemap, e.g.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.Timestamp.Builder
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
     
    Output only.
    com.google.protobuf.ByteString
    Output only.
    Public URI for the sitemap, e.g.
    com.google.protobuf.ByteString
    Public URI for the sitemap, e.g.
    boolean
    Output only.
    boolean
    Public URI for the sitemap, e.g.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeCreateTime(com.google.protobuf.Timestamp value)
    Output only.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setCreateTime(com.google.protobuf.Timestamp value)
    Output only.
    setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Output only.
    setName(String value)
    Output only.
    setNameBytes(com.google.protobuf.ByteString value)
    Output only.
    setUri(String value)
    Public URI for the sitemap, e.g.
    setUriBytes(com.google.protobuf.ByteString value)
    Public URI for the sitemap, e.g.

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

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Sitemap.Builder>
    • clear

      public Sitemap.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.GeneratedMessage.Builder<Sitemap.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.GeneratedMessage.Builder<Sitemap.Builder>
    • getDefaultInstanceForType

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

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

      public Sitemap buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Sitemap.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<Sitemap.Builder>
    • mergeFrom

      public Sitemap.Builder mergeFrom(Sitemap other)
    • isInitialized

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

      public Sitemap.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<Sitemap.Builder>
      Throws:
      IOException
    • getFeedCase

      public Sitemap.FeedCase getFeedCase()
      Specified by:
      getFeedCase in interface SitemapOrBuilder
    • clearFeed

      public Sitemap.Builder clearFeed()
    • hasUri

      public boolean hasUri()
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Specified by:
      hasUri in interface SitemapOrBuilder
      Returns:
      Whether the uri field is set.
    • getUri

      public String getUri()
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Specified by:
      getUri in interface SitemapOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Specified by:
      getUriBytes in interface SitemapOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public Sitemap.Builder setUri(String value)
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public Sitemap.Builder clearUri()
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Returns:
      This builder for chaining.
    • setUriBytes

      public Sitemap.Builder setUriBytes(com.google.protobuf.ByteString value)
       Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.
       
      string uri = 2;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Output only. The fully qualified resource name of the sitemap.
       `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*`
       The `sitemap_id` suffix is system-generated.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SitemapOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The fully qualified resource name of the sitemap.
       `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*`
       The `sitemap_id` suffix is system-generated.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface SitemapOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Sitemap.Builder setName(String value)
       Output only. The fully qualified resource name of the sitemap.
       `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*`
       The `sitemap_id` suffix is system-generated.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Sitemap.Builder clearName()
       Output only. The fully qualified resource name of the sitemap.
       `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*`
       The `sitemap_id` suffix is system-generated.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Sitemap.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The fully qualified resource name of the sitemap.
       `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*`
       The `sitemap_id` suffix is system-generated.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SitemapOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SitemapOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Sitemap.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Sitemap.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Sitemap.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Sitemap.Builder clearCreateTime()
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The sitemap's creation time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SitemapOrBuilder