Class ConversationContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
- com.google.cloud.discoveryengine.v1.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.GeneratedMessageV3.Builder<ConversationContext.Builder> implements ConversationContextOrBuilder
Defines context of the conversation
Protobuf typegoogle.cloud.discoveryengine.v1.ConversationContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationContext.BuilderaddAllContextDocuments(Iterable<String> values)The current list of documents the user is seeing.ConversationContext.BuilderaddContextDocuments(String value)The current list of documents the user is seeing.ConversationContext.BuilderaddContextDocumentsBytes(com.google.protobuf.ByteString value)The current list of documents the user is seeing.ConversationContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConversationContextbuild()ConversationContextbuildPartial()ConversationContext.Builderclear()ConversationContext.BuilderclearActiveDocument()The current active document the user opened.ConversationContext.BuilderclearContextDocuments()The current list of documents the user is seeing.ConversationContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ConversationContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ConversationContext.Builderclone()StringgetActiveDocument()The current active document the user opened.com.google.protobuf.ByteStringgetActiveDocumentBytes()The current active document the user opened.StringgetContextDocuments(int index)The current list of documents the user is seeing.com.google.protobuf.ByteStringgetContextDocumentsBytes(int index)The current list of documents the user is seeing.intgetContextDocumentsCount()The current list of documents the user is seeing.com.google.protobuf.ProtocolStringListgetContextDocumentsList()The current list of documents the user is seeing.ConversationContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ConversationContext.BuildermergeFrom(ConversationContext other)ConversationContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ConversationContext.BuildermergeFrom(com.google.protobuf.Message other)ConversationContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ConversationContext.BuildersetActiveDocument(String value)The current active document the user opened.ConversationContext.BuildersetActiveDocumentBytes(com.google.protobuf.ByteString value)The current active document the user opened.ConversationContext.BuildersetContextDocuments(int index, String value)The current list of documents the user is seeing.ConversationContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConversationContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ConversationContext.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clear
public ConversationContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
getDefaultInstanceForType
public ConversationContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConversationContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConversationContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConversationContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
setField
public ConversationContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clearField
public ConversationContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clearOneof
public ConversationContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
setRepeatedField
public ConversationContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
addRepeatedField
public ConversationContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
mergeFrom
public ConversationContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationContext.Builder>
-
mergeFrom
public ConversationContext.Builder mergeFrom(ConversationContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getContextDocumentsListin interfaceConversationContextOrBuilder- 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:
getContextDocumentsCountin interfaceConversationContextOrBuilder- 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:
getContextDocumentsin interfaceConversationContextOrBuilder- 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:
getContextDocumentsBytesin interfaceConversationContextOrBuilder- 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:
getActiveDocumentin interfaceConversationContextOrBuilder- 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:
getActiveDocumentBytesin interfaceConversationContextOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
mergeUnknownFields
public final ConversationContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
-