Class ConversationContext (0.25.0)

public final class ConversationContext extends GeneratedMessageV3 implements ConversationContextOrBuilder

Defines context of the conversation

Protobuf type google.cloud.discoveryengine.v1beta.ConversationContext

Static Fields

ACTIVE_DOCUMENT_FIELD_NUMBER

public static final int ACTIVE_DOCUMENT_FIELD_NUMBER
Field Value
TypeDescription
int

CONTEXT_DOCUMENTS_FIELD_NUMBER

public static final int CONTEXT_DOCUMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConversationContext getDefaultInstance()
Returns
TypeDescription
ConversationContext

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConversationContext.Builder newBuilder()
Returns
TypeDescription
ConversationContext.Builder

newBuilder(ConversationContext prototype)

public static ConversationContext.Builder newBuilder(ConversationContext prototype)
Parameter
NameDescription
prototypeConversationContext
Returns
TypeDescription
ConversationContext.Builder

parseDelimitedFrom(InputStream input)

public static ConversationContext parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConversationContext parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConversationContext parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConversationContext parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConversationContext parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConversationContext parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConversationContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConversationContext> parser()
Returns
TypeDescription
Parser<ConversationContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActiveDocument()

public String getActiveDocument()

The current active document the user opened. It contains the document resource reference.

string active_document = 2;

Returns
TypeDescription
String

The activeDocument.

getActiveDocumentBytes()

public ByteString getActiveDocumentBytes()

The current active document the user opened. It contains the document resource reference.

string active_document = 2;

Returns
TypeDescription
ByteString

The bytes for activeDocument.

getContextDocuments(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The contextDocuments at the given index.

getContextDocumentsBytes(int index)

public ByteString getContextDocumentsBytes(int index)

The current list of documents the user is seeing. It contains the document resource references.

repeated string context_documents = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the contextDocuments at the given index.

getContextDocumentsCount()

public int getContextDocumentsCount()

The current list of documents the user is seeing. It contains the document resource references.

repeated string context_documents = 1;

Returns
TypeDescription
int

The count of contextDocuments.

getContextDocumentsList()

public ProtocolStringList getContextDocumentsList()

The current list of documents the user is seeing. It contains the document resource references.

repeated string context_documents = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the contextDocuments.

getDefaultInstanceForType()

public ConversationContext getDefaultInstanceForType()
Returns
TypeDescription
ConversationContext

getParserForType()

public Parser<ConversationContext> getParserForType()
Returns
TypeDescription
Parser<ConversationContext>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConversationContext.Builder newBuilderForType()
Returns
TypeDescription
ConversationContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConversationContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConversationContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConversationContext.Builder toBuilder()
Returns
TypeDescription
ConversationContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException