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.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(ConversationContext other)
ConversationContext.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clear
public ConversationContext.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
getDefaultInstanceForType
public ConversationContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConversationContext build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConversationContext buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConversationContext.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
setField
public ConversationContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clearField
public ConversationContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
clearOneof
public ConversationContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
addRepeatedField
public ConversationContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
mergeFrom
public ConversationContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConversationContext.Builder>
-
mergeFrom
public ConversationContext.Builder mergeFrom(ConversationContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getContextDocumentsList
in 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:
getContextDocumentsCount
in 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:
getContextDocuments
in 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:
getContextDocumentsBytes
in 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:
getActiveDocument
in 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:
getActiveDocumentBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
mergeUnknownFields
public final ConversationContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationContext.Builder>
-
-