Google Cloud Dialogflow V2 Client - Class CreateDocumentRequest (1.1.1)

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

Methods

__construct

Constructor.

Parameters
Name
Description
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
Type
Description
string

setParent

Required. The knowledge base to create a document for.

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDocument

Required. The document to create.

Returns
Type
Description

hasDocument

clearDocument

setDocument

Required. The document to create.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: