public static final class ConversationContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder> implements ConversationContextOrBuilder
Defines context of the conversationProtobuf type
google.cloud.discoveryengine.v1alpha.ConversationContext| Modifier and Type | Method and Description |
|---|---|
ConversationContext.Builder |
addAllContextDocuments(Iterable<String> values)
The current list of documents the user is seeing.
|
ConversationContext.Builder |
addContextDocuments(String value)
The current list of documents the user is seeing.
|
ConversationContext.Builder |
addContextDocumentsBytes(com.google.protobuf.ByteString value)
The current list of documents the user is seeing.
|
ConversationContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConversationContext |
build() |
ConversationContext |
buildPartial() |
ConversationContext.Builder |
clear() |
ConversationContext.Builder |
clearActiveDocument()
The current active document the user opened.
|
ConversationContext.Builder |
clearContextDocuments()
The current list of documents the user is seeing.
|
ConversationContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ConversationContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ConversationContext.Builder |
clone() |
String |
getActiveDocument()
The current active document the user opened.
|
com.google.protobuf.ByteString |
getActiveDocumentBytes()
The current active document the user opened.
|
String |
getContextDocuments(int index)
The current list of documents the user is seeing.
|
com.google.protobuf.ByteString |
getContextDocumentsBytes(int index)
The current list of documents the user is seeing.
|
int |
getContextDocumentsCount()
The current list of documents the user is seeing.
|
com.google.protobuf.ProtocolStringList |
getContextDocumentsList()
The current list of documents the user is seeing.
|
ConversationContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ConversationContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ConversationContext.Builder |
mergeFrom(ConversationContext other) |
ConversationContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
ConversationContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConversationContext.Builder |
setActiveDocument(String value)
The current active document the user opened.
|
ConversationContext.Builder |
setActiveDocumentBytes(com.google.protobuf.ByteString value)
The current active document the user opened.
|
ConversationContext.Builder |
setContextDocuments(int index,
String value)
The current list of documents the user is seeing.
|
ConversationContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConversationContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ConversationContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ConversationContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ConversationContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ConversationContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversationContext.Builder>public ConversationContext.Builder mergeFrom(ConversationContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public ConversationContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversationContext.Builder>IOExceptionpublic 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;getContextDocumentsList in interface ConversationContextOrBuilderpublic int getContextDocumentsCount()
The current list of documents the user is seeing. It contains the document resource references.
repeated string context_documents = 1;getContextDocumentsCount in interface ConversationContextOrBuilderpublic String getContextDocuments(int index)
The current list of documents the user is seeing. It contains the document resource references.
repeated string context_documents = 1;getContextDocuments in interface ConversationContextOrBuilderindex - The index of the element to return.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;getContextDocumentsBytes in interface ConversationContextOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The contextDocuments to set.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;value - The contextDocuments to add.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;values - The contextDocuments to add.public ConversationContext.Builder clearContextDocuments()
The current list of documents the user is seeing. It contains the document resource references.
repeated string context_documents = 1;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;value - The bytes of the contextDocuments to add.public String getActiveDocument()
The current active document the user opened. It contains the document resource reference.
string active_document = 2;getActiveDocument in interface ConversationContextOrBuilderpublic com.google.protobuf.ByteString getActiveDocumentBytes()
The current active document the user opened. It contains the document resource reference.
string active_document = 2;getActiveDocumentBytes in interface ConversationContextOrBuilderpublic ConversationContext.Builder setActiveDocument(String value)
The current active document the user opened. It contains the document resource reference.
string active_document = 2;value - The activeDocument to set.public ConversationContext.Builder clearActiveDocument()
The current active document the user opened. It contains the document resource reference.
string active_document = 2;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;value - The bytes for activeDocument to set.public final ConversationContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>public final ConversationContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>Copyright © 2024 Google LLC. All rights reserved.