Class HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource (4.4.0)

public static final class HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource extends GeneratedMessageV3 implements HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder

Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE.

Protobuf type google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource

Fields

DOCUMENTS_FIELD_NUMBER

public static final int DOCUMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

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

getDefaultInstance()

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDefaultInstance()
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource

getDefaultInstanceForType()

public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDefaultInstanceForType()
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource

getDescriptor()

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

getDocuments(int index)

public String getDocuments(int index)

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>. Currently, at most 5 documents are supported.

repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The documents at the given index.

getDocumentsBytes(int index)

public ByteString getDocumentsBytes(int index)

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>. Currently, at most 5 documents are supported.

repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the documents at the given index.

getDocumentsCount()

public int getDocumentsCount()

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>. Currently, at most 5 documents are supported.

repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of documents.

getDocumentsList()

public ProtocolStringList getDocumentsList()

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>. Currently, at most 5 documents are supported.

repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the documents.

getParserForType()

public Parser<HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource> getParserForType()
Returns
TypeDescription
Parser<DocumentQuerySource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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

newBuilder()

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder newBuilder()
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder

newBuilder(HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource prototype)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder newBuilder(HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource prototype)
Parameter
NameDescription
prototypeHumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder

newBuilderForType()

public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder newBuilderForType()
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource> parser()
Returns
TypeDescription
Parser<DocumentQuerySource>

toBuilder()

public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder toBuilder()
Returns
TypeDescription
HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder

writeTo(CodedOutputStream output)

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