Class ConversationContext.Builder

    • Method Detail

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

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

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