Class ConversationContext.Builder

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

public static final class ConversationContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversationContext.Builder> implements ConversationContextOrBuilder
 Defines context of the conversation
 
Protobuf type google.cloud.discoveryengine.v1beta.ConversationContext
  • 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<ConversationContext.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<ConversationContext.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<ConversationContext.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ConversationContext.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<ConversationContext.Builder>
      Throws:
      IOException
    • getContextDocumentsList

      public com.google.protobuf.ProtocolStringList getContextDocumentsList()
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Specified by:
      getContextDocumentsList in interface ConversationContextOrBuilder
      Returns:
      A list containing the contextDocuments.
    • getContextDocumentsCount

      public int getContextDocumentsCount()
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Specified by:
      getContextDocumentsCount in interface ConversationContextOrBuilder
      Returns:
      The count of contextDocuments.
    • getContextDocuments

      public String getContextDocuments(int index)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Specified by:
      getContextDocuments in interface ConversationContextOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The contextDocuments at the given index.
    • getContextDocumentsBytes

      public com.google.protobuf.ByteString getContextDocumentsBytes(int index)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Specified by:
      getContextDocumentsBytes in interface ConversationContextOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contextDocuments at the given index.
    • setContextDocuments

      public ConversationContext.Builder setContextDocuments(int index, String value)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Parameters:
      index - The index to set the value at.
      value - The contextDocuments to set.
      Returns:
      This builder for chaining.
    • addContextDocuments

      public ConversationContext.Builder addContextDocuments(String value)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Parameters:
      value - The contextDocuments to add.
      Returns:
      This builder for chaining.
    • addAllContextDocuments

      public ConversationContext.Builder addAllContextDocuments(Iterable<String> values)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Parameters:
      values - The contextDocuments to add.
      Returns:
      This builder for chaining.
    • clearContextDocuments

      public ConversationContext.Builder clearContextDocuments()
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Returns:
      This builder for chaining.
    • addContextDocumentsBytes

      public ConversationContext.Builder addContextDocumentsBytes(com.google.protobuf.ByteString value)
       The current list of documents the user is seeing.
       It contains the document resource references.
       
      repeated string context_documents = 1;
      Parameters:
      value - The bytes of the contextDocuments to add.
      Returns:
      This builder for chaining.
    • getActiveDocument

      public String getActiveDocument()
       The current active document the user opened.
       It contains the document resource reference.
       
      string active_document = 2;
      Specified by:
      getActiveDocument in interface ConversationContextOrBuilder
      Returns:
      The activeDocument.
    • getActiveDocumentBytes

      public com.google.protobuf.ByteString getActiveDocumentBytes()
       The current active document the user opened.
       It contains the document resource reference.
       
      string active_document = 2;
      Specified by:
      getActiveDocumentBytes in interface ConversationContextOrBuilder
      Returns:
      The bytes for activeDocument.
    • setActiveDocument

      public ConversationContext.Builder setActiveDocument(String value)
       The current active document the user opened.
       It contains the document resource reference.
       
      string active_document = 2;
      Parameters:
      value - The activeDocument to set.
      Returns:
      This builder for chaining.
    • clearActiveDocument

      public ConversationContext.Builder clearActiveDocument()
       The current active document the user opened.
       It contains the document resource reference.
       
      string active_document = 2;
      Returns:
      This builder for chaining.
    • setActiveDocumentBytes

      public ConversationContext.Builder setActiveDocumentBytes(com.google.protobuf.ByteString value)
       The current active document the user opened.
       It contains the document resource reference.
       
      string active_document = 2;
      Parameters:
      value - The bytes for activeDocument to set.
      Returns:
      This builder for chaining.