Google Cloud Dialogflow V2 Client - Class CreateDocumentRequest (1.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class CreateDocumentRequest.

Request message for Documents.CreateDocument.

Generated from protobuf message google.cloud.dialogflow.v2.CreateDocumentRequest

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The knowledge base to create a document for. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

↳ document Google\Cloud\Dialogflow\V2\Document

Required. The document to create.

getParent

Required. The knowledge base to create a document for.

Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

Returns
TypeDescription
string

setParent

Required. The knowledge base to create a document for.

Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDocument

Required. The document to create.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\Document|null

hasDocument

clearDocument

setDocument

Required. The document to create.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\Document
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The knowledge base to create a document for. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>. Please see Google\Cloud\Dialogflow\V2\DocumentsClient::knowledgeBaseName() for help formatting this field.

document Google\Cloud\Dialogflow\V2\Document

Required. The document to create.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\CreateDocumentRequest