Google Cloud Dialogflow V2 Client - Class CreateDocumentRequest (1.0.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
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>.

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setParent

Required. The knowledge base to create a document for.

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

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDocument

Required. The document to create.

Generated from protobuf field .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

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

hasDocument

clearDocument

setDocument

Required. The document to create.

Generated from protobuf field .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED];

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