Class Chunk.DocumentMetadata.Builder

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

public static final class Chunk.DocumentMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<Chunk.DocumentMetadata.Builder> implements Chunk.DocumentMetadataOrBuilder
 Document metadata contains the information of the document of the current
 chunk.
 
Protobuf type google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata
  • 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<Chunk.DocumentMetadata.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<Chunk.DocumentMetadata.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<Chunk.DocumentMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public Chunk.DocumentMetadata.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<Chunk.DocumentMetadata.Builder>
      Throws:
      IOException
    • getUri

      public String getUri()
       Uri of the document.
       
      string uri = 1;
      Specified by:
      getUri in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Uri of the document.
       
      string uri = 1;
      Specified by:
      getUriBytes in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public Chunk.DocumentMetadata.Builder setUri(String value)
       Uri of the document.
       
      string uri = 1;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public Chunk.DocumentMetadata.Builder clearUri()
       Uri of the document.
       
      string uri = 1;
      Returns:
      This builder for chaining.
    • setUriBytes

      public Chunk.DocumentMetadata.Builder setUriBytes(com.google.protobuf.ByteString value)
       Uri of the document.
       
      string uri = 1;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Title of the document.
       
      string title = 2;
      Specified by:
      getTitle in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Title of the document.
       
      string title = 2;
      Specified by:
      getTitleBytes in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public Chunk.DocumentMetadata.Builder setTitle(String value)
       Title of the document.
       
      string title = 2;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Chunk.DocumentMetadata.Builder clearTitle()
       Title of the document.
       
      string title = 2;
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Chunk.DocumentMetadata.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Title of the document.
       
      string title = 2;
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • hasStructData

      public boolean hasStructData()
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
      Specified by:
      hasStructData in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      Whether the structData field is set.
    • getStructData

      public com.google.protobuf.Struct getStructData()
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
      Specified by:
      getStructData in interface Chunk.DocumentMetadataOrBuilder
      Returns:
      The structData.
    • setStructData

      public Chunk.DocumentMetadata.Builder setStructData(com.google.protobuf.Struct value)
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
    • setStructData

      public Chunk.DocumentMetadata.Builder setStructData(com.google.protobuf.Struct.Builder builderForValue)
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
    • mergeStructData

      public Chunk.DocumentMetadata.Builder mergeStructData(com.google.protobuf.Struct value)
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
    • clearStructData

      public Chunk.DocumentMetadata.Builder clearStructData()
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
    • getStructDataBuilder

      public com.google.protobuf.Struct.Builder getStructDataBuilder()
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
    • getStructDataOrBuilder

      public com.google.protobuf.StructOrBuilder getStructDataOrBuilder()
       Data representation.
       The structured JSON data for the document. It should conform to the
       registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
       `INVALID_ARGUMENT` error is thrown.
       
      .google.protobuf.Struct struct_data = 3;
      Specified by:
      getStructDataOrBuilder in interface Chunk.DocumentMetadataOrBuilder