diff --git a/Dialogflow/metadata/V2/Agent.php b/Dialogflow/metadata/V2/Agent.php index caa3694defb3..3f823d547bb2 100644 Binary files a/Dialogflow/metadata/V2/Agent.php and b/Dialogflow/metadata/V2/Agent.php differ diff --git a/Dialogflow/metadata/V2/AnswerRecord.php b/Dialogflow/metadata/V2/AnswerRecord.php index 172429094bf8..6c00b5c31b58 100644 Binary files a/Dialogflow/metadata/V2/AnswerRecord.php and b/Dialogflow/metadata/V2/AnswerRecord.php differ diff --git a/Dialogflow/metadata/V2/AudioConfig.php b/Dialogflow/metadata/V2/AudioConfig.php index 75f9d8b4ed78..2f8a26e8eacf 100644 Binary files a/Dialogflow/metadata/V2/AudioConfig.php and b/Dialogflow/metadata/V2/AudioConfig.php differ diff --git a/Dialogflow/metadata/V2/Context.php b/Dialogflow/metadata/V2/Context.php index 2655f6de3341..12791ba0816e 100644 --- a/Dialogflow/metadata/V2/Context.php +++ b/Dialogflow/metadata/V2/Context.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile( ' -�" +�" (google/cloud/dialogflow/v2/context.protogoogle.cloud.dialogflow.v2google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/struct.proto"� Context name ( B�A @@ -60,8 +60,8 @@ public static function initOnce() { CreateContext0.google.cloud.dialogflow.v2.CreateContextRequest#.google.cloud.dialogflow.v2.Context"�����"1/v2/{parent=projects/*/agent/sessions/*}/contexts:contextZS"H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts:contextZH"=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts:contextZ_"T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts:context�Aparent,context� UpdateContext0.google.cloud.dialogflow.v2.UpdateContextRequest#.google.cloud.dialogflow.v2.Context"�����29/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:contextZ[2P/v2/{context.name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}:contextZP2E/v2/{context.name=projects/*/locations/*/agent/sessions/*/contexts/*}:contextZg2\\/v2/{context.name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}:context�Acontext,update_mask� DeleteContext0.google.cloud.dialogflow.v2.DeleteContextRequest.google.protobuf.Empty"�����*1/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ*H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}Z?*=/v2/{name=projects/*/locations/*/agent/sessions/*/contexts/*}ZV*T/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}�Aname� -DeleteAllContexts4.google.cloud.dialogflow.v2.DeleteAllContextsRequest.google.protobuf.Empty"�����*1/v2/{parent=projects/*/agent/sessions/*}/contextsZJ*H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contextsZ?*=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contextsZV*T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts�Aparentx�Adialogflow.googleapis.com�AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB� -com.google.cloud.dialogflow.v2B ContextProtoPZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow��DF�Google.Cloud.Dialogflow.V2bproto3' +DeleteAllContexts4.google.cloud.dialogflow.v2.DeleteAllContextsRequest.google.protobuf.Empty"�����*1/v2/{parent=projects/*/agent/sessions/*}/contextsZJ*H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contextsZ?*=/v2/{parent=projects/*/locations/*/agent/sessions/*}/contextsZV*T/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts�Aparentx�Adialogflow.googleapis.com�AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB� +com.google.cloud.dialogflow.v2B ContextProtoPZ>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb��DF�Google.Cloud.Dialogflow.V2bproto3' , true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Conversation.php b/Dialogflow/metadata/V2/Conversation.php index 0858d18d8843..9bfeeba7ecdd 100644 Binary files a/Dialogflow/metadata/V2/Conversation.php and b/Dialogflow/metadata/V2/Conversation.php differ diff --git a/Dialogflow/metadata/V2/ConversationDataset.php b/Dialogflow/metadata/V2/ConversationDataset.php index d14fcda9dfe0..ade09fcd10c0 100644 Binary files a/Dialogflow/metadata/V2/ConversationDataset.php and b/Dialogflow/metadata/V2/ConversationDataset.php differ diff --git a/Dialogflow/metadata/V2/ConversationEvent.php b/Dialogflow/metadata/V2/ConversationEvent.php index 594eac6cf13f..706dd9507cb4 100644 Binary files a/Dialogflow/metadata/V2/ConversationEvent.php and b/Dialogflow/metadata/V2/ConversationEvent.php differ diff --git a/Dialogflow/metadata/V2/ConversationModel.php b/Dialogflow/metadata/V2/ConversationModel.php index ffa92ae71d5a..4136092dc73e 100644 Binary files a/Dialogflow/metadata/V2/ConversationModel.php and b/Dialogflow/metadata/V2/ConversationModel.php differ diff --git a/Dialogflow/metadata/V2/ConversationProfile.php b/Dialogflow/metadata/V2/ConversationProfile.php index dbf14bb5c155..083999d5c0dd 100644 Binary files a/Dialogflow/metadata/V2/ConversationProfile.php and b/Dialogflow/metadata/V2/ConversationProfile.php differ diff --git a/Dialogflow/metadata/V2/Document.php b/Dialogflow/metadata/V2/Document.php index cc14e5eaf665..1204deeb9879 100644 Binary files a/Dialogflow/metadata/V2/Document.php and b/Dialogflow/metadata/V2/Document.php differ diff --git a/Dialogflow/metadata/V2/EntityType.php b/Dialogflow/metadata/V2/EntityType.php index 1bf4435b628c..7aa8f1a05882 100644 Binary files a/Dialogflow/metadata/V2/EntityType.php and b/Dialogflow/metadata/V2/EntityType.php differ diff --git a/Dialogflow/metadata/V2/Environment.php b/Dialogflow/metadata/V2/Environment.php index 9cc01d0c5285..af2ba4f9c4d9 100644 Binary files a/Dialogflow/metadata/V2/Environment.php and b/Dialogflow/metadata/V2/Environment.php differ diff --git a/Dialogflow/metadata/V2/Fulfillment.php b/Dialogflow/metadata/V2/Fulfillment.php index cb2b2873b1b4..d9633a5b8ddf 100644 Binary files a/Dialogflow/metadata/V2/Fulfillment.php and b/Dialogflow/metadata/V2/Fulfillment.php differ diff --git a/Dialogflow/metadata/V2/Gcs.php b/Dialogflow/metadata/V2/Gcs.php index 11dac38763e5..c3f6cd0febbe 100644 --- a/Dialogflow/metadata/V2/Gcs.php +++ b/Dialogflow/metadata/V2/Gcs.php @@ -17,14 +17,14 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); $pool->internalAddGeneratedFile( ' -� +� $google/cloud/dialogflow/v2/gcs.protogoogle.cloud.dialogflow.v2" GcsSources uris ( B�A" GcsDestination -uri ( B� -com.google.cloud.dialogflow.v2BGcsProtoPZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow��DF�Google.Cloud.Dialogflow.V2bproto3' +uri ( B� +com.google.cloud.dialogflow.v2BGcsProtoPZ>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb��DF�Google.Cloud.Dialogflow.V2bproto3' , true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/HumanAgentAssistantEvent.php b/Dialogflow/metadata/V2/HumanAgentAssistantEvent.php index c807db82cc37..3f2efe820e73 100644 --- a/Dialogflow/metadata/V2/HumanAgentAssistantEvent.php +++ b/Dialogflow/metadata/V2/HumanAgentAssistantEvent.php @@ -17,13 +17,13 @@ public static function initOnce() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce(); $pool->internalAddGeneratedFile( ' -� +� cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb��DF�Google.Cloud.Dialogflow.V2bproto3' , true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Intent.php b/Dialogflow/metadata/V2/Intent.php index 88b9ad43120e..f7c9f4f8346b 100644 Binary files a/Dialogflow/metadata/V2/Intent.php and b/Dialogflow/metadata/V2/Intent.php differ diff --git a/Dialogflow/metadata/V2/KnowledgeBase.php b/Dialogflow/metadata/V2/KnowledgeBase.php index 67114270329e..94b3503fb434 100644 --- a/Dialogflow/metadata/V2/KnowledgeBase.php +++ b/Dialogflow/metadata/V2/KnowledgeBase.php @@ -22,7 +22,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile( ' -� +� /google/cloud/dialogflow/v2/knowledge_base.protogoogle.cloud.dialogflow.v2google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"� KnowledgeBase name (  @@ -56,8 +56,8 @@ public static function initOnce() { GetKnowledgeBase3.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest).google.cloud.dialogflow.v2.KnowledgeBase"�����&/v2/{name=projects/*/knowledgeBases/*}Z42/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.,/v2/{name=projects/*/agent/knowledgeBases/*}�Aname� CreateKnowledgeBase6.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest).google.cloud.dialogflow.v2.KnowledgeBase"�����"&/v2/{parent=projects/*}/knowledgeBases:knowledge_baseZD"2/v2/{parent=projects/*/locations/*}/knowledgeBases:knowledge_baseZ>",/v2/{parent=projects/*/agent}/knowledgeBases:knowledge_base�Aparent,knowledge_base� DeleteKnowledgeBase6.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.google.protobuf.Empty"�����*&/v2/{name=projects/*/knowledgeBases/*}Z4*2/v2/{name=projects/*/locations/*/knowledgeBases/*}Z.*,/v2/{name=projects/*/agent/knowledgeBases/*}�Aname� -UpdateKnowledgeBase6.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest).google.cloud.dialogflow.v2.KnowledgeBase"�����25/v2/{knowledge_base.name=projects/*/knowledgeBases/*}:knowledge_baseZS2A/v2/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}:knowledge_baseZM2;/v2/{knowledge_base.name=projects/*/agent/knowledgeBases/*}:knowledge_base�Aknowledge_base,update_maskx�Adialogflow.googleapis.com�AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB� -com.google.cloud.dialogflow.v2BKnowledgeBaseProtoPZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow��DF�Google.Cloud.Dialogflow.V2bproto3' +UpdateKnowledgeBase6.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest).google.cloud.dialogflow.v2.KnowledgeBase"�����25/v2/{knowledge_base.name=projects/*/knowledgeBases/*}:knowledge_baseZS2A/v2/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}:knowledge_baseZM2;/v2/{knowledge_base.name=projects/*/agent/knowledgeBases/*}:knowledge_base�Aknowledge_base,update_maskx�Adialogflow.googleapis.com�AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB� +com.google.cloud.dialogflow.v2BKnowledgeBaseProtoPZ>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb��DF�Google.Cloud.Dialogflow.V2bproto3' , true); static::$is_initialized = true; diff --git a/Dialogflow/metadata/V2/Participant.php b/Dialogflow/metadata/V2/Participant.php index baa7cfb205a3..778b215c7776 100644 Binary files a/Dialogflow/metadata/V2/Participant.php and b/Dialogflow/metadata/V2/Participant.php differ diff --git a/Dialogflow/metadata/V2/Session.php b/Dialogflow/metadata/V2/Session.php index 6fa4b55aa0c0..049e1ceb29f8 100644 Binary files a/Dialogflow/metadata/V2/Session.php and b/Dialogflow/metadata/V2/Session.php differ diff --git a/Dialogflow/metadata/V2/SessionEntityType.php b/Dialogflow/metadata/V2/SessionEntityType.php index a43fca1e6047..51d43436e46c 100644 Binary files a/Dialogflow/metadata/V2/SessionEntityType.php and b/Dialogflow/metadata/V2/SessionEntityType.php differ diff --git a/Dialogflow/metadata/V2/ValidationResult.php b/Dialogflow/metadata/V2/ValidationResult.php index 15fa7a3b1d9f..9baa2f455897 100644 Binary files a/Dialogflow/metadata/V2/ValidationResult.php and b/Dialogflow/metadata/V2/ValidationResult.php differ diff --git a/Dialogflow/metadata/V2/Version.php b/Dialogflow/metadata/V2/Version.php index fa9c3ec1d85c..b1f9bc09a094 100644 Binary files a/Dialogflow/metadata/V2/Version.php and b/Dialogflow/metadata/V2/Version.php differ diff --git a/Dialogflow/metadata/V2/Webhook.php b/Dialogflow/metadata/V2/Webhook.php index f09812615c47..b227dbf2f949 100644 --- a/Dialogflow/metadata/V2/Webhook.php +++ b/Dialogflow/metadata/V2/Webhook.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); $pool->internalAddGeneratedFile( ' -� +� (google/cloud/dialogflow/v2/webhook.protogoogle.cloud.dialogflow.v2\'google/cloud/dialogflow/v2/intent.proto(google/cloud/dialogflow/v2/session.proto4google/cloud/dialogflow/v2/session_entity_type.protogoogle/protobuf/struct.proto"� WebhookRequest session (  @@ -40,8 +40,8 @@ public static function initOnce() { OriginalDetectIntentRequest source (  version ( ( -payload ( 2.google.protobuf.StructB� -com.google.cloud.dialogflow.v2B WebhookProtoPZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow��DF�Google.Cloud.Dialogflow.V2bproto3' +payload ( 2.google.protobuf.StructB� +com.google.cloud.dialogflow.v2B WebhookProtoPZ>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb��DF�Google.Cloud.Dialogflow.V2bproto3' , true); static::$is_initialized = true; diff --git a/Dialogflow/samples/V2/AgentsClient/export_agent.php b/Dialogflow/samples/V2/AgentsClient/export_agent.php index 3be3b1f551aa..499f04654e64 100644 --- a/Dialogflow/samples/V2/AgentsClient/export_agent.php +++ b/Dialogflow/samples/V2/AgentsClient/export_agent.php @@ -38,15 +38,16 @@ * * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse] * * @param string $formattedParent The project that the agent to export is associated with. * Format: `projects/`. Please see * {@see AgentsClient::projectName()} for help formatting this field. - * @param string $agentUri The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * @param string $agentUri The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must diff --git a/Dialogflow/samples/V2/AgentsClient/import_agent.php b/Dialogflow/samples/V2/AgentsClient/import_agent.php index ba8d2ca024b4..27fd7f0819d9 100644 --- a/Dialogflow/samples/V2/AgentsClient/import_agent.php +++ b/Dialogflow/samples/V2/AgentsClient/import_agent.php @@ -33,11 +33,13 @@ * * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new - * versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft - * agent will be trained automatically (unless disabled in agent settings). - * However, once the import is done, training may not be completed yet. Please - * call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train - * explicitly. + * versions from + * [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After + * the import, the imported draft agent will be trained automatically (unless + * disabled in agent settings). However, once the import is done, training may + * not be completed yet. Please call + * [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the + * operation it returns in order to train explicitly. * * This method is a [long-running * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). diff --git a/Dialogflow/samples/V2/AgentsClient/restore_agent.php b/Dialogflow/samples/V2/AgentsClient/restore_agent.php index d2ced5ba8db3..36c98f3c555b 100644 --- a/Dialogflow/samples/V2/AgentsClient/restore_agent.php +++ b/Dialogflow/samples/V2/AgentsClient/restore_agent.php @@ -35,8 +35,9 @@ * entity types in the older version are deleted. After the restore, the * restored draft agent will be trained automatically (unless disabled in * agent settings). However, once the restore is done, training may not be - * completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it - * returns in order to train explicitly. + * completed yet. Please call + * [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the + * operation it returns in order to train explicitly. * * This method is a [long-running * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). diff --git a/Dialogflow/samples/V2/ConversationDatasetsClient/create_conversation_dataset.php b/Dialogflow/samples/V2/ConversationDatasetsClient/create_conversation_dataset.php index df76565755fc..c980592bbde2 100644 --- a/Dialogflow/samples/V2/ConversationDatasetsClient/create_conversation_dataset.php +++ b/Dialogflow/samples/V2/ConversationDatasetsClient/create_conversation_dataset.php @@ -36,8 +36,10 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] - * - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset] + * - `metadata`: + * [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] + * - `response`: + * [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset] * * @param string $parent The project to create conversation dataset for. Format: * `projects//locations/` diff --git a/Dialogflow/samples/V2/ConversationDatasetsClient/delete_conversation_dataset.php b/Dialogflow/samples/V2/ConversationDatasetsClient/delete_conversation_dataset.php index de23dc6b7ab5..4b9239b2f860 100644 --- a/Dialogflow/samples/V2/ConversationDatasetsClient/delete_conversation_dataset.php +++ b/Dialogflow/samples/V2/ConversationDatasetsClient/delete_conversation_dataset.php @@ -35,7 +35,8 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] + * - `metadata`: + * [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/samples/V2/ConversationDatasetsClient/import_conversation_data.php b/Dialogflow/samples/V2/ConversationDatasetsClient/import_conversation_data.php index 7518846a5ac3..e0b8f76f4af6 100644 --- a/Dialogflow/samples/V2/ConversationDatasetsClient/import_conversation_data.php +++ b/Dialogflow/samples/V2/ConversationDatasetsClient/import_conversation_data.php @@ -39,8 +39,10 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] - * - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse] + * - `metadata`: + * [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] + * - `response`: + * [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse] * * @param string $formattedName Dataset resource name. Format: * `projects//locations//locations/` + * @param string $formattedParent The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * Please see {@see ConversationDatasetsClient::locationName()} for help formatting this field. */ function list_conversation_datasets_sample(string $formattedParent): void diff --git a/Dialogflow/samples/V2/ConversationModelsClient/create_conversation_model.php b/Dialogflow/samples/V2/ConversationModelsClient/create_conversation_model.php index a7a4ddb6fa89..3d47ec9fc47a 100644 --- a/Dialogflow/samples/V2/ConversationModelsClient/create_conversation_model.php +++ b/Dialogflow/samples/V2/ConversationModelsClient/create_conversation_model.php @@ -38,8 +38,10 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] - * - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel] + * - `metadata`: + * [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] + * - `response`: + * [ConversationModel][google.cloud.dialogflow.v2.ConversationModel] * * @param string $conversationModelDisplayName The display name of the model. At most 64 bytes long. * @param string $formattedConversationModelDatasetsDataset ConversationDataset resource name. Format: diff --git a/Dialogflow/samples/V2/ConversationModelsClient/delete_conversation_model.php b/Dialogflow/samples/V2/ConversationModelsClient/delete_conversation_model.php index 90133497fb60..cd116a8f198d 100644 --- a/Dialogflow/samples/V2/ConversationModelsClient/delete_conversation_model.php +++ b/Dialogflow/samples/V2/ConversationModelsClient/delete_conversation_model.php @@ -35,7 +35,8 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] + * - `metadata`: + * [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/samples/V2/ConversationModelsClient/deploy_conversation_model.php b/Dialogflow/samples/V2/ConversationModelsClient/deploy_conversation_model.php index d65adcd0fb52..d62810b1e426 100644 --- a/Dialogflow/samples/V2/ConversationModelsClient/deploy_conversation_model.php +++ b/Dialogflow/samples/V2/ConversationModelsClient/deploy_conversation_model.php @@ -38,7 +38,8 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] + * - `metadata`: + * [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/samples/V2/ConversationModelsClient/undeploy_conversation_model.php b/Dialogflow/samples/V2/ConversationModelsClient/undeploy_conversation_model.php index 008a632cb63c..9e21b35c55fa 100644 --- a/Dialogflow/samples/V2/ConversationModelsClient/undeploy_conversation_model.php +++ b/Dialogflow/samples/V2/ConversationModelsClient/undeploy_conversation_model.php @@ -38,7 +38,8 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] + * - `metadata`: + * [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/samples/V2/ConversationProfilesClient/clear_suggestion_feature_config.php b/Dialogflow/samples/V2/ConversationProfilesClient/clear_suggestion_feature_config.php index ec2a805848ea..c9894d735cb4 100644 --- a/Dialogflow/samples/V2/ConversationProfilesClient/clear_suggestion_feature_config.php +++ b/Dialogflow/samples/V2/ConversationProfilesClient/clear_suggestion_feature_config.php @@ -39,8 +39,10 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] - * - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] + * - `metadata`: + * [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] + * - `response`: + * [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] * * @param string $conversationProfile The Conversation Profile to add or update the suggestion feature * config. Format: `projects//locations//locations/`. Please see diff --git a/Dialogflow/samples/V2/ConversationProfilesClient/set_suggestion_feature_config.php b/Dialogflow/samples/V2/ConversationProfilesClient/set_suggestion_feature_config.php index e4339e733246..5fee12f454c1 100644 --- a/Dialogflow/samples/V2/ConversationProfilesClient/set_suggestion_feature_config.php +++ b/Dialogflow/samples/V2/ConversationProfilesClient/set_suggestion_feature_config.php @@ -41,8 +41,10 @@ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] - * - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] + * - `metadata`: + * [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] + * - `response`: + * [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] * * If a long running operation to add or update suggestion feature * config for the same conversation profile, participant role and suggestion diff --git a/Dialogflow/samples/V2/ConversationProfilesClient/update_conversation_profile.php b/Dialogflow/samples/V2/ConversationProfilesClient/update_conversation_profile.php index 1087f3968ec2..476eadcecbe9 100644 --- a/Dialogflow/samples/V2/ConversationProfilesClient/update_conversation_profile.php +++ b/Dialogflow/samples/V2/ConversationProfilesClient/update_conversation_profile.php @@ -33,7 +33,8 @@ * * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] * aren't populated in the response. You can retrieve them via - * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] + * API. * * @param string $conversationProfileDisplayName Human readable name for this profile. Max length 1024 bytes. */ diff --git a/Dialogflow/samples/V2/ConversationsClient/create_conversation.php b/Dialogflow/samples/V2/ConversationsClient/create_conversation.php index 09bd9fe07468..eeab8258e543 100644 --- a/Dialogflow/samples/V2/ConversationsClient/create_conversation.php +++ b/Dialogflow/samples/V2/ConversationsClient/create_conversation.php @@ -41,11 +41,14 @@ * For Assist Stage, there's no dialogflow agent responding to user queries. * But we will provide suggestions which are generated from conversation. * - * If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow - * agent, conversation will start from `Automated Agent Stage`, otherwise, it - * will start from `Assist Stage`. And during `Automated Agent Stage`, once an - * [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation - * will transfer to Assist Stage. + * If + * [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] + * is configured for a dialogflow agent, conversation will start from + * `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And + * during `Automated Agent Stage`, once an + * [Intent][google.cloud.dialogflow.v2.Intent] with + * [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] + * is triggered, conversation will transfer to Assist Stage. * * @param string $formattedParent Resource identifier of the project creating the conversation. * Format: `projects//locations/`. Please see diff --git a/Dialogflow/samples/V2/ConversationsClient/suggest_conversation_summary.php b/Dialogflow/samples/V2/ConversationsClient/suggest_conversation_summary.php new file mode 100644 index 000000000000..5caae9706ccc --- /dev/null +++ b/Dialogflow/samples/V2/ConversationsClient/suggest_conversation_summary.php @@ -0,0 +1,70 @@ +/locations//conversations/`. Please see + * {@see ConversationsClient::conversationName()} for help formatting this field. + */ +function suggest_conversation_summary_sample(string $formattedConversation): void +{ + // Create a client. + $conversationsClient = new ConversationsClient(); + + // Call the API and handle any network failures. + try { + /** @var SuggestConversationSummaryResponse $response */ + $response = $conversationsClient->suggestConversationSummary($formattedConversation); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedConversation = ConversationsClient::conversationName('[PROJECT]', '[CONVERSATION]'); + + suggest_conversation_summary_sample($formattedConversation); +} +// [END dialogflow_v2_generated_Conversations_SuggestConversationSummary_sync] diff --git a/Dialogflow/samples/V2/DocumentsClient/create_document.php b/Dialogflow/samples/V2/DocumentsClient/create_document.php index a0f75c905edc..d2d5acd0820d 100644 --- a/Dialogflow/samples/V2/DocumentsClient/create_document.php +++ b/Dialogflow/samples/V2/DocumentsClient/create_document.php @@ -37,7 +37,8 @@ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * @param string $formattedParent The knowledge base to create a document for. diff --git a/Dialogflow/samples/V2/DocumentsClient/delete_document.php b/Dialogflow/samples/V2/DocumentsClient/delete_document.php index 70b0419fe99b..1a4c829003b1 100644 --- a/Dialogflow/samples/V2/DocumentsClient/delete_document.php +++ b/Dialogflow/samples/V2/DocumentsClient/delete_document.php @@ -35,7 +35,8 @@ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/samples/V2/DocumentsClient/export_document.php b/Dialogflow/samples/V2/DocumentsClient/export_document.php index 810aff29509e..6bb7e5b92932 100644 --- a/Dialogflow/samples/V2/DocumentsClient/export_document.php +++ b/Dialogflow/samples/V2/DocumentsClient/export_document.php @@ -37,7 +37,8 @@ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * @param string $formattedName The name of the document to export. diff --git a/Dialogflow/samples/V2/DocumentsClient/import_documents.php b/Dialogflow/samples/V2/DocumentsClient/import_documents.php index 36afd5857508..2cd4190fab0a 100644 --- a/Dialogflow/samples/V2/DocumentsClient/import_documents.php +++ b/Dialogflow/samples/V2/DocumentsClient/import_documents.php @@ -40,8 +40,10 @@ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - * - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `response`: + * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse] * * @param string $formattedParent The knowledge base to import documents into. * Format: `projects//locations/.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $document_efficiency = 0; + /** + * Optional. Feedback for conversation summarization. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $summarization_feedback = null; /** * Constructor. @@ -72,8 +80,12 @@ class AgentAssistantFeedback extends \Google\Protobuf\Internal\Message * @type int $document_efficiency * Optional. Whether or not the suggested document is efficient. For example, * if the document is poorly written, hard to understand, hard to use or - * too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is + * too long to find useful information, + * [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] + * is * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT]. + * @type \Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback $summarization_feedback + * Optional. Feedback for conversation summarization. * } */ public function __construct($data = NULL) { @@ -158,7 +170,9 @@ public function setDocumentCorrectness($var) /** * Optional. Whether or not the suggested document is efficient. For example, * if the document is poorly written, hard to understand, hard to use or - * too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is + * too long to find useful information, + * [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] + * is * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT]. * * Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,7 +186,9 @@ public function getDocumentEfficiency() /** * Optional. Whether or not the suggested document is efficient. For example, * if the document is poorly written, hard to understand, hard to use or - * too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is + * too long to find useful information, + * [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] + * is * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT]. * * Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -187,5 +203,41 @@ public function setDocumentEfficiency($var) return $this; } + /** + * Optional. Feedback for conversation summarization. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback|null + */ + public function getSummarizationFeedback() + { + return $this->summarization_feedback; + } + + public function hasSummarizationFeedback() + { + return isset($this->summarization_feedback); + } + + public function clearSummarizationFeedback() + { + unset($this->summarization_feedback); + } + + /** + * Optional. Feedback for conversation summarization. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback $var + * @return $this + */ + public function setSummarizationFeedback($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback::class); + $this->summarization_feedback = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/AgentAssistantFeedback/SummarizationFeedback.php b/Dialogflow/src/V2/AgentAssistantFeedback/SummarizationFeedback.php new file mode 100644 index 000000000000..535a439949bf --- /dev/null +++ b/Dialogflow/src/V2/AgentAssistantFeedback/SummarizationFeedback.php @@ -0,0 +1,156 @@ +google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback + */ +class SummarizationFeedback extends \Google\Protobuf\Internal\Message +{ + /** + * Timestamp when composing of the summary starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + private $start_time = null; + /** + * Timestamp when the summary was submitted. + * + * Generated from protobuf field .google.protobuf.Timestamp submit_time = 2; + */ + private $submit_time = null; + /** + * Text of actual submitted summary. + * + * Generated from protobuf field string summary_text = 3; + */ + private $summary_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Timestamp when composing of the summary starts. + * @type \Google\Protobuf\Timestamp $submit_time + * Timestamp when the summary was submitted. + * @type string $summary_text + * Text of actual submitted summary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\AnswerRecord::initOnce(); + parent::__construct($data); + } + + /** + * Timestamp when composing of the summary starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Timestamp when composing of the summary starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Timestamp when the summary was submitted. + * + * Generated from protobuf field .google.protobuf.Timestamp submit_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSubmitTime() + { + return $this->submit_time; + } + + public function hasSubmitTime() + { + return isset($this->submit_time); + } + + public function clearSubmitTime() + { + unset($this->submit_time); + } + + /** + * Timestamp when the summary was submitted. + * + * Generated from protobuf field .google.protobuf.Timestamp submit_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSubmitTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->submit_time = $var; + + return $this; + } + + /** + * Text of actual submitted summary. + * + * Generated from protobuf field string summary_text = 3; + * @return string + */ + public function getSummaryText() + { + return $this->summary_text; + } + + /** + * Text of actual submitted summary. + * + * Generated from protobuf field string summary_text = 3; + * @param string $var + * @return $this + */ + public function setSummaryText($var) + { + GPBUtil::checkString($var, True); + $this->summary_text = $var; + + return $this; + } + +} + + diff --git a/Dialogflow/src/V2/AnalyzeContentRequest.php b/Dialogflow/src/V2/AnalyzeContentRequest.php index bf6c3e3cd03f..19bc3fad1400 100644 --- a/Dialogflow/src/V2/AnalyzeContentRequest.php +++ b/Dialogflow/src/V2/AnalyzeContentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. + * The request message for + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. * * Generated from protobuf message google.cloud.dialogflow.v2.AnalyzeContentRequest */ diff --git a/Dialogflow/src/V2/AnalyzeContentResponse.php b/Dialogflow/src/V2/AnalyzeContentResponse.php index 841af3903358..1fcaec403132 100644 --- a/Dialogflow/src/V2/AnalyzeContentResponse.php +++ b/Dialogflow/src/V2/AnalyzeContentResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. + * The response message for + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. * * Generated from protobuf message google.cloud.dialogflow.v2.AnalyzeContentResponse */ @@ -41,7 +42,9 @@ class AnalyzeContentResponse extends \Google\Protobuf\Internal\Message * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ @@ -54,7 +57,8 @@ class AnalyzeContentResponse extends \Google\Protobuf\Internal\Message private $message = null; /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * Note that any failure of Agent Assist features will not lead to the overall * failure of an AnalyzeContent API call. Instead, the features will @@ -66,7 +70,8 @@ class AnalyzeContentResponse extends \Google\Protobuf\Internal\Message private $human_agent_suggestion_results; /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * Same as human_agent_suggestion_results, any failure of Agent Assist * features will not lead to the overall failure of an AnalyzeContent API @@ -107,12 +112,15 @@ class AnalyzeContentResponse extends \Google\Protobuf\Internal\Message * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * @type \Google\Cloud\Dialogflow\V2\Message $message * Message analyzed by CCAI. * @type array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $human_agent_suggestion_results * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * Note that any failure of Agent Assist features will not lead to the overall * failure of an AnalyzeContent API call. Instead, the features will @@ -120,7 +128,8 @@ class AnalyzeContentResponse extends \Google\Protobuf\Internal\Message * SuggestionResult. * @type array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $end_user_suggestion_results * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * Same as human_agent_suggestion_results, any failure of Agent Assist * features will not lead to the overall failure of an AnalyzeContent API @@ -221,7 +230,9 @@ public function setReplyAudio($var) * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * @return \Google\Cloud\Dialogflow\V2\AutomatedAgentReply|null @@ -245,7 +256,9 @@ public function clearAutomatedAgentReply() * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * @param \Google\Cloud\Dialogflow\V2\AutomatedAgentReply $var @@ -297,7 +310,8 @@ public function setMessage($var) /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * Note that any failure of Agent Assist features will not lead to the overall * failure of an AnalyzeContent API call. Instead, the features will @@ -314,7 +328,8 @@ public function getHumanAgentSuggestionResults() /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * Note that any failure of Agent Assist features will not lead to the overall * failure of an AnalyzeContent API call. Instead, the features will @@ -335,7 +350,8 @@ public function setHumanAgentSuggestionResults($var) /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * Same as human_agent_suggestion_results, any failure of Agent Assist * features will not lead to the overall failure of an AnalyzeContent API @@ -352,7 +368,8 @@ public function getEndUserSuggestionResults() /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * Same as human_agent_suggestion_results, any failure of Agent Assist * features will not lead to the overall failure of an AnalyzeContent API diff --git a/Dialogflow/src/V2/AnswerRecord.php b/Dialogflow/src/V2/AnswerRecord.php index 101a981299de..7c67e1957fce 100644 --- a/Dialogflow/src/V2/AnswerRecord.php +++ b/Dialogflow/src/V2/AnswerRecord.php @@ -23,9 +23,11 @@ * agent assistant suggestion generated. * A typical workflow for customers provide feedback to an answer is: * 1. For human agent assistant, customers get suggestion via ListSuggestions - * API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are returned to the - * customers. - * 2. The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the + * API. Together with the answers, + * [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are + * returned to the customers. + * 2. The customer uses the + * [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the * [UpdateAnswerRecord][] method to send feedback about a specific answer * that they believe is wrong. * @@ -43,8 +45,8 @@ class AnswerRecord extends \Google\Protobuf\Internal\Message private $name = ''; /** * Required. The AnswerFeedback for this record. You can set this with - * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about - * this answer. + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] + * in order to give us feedback about this answer. * * Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -63,8 +65,8 @@ class AnswerRecord extends \Google\Protobuf\Internal\Message * ID>/answerRecords/`. * @type \Google\Cloud\Dialogflow\V2\AnswerFeedback $answer_feedback * Required. The AnswerFeedback for this record. You can set this with - * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about - * this answer. + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] + * in order to give us feedback about this answer. * @type \Google\Cloud\Dialogflow\V2\AgentAssistantRecord $agent_assistant_record * Output only. The record for human agent assistant. * } @@ -106,8 +108,8 @@ public function setName($var) /** * Required. The AnswerFeedback for this record. You can set this with - * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about - * this answer. + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] + * in order to give us feedback about this answer. * * Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Dialogflow\V2\AnswerFeedback|null @@ -129,8 +131,8 @@ public function clearAnswerFeedback() /** * Required. The AnswerFeedback for this record. You can set this with - * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about - * this answer. + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] + * in order to give us feedback about this answer. * * Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Dialogflow\V2\AnswerFeedback $var diff --git a/Dialogflow/src/V2/ArticleSuggestionModelMetadata.php b/Dialogflow/src/V2/ArticleSuggestionModelMetadata.php index e738d94f8729..7e0ac5a2e4a9 100644 --- a/Dialogflow/src/V2/ArticleSuggestionModelMetadata.php +++ b/Dialogflow/src/V2/ArticleSuggestionModelMetadata.php @@ -16,7 +16,8 @@ class ArticleSuggestionModelMetadata extends \Google\Protobuf\Internal\Message { /** - * Optional. Type of the article suggestion model. If not provided, model_type is used. + * Optional. Type of the article suggestion model. If not provided, model_type + * is used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -29,7 +30,8 @@ class ArticleSuggestionModelMetadata extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $training_model_type - * Optional. Type of the article suggestion model. If not provided, model_type is used. + * Optional. Type of the article suggestion model. If not provided, model_type + * is used. * } */ public function __construct($data = NULL) { @@ -38,7 +40,8 @@ public function __construct($data = NULL) { } /** - * Optional. Type of the article suggestion model. If not provided, model_type is used. + * Optional. Type of the article suggestion model. If not provided, model_type + * is used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -49,7 +52,8 @@ public function getTrainingModelType() } /** - * Optional. Type of the article suggestion model. If not provided, model_type is used. + * Optional. Type of the article suggestion model. If not provided, model_type + * is used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/AssistQueryParameters.php b/Dialogflow/src/V2/AssistQueryParameters.php index d526ca6b4d6a..2deb569bf5cd 100644 --- a/Dialogflow/src/V2/AssistQueryParameters.php +++ b/Dialogflow/src/V2/AssistQueryParameters.php @@ -18,7 +18,8 @@ class AssistQueryParameters extends \Google\Protobuf\Internal\Message /** * Key-value filters on the metadata of documents returned by article * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -46,7 +47,8 @@ class AssistQueryParameters extends \Google\Protobuf\Internal\Message * @type array|\Google\Protobuf\Internal\MapField $documents_metadata_filters * Key-value filters on the metadata of documents returned by article * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -70,7 +72,8 @@ public function __construct($data = NULL) { /** * Key-value filters on the metadata of documents returned by article * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -96,7 +99,8 @@ public function getDocumentsMetadataFilters() /** * Key-value filters on the metadata of documents returned by article * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be diff --git a/Dialogflow/src/V2/AutomatedAgentReply.php b/Dialogflow/src/V2/AutomatedAgentReply.php index 80160f13d32a..3f2e31010a9f 100644 --- a/Dialogflow/src/V2/AutomatedAgentReply.php +++ b/Dialogflow/src/V2/AutomatedAgentReply.php @@ -16,7 +16,9 @@ class AutomatedAgentReply extends \Google\Protobuf\Internal\Message { /** - * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + * Response of the Dialogflow + * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] + * call. * * Generated from protobuf field .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ @@ -51,7 +53,9 @@ class AutomatedAgentReply extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\Dialogflow\V2\DetectIntentResponse $detect_intent_response - * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + * Response of the Dialogflow + * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] + * call. * @type int $automated_agent_reply_type * AutomatedAgentReply type. * @type bool $allow_cancellation @@ -70,7 +74,9 @@ public function __construct($data = NULL) { } /** - * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + * Response of the Dialogflow + * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] + * call. * * Generated from protobuf field .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; * @return \Google\Cloud\Dialogflow\V2\DetectIntentResponse|null @@ -91,7 +97,9 @@ public function clearDetectIntentResponse() } /** - * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + * Response of the Dialogflow + * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] + * call. * * Generated from protobuf field .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; * @param \Google\Cloud\Dialogflow\V2\DetectIntentResponse $var diff --git a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php index d7df79a96618..fb576df8f4e9 100644 --- a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for + * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchCreateEntitiesRequest */ diff --git a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php index bb348e2a2d84..531d29ef6054 100644 --- a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. + * The request message for + * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest */ diff --git a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php index 09a4d36dbb90..86a620e2fa95 100644 --- a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. + * The request message for + * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest */ diff --git a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php index a647e66e750e..86cebd99e1b1 100644 --- a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php +++ b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. + * The request message for + * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteIntentsRequest */ diff --git a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php index 35b5dfede9c4..a3f2d74d7c3d 100644 --- a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities]. + * The request message for + * [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest */ diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php index f42b6dae6754..acd32218a20b 100644 --- a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php +++ b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The request message for + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest */ diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php index a9865f3b8be9..b73eca89fee6 100644 --- a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php +++ b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The response message for + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse */ diff --git a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php index 14fff1f0fd9c..fe289de698ad 100644 --- a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php +++ b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The response message for + * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateIntentsResponse */ diff --git a/Dialogflow/src/V2/CompleteConversationRequest.php b/Dialogflow/src/V2/CompleteConversationRequest.php index 44f2db760ee6..896eef1fd393 100644 --- a/Dialogflow/src/V2/CompleteConversationRequest.php +++ b/Dialogflow/src/V2/CompleteConversationRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation]. + * The request message for + * [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation]. * * Generated from protobuf message google.cloud.dialogflow.v2.CompleteConversationRequest */ diff --git a/Dialogflow/src/V2/Conversation.php b/Dialogflow/src/V2/Conversation.php index 721321c3bbaf..11cc3b55760d 100644 --- a/Dialogflow/src/V2/Conversation.php +++ b/Dialogflow/src/V2/Conversation.php @@ -42,8 +42,8 @@ class Conversation extends \Google\Protobuf\Internal\Message */ private $conversation_profile = ''; /** - * Output only. It will not be empty if the conversation is to be connected over - * telephony. + * Output only. It will not be empty if the conversation is to be connected + * over telephony. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -65,12 +65,15 @@ class Conversation extends \Google\Protobuf\Internal\Message * human agent is handling the conversation. * If the conversation is created with the conversation profile that has * Dialogflow config set, defaults to - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; + * Otherwise, defaults to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * If the conversation is created with the conversation profile that has * Dialogflow config set but explicitly sets conversation_stage to - * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], + * it skips + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] + * stage and directly goes to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * * Generated from protobuf field .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; @@ -95,8 +98,8 @@ class Conversation extends \Google\Protobuf\Internal\Message * Format: `projects//locations//conversationProfiles/`. * @type \Google\Cloud\Dialogflow\V2\ConversationPhoneNumber $phone_number - * Output only. It will not be empty if the conversation is to be connected over - * telephony. + * Output only. It will not be empty if the conversation is to be connected + * over telephony. * @type \Google\Protobuf\Timestamp $start_time * Output only. The time the conversation was started. * @type \Google\Protobuf\Timestamp $end_time @@ -106,12 +109,15 @@ class Conversation extends \Google\Protobuf\Internal\Message * human agent is handling the conversation. * If the conversation is created with the conversation profile that has * Dialogflow config set, defaults to - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; + * Otherwise, defaults to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * If the conversation is created with the conversation profile that has * Dialogflow config set but explicitly sets conversation_stage to - * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], + * it skips + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] + * stage and directly goes to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * } */ @@ -209,8 +215,8 @@ public function setConversationProfile($var) } /** - * Output only. It will not be empty if the conversation is to be connected over - * telephony. + * Output only. It will not be empty if the conversation is to be connected + * over telephony. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Cloud\Dialogflow\V2\ConversationPhoneNumber|null @@ -231,8 +237,8 @@ public function clearPhoneNumber() } /** - * Output only. It will not be empty if the conversation is to be connected over - * telephony. + * Output only. It will not be empty if the conversation is to be connected + * over telephony. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\Dialogflow\V2\ConversationPhoneNumber $var @@ -323,12 +329,15 @@ public function setEndTime($var) * human agent is handling the conversation. * If the conversation is created with the conversation profile that has * Dialogflow config set, defaults to - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; + * Otherwise, defaults to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * If the conversation is created with the conversation profile that has * Dialogflow config set but explicitly sets conversation_stage to - * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], + * it skips + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] + * stage and directly goes to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * * Generated from protobuf field .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; @@ -344,12 +353,15 @@ public function getConversationStage() * human agent is handling the conversation. * If the conversation is created with the conversation profile that has * Dialogflow config set, defaults to - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; + * Otherwise, defaults to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * If the conversation is created with the conversation profile that has * Dialogflow config set but explicitly sets conversation_stage to - * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips - * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], + * it skips + * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] + * stage and directly goes to * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. * * Generated from protobuf field .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; diff --git a/Dialogflow/src/V2/ConversationDataset.php b/Dialogflow/src/V2/ConversationDataset.php index db47961bf141..8a069cc231a1 100644 --- a/Dialogflow/src/V2/ConversationDataset.php +++ b/Dialogflow/src/V2/ConversationDataset.php @@ -57,7 +57,8 @@ class ConversationDataset extends \Google\Protobuf\Internal\Message */ private $conversation_info = null; /** - * Output only. The number of conversations this conversation dataset contains. + * Output only. The number of conversations this conversation dataset + * contains. * * Generated from protobuf field int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -84,7 +85,8 @@ class ConversationDataset extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dialogflow\V2\ConversationInfo $conversation_info * Output only. Metadata set during conversation data import. * @type int|string $conversation_count - * Output only. The number of conversations this conversation dataset contains. + * Output only. The number of conversations this conversation dataset + * contains. * } */ public function __construct($data = NULL) { @@ -283,7 +285,8 @@ public function setConversationInfo($var) } /** - * Output only. The number of conversations this conversation dataset contains. + * Output only. The number of conversations this conversation dataset + * contains. * * Generated from protobuf field int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int|string @@ -294,7 +297,8 @@ public function getConversationCount() } /** - * Output only. The number of conversations this conversation dataset contains. + * Output only. The number of conversations this conversation dataset + * contains. * * Generated from protobuf field int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int|string $var diff --git a/Dialogflow/src/V2/ConversationInfo.php b/Dialogflow/src/V2/ConversationInfo.php index c6ee7aaf4e10..0bea4f446db2 100644 --- a/Dialogflow/src/V2/ConversationInfo.php +++ b/Dialogflow/src/V2/ConversationInfo.php @@ -16,9 +16,9 @@ class ConversationInfo extends \Google\Protobuf\Internal\Message { /** - * Optional. The language code of the conversation data within this dataset. See - * https://cloud.google.com/apis/design/standard_fields for more information. - * Supports all UTF-8 languages. + * Optional. The language code of the conversation data within this dataset. + * See https://cloud.google.com/apis/design/standard_fields for more + * information. Supports all UTF-8 languages. * * Generated from protobuf field string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -31,9 +31,9 @@ class ConversationInfo extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $language_code - * Optional. The language code of the conversation data within this dataset. See - * https://cloud.google.com/apis/design/standard_fields for more information. - * Supports all UTF-8 languages. + * Optional. The language code of the conversation data within this dataset. + * See https://cloud.google.com/apis/design/standard_fields for more + * information. Supports all UTF-8 languages. * } */ public function __construct($data = NULL) { @@ -42,9 +42,9 @@ public function __construct($data = NULL) { } /** - * Optional. The language code of the conversation data within this dataset. See - * https://cloud.google.com/apis/design/standard_fields for more information. - * Supports all UTF-8 languages. + * Optional. The language code of the conversation data within this dataset. + * See https://cloud.google.com/apis/design/standard_fields for more + * information. Supports all UTF-8 languages. * * Generated from protobuf field string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -55,9 +55,9 @@ public function getLanguageCode() } /** - * Optional. The language code of the conversation data within this dataset. See - * https://cloud.google.com/apis/design/standard_fields for more information. - * Supports all UTF-8 languages. + * Optional. The language code of the conversation data within this dataset. + * See https://cloud.google.com/apis/design/standard_fields for more + * information. Supports all UTF-8 languages. * * Generated from protobuf field string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/Dialogflow/src/V2/ConversationModelEvaluation.php b/Dialogflow/src/V2/ConversationModelEvaluation.php index f19e28f761b0..0dce1fbe604a 100644 --- a/Dialogflow/src/V2/ConversationModelEvaluation.php +++ b/Dialogflow/src/V2/ConversationModelEvaluation.php @@ -41,6 +41,26 @@ class ConversationModelEvaluation extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $create_time = null; + /** + * Output only. Human eval template in csv format. + * It tooks real-world conversations provided through input dataset, generates + * example suggestions for customer to verify quality of the model. + * For Smart Reply, the generated csv file contains columns of + * Context, (Suggestions,Q1,Q2)*3, Actual reply. + * Context contains at most 10 latest messages in the conversation prior to + * the current suggestion. + * Q1: "Would you send it as the next message of agent?" + * Evaluated based on whether the suggest is appropriate to be sent by + * agent in current context. + * Q2: "Does the suggestion move the conversation closer to resolution?" + * Evaluated based on whether the suggestion provide solutions, or answers + * customer's question or collect information from customer to resolve the + * customer's issue. + * Actual reply column contains the actual agent reply sent in the context. + * + * Generated from protobuf field string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $raw_human_eval_template_csv = ''; protected $metrics; /** @@ -61,6 +81,22 @@ class ConversationModelEvaluation extends \Google\Protobuf\Internal\Message * Output only. Creation time of this model. * @type \Google\Cloud\Dialogflow\V2\SmartReplyMetrics $smart_reply_metrics * Output only. Only available when model is for smart reply. + * @type string $raw_human_eval_template_csv + * Output only. Human eval template in csv format. + * It tooks real-world conversations provided through input dataset, generates + * example suggestions for customer to verify quality of the model. + * For Smart Reply, the generated csv file contains columns of + * Context, (Suggestions,Q1,Q2)*3, Actual reply. + * Context contains at most 10 latest messages in the conversation prior to + * the current suggestion. + * Q1: "Would you send it as the next message of agent?" + * Evaluated based on whether the suggest is appropriate to be sent by + * agent in current context. + * Q2: "Does the suggestion move the conversation closer to resolution?" + * Evaluated based on whether the suggestion provide solutions, or answers + * customer's question or collect information from customer to resolve the + * customer's issue. + * Actual reply column contains the actual agent reply sent in the context. * } */ public function __construct($data = NULL) { @@ -227,6 +263,60 @@ public function setSmartReplyMetrics($var) return $this; } + /** + * Output only. Human eval template in csv format. + * It tooks real-world conversations provided through input dataset, generates + * example suggestions for customer to verify quality of the model. + * For Smart Reply, the generated csv file contains columns of + * Context, (Suggestions,Q1,Q2)*3, Actual reply. + * Context contains at most 10 latest messages in the conversation prior to + * the current suggestion. + * Q1: "Would you send it as the next message of agent?" + * Evaluated based on whether the suggest is appropriate to be sent by + * agent in current context. + * Q2: "Does the suggestion move the conversation closer to resolution?" + * Evaluated based on whether the suggestion provide solutions, or answers + * customer's question or collect information from customer to resolve the + * customer's issue. + * Actual reply column contains the actual agent reply sent in the context. + * + * Generated from protobuf field string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRawHumanEvalTemplateCsv() + { + return $this->raw_human_eval_template_csv; + } + + /** + * Output only. Human eval template in csv format. + * It tooks real-world conversations provided through input dataset, generates + * example suggestions for customer to verify quality of the model. + * For Smart Reply, the generated csv file contains columns of + * Context, (Suggestions,Q1,Q2)*3, Actual reply. + * Context contains at most 10 latest messages in the conversation prior to + * the current suggestion. + * Q1: "Would you send it as the next message of agent?" + * Evaluated based on whether the suggest is appropriate to be sent by + * agent in current context. + * Q2: "Does the suggestion move the conversation closer to resolution?" + * Evaluated based on whether the suggestion provide solutions, or answers + * customer's question or collect information from customer to resolve the + * customer's issue. + * Actual reply column contains the actual agent reply sent in the context. + * + * Generated from protobuf field string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRawHumanEvalTemplateCsv($var) + { + GPBUtil::checkString($var, True); + $this->raw_human_eval_template_csv = $var; + + return $this; + } + /** * @return string */ diff --git a/Dialogflow/src/V2/CreateContextRequest.php b/Dialogflow/src/V2/CreateContextRequest.php index 89bc5a5edf6a..659e1fe1eb44 100644 --- a/Dialogflow/src/V2/CreateContextRequest.php +++ b/Dialogflow/src/V2/CreateContextRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. + * The request message for + * [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateContextRequest */ diff --git a/Dialogflow/src/V2/CreateConversationModelOperationMetadata.php b/Dialogflow/src/V2/CreateConversationModelOperationMetadata.php index 6e3567e96135..0e4c9c7e530f 100644 --- a/Dialogflow/src/V2/CreateConversationModelOperationMetadata.php +++ b/Dialogflow/src/V2/CreateConversationModelOperationMetadata.php @@ -9,7 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Metadata for a [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel] operation. + * Metadata for a + * [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel] + * operation. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata */ diff --git a/Dialogflow/src/V2/CreateConversationProfileRequest.php b/Dialogflow/src/V2/CreateConversationProfileRequest.php index f61e1b618e57..f05528c39971 100644 --- a/Dialogflow/src/V2/CreateConversationProfileRequest.php +++ b/Dialogflow/src/V2/CreateConversationProfileRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile]. + * The request message for + * [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateConversationProfileRequest */ diff --git a/Dialogflow/src/V2/CreateConversationRequest.php b/Dialogflow/src/V2/CreateConversationRequest.php index b0176678ca30..9f64b09d4608 100644 --- a/Dialogflow/src/V2/CreateConversationRequest.php +++ b/Dialogflow/src/V2/CreateConversationRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]. + * The request message for + * [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateConversationRequest */ @@ -29,8 +30,8 @@ class CreateConversationRequest extends \Google\Protobuf\Internal\Message */ private $conversation = null; /** - * Optional. Identifier of the conversation. Generally it's auto generated by Google. - * Only set it if you cannot wait for the response to return a + * Optional. Identifier of the conversation. Generally it's auto generated by + * Google. Only set it if you cannot wait for the response to return a * auto-generated one to you. * The conversation ID must be compliant with the regression fomula * "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. @@ -55,8 +56,8 @@ class CreateConversationRequest extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dialogflow\V2\Conversation $conversation * Required. The conversation to create. * @type string $conversation_id - * Optional. Identifier of the conversation. Generally it's auto generated by Google. - * Only set it if you cannot wait for the response to return a + * Optional. Identifier of the conversation. Generally it's auto generated by + * Google. Only set it if you cannot wait for the response to return a * auto-generated one to you. * The conversation ID must be compliant with the regression fomula * "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. @@ -136,8 +137,8 @@ public function setConversation($var) } /** - * Optional. Identifier of the conversation. Generally it's auto generated by Google. - * Only set it if you cannot wait for the response to return a + * Optional. Identifier of the conversation. Generally it's auto generated by + * Google. Only set it if you cannot wait for the response to return a * auto-generated one to you. * The conversation ID must be compliant with the regression fomula * "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. @@ -155,8 +156,8 @@ public function getConversationId() } /** - * Optional. Identifier of the conversation. Generally it's auto generated by Google. - * Only set it if you cannot wait for the response to return a + * Optional. Identifier of the conversation. Generally it's auto generated by + * Google. Only set it if you cannot wait for the response to return a * auto-generated one to you. * The conversation ID must be compliant with the regression fomula * "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. diff --git a/Dialogflow/src/V2/CreateDocumentRequest.php b/Dialogflow/src/V2/CreateDocumentRequest.php index 081cf992f40c..7bfc8b06a424 100644 --- a/Dialogflow/src/V2/CreateDocumentRequest.php +++ b/Dialogflow/src/V2/CreateDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument]. + * Request message for + * [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateDocumentRequest */ diff --git a/Dialogflow/src/V2/CreateEntityTypeRequest.php b/Dialogflow/src/V2/CreateEntityTypeRequest.php index bf69378bfdad..8a5086b77643 100644 --- a/Dialogflow/src/V2/CreateEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. + * The request message for + * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateEntityTypeRequest */ diff --git a/Dialogflow/src/V2/CreateEnvironmentRequest.php b/Dialogflow/src/V2/CreateEnvironmentRequest.php index 3e4bfc513686..1e1009d59710 100644 --- a/Dialogflow/src/V2/CreateEnvironmentRequest.php +++ b/Dialogflow/src/V2/CreateEnvironmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.v2.Environments.CreateEnvironment]. + * The request message for + * [Environments.CreateEnvironment][google.cloud.dialogflow.v2.Environments.CreateEnvironment]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateEnvironmentRequest */ diff --git a/Dialogflow/src/V2/CreateIntentRequest.php b/Dialogflow/src/V2/CreateIntentRequest.php index 6e730f6e463b..6c8aad289200 100644 --- a/Dialogflow/src/V2/CreateIntentRequest.php +++ b/Dialogflow/src/V2/CreateIntentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. + * The request message for + * [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateIntentRequest */ diff --git a/Dialogflow/src/V2/CreateKnowledgeBaseRequest.php b/Dialogflow/src/V2/CreateKnowledgeBaseRequest.php index 953f6e1352b0..f492cbea4ba1 100644 --- a/Dialogflow/src/V2/CreateKnowledgeBaseRequest.php +++ b/Dialogflow/src/V2/CreateKnowledgeBaseRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase]. + * Request message for + * [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest */ diff --git a/Dialogflow/src/V2/CreateParticipantRequest.php b/Dialogflow/src/V2/CreateParticipantRequest.php index 464348e69f58..306784fdc6d4 100644 --- a/Dialogflow/src/V2/CreateParticipantRequest.php +++ b/Dialogflow/src/V2/CreateParticipantRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant]. + * The request message for + * [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateParticipantRequest */ diff --git a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php index bbc4dcef767e..ba6235569dbf 100644 --- a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. + * The request message for + * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/CreateVersionRequest.php b/Dialogflow/src/V2/CreateVersionRequest.php index b24cd32aaeed..ddba29f940e9 100644 --- a/Dialogflow/src/V2/CreateVersionRequest.php +++ b/Dialogflow/src/V2/CreateVersionRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Versions.CreateVersion][google.cloud.dialogflow.v2.Versions.CreateVersion]. + * The request message for + * [Versions.CreateVersion][google.cloud.dialogflow.v2.Versions.CreateVersion]. * * Generated from protobuf message google.cloud.dialogflow.v2.CreateVersionRequest */ diff --git a/Dialogflow/src/V2/DeleteAgentRequest.php b/Dialogflow/src/V2/DeleteAgentRequest.php index d556a615377a..af8b2b2a1212 100644 --- a/Dialogflow/src/V2/DeleteAgentRequest.php +++ b/Dialogflow/src/V2/DeleteAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent]. + * The request message for + * [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteAgentRequest */ diff --git a/Dialogflow/src/V2/DeleteAllContextsRequest.php b/Dialogflow/src/V2/DeleteAllContextsRequest.php index bc3e4ef80664..a1239d956ba6 100644 --- a/Dialogflow/src/V2/DeleteAllContextsRequest.php +++ b/Dialogflow/src/V2/DeleteAllContextsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. + * The request message for + * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteAllContextsRequest */ diff --git a/Dialogflow/src/V2/DeleteContextRequest.php b/Dialogflow/src/V2/DeleteContextRequest.php index a5c7c57e53fb..b26bca62309c 100644 --- a/Dialogflow/src/V2/DeleteContextRequest.php +++ b/Dialogflow/src/V2/DeleteContextRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. + * The request message for + * [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteContextRequest */ diff --git a/Dialogflow/src/V2/DeleteConversationModelOperationMetadata.php b/Dialogflow/src/V2/DeleteConversationModelOperationMetadata.php index 3ad857642220..343d08b19776 100644 --- a/Dialogflow/src/V2/DeleteConversationModelOperationMetadata.php +++ b/Dialogflow/src/V2/DeleteConversationModelOperationMetadata.php @@ -9,7 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Metadata for a [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel] operation. + * Metadata for a + * [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel] + * operation. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata */ diff --git a/Dialogflow/src/V2/DeleteConversationProfileRequest.php b/Dialogflow/src/V2/DeleteConversationProfileRequest.php index 5bb8f46be4e4..ca4c2ee2c1ab 100644 --- a/Dialogflow/src/V2/DeleteConversationProfileRequest.php +++ b/Dialogflow/src/V2/DeleteConversationProfileRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile]. + * The request message for + * [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile]. * This operation fails if the conversation profile is still referenced from * a phone number. * diff --git a/Dialogflow/src/V2/DeleteDocumentRequest.php b/Dialogflow/src/V2/DeleteDocumentRequest.php index 3bc87158b9dd..5849aca3a788 100644 --- a/Dialogflow/src/V2/DeleteDocumentRequest.php +++ b/Dialogflow/src/V2/DeleteDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument]. + * Request message for + * [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteDocumentRequest */ diff --git a/Dialogflow/src/V2/DeleteEntityTypeRequest.php b/Dialogflow/src/V2/DeleteEntityTypeRequest.php index 65e00832f5a5..e4fe6ea00edd 100644 --- a/Dialogflow/src/V2/DeleteEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. + * The request message for + * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteEntityTypeRequest */ diff --git a/Dialogflow/src/V2/DeleteEnvironmentRequest.php b/Dialogflow/src/V2/DeleteEnvironmentRequest.php index ba28f53a8f7c..1c6f40e1afd8 100644 --- a/Dialogflow/src/V2/DeleteEnvironmentRequest.php +++ b/Dialogflow/src/V2/DeleteEnvironmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment]. + * The request message for + * [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteEnvironmentRequest */ diff --git a/Dialogflow/src/V2/DeleteIntentRequest.php b/Dialogflow/src/V2/DeleteIntentRequest.php index 3f8d5769bff2..3f7db29d23b8 100644 --- a/Dialogflow/src/V2/DeleteIntentRequest.php +++ b/Dialogflow/src/V2/DeleteIntentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. + * The request message for + * [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteIntentRequest */ diff --git a/Dialogflow/src/V2/DeleteKnowledgeBaseRequest.php b/Dialogflow/src/V2/DeleteKnowledgeBaseRequest.php index 81bd7fdb9cc4..39411f4c1eb1 100644 --- a/Dialogflow/src/V2/DeleteKnowledgeBaseRequest.php +++ b/Dialogflow/src/V2/DeleteKnowledgeBaseRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase]. + * Request message for + * [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest */ diff --git a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php index 87f459836771..1fc4d515e83b 100644 --- a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. + * The request message for + * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/DeleteVersionRequest.php b/Dialogflow/src/V2/DeleteVersionRequest.php index ac2d4bea0c1d..ea22a527db75 100644 --- a/Dialogflow/src/V2/DeleteVersionRequest.php +++ b/Dialogflow/src/V2/DeleteVersionRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Versions.DeleteVersion][google.cloud.dialogflow.v2.Versions.DeleteVersion]. + * The request message for + * [Versions.DeleteVersion][google.cloud.dialogflow.v2.Versions.DeleteVersion]. * * Generated from protobuf message google.cloud.dialogflow.v2.DeleteVersionRequest */ diff --git a/Dialogflow/src/V2/DeployConversationModelOperationMetadata.php b/Dialogflow/src/V2/DeployConversationModelOperationMetadata.php index c8a8db7b86b5..ac1caeac3234 100644 --- a/Dialogflow/src/V2/DeployConversationModelOperationMetadata.php +++ b/Dialogflow/src/V2/DeployConversationModelOperationMetadata.php @@ -9,7 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Metadata for a [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel] operation. + * Metadata for a + * [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel] + * operation. * * Generated from protobuf message google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata */ diff --git a/Dialogflow/src/V2/DetectIntentRequest.php b/Dialogflow/src/V2/DetectIntentRequest.php index d396f3f8ebb1..9aa2827986e8 100644 --- a/Dialogflow/src/V2/DetectIntentRequest.php +++ b/Dialogflow/src/V2/DetectIntentRequest.php @@ -60,11 +60,13 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message */ private $output_audio_config = null; /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; */ @@ -113,11 +115,13 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * @type \Google\Protobuf\FieldMask $output_audio_config_mask - * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * @type string $input_audio * The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. @@ -304,11 +308,13 @@ public function setOutputAudioConfig($var) } /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; * @return \Google\Protobuf\FieldMask|null @@ -329,11 +335,13 @@ public function clearOutputAudioConfigMask() } /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; * @param \Google\Protobuf\FieldMask $var diff --git a/Dialogflow/src/V2/Document.php b/Dialogflow/src/V2/Document.php index bb0aa8a7d75e..1dc866aa8207 100644 --- a/Dialogflow/src/V2/Document.php +++ b/Dialogflow/src/V2/Document.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A knowledge document to be used by a [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase]. + * A knowledge document to be used by a + * [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase]. * For more information, see the [knowledge base * guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases). * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; diff --git a/Dialogflow/src/V2/EntityType.php b/Dialogflow/src/V2/EntityType.php index 6fdba4862819..d402aca476ae 100644 --- a/Dialogflow/src/V2/EntityType.php +++ b/Dialogflow/src/V2/EntityType.php @@ -26,9 +26,12 @@ class EntityType extends \Google\Protobuf\Internal\Message { /** * The unique identifier of the entity type. - * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. - * Format: `projects//agent/entityTypes/`. + * Required for + * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] + * and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] + * methods. Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; */ @@ -73,9 +76,12 @@ class EntityType extends \Google\Protobuf\Internal\Message * * @type string $name * The unique identifier of the entity type. - * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. - * Format: `projects//agent/entityTypes/`. + * Required for + * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] + * and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] + * methods. Format: `projects//agent/entityTypes/`. * @type string $display_name * Required. The name of the entity type. * @type int $kind @@ -96,9 +102,12 @@ public function __construct($data = NULL) { /** * The unique identifier of the entity type. - * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. - * Format: `projects//agent/entityTypes/`. + * Required for + * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] + * and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] + * methods. Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; * @return string @@ -110,9 +119,12 @@ public function getName() /** * The unique identifier of the entity type. - * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. - * Format: `projects//agent/entityTypes/`. + * Required for + * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] + * and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] + * methods. Format: `projects//agent/entityTypes/`. * * Generated from protobuf field string name = 1; * @param string $var diff --git a/Dialogflow/src/V2/Environment.php b/Dialogflow/src/V2/Environment.php index 928751a71022..d8e54cf951ca 100644 --- a/Dialogflow/src/V2/Environment.php +++ b/Dialogflow/src/V2/Environment.php @@ -57,15 +57,15 @@ class Environment extends \Google\Protobuf\Internal\Message */ private $agent_version = ''; /** - * Output only. The state of this environment. This field is read-only, i.e., it cannot be - * set by create and update methods. + * Output only. The state of this environment. This field is read-only, i.e., + * it cannot be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $state = 0; /** - * Output only. The last update time of this environment. This field is read-only, i.e., it - * cannot be set by create and update methods. + * Output only. The last update time of this environment. This field is + * read-only, i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -106,11 +106,11 @@ class Environment extends \Google\Protobuf\Internal\Message * - `projects//locations//agent/versions/` * @type int $state - * Output only. The state of this environment. This field is read-only, i.e., it cannot be - * set by create and update methods. + * Output only. The state of this environment. This field is read-only, i.e., + * it cannot be set by create and update methods. * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update time of this environment. This field is read-only, i.e., it - * cannot be set by create and update methods. + * Output only. The last update time of this environment. This field is + * read-only, i.e., it cannot be set by create and update methods. * @type \Google\Cloud\Dialogflow\V2\TextToSpeechSettings $text_to_speech_settings * Optional. Text to speech settings for this environment. * @type \Google\Cloud\Dialogflow\V2\Fulfillment $fulfillment @@ -221,8 +221,8 @@ public function setAgentVersion($var) } /** - * Output only. The state of this environment. This field is read-only, i.e., it cannot be - * set by create and update methods. + * Output only. The state of this environment. This field is read-only, i.e., + * it cannot be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int @@ -233,8 +233,8 @@ public function getState() } /** - * Output only. The state of this environment. This field is read-only, i.e., it cannot be - * set by create and update methods. + * Output only. The state of this environment. This field is read-only, i.e., + * it cannot be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var @@ -249,8 +249,8 @@ public function setState($var) } /** - * Output only. The last update time of this environment. This field is read-only, i.e., it - * cannot be set by create and update methods. + * Output only. The last update time of this environment. This field is + * read-only, i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null @@ -271,8 +271,8 @@ public function clearUpdateTime() } /** - * Output only. The last update time of this environment. This field is read-only, i.e., it - * cannot be set by create and update methods. + * Output only. The last update time of this environment. This field is + * read-only, i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var diff --git a/Dialogflow/src/V2/EnvironmentHistory.php b/Dialogflow/src/V2/EnvironmentHistory.php index 5a72475b5d14..55fc1ec8d5cb 100644 --- a/Dialogflow/src/V2/EnvironmentHistory.php +++ b/Dialogflow/src/V2/EnvironmentHistory.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory]. + * The response message for + * [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory]. * * Generated from protobuf message google.cloud.dialogflow.v2.EnvironmentHistory */ @@ -27,15 +28,15 @@ class EnvironmentHistory extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Output only. The list of agent environments. There will be a maximum number of items - * returned based on the page_size field in the request. + * Output only. The list of agent environments. There will be a maximum number + * of items returned based on the page_size field in the request. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $entries; /** - * Output only. Token to retrieve the next page of results, or empty if there are no - * more results in the list. + * Output only. Token to retrieve the next page of results, or empty if there + * are no more results in the list. * * Generated from protobuf field string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -55,11 +56,11 @@ class EnvironmentHistory extends \Google\Protobuf\Internal\Message * ID>/agent/environments/` * The environment ID for the default environment is `-`. * @type array<\Google\Cloud\Dialogflow\V2\EnvironmentHistory\Entry>|\Google\Protobuf\Internal\RepeatedField $entries - * Output only. The list of agent environments. There will be a maximum number of items - * returned based on the page_size field in the request. + * Output only. The list of agent environments. There will be a maximum number + * of items returned based on the page_size field in the request. * @type string $next_page_token - * Output only. Token to retrieve the next page of results, or empty if there are no - * more results in the list. + * Output only. Token to retrieve the next page of results, or empty if there + * are no more results in the list. * } */ public function __construct($data = NULL) { @@ -104,8 +105,8 @@ public function setParent($var) } /** - * Output only. The list of agent environments. There will be a maximum number of items - * returned based on the page_size field in the request. + * Output only. The list of agent environments. There will be a maximum number + * of items returned based on the page_size field in the request. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Internal\RepeatedField @@ -116,8 +117,8 @@ public function getEntries() } /** - * Output only. The list of agent environments. There will be a maximum number of items - * returned based on the page_size field in the request. + * Output only. The list of agent environments. There will be a maximum number + * of items returned based on the page_size field in the request. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param array<\Google\Cloud\Dialogflow\V2\EnvironmentHistory\Entry>|\Google\Protobuf\Internal\RepeatedField $var @@ -132,8 +133,8 @@ public function setEntries($var) } /** - * Output only. Token to retrieve the next page of results, or empty if there are no - * more results in the list. + * Output only. Token to retrieve the next page of results, or empty if there + * are no more results in the list. * * Generated from protobuf field string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string @@ -144,8 +145,8 @@ public function getNextPageToken() } /** - * Output only. Token to retrieve the next page of results, or empty if there are no - * more results in the list. + * Output only. Token to retrieve the next page of results, or empty if there + * are no more results in the list. * * Generated from protobuf field string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var diff --git a/Dialogflow/src/V2/EvaluationConfig/SmartComposeConfig.php b/Dialogflow/src/V2/EvaluationConfig/SmartComposeConfig.php index 4c1037cddacb..d17212302f98 100644 --- a/Dialogflow/src/V2/EvaluationConfig/SmartComposeConfig.php +++ b/Dialogflow/src/V2/EvaluationConfig/SmartComposeConfig.php @@ -24,10 +24,10 @@ class SmartComposeConfig extends \Google\Protobuf\Internal\Message */ private $allowlist_document = ''; /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -44,10 +44,10 @@ class SmartComposeConfig extends \Google\Protobuf\Internal\Message * Format: `projects//knowledgeBases//documents/`. Only used for smart compose model. * @type int $max_result_count - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * } */ public function __construct($data = NULL) { @@ -86,10 +86,10 @@ public function setAllowlistDocument($var) } /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -100,10 +100,10 @@ public function getMaxResultCount() } /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var diff --git a/Dialogflow/src/V2/EvaluationConfig/SmartReplyConfig.php b/Dialogflow/src/V2/EvaluationConfig/SmartReplyConfig.php index f975d2cd46ad..56facf9d48db 100644 --- a/Dialogflow/src/V2/EvaluationConfig/SmartReplyConfig.php +++ b/Dialogflow/src/V2/EvaluationConfig/SmartReplyConfig.php @@ -24,10 +24,10 @@ class SmartReplyConfig extends \Google\Protobuf\Internal\Message */ private $allowlist_document = ''; /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -44,10 +44,10 @@ class SmartReplyConfig extends \Google\Protobuf\Internal\Message * Format: `projects//knowledgeBases//documents/`. Only used for smart reply model. * @type int $max_result_count - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * } */ public function __construct($data = NULL) { @@ -86,10 +86,10 @@ public function setAllowlistDocument($var) } /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @return int @@ -100,10 +100,10 @@ public function getMaxResultCount() } /** - * Required. The model to be evaluated can return multiple results with confidence - * score on each query. These results will be sorted by the descending order - * of the scores and we only keep the first max_result_count results as the - * final results to evaluate. + * Required. The model to be evaluated can return multiple results with + * confidence score on each query. These results will be sorted by the + * descending order of the scores and we only keep the first + * max_result_count results as the final results to evaluate. * * Generated from protobuf field int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED]; * @param int $var diff --git a/Dialogflow/src/V2/EventInput.php b/Dialogflow/src/V2/EventInput.php index 8a61479d48da..28c1baeec766 100644 --- a/Dialogflow/src/V2/EventInput.php +++ b/Dialogflow/src/V2/EventInput.php @@ -50,8 +50,8 @@ class EventInput extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * This field is ignored when used in the context of a - * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] field, - * because the language was already defined in the originating detect + * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] + * field, because the language was already defined in the originating detect * intent request. * * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -87,8 +87,8 @@ class EventInput extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * This field is ignored when used in the context of a - * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] field, - * because the language was already defined in the originating detect + * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] + * field, because the language was already defined in the originating detect * intent request. * } */ @@ -191,8 +191,8 @@ public function setParameters($var) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * This field is ignored when used in the context of a - * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] field, - * because the language was already defined in the originating detect + * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] + * field, because the language was already defined in the originating detect * intent request. * * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -209,8 +209,8 @@ public function getLanguageCode() * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * This field is ignored when used in the context of a - * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] field, - * because the language was already defined in the originating detect + * [WebhookResponse.followup_event_input][google.cloud.dialogflow.v2.WebhookResponse.followup_event_input] + * field, because the language was already defined in the originating detect * intent request. * * Generated from protobuf field string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/Dialogflow/src/V2/ExportAgentRequest.php b/Dialogflow/src/V2/ExportAgentRequest.php index 159693af6707..a8576be1ad8d 100644 --- a/Dialogflow/src/V2/ExportAgentRequest.php +++ b/Dialogflow/src/V2/ExportAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The request message for + * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentRequest */ @@ -23,10 +24,10 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * Required. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must * have write permissions for the object. For more information, see @@ -47,10 +48,10 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message * Required. The project that the agent to export is associated with. * Format: `projects/`. * @type string $agent_uri - * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * Required. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must * have write permissions for the object. For more information, see @@ -92,10 +93,10 @@ public function setParent($var) } /** - * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * Required. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must * have write permissions for the object. For more information, see @@ -111,10 +112,10 @@ public function getAgentUri() } /** - * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * Required. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must * have write permissions for the object. For more information, see diff --git a/Dialogflow/src/V2/ExportAgentResponse.php b/Dialogflow/src/V2/ExportAgentResponse.php index 9b07269bd596..0568ef0c383c 100644 --- a/Dialogflow/src/V2/ExportAgentResponse.php +++ b/Dialogflow/src/V2/ExportAgentResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The response message for + * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentResponse */ diff --git a/Dialogflow/src/V2/ExportDocumentRequest.php b/Dialogflow/src/V2/ExportDocumentRequest.php index e0c7abc11235..76fda492e9a0 100644 --- a/Dialogflow/src/V2/ExportDocumentRequest.php +++ b/Dialogflow/src/V2/ExportDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.ExportDocument][google.cloud.dialogflow.v2.Documents.ExportDocument]. + * Request message for + * [Documents.ExportDocument][google.cloud.dialogflow.v2.Documents.ExportDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.ExportDocumentRequest */ diff --git a/Dialogflow/src/V2/Fulfillment.php b/Dialogflow/src/V2/Fulfillment.php index 7e0ed6ed6b3f..d3e3f85846a3 100644 --- a/Dialogflow/src/V2/Fulfillment.php +++ b/Dialogflow/src/V2/Fulfillment.php @@ -34,7 +34,8 @@ class Fulfillment extends \Google\Protobuf\Internal\Message */ private $name = ''; /** - * Optional. The human-readable name of the fulfillment, unique within the agent. + * Optional. The human-readable name of the fulfillment, unique within the + * agent. * This field is not used for Fulfillment in an Environment. * * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -47,7 +48,8 @@ class Fulfillment extends \Google\Protobuf\Internal\Message */ private $enabled = false; /** - * Optional. The field defines whether the fulfillment is enabled for certain features. + * Optional. The field defines whether the fulfillment is enabled for certain + * features. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -67,14 +69,16 @@ class Fulfillment extends \Google\Protobuf\Internal\Message * - `projects//locations//agent/fulfillment` * This field is not used for Fulfillment in an Environment. * @type string $display_name - * Optional. The human-readable name of the fulfillment, unique within the agent. + * Optional. The human-readable name of the fulfillment, unique within the + * agent. * This field is not used for Fulfillment in an Environment. * @type \Google\Cloud\Dialogflow\V2\Fulfillment\GenericWebService $generic_web_service * Configuration for a generic web service. * @type bool $enabled * Optional. Whether fulfillment is enabled. * @type array<\Google\Cloud\Dialogflow\V2\Fulfillment\Feature>|\Google\Protobuf\Internal\RepeatedField $features - * Optional. The field defines whether the fulfillment is enabled for certain features. + * Optional. The field defines whether the fulfillment is enabled for certain + * features. * } */ public function __construct($data = NULL) { @@ -117,7 +121,8 @@ public function setName($var) } /** - * Optional. The human-readable name of the fulfillment, unique within the agent. + * Optional. The human-readable name of the fulfillment, unique within the + * agent. * This field is not used for Fulfillment in an Environment. * * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -129,7 +134,8 @@ public function getDisplayName() } /** - * Optional. The human-readable name of the fulfillment, unique within the agent. + * Optional. The human-readable name of the fulfillment, unique within the + * agent. * This field is not used for Fulfillment in an Environment. * * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -202,7 +208,8 @@ public function setEnabled($var) } /** - * Optional. The field defines whether the fulfillment is enabled for certain features. + * Optional. The field defines whether the fulfillment is enabled for certain + * features. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\RepeatedField @@ -213,7 +220,8 @@ public function getFeatures() } /** - * Optional. The field defines whether the fulfillment is enabled for certain features. + * Optional. The field defines whether the fulfillment is enabled for certain + * features. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param array<\Google\Cloud\Dialogflow\V2\Fulfillment\Feature>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/Fulfillment/GenericWebService.php b/Dialogflow/src/V2/Fulfillment/GenericWebService.php index a4893b47e7ed..1a8a455ca692 100644 --- a/Dialogflow/src/V2/Fulfillment/GenericWebService.php +++ b/Dialogflow/src/V2/Fulfillment/GenericWebService.php @@ -40,14 +40,15 @@ class GenericWebService extends \Google\Protobuf\Internal\Message */ private $password = ''; /** - * Optional. The HTTP request headers to send together with fulfillment requests. + * Optional. The HTTP request headers to send together with fulfillment + * requests. * * Generated from protobuf field map request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private $request_headers; /** - * Optional. Indicates if generic web service is created through Cloud Functions - * integration. Defaults to false. + * Optional. Indicates if generic web service is created through Cloud + * Functions integration. Defaults to false. * is_cloud_function is deprecated. Cloud functions can be configured by * its uri as a regular web service now. * @@ -70,10 +71,11 @@ class GenericWebService extends \Google\Protobuf\Internal\Message * @type string $password * Optional. The password for HTTP Basic authentication. * @type array|\Google\Protobuf\Internal\MapField $request_headers - * Optional. The HTTP request headers to send together with fulfillment requests. + * Optional. The HTTP request headers to send together with fulfillment + * requests. * @type bool $is_cloud_function - * Optional. Indicates if generic web service is created through Cloud Functions - * integration. Defaults to false. + * Optional. Indicates if generic web service is created through Cloud + * Functions integration. Defaults to false. * is_cloud_function is deprecated. Cloud functions can be configured by * its uri as a regular web service now. * } @@ -164,7 +166,8 @@ public function setPassword($var) } /** - * Optional. The HTTP request headers to send together with fulfillment requests. + * Optional. The HTTP request headers to send together with fulfillment + * requests. * * Generated from protobuf field map request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\MapField @@ -175,7 +178,8 @@ public function getRequestHeaders() } /** - * Optional. The HTTP request headers to send together with fulfillment requests. + * Optional. The HTTP request headers to send together with fulfillment + * requests. * * Generated from protobuf field map request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\MapField $var @@ -190,8 +194,8 @@ public function setRequestHeaders($var) } /** - * Optional. Indicates if generic web service is created through Cloud Functions - * integration. Defaults to false. + * Optional. Indicates if generic web service is created through Cloud + * Functions integration. Defaults to false. * is_cloud_function is deprecated. Cloud functions can be configured by * its uri as a regular web service now. * @@ -206,8 +210,8 @@ public function getIsCloudFunction() } /** - * Optional. Indicates if generic web service is created through Cloud Functions - * integration. Defaults to false. + * Optional. Indicates if generic web service is created through Cloud + * Functions integration. Defaults to false. * is_cloud_function is deprecated. Cloud functions can be configured by * its uri as a regular web service now. * diff --git a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php index 252252104b4c..1768c3fdf119 100644 --- a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php @@ -455,7 +455,8 @@ public function deleteAgent($parent, array $optionalArgs = []) * * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse] * * Sample code: * ``` @@ -496,10 +497,10 @@ public function deleteAgent($parent, array $optionalArgs = []) * * @param string $parent Required. The project that the agent to export is associated with. * Format: `projects/`. - * @param string $agentUri Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) - * URI to export the agent to. - * The format of this URI must be `gs:///`. - * If left unspecified, the serialized agent is returned inline. + * @param string $agentUri Required. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the agent + * to. The format of this URI must be `gs:///`. If + * left unspecified, the serialized agent is returned inline. * * Dialogflow performs a write operation for the Cloud Storage object * on the caller's behalf, so your request authentication must @@ -627,11 +628,13 @@ public function getValidationResult($parent, array $optionalArgs = []) * * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new - * versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft - * agent will be trained automatically (unless disabled in agent settings). - * However, once the import is done, training may not be completed yet. Please - * call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train - * explicitly. + * versions from + * [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After + * the import, the imported draft agent will be trained automatically (unless + * disabled in agent settings). However, once the import is done, training may + * not be completed yet. Please call + * [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the + * operation it returns in order to train explicitly. * * This method is a [long-running * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). @@ -735,8 +738,9 @@ public function importAgent($parent, array $optionalArgs = []) * entity types in the older version are deleted. After the restore, the * restored draft agent will be trained automatically (unless disabled in * agent settings). However, once the restore is done, training may not be - * completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it - * returns in order to train explicitly. + * completed yet. Please call + * [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the + * operation it returns in order to train explicitly. * * This method is a [long-running * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). diff --git a/Dialogflow/src/V2/Gapic/AnswerRecordsGapicClient.php b/Dialogflow/src/V2/Gapic/AnswerRecordsGapicClient.php index d7584ae08567..9b73f1196364 100644 --- a/Dialogflow/src/V2/Gapic/AnswerRecordsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/AnswerRecordsGapicClient.php @@ -45,7 +45,8 @@ use Google\Protobuf\FieldMask; /** - * Service Description: Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord]. + * Service Description: Service for managing + * [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: diff --git a/Dialogflow/src/V2/Gapic/ConversationDatasetsGapicClient.php b/Dialogflow/src/V2/Gapic/ConversationDatasetsGapicClient.php index 90090e4db64e..d0e422d6979e 100644 --- a/Dialogflow/src/V2/Gapic/ConversationDatasetsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ConversationDatasetsGapicClient.php @@ -358,8 +358,10 @@ public function __construct(array $options = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] - * - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset] + * - `metadata`: + * [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] + * - `response`: + * [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset] * * Sample code: * ``` @@ -433,7 +435,8 @@ public function createConversationDataset($parent, $conversationDataset, array $ * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] + * - `metadata`: + * [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * @@ -548,8 +551,10 @@ public function getConversationDataset($name, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] - * - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse] + * - `metadata`: + * [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] + * - `response`: + * [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse] * * Sample code: * ``` @@ -644,8 +649,8 @@ public function importConversationData($name, $inputConfig, array $optionalArgs * } * ``` * - * @param string $parent Required. The project and location name to list all conversation datasets for. - * Format: `projects//locations/` + * @param string $parent Required. The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * @param array $optionalArgs { * Optional. * diff --git a/Dialogflow/src/V2/Gapic/ConversationModelsGapicClient.php b/Dialogflow/src/V2/Gapic/ConversationModelsGapicClient.php index 91f181ff549e..1eb712c9ec8c 100644 --- a/Dialogflow/src/V2/Gapic/ConversationModelsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ConversationModelsGapicClient.php @@ -489,8 +489,10 @@ public function __construct(array $options = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] - * - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel] + * - `metadata`: + * [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] + * - `response`: + * [ConversationModel][google.cloud.dialogflow.v2.ConversationModel] * * Sample code: * ``` @@ -636,7 +638,8 @@ public function createConversationModelEvaluation($parent, $conversationModelEva * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] + * - `metadata`: + * [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * @@ -710,7 +713,8 @@ public function deleteConversationModel($name, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] + * - `metadata`: + * [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * @@ -1003,7 +1007,8 @@ public function listConversationModels($parent, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] + * - `metadata`: + * [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * diff --git a/Dialogflow/src/V2/Gapic/ConversationProfilesGapicClient.php b/Dialogflow/src/V2/Gapic/ConversationProfilesGapicClient.php index 41bd6f332b28..45f0111c730e 100644 --- a/Dialogflow/src/V2/Gapic/ConversationProfilesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ConversationProfilesGapicClient.php @@ -59,7 +59,8 @@ use Google\Protobuf\GPBEmpty; /** - * Service Description: Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile]. + * Service Description: Service for managing + * [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -481,8 +482,10 @@ public function __construct(array $options = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] - * - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] + * - `metadata`: + * [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] + * - `response`: + * [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] * * Sample code: * ``` @@ -561,7 +564,8 @@ public function clearSuggestionFeatureConfig($conversationProfile, $participantR * * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] * aren't populated in the response. You can retrieve them via - * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] + * API. * * Sample code: * ``` @@ -762,8 +766,10 @@ public function listConversationProfiles($parent, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] - * - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] + * - `metadata`: + * [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] + * - `response`: + * [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] * * If a long running operation to add or update suggestion feature * config for the same conversation profile, participant role and suggestion @@ -846,7 +852,8 @@ public function setSuggestionFeatureConfig($conversationProfile, $participantRol * * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] * aren't populated in the response. You can retrieve them via - * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] + * API. * * Sample code: * ``` diff --git a/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php b/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php index 577eec6a92cb..3e4742bbd0d0 100644 --- a/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php @@ -42,13 +42,16 @@ use Google\Cloud\Dialogflow\V2\ListConversationsResponse; use Google\Cloud\Dialogflow\V2\ListMessagesRequest; use Google\Cloud\Dialogflow\V2\ListMessagesResponse; +use Google\Cloud\Dialogflow\V2\SuggestConversationSummaryRequest; +use Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse; use Google\Cloud\Location\GetLocationRequest; use Google\Cloud\Location\ListLocationsRequest; use Google\Cloud\Location\ListLocationsResponse; use Google\Cloud\Location\Location; /** - * Service Description: Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation]. + * Service Description: Service for managing + * [Conversations][google.cloud.dialogflow.v2.Conversation]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -96,14 +99,20 @@ class ConversationsGapicClient private static $locationNameTemplate; + private static $messageNameTemplate; + private static $projectNameTemplate; private static $projectConversationNameTemplate; + private static $projectConversationMessageNameTemplate; + private static $projectConversationProfileNameTemplate; private static $projectLocationConversationNameTemplate; + private static $projectLocationConversationMessageNameTemplate; + private static $projectLocationConversationProfileNameTemplate; private static $pathTemplateMap; @@ -154,6 +163,15 @@ private static function getLocationNameTemplate() return self::$locationNameTemplate; } + private static function getMessageNameTemplate() + { + if (self::$messageNameTemplate == null) { + self::$messageNameTemplate = new PathTemplate('projects/{project}/conversations/{conversation}/messages/{message}'); + } + + return self::$messageNameTemplate; + } + private static function getProjectNameTemplate() { if (self::$projectNameTemplate == null) { @@ -172,6 +190,15 @@ private static function getProjectConversationNameTemplate() return self::$projectConversationNameTemplate; } + private static function getProjectConversationMessageNameTemplate() + { + if (self::$projectConversationMessageNameTemplate == null) { + self::$projectConversationMessageNameTemplate = new PathTemplate('projects/{project}/conversations/{conversation}/messages/{message}'); + } + + return self::$projectConversationMessageNameTemplate; + } + private static function getProjectConversationProfileNameTemplate() { if (self::$projectConversationProfileNameTemplate == null) { @@ -190,6 +217,15 @@ private static function getProjectLocationConversationNameTemplate() return self::$projectLocationConversationNameTemplate; } + private static function getProjectLocationConversationMessageNameTemplate() + { + if (self::$projectLocationConversationMessageNameTemplate == null) { + self::$projectLocationConversationMessageNameTemplate = new PathTemplate('projects/{project}/locations/{location}/conversations/{conversation}/messages/{message}'); + } + + return self::$projectLocationConversationMessageNameTemplate; + } + private static function getProjectLocationConversationProfileNameTemplate() { if (self::$projectLocationConversationProfileNameTemplate == null) { @@ -206,10 +242,13 @@ private static function getPathTemplateMap() 'conversation' => self::getConversationNameTemplate(), 'conversationProfile' => self::getConversationProfileNameTemplate(), 'location' => self::getLocationNameTemplate(), + 'message' => self::getMessageNameTemplate(), 'project' => self::getProjectNameTemplate(), 'projectConversation' => self::getProjectConversationNameTemplate(), + 'projectConversationMessage' => self::getProjectConversationMessageNameTemplate(), 'projectConversationProfile' => self::getProjectConversationProfileNameTemplate(), 'projectLocationConversation' => self::getProjectLocationConversationNameTemplate(), + 'projectLocationConversationMessage' => self::getProjectLocationConversationMessageNameTemplate(), 'projectLocationConversationProfile' => self::getProjectLocationConversationProfileNameTemplate(), ]; } @@ -268,6 +307,25 @@ public static function locationName($project, $location) ]); } + /** + * Formats a string containing the fully-qualified path to represent a message + * resource. + * + * @param string $project + * @param string $conversation + * @param string $message + * + * @return string The formatted message resource. + */ + public static function messageName($project, $conversation, $message) + { + return self::getMessageNameTemplate()->render([ + 'project' => $project, + 'conversation' => $conversation, + 'message' => $message, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a project * resource. @@ -300,6 +358,25 @@ public static function projectConversationName($project, $conversation) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_conversation_message resource. + * + * @param string $project + * @param string $conversation + * @param string $message + * + * @return string The formatted project_conversation_message resource. + */ + public static function projectConversationMessageName($project, $conversation, $message) + { + return self::getProjectConversationMessageNameTemplate()->render([ + 'project' => $project, + 'conversation' => $conversation, + 'message' => $message, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_conversation_profile resource. @@ -336,6 +413,27 @@ public static function projectLocationConversationName($project, $location, $con ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_conversation_message resource. + * + * @param string $project + * @param string $location + * @param string $conversation + * @param string $message + * + * @return string The formatted project_location_conversation_message resource. + */ + public static function projectLocationConversationMessageName($project, $location, $conversation, $message) + { + return self::getProjectLocationConversationMessageNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'conversation' => $conversation, + 'message' => $message, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_location_conversation_profile resource. @@ -362,10 +460,13 @@ public static function projectLocationConversationProfileName($project, $locatio * - conversation: projects/{project}/conversations/{conversation} * - conversationProfile: projects/{project}/conversationProfiles/{conversation_profile} * - location: projects/{project}/locations/{location} + * - message: projects/{project}/conversations/{conversation}/messages/{message} * - project: projects/{project} * - projectConversation: projects/{project}/conversations/{conversation} + * - projectConversationMessage: projects/{project}/conversations/{conversation}/messages/{message} * - projectConversationProfile: projects/{project}/conversationProfiles/{conversation_profile} * - projectLocationConversation: projects/{project}/locations/{location}/conversations/{conversation} + * - projectLocationConversationMessage: projects/{project}/locations/{location}/conversations/{conversation}/messages/{message} * - projectLocationConversationProfile: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} * * The optional $template argument can be supplied to specify a particular pattern, @@ -519,11 +620,14 @@ public function completeConversation($name, array $optionalArgs = []) * For Assist Stage, there's no dialogflow agent responding to user queries. * But we will provide suggestions which are generated from conversation. * - * If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow - * agent, conversation will start from `Automated Agent Stage`, otherwise, it - * will start from `Assist Stage`. And during `Automated Agent Stage`, once an - * [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation - * will transfer to Assist Stage. + * If + * [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] + * is configured for a dialogflow agent, conversation will start from + * `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And + * during `Automated Agent Stage`, once an + * [Intent][google.cloud.dialogflow.v2.Intent] with + * [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] + * is triggered, conversation will transfer to Assist Stage. * * Sample code: * ``` @@ -544,8 +648,8 @@ public function completeConversation($name, array $optionalArgs = []) * Optional. * * @type string $conversationId - * Optional. Identifier of the conversation. Generally it's auto generated by Google. - * Only set it if you cannot wait for the response to return a + * Optional. Identifier of the conversation. Generally it's auto generated by + * Google. Only set it if you cannot wait for the response to return a * auto-generated one to you. * * The conversation ID must be compliant with the regression fomula @@ -799,6 +903,68 @@ public function listMessages($parent, array $optionalArgs = []) return $this->getPagedListResponse('ListMessages', $optionalArgs, ListMessagesResponse::class, $request); } + /** + * Suggests summary for a conversation based on specific historical messages. + * The range of the messages to be used for summary can be specified in the + * request. + * + * Sample code: + * ``` + * $conversationsClient = new ConversationsClient(); + * try { + * $formattedConversation = $conversationsClient->conversationName('[PROJECT]', '[CONVERSATION]'); + * $response = $conversationsClient->suggestConversationSummary($formattedConversation); + * } finally { + * $conversationsClient->close(); + * } + * ``` + * + * @param string $conversation Required. The conversation to fetch suggestion for. + * Format: `projects//locations//conversations/`. + * @param array $optionalArgs { + * Optional. + * + * @type string $latestMessage + * The name of the latest conversation message used as context for + * compiling suggestion. If empty, the latest message of the conversation will + * be used. + * + * Format: `projects//locations//conversations//messages/`. + * @type int $contextSize + * Max number of messages prior to and including + * [latest_message] to use as context when compiling the + * suggestion. By default 500 and at most 1000. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse + * + * @throws ApiException if the remote call fails + */ + public function suggestConversationSummary($conversation, array $optionalArgs = []) + { + $request = new SuggestConversationSummaryRequest(); + $requestParamHeaders = []; + $request->setConversation($conversation); + $requestParamHeaders['conversation'] = $conversation; + if (isset($optionalArgs['latestMessage'])) { + $request->setLatestMessage($optionalArgs['latestMessage']); + } + + if (isset($optionalArgs['contextSize'])) { + $request->setContextSize($optionalArgs['contextSize']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SuggestConversationSummary', SuggestConversationSummaryResponse::class, $optionalArgs, $request)->wait(); + } + /** * Gets information about a location. * diff --git a/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php b/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php index c2c3670f9c04..4a443bb76d0a 100644 --- a/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php @@ -59,7 +59,8 @@ use Google\Protobuf\FieldMask; /** - * Service Description: Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document]. + * Service Description: Service for managing knowledge + * [Documents][google.cloud.dialogflow.v2.Document]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -487,7 +488,8 @@ public function __construct(array $options = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * Sample code: @@ -563,7 +565,8 @@ public function createDocument($parent, $document, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: An [Empty * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * @@ -636,7 +639,8 @@ public function deleteDocument($name, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * Sample code: @@ -772,8 +776,10 @@ public function getDocument($name, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - * - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `response`: + * [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse] * * Sample code: * ``` @@ -965,7 +971,8 @@ public function listDocuments($parent, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; @@ -1014,8 +1021,8 @@ public function listDocuments($parent, array $optionalArgs = []) * Optional. * * @type string $contentUri - * Optional. The path of gcs source file for reloading document content. For now, - * only gcs uri is supported. + * Optional. The path of gcs source file for reloading document content. For + * now, only gcs uri is supported. * * For documents stored in Google Cloud Storage, these URIs must have * the form `gs:///`. @@ -1023,8 +1030,8 @@ public function listDocuments($parent, array $optionalArgs = []) * Optional. Whether to import custom metadata from Google Cloud Storage. * Only valid when the document source is Google Cloud Storage URI. * @type bool $smartMessagingPartialUpdate - * Optional. When enabled, the reload request is to apply partial update to the smart - * messaging allowlist. + * Optional. When enabled, the reload request is to apply partial update to + * the smart messaging allowlist. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -1065,7 +1072,8 @@ public function reloadDocument($name, array $optionalArgs = []) * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: * - * - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] + * - `metadata`: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] * - `response`: [Document][google.cloud.dialogflow.v2.Document] * * Sample code: diff --git a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php index ebcab7f67893..5575fe7ab98d 100644 --- a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php @@ -835,7 +835,8 @@ public function batchUpdateEntities($parent, $entities, array $optionalArgs = [] * * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse] + * - `response`: + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse] * * Note: You should always train an agent prior to sending it queries. See the * [training diff --git a/Dialogflow/src/V2/Gapic/IntentsGapicClient.php b/Dialogflow/src/V2/Gapic/IntentsGapicClient.php index 7c2a03093120..b719effcecea 100644 --- a/Dialogflow/src/V2/Gapic/IntentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/IntentsGapicClient.php @@ -553,7 +553,8 @@ public function batchDeleteIntents($parent, $intents, array $optionalArgs = []) * * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] + * - `response`: + * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] * * Note: You should always train an agent prior to sending it queries. See the * [training diff --git a/Dialogflow/src/V2/Gapic/KnowledgeBasesGapicClient.php b/Dialogflow/src/V2/Gapic/KnowledgeBasesGapicClient.php index 1e22d093d770..aa9b85657047 100644 --- a/Dialogflow/src/V2/Gapic/KnowledgeBasesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/KnowledgeBasesGapicClient.php @@ -49,7 +49,8 @@ use Google\Protobuf\GPBEmpty; /** - * Service Description: Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase]. + * Service Description: Service for managing + * [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: diff --git a/Dialogflow/src/V2/Gapic/ParticipantsGapicClient.php b/Dialogflow/src/V2/Gapic/ParticipantsGapicClient.php index ab17926454ba..1bf43775cd1e 100644 --- a/Dialogflow/src/V2/Gapic/ParticipantsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ParticipantsGapicClient.php @@ -882,8 +882,9 @@ public function streamingAnalyzeContent(array $optionalArgs = []) * ID>/conversations//messages/`. * @type int $contextSize * Optional. Max number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - * when compiling the suggestion. By default 20 and at most 50. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + * to use as context when compiling the suggestion. By default 20 and at + * most 50. * @type AssistQueryParameters $assistQueryParams * Parameters for a human assist query. * @type RetrySettings|array $retrySettings diff --git a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php index cb56da168986..5f0f47cd11f9 100644 --- a/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/SessionEntityTypesGapicClient.php @@ -49,7 +49,8 @@ use Google\Protobuf\GPBEmpty; /** - * Service Description: Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType]. + * Service Description: Service for managing + * [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType]. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: diff --git a/Dialogflow/src/V2/Gapic/SessionsGapicClient.php b/Dialogflow/src/V2/Gapic/SessionsGapicClient.php index 12c80b25580c..136a7b209c31 100644 --- a/Dialogflow/src/V2/Gapic/SessionsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/SessionsGapicClient.php @@ -451,12 +451,14 @@ public function __construct(array $options = []) * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * @type FieldMask $outputAudioConfigMask - * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * @type string $inputAudio * The natural language speech audio to be processed. This field * should be populated iff `query_input` is set to an input audio config. diff --git a/Dialogflow/src/V2/GetAgentRequest.php b/Dialogflow/src/V2/GetAgentRequest.php index bb92157118e4..ea70cc2d91cf 100644 --- a/Dialogflow/src/V2/GetAgentRequest.php +++ b/Dialogflow/src/V2/GetAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. + * The request message for + * [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetAgentRequest */ diff --git a/Dialogflow/src/V2/GetContextRequest.php b/Dialogflow/src/V2/GetContextRequest.php index 8e34a4618df4..01c6bfc71bb5 100644 --- a/Dialogflow/src/V2/GetContextRequest.php +++ b/Dialogflow/src/V2/GetContextRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. + * The request message for + * [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetContextRequest */ diff --git a/Dialogflow/src/V2/GetConversationProfileRequest.php b/Dialogflow/src/V2/GetConversationProfileRequest.php index cce3ae2e20e2..4f8e80ce5565 100644 --- a/Dialogflow/src/V2/GetConversationProfileRequest.php +++ b/Dialogflow/src/V2/GetConversationProfileRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]. + * The request message for + * [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetConversationProfileRequest */ diff --git a/Dialogflow/src/V2/GetConversationRequest.php b/Dialogflow/src/V2/GetConversationRequest.php index c35dae3a82ac..c651cd9c64fa 100644 --- a/Dialogflow/src/V2/GetConversationRequest.php +++ b/Dialogflow/src/V2/GetConversationRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation]. + * The request message for + * [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetConversationRequest */ diff --git a/Dialogflow/src/V2/GetDocumentRequest.php b/Dialogflow/src/V2/GetDocumentRequest.php index 00f71cc13a19..041da4771048 100644 --- a/Dialogflow/src/V2/GetDocumentRequest.php +++ b/Dialogflow/src/V2/GetDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument]. + * Request message for + * [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetDocumentRequest */ diff --git a/Dialogflow/src/V2/GetEntityTypeRequest.php b/Dialogflow/src/V2/GetEntityTypeRequest.php index 59b3386509ca..57cb7d96d2cc 100644 --- a/Dialogflow/src/V2/GetEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. + * The request message for + * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetEntityTypeRequest */ diff --git a/Dialogflow/src/V2/GetEnvironmentHistoryRequest.php b/Dialogflow/src/V2/GetEnvironmentHistoryRequest.php index 096fea74ba0c..13f701a706ea 100644 --- a/Dialogflow/src/V2/GetEnvironmentHistoryRequest.php +++ b/Dialogflow/src/V2/GetEnvironmentHistoryRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory]. + * The request message for + * [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest */ @@ -27,8 +28,8 @@ class GetEnvironmentHistoryRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -54,8 +55,8 @@ class GetEnvironmentHistoryRequest extends \Google\Protobuf\Internal\Message * ID>/agent/environments/` * The environment ID for the default environment is `-`. * @type int $page_size - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * @type string $page_token * Optional. The next_page_token value returned from a previous list request. * } @@ -102,8 +103,8 @@ public function setParent($var) } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -114,8 +115,8 @@ public function getPageSize() } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/GetEnvironmentRequest.php b/Dialogflow/src/V2/GetEnvironmentRequest.php index 5d7fa8265bdf..049a92422747 100644 --- a/Dialogflow/src/V2/GetEnvironmentRequest.php +++ b/Dialogflow/src/V2/GetEnvironmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.v2.Environments.GetEnvironment]. + * The request message for + * [Environments.GetEnvironment][google.cloud.dialogflow.v2.Environments.GetEnvironment]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetEnvironmentRequest */ diff --git a/Dialogflow/src/V2/GetFulfillmentRequest.php b/Dialogflow/src/V2/GetFulfillmentRequest.php index f6f030f132ab..9b3ebf3cca18 100644 --- a/Dialogflow/src/V2/GetFulfillmentRequest.php +++ b/Dialogflow/src/V2/GetFulfillmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Fulfillments.GetFulfillment][google.cloud.dialogflow.v2.Fulfillments.GetFulfillment]. + * The request message for + * [Fulfillments.GetFulfillment][google.cloud.dialogflow.v2.Fulfillments.GetFulfillment]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetFulfillmentRequest */ diff --git a/Dialogflow/src/V2/GetIntentRequest.php b/Dialogflow/src/V2/GetIntentRequest.php index 4e17a94a16a9..616c6c7eb1f6 100644 --- a/Dialogflow/src/V2/GetIntentRequest.php +++ b/Dialogflow/src/V2/GetIntentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. + * The request message for + * [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetIntentRequest */ diff --git a/Dialogflow/src/V2/GetKnowledgeBaseRequest.php b/Dialogflow/src/V2/GetKnowledgeBaseRequest.php index b0e609f42800..34a0d5503049 100644 --- a/Dialogflow/src/V2/GetKnowledgeBaseRequest.php +++ b/Dialogflow/src/V2/GetKnowledgeBaseRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase]. + * Request message for + * [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetKnowledgeBaseRequest */ diff --git a/Dialogflow/src/V2/GetParticipantRequest.php b/Dialogflow/src/V2/GetParticipantRequest.php index e7bc97cdc4a3..acf36d704ea1 100644 --- a/Dialogflow/src/V2/GetParticipantRequest.php +++ b/Dialogflow/src/V2/GetParticipantRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant]. + * The request message for + * [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetParticipantRequest */ diff --git a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php index f43f79fa18d1..7d3f773e2866 100644 --- a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. + * The request message for + * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/GetValidationResultRequest.php b/Dialogflow/src/V2/GetValidationResultRequest.php index 782db1ad3102..a07cf78760d0 100644 --- a/Dialogflow/src/V2/GetValidationResultRequest.php +++ b/Dialogflow/src/V2/GetValidationResultRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult]. + * The request message for + * [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetValidationResultRequest */ diff --git a/Dialogflow/src/V2/GetVersionRequest.php b/Dialogflow/src/V2/GetVersionRequest.php index cf1b8ee3cb1f..e05ed327a235 100644 --- a/Dialogflow/src/V2/GetVersionRequest.php +++ b/Dialogflow/src/V2/GetVersionRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Versions.GetVersion][google.cloud.dialogflow.v2.Versions.GetVersion]. + * The request message for + * [Versions.GetVersion][google.cloud.dialogflow.v2.Versions.GetVersion]. * * Generated from protobuf message google.cloud.dialogflow.v2.GetVersionRequest */ diff --git a/Dialogflow/src/V2/HumanAgentAssistantConfig/MessageAnalysisConfig.php b/Dialogflow/src/V2/HumanAgentAssistantConfig/MessageAnalysisConfig.php index 02e77ad813c3..f9a20291a89d 100644 --- a/Dialogflow/src/V2/HumanAgentAssistantConfig/MessageAnalysisConfig.php +++ b/Dialogflow/src/V2/HumanAgentAssistantConfig/MessageAnalysisConfig.php @@ -32,11 +32,17 @@ class MessageAnalysisConfig extends \Google\Protobuf\Internal\Message * and identifies the prevailing subjective opinion, especially to determine * a user's attitude as positive, negative, or neutral: * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis - * For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method, result will be in + * For + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * method, result will be in * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. - * For [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] method, result will be in + * For + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * method, result will be in * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] - * For [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] method, result will be in + * For + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + * method, result will be in * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] * If Pub/Sub notification is configured, result will be in * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. @@ -64,11 +70,17 @@ class MessageAnalysisConfig extends \Google\Protobuf\Internal\Message * and identifies the prevailing subjective opinion, especially to determine * a user's attitude as positive, negative, or neutral: * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis - * For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method, result will be in + * For + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * method, result will be in * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. - * For [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] method, result will be in + * For + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * method, result will be in * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] - * For [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] method, result will be in + * For + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + * method, result will be in * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] * If Pub/Sub notification is configured, result will be in * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. @@ -120,11 +132,17 @@ public function setEnableEntityExtraction($var) * and identifies the prevailing subjective opinion, especially to determine * a user's attitude as positive, negative, or neutral: * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis - * For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method, result will be in + * For + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * method, result will be in * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. - * For [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] method, result will be in + * For + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * method, result will be in * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] - * For [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] method, result will be in + * For + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + * method, result will be in * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] * If Pub/Sub notification is configured, result will be in * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. @@ -144,11 +162,17 @@ public function getEnableSentimentAnalysis() * and identifies the prevailing subjective opinion, especially to determine * a user's attitude as positive, negative, or neutral: * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis - * For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method, result will be in + * For + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * method, result will be in * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. - * For [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] method, result will be in + * For + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * method, result will be in * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] - * For [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] method, result will be in + * For + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + * method, result will be in * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] * If Pub/Sub notification is configured, result will be in * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. diff --git a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php index 45165ad2284a..6ef6ed220a96 100644 --- a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php +++ b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php @@ -17,8 +17,8 @@ class DialogflowQuerySource extends \Google\Protobuf\Internal\Message { /** - * Required. The name of a Dialogflow virtual agent used for end user side intent - * detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * @@ -33,8 +33,8 @@ class DialogflowQuerySource extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $agent - * Required. The name of a Dialogflow virtual agent used for end user side intent - * detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * } @@ -45,8 +45,8 @@ public function __construct($data = NULL) { } /** - * Required. The name of a Dialogflow virtual agent used for end user side intent - * detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * @@ -59,8 +59,8 @@ public function getAgent() } /** - * Required. The name of a Dialogflow virtual agent used for end user side intent - * detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * diff --git a/Dialogflow/src/V2/ImportAgentRequest.php b/Dialogflow/src/V2/ImportAgentRequest.php index dbc2e21eb844..dfc23baee4e8 100644 --- a/Dialogflow/src/V2/ImportAgentRequest.php +++ b/Dialogflow/src/V2/ImportAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. + * The request message for + * [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportAgentRequest */ diff --git a/Dialogflow/src/V2/ImportConversationDataOperationMetadata.php b/Dialogflow/src/V2/ImportConversationDataOperationMetadata.php index 71acc18ea828..7960bfe291ba 100644 --- a/Dialogflow/src/V2/ImportConversationDataOperationMetadata.php +++ b/Dialogflow/src/V2/ImportConversationDataOperationMetadata.php @@ -9,7 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Metadata for a [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] operation. + * Metadata for a + * [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] + * operation. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata */ diff --git a/Dialogflow/src/V2/ImportConversationDataOperationResponse.php b/Dialogflow/src/V2/ImportConversationDataOperationResponse.php index f30d618bad8e..d439ad5f4b52 100644 --- a/Dialogflow/src/V2/ImportConversationDataOperationResponse.php +++ b/Dialogflow/src/V2/ImportConversationDataOperationResponse.php @@ -9,8 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response used for [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] long - * running operation. + * Response used for + * [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData] + * long running operation. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportConversationDataOperationResponse */ diff --git a/Dialogflow/src/V2/ImportConversationDataRequest.php b/Dialogflow/src/V2/ImportConversationDataRequest.php index 6f087719f715..7028d15132fc 100644 --- a/Dialogflow/src/V2/ImportConversationDataRequest.php +++ b/Dialogflow/src/V2/ImportConversationDataRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData]. + * The request message for + * [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData]. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportConversationDataRequest */ diff --git a/Dialogflow/src/V2/ImportDocumentsRequest.php b/Dialogflow/src/V2/ImportDocumentsRequest.php index 978638864226..f675acdde64a 100644 --- a/Dialogflow/src/V2/ImportDocumentsRequest.php +++ b/Dialogflow/src/V2/ImportDocumentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments]. + * Request message for + * [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportDocumentsRequest */ diff --git a/Dialogflow/src/V2/ImportDocumentsResponse.php b/Dialogflow/src/V2/ImportDocumentsResponse.php index 1de5e647f04d..98f7b7ae4fa6 100644 --- a/Dialogflow/src/V2/ImportDocumentsResponse.php +++ b/Dialogflow/src/V2/ImportDocumentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response message for [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments]. + * Response message for + * [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ImportDocumentsResponse */ diff --git a/Dialogflow/src/V2/InputAudioConfig.php b/Dialogflow/src/V2/InputAudioConfig.php index a6ec31a7c4be..b7e34b11675b 100644 --- a/Dialogflow/src/V2/InputAudioConfig.php +++ b/Dialogflow/src/V2/InputAudioConfig.php @@ -42,10 +42,12 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message */ private $language_code = ''; /** - * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in - * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech - * words, e.g. start and end time offsets. If false or unspecified, Speech - * doesn't return any word-level information. + * If `true`, Dialogflow returns + * [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] + * with information about the recognized speech words, e.g. start and end time + * offsets. If false or unspecified, Speech doesn't return any word-level + * information. * * Generated from protobuf field bool enable_word_info = 13; */ @@ -90,7 +92,8 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message */ private $model = ''; /** - * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. + * Which variant of the [Speech + * model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; */ @@ -111,7 +114,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message */ private $single_utterance = false; /** - * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and + * Only used in + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. * If `false` and recognition doesn't return any result, trigger * `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. @@ -141,10 +146,12 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. * @type bool $enable_word_info - * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in - * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech - * words, e.g. start and end time offsets. If false or unspecified, Speech - * doesn't return any word-level information. + * If `true`, Dialogflow returns + * [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] + * with information about the recognized speech words, e.g. start and end time + * offsets. If false or unspecified, Speech doesn't return any word-level + * information. * @type array|\Google\Protobuf\Internal\RepeatedField $phrase_hints * A list of strings containing words and phrases that the speech * recognizer should recognize with higher likelihood. @@ -172,7 +179,8 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) * for more details. * @type int $model_variant - * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. + * Which variant of the [Speech + * model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * @type bool $single_utterance * If `false` (default), recognition does not cease until the * client closes the stream. @@ -185,7 +193,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message * Note: When specified, InputAudioConfig.single_utterance takes precedence * over StreamingDetectIntentRequest.single_utterance. * @type bool $disable_no_speech_recognized_event - * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and + * Only used in + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. * If `false` and recognition doesn't return any result, trigger * `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. @@ -291,10 +301,12 @@ public function setLanguageCode($var) } /** - * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in - * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech - * words, e.g. start and end time offsets. If false or unspecified, Speech - * doesn't return any word-level information. + * If `true`, Dialogflow returns + * [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] + * with information about the recognized speech words, e.g. start and end time + * offsets. If false or unspecified, Speech doesn't return any word-level + * information. * * Generated from protobuf field bool enable_word_info = 13; * @return bool @@ -305,10 +317,12 @@ public function getEnableWordInfo() } /** - * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in - * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech - * words, e.g. start and end time offsets. If false or unspecified, Speech - * doesn't return any word-level information. + * If `true`, Dialogflow returns + * [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] + * with information about the recognized speech words, e.g. start and end time + * offsets. If false or unspecified, Speech doesn't return any word-level + * information. * * Generated from protobuf field bool enable_word_info = 13; * @param bool $var @@ -445,7 +459,8 @@ public function setModel($var) } /** - * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. + * Which variant of the [Speech + * model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; * @return int @@ -456,7 +471,8 @@ public function getModelVariant() } /** - * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. + * Which variant of the [Speech + * model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; * @param int $var @@ -515,7 +531,9 @@ public function setSingleUtterance($var) } /** - * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and + * Only used in + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. * If `false` and recognition doesn't return any result, trigger * `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. @@ -529,7 +547,9 @@ public function getDisableNoSpeechRecognizedEvent() } /** - * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and + * Only used in + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. * If `false` and recognition doesn't return any result, trigger * `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. diff --git a/Dialogflow/src/V2/Intent.php b/Dialogflow/src/V2/Intent.php index fe3927fd1f84..4b876e921119 100644 --- a/Dialogflow/src/V2/Intent.php +++ b/Dialogflow/src/V2/Intent.php @@ -24,7 +24,9 @@ class Intent extends \Google\Protobuf\Internal\Message { /** * Optional. The unique identifier of this intent. - * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * Required for + * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and + * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] * methods. * Format: `projects//agent/intents/`. * @@ -168,9 +170,10 @@ class Intent extends \Google\Protobuf\Internal\Message /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or - * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this - * intent a followup intent. + * for example with + * [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], + * in order to make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -178,8 +181,9 @@ class Intent extends \Google\Protobuf\Internal\Message */ private $parent_followup_intent_name = ''; /** - * Output only. Read-only. Information about all followup intents that have this intent as - * a direct or indirect parent. We populate this field only in the output. + * Output only. Read-only. Information about all followup intents that have + * this intent as a direct or indirect parent. We populate this field only in + * the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -193,7 +197,9 @@ class Intent extends \Google\Protobuf\Internal\Message * * @type string $name * Optional. The unique identifier of this intent. - * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * Required for + * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and + * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] * methods. * Format: `projects//agent/intents/`. * @type string $display_name @@ -265,14 +271,16 @@ class Intent extends \Google\Protobuf\Internal\Message * @type string $parent_followup_intent_name * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or - * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this - * intent a followup intent. + * for example with + * [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], + * in order to make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @type array<\Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo>|\Google\Protobuf\Internal\RepeatedField $followup_intent_info - * Output only. Read-only. Information about all followup intents that have this intent as - * a direct or indirect parent. We populate this field only in the output. + * Output only. Read-only. Information about all followup intents that have + * this intent as a direct or indirect parent. We populate this field only in + * the output. * } */ public function __construct($data = NULL) { @@ -282,7 +290,9 @@ public function __construct($data = NULL) { /** * Optional. The unique identifier of this intent. - * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * Required for + * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and + * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] * methods. * Format: `projects//agent/intents/`. * @@ -296,7 +306,9 @@ public function getName() /** * Optional. The unique identifier of this intent. - * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * Required for + * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and + * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] * methods. * Format: `projects//agent/intents/`. * @@ -821,9 +833,10 @@ public function setRootFollowupIntentName($var) /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or - * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this - * intent a followup intent. + * for example with + * [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], + * in order to make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -838,9 +851,10 @@ public function getParentFollowupIntentName() /** * Read-only after creation. The unique identifier of the parent intent in the * chain of followup intents. You can set this field when creating an intent, - * for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or - * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this - * intent a followup intent. + * for example with + * [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or + * [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], + * in order to make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects//agent/intents/`. * @@ -857,8 +871,9 @@ public function setParentFollowupIntentName($var) } /** - * Output only. Read-only. Information about all followup intents that have this intent as - * a direct or indirect parent. We populate this field only in the output. + * Output only. Read-only. Information about all followup intents that have + * this intent as a direct or indirect parent. We populate this field only in + * the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Internal\RepeatedField @@ -869,8 +884,9 @@ public function getFollowupIntentInfo() } /** - * Output only. Read-only. Information about all followup intents that have this intent as - * a direct or indirect parent. We populate this field only in the output. + * Output only. Read-only. Information about all followup intents that have + * this intent as a direct or indirect parent. We populate this field only in + * the output. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param array<\Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/Intent/Message/ColumnProperties.php b/Dialogflow/src/V2/Intent/Message/ColumnProperties.php index b9159c880525..7c3bb4881ffb 100644 --- a/Dialogflow/src/V2/Intent/Message/ColumnProperties.php +++ b/Dialogflow/src/V2/Intent/Message/ColumnProperties.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. + * Column properties for + * [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. * * Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.ColumnProperties */ diff --git a/Dialogflow/src/V2/Intent/Message/TableCardCell.php b/Dialogflow/src/V2/Intent/Message/TableCardCell.php index 1d428627794a..84a4747ed711 100644 --- a/Dialogflow/src/V2/Intent/Message/TableCardCell.php +++ b/Dialogflow/src/V2/Intent/Message/TableCardCell.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow]. + * Cell of + * [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow]. * * Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.TableCardCell */ diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase.php b/Dialogflow/src/V2/Intent/TrainingPhrase.php index 10ce3bfef8ea..f2a0dcefcefc 100644 --- a/Dialogflow/src/V2/Intent/TrainingPhrase.php +++ b/Dialogflow/src/V2/Intent/TrainingPhrase.php @@ -35,7 +35,9 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message * Note: Do not forget to include whitespace at part boundaries, * so the training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -73,7 +75,9 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message * Note: Do not forget to include whitespace at part boundaries, * so the training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -151,7 +155,9 @@ public function setType($var) * Note: Do not forget to include whitespace at part boundaries, * so the training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -175,7 +181,9 @@ public function getParts() * Note: Do not forget to include whitespace at part boundaries, * so the training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. diff --git a/Dialogflow/src/V2/ListAnswerRecordsRequest.php b/Dialogflow/src/V2/ListAnswerRecordsRequest.php index 8fc7987a8394..51c3d31c96f5 100644 --- a/Dialogflow/src/V2/ListAnswerRecordsRequest.php +++ b/Dialogflow/src/V2/ListAnswerRecordsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. + * Request message for + * [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListAnswerRecordsRequest */ diff --git a/Dialogflow/src/V2/ListAnswerRecordsResponse.php b/Dialogflow/src/V2/ListAnswerRecordsResponse.php index 5efa86b815f0..2ab6844dcaaf 100644 --- a/Dialogflow/src/V2/ListAnswerRecordsResponse.php +++ b/Dialogflow/src/V2/ListAnswerRecordsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. + * Response message for + * [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListAnswerRecordsResponse */ diff --git a/Dialogflow/src/V2/ListContextsRequest.php b/Dialogflow/src/V2/ListContextsRequest.php index ed53b8779bb6..4774c0b4d7c0 100644 --- a/Dialogflow/src/V2/ListContextsRequest.php +++ b/Dialogflow/src/V2/ListContextsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. + * The request message for + * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListContextsRequest */ diff --git a/Dialogflow/src/V2/ListContextsResponse.php b/Dialogflow/src/V2/ListContextsResponse.php index 6552f641f3de..8c8daccf8c98 100644 --- a/Dialogflow/src/V2/ListContextsResponse.php +++ b/Dialogflow/src/V2/ListContextsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. + * The response message for + * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListContextsResponse */ diff --git a/Dialogflow/src/V2/ListConversationDatasetsRequest.php b/Dialogflow/src/V2/ListConversationDatasetsRequest.php index 7d1d639b0c7f..a3875ef051d4 100644 --- a/Dialogflow/src/V2/ListConversationDatasetsRequest.php +++ b/Dialogflow/src/V2/ListConversationDatasetsRequest.php @@ -17,8 +17,8 @@ class ListConversationDatasetsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The project and location name to list all conversation datasets for. - * Format: `projects//locations/` + * Required. The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -44,8 +44,8 @@ class ListConversationDatasetsRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Required. The project and location name to list all conversation datasets for. - * Format: `projects//locations/` + * Required. The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * @type int $page_size * Optional. Maximum number of conversation datasets to return in a single * page. By default 100 and at most 1000. @@ -59,8 +59,8 @@ public function __construct($data = NULL) { } /** - * Required. The project and location name to list all conversation datasets for. - * Format: `projects//locations/` + * Required. The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -71,8 +71,8 @@ public function getParent() } /** - * Required. The project and location name to list all conversation datasets for. - * Format: `projects//locations/` + * Required. The project and location name to list all conversation datasets + * for. Format: `projects//locations/` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/Dialogflow/src/V2/ListConversationProfilesRequest.php b/Dialogflow/src/V2/ListConversationProfilesRequest.php index dba2a0fb9368..b7c905483376 100644 --- a/Dialogflow/src/V2/ListConversationProfilesRequest.php +++ b/Dialogflow/src/V2/ListConversationProfilesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. + * The request message for + * [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListConversationProfilesRequest */ diff --git a/Dialogflow/src/V2/ListConversationProfilesResponse.php b/Dialogflow/src/V2/ListConversationProfilesResponse.php index 2b5cf6ea49f3..542726b9b862 100644 --- a/Dialogflow/src/V2/ListConversationProfilesResponse.php +++ b/Dialogflow/src/V2/ListConversationProfilesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. + * The response message for + * [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListConversationProfilesResponse */ diff --git a/Dialogflow/src/V2/ListConversationsRequest.php b/Dialogflow/src/V2/ListConversationsRequest.php index d86372eb385a..ce14ba88b577 100644 --- a/Dialogflow/src/V2/ListConversationsRequest.php +++ b/Dialogflow/src/V2/ListConversationsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. + * The request message for + * [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListConversationsRequest */ diff --git a/Dialogflow/src/V2/ListConversationsResponse.php b/Dialogflow/src/V2/ListConversationsResponse.php index bb0e4b7f364e..decf862312a7 100644 --- a/Dialogflow/src/V2/ListConversationsResponse.php +++ b/Dialogflow/src/V2/ListConversationsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. + * The response message for + * [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListConversationsResponse */ diff --git a/Dialogflow/src/V2/ListDocumentsRequest.php b/Dialogflow/src/V2/ListDocumentsRequest.php index 5b50bbca260d..ffc58516878e 100644 --- a/Dialogflow/src/V2/ListDocumentsRequest.php +++ b/Dialogflow/src/V2/ListDocumentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. + * Request message for + * [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListDocumentsRequest */ diff --git a/Dialogflow/src/V2/ListDocumentsResponse.php b/Dialogflow/src/V2/ListDocumentsResponse.php index d2e7288beccc..d918df6193b1 100644 --- a/Dialogflow/src/V2/ListDocumentsResponse.php +++ b/Dialogflow/src/V2/ListDocumentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. + * Response message for + * [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListDocumentsResponse */ diff --git a/Dialogflow/src/V2/ListEntityTypesRequest.php b/Dialogflow/src/V2/ListEntityTypesRequest.php index f63305ec5d4c..3de4173406a1 100644 --- a/Dialogflow/src/V2/ListEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListEntityTypesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. + * The request message for + * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesRequest */ diff --git a/Dialogflow/src/V2/ListEntityTypesResponse.php b/Dialogflow/src/V2/ListEntityTypesResponse.php index 4a16afccfcbf..382e4c12d30d 100644 --- a/Dialogflow/src/V2/ListEntityTypesResponse.php +++ b/Dialogflow/src/V2/ListEntityTypesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. + * The response message for + * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesResponse */ diff --git a/Dialogflow/src/V2/ListEnvironmentsRequest.php b/Dialogflow/src/V2/ListEnvironmentsRequest.php index ffaebccd231e..81ac020ad683 100644 --- a/Dialogflow/src/V2/ListEnvironmentsRequest.php +++ b/Dialogflow/src/V2/ListEnvironmentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments]. + * The request message for + * [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEnvironmentsRequest */ @@ -25,8 +26,8 @@ class ListEnvironmentsRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -50,8 +51,8 @@ class ListEnvironmentsRequest extends \Google\Protobuf\Internal\Message * - `projects//agent` * - `projects//locations//agent` * @type int $page_size - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * @type string $page_token * Optional. The next_page_token value returned from a previous list request. * } @@ -94,8 +95,8 @@ public function setParent($var) } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -106,8 +107,8 @@ public function getPageSize() } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/ListEnvironmentsResponse.php b/Dialogflow/src/V2/ListEnvironmentsResponse.php index 7f89f54054c6..2f8f893ffcec 100644 --- a/Dialogflow/src/V2/ListEnvironmentsResponse.php +++ b/Dialogflow/src/V2/ListEnvironmentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments]. + * The response message for + * [Environments.ListEnvironments][google.cloud.dialogflow.v2.Environments.ListEnvironments]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListEnvironmentsResponse */ diff --git a/Dialogflow/src/V2/ListIntentsRequest.php b/Dialogflow/src/V2/ListIntentsRequest.php index 55320d9338c8..bacd4dd6bb84 100644 --- a/Dialogflow/src/V2/ListIntentsRequest.php +++ b/Dialogflow/src/V2/ListIntentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. + * The request message for + * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsRequest */ diff --git a/Dialogflow/src/V2/ListIntentsResponse.php b/Dialogflow/src/V2/ListIntentsResponse.php index 585345ba61cc..df80a0acf944 100644 --- a/Dialogflow/src/V2/ListIntentsResponse.php +++ b/Dialogflow/src/V2/ListIntentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. + * The response message for + * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsResponse */ diff --git a/Dialogflow/src/V2/ListKnowledgeBasesRequest.php b/Dialogflow/src/V2/ListKnowledgeBasesRequest.php index fb86e1a3ca67..0f671bb98286 100644 --- a/Dialogflow/src/V2/ListKnowledgeBasesRequest.php +++ b/Dialogflow/src/V2/ListKnowledgeBasesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. + * Request message for + * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListKnowledgeBasesRequest */ diff --git a/Dialogflow/src/V2/ListKnowledgeBasesResponse.php b/Dialogflow/src/V2/ListKnowledgeBasesResponse.php index 93cbe1e746de..a11f9029f6c6 100644 --- a/Dialogflow/src/V2/ListKnowledgeBasesResponse.php +++ b/Dialogflow/src/V2/ListKnowledgeBasesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. + * Response message for + * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListKnowledgeBasesResponse */ diff --git a/Dialogflow/src/V2/ListMessagesRequest.php b/Dialogflow/src/V2/ListMessagesRequest.php index c23898ce03e1..96884c2ba940 100644 --- a/Dialogflow/src/V2/ListMessagesRequest.php +++ b/Dialogflow/src/V2/ListMessagesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. + * The request message for + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListMessagesRequest */ diff --git a/Dialogflow/src/V2/ListMessagesResponse.php b/Dialogflow/src/V2/ListMessagesResponse.php index 8941be8ff885..f7e8129ad595 100644 --- a/Dialogflow/src/V2/ListMessagesResponse.php +++ b/Dialogflow/src/V2/ListMessagesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. + * The response message for + * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListMessagesResponse */ diff --git a/Dialogflow/src/V2/ListParticipantsRequest.php b/Dialogflow/src/V2/ListParticipantsRequest.php index 4c888a812395..115f941adea5 100644 --- a/Dialogflow/src/V2/ListParticipantsRequest.php +++ b/Dialogflow/src/V2/ListParticipantsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. + * The request message for + * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListParticipantsRequest */ diff --git a/Dialogflow/src/V2/ListParticipantsResponse.php b/Dialogflow/src/V2/ListParticipantsResponse.php index 0832fdd5d2cc..39760542cb14 100644 --- a/Dialogflow/src/V2/ListParticipantsResponse.php +++ b/Dialogflow/src/V2/ListParticipantsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. + * The response message for + * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListParticipantsResponse */ diff --git a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php index 020895634d82..b10c0caf46d2 100644 --- a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php +++ b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. + * The request message for + * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesRequest */ diff --git a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php index a1b81c49bf9b..549faeb9e2fe 100644 --- a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php +++ b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. + * The response message for + * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesResponse */ diff --git a/Dialogflow/src/V2/ListVersionsRequest.php b/Dialogflow/src/V2/ListVersionsRequest.php index cfba3293d04b..c4dce742af93 100644 --- a/Dialogflow/src/V2/ListVersionsRequest.php +++ b/Dialogflow/src/V2/ListVersionsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions]. + * The request message for + * [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListVersionsRequest */ @@ -25,8 +26,8 @@ class ListVersionsRequest extends \Google\Protobuf\Internal\Message */ private $parent = ''; /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -50,8 +51,8 @@ class ListVersionsRequest extends \Google\Protobuf\Internal\Message * - `projects//agent` * - `projects//locations//agent` * @type int $page_size - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * @type string $page_token * Optional. The next_page_token value returned from a previous list request. * } @@ -94,8 +95,8 @@ public function setParent($var) } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -106,8 +107,8 @@ public function getPageSize() } /** - * Optional. The maximum number of items to return in a single page. By default 100 and - * at most 1000. + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/ListVersionsResponse.php b/Dialogflow/src/V2/ListVersionsResponse.php index e67790756c59..38e366c023b4 100644 --- a/Dialogflow/src/V2/ListVersionsResponse.php +++ b/Dialogflow/src/V2/ListVersionsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions]. + * The response message for + * [Versions.ListVersions][google.cloud.dialogflow.v2.Versions.ListVersions]. * * Generated from protobuf message google.cloud.dialogflow.v2.ListVersionsResponse */ diff --git a/Dialogflow/src/V2/LoggingConfig.php b/Dialogflow/src/V2/LoggingConfig.php index f894e979a19d..8d6a12676cc4 100644 --- a/Dialogflow/src/V2/LoggingConfig.php +++ b/Dialogflow/src/V2/LoggingConfig.php @@ -17,8 +17,8 @@ class LoggingConfig extends \Google\Protobuf\Internal\Message { /** * Whether to log conversation events like - * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] to - * Stackdriver in the conversation project as JSON format + * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] + * to Stackdriver in the conversation project as JSON format * [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. * * Generated from protobuf field bool enable_stackdriver_logging = 3; @@ -33,8 +33,8 @@ class LoggingConfig extends \Google\Protobuf\Internal\Message * * @type bool $enable_stackdriver_logging * Whether to log conversation events like - * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] to - * Stackdriver in the conversation project as JSON format + * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] + * to Stackdriver in the conversation project as JSON format * [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. * } */ @@ -45,8 +45,8 @@ public function __construct($data = NULL) { /** * Whether to log conversation events like - * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] to - * Stackdriver in the conversation project as JSON format + * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] + * to Stackdriver in the conversation project as JSON format * [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. * * Generated from protobuf field bool enable_stackdriver_logging = 3; @@ -59,8 +59,8 @@ public function getEnableStackdriverLogging() /** * Whether to log conversation events like - * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] to - * Stackdriver in the conversation project as JSON format + * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] + * to Stackdriver in the conversation project as JSON format * [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. * * Generated from protobuf field bool enable_stackdriver_logging = 3; diff --git a/Dialogflow/src/V2/NotificationConfig.php b/Dialogflow/src/V2/NotificationConfig.php index f4f3eb4dd81f..86890e81b346 100644 --- a/Dialogflow/src/V2/NotificationConfig.php +++ b/Dialogflow/src/V2/NotificationConfig.php @@ -18,8 +18,9 @@ class NotificationConfig extends \Google\Protobuf\Internal\Message /** * Name of the Pub/Sub topic to publish conversation * events like - * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as - * serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. + * [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] + * as serialized + * [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. * For telephony integration to receive notification, make sure either this * topic is in the same project as the conversation or you grant * `service-.google.cloud.dialogflow.v2.Participant.Role role = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ @@ -39,18 +39,23 @@ class Participant extends \Google\Protobuf\Internal\Message */ private $sip_recording_media_label = ''; /** - * Optional. Obfuscated user id that should be associated with the created participant. + * Optional. Obfuscated user id that should be associated with the created + * participant. * You can specify a user id as follows: * 1. If you set this field in - * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] or + * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] + * or * [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant], * Dialogflow adds the obfuscated user id with the participant. * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], - * Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. + * Dialogflow will update + * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * Dialogflow returns an error if you try to add a user id for a - * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] participant. + * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] + * participant. * Dialogflow uses this user id for billing and measurement purposes. For * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. @@ -65,9 +70,10 @@ class Participant extends \Google\Protobuf\Internal\Message */ private $obfuscated_external_user_id = ''; /** - * Optional. Key-value filters on the metadata of documents returned by article - * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * Optional. Key-value filters on the metadata of documents returned by + * article suggestion. If specified, article suggestion only returns suggested + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -97,25 +103,30 @@ class Participant extends \Google\Protobuf\Internal\Message * Format: `projects//locations//conversations//participants/`. * @type int $role - * Immutable. The role this participant plays in the conversation. This field must be set - * during participant creation and is then immutable. + * Immutable. The role this participant plays in the conversation. This field + * must be set during participant creation and is then immutable. * @type string $sip_recording_media_label * Optional. Label applied to streams representing this participant in SIPREC * XML metadata and SDP. This is used to assign transcriptions from that * media stream to this participant. This field can be updated. * @type string $obfuscated_external_user_id - * Optional. Obfuscated user id that should be associated with the created participant. + * Optional. Obfuscated user id that should be associated with the created + * participant. * You can specify a user id as follows: * 1. If you set this field in - * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] or + * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] + * or * [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant], * Dialogflow adds the obfuscated user id with the participant. * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], - * Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. + * Dialogflow will update + * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * Dialogflow returns an error if you try to add a user id for a - * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] participant. + * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] + * participant. * Dialogflow uses this user id for billing and measurement purposes. For * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. @@ -126,9 +137,10 @@ class Participant extends \Google\Protobuf\Internal\Message * hash function like SHA-512. * * The length of the user id must be <= 256 characters. * @type array|\Google\Protobuf\Internal\MapField $documents_metadata_filters - * Optional. Key-value filters on the metadata of documents returned by article - * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * Optional. Key-value filters on the metadata of documents returned by + * article suggestion. If specified, article suggestion only returns suggested + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -180,8 +192,8 @@ public function setName($var) } /** - * Immutable. The role this participant plays in the conversation. This field must be set - * during participant creation and is then immutable. + * Immutable. The role this participant plays in the conversation. This field + * must be set during participant creation and is then immutable. * * Generated from protobuf field .google.cloud.dialogflow.v2.Participant.Role role = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return int @@ -192,8 +204,8 @@ public function getRole() } /** - * Immutable. The role this participant plays in the conversation. This field must be set - * during participant creation and is then immutable. + * Immutable. The role this participant plays in the conversation. This field + * must be set during participant creation and is then immutable. * * Generated from protobuf field .google.cloud.dialogflow.v2.Participant.Role role = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param int $var @@ -238,18 +250,23 @@ public function setSipRecordingMediaLabel($var) } /** - * Optional. Obfuscated user id that should be associated with the created participant. + * Optional. Obfuscated user id that should be associated with the created + * participant. * You can specify a user id as follows: * 1. If you set this field in - * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] or + * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] + * or * [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant], * Dialogflow adds the obfuscated user id with the participant. * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], - * Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. + * Dialogflow will update + * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * Dialogflow returns an error if you try to add a user id for a - * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] participant. + * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] + * participant. * Dialogflow uses this user id for billing and measurement purposes. For * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. @@ -269,18 +286,23 @@ public function getObfuscatedExternalUserId() } /** - * Optional. Obfuscated user id that should be associated with the created participant. + * Optional. Obfuscated user id that should be associated with the created + * participant. * You can specify a user id as follows: * 1. If you set this field in - * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] or + * [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] + * or * [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant], * Dialogflow adds the obfuscated user id with the participant. * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], - * Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. + * Dialogflow will update + * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * Dialogflow returns an error if you try to add a user id for a - * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] participant. + * non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] + * participant. * Dialogflow uses this user id for billing and measurement purposes. For * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. @@ -304,9 +326,10 @@ public function setObfuscatedExternalUserId($var) } /** - * Optional. Key-value filters on the metadata of documents returned by article - * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * Optional. Key-value filters on the metadata of documents returned by + * article suggestion. If specified, article suggestion only returns suggested + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be @@ -330,9 +353,10 @@ public function getDocumentsMetadataFilters() } /** - * Optional. Key-value filters on the metadata of documents returned by article - * suggestion. If specified, article suggestion only returns suggested - * documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + * Optional. Key-value filters on the metadata of documents returned by + * article suggestion. If specified, article suggestion only returns suggested + * documents that match all filters in their + * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple * values for a metadata key should be concatenated by comma. For example, * filters to match all documents that have 'US' or 'CA' in their market * metadata values and 'agent' in their user metadata values will be diff --git a/Dialogflow/src/V2/ReloadDocumentRequest.php b/Dialogflow/src/V2/ReloadDocumentRequest.php index 8035682d69fa..29a11b052cc2 100644 --- a/Dialogflow/src/V2/ReloadDocumentRequest.php +++ b/Dialogflow/src/V2/ReloadDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2.Documents.ReloadDocument]. + * Request message for + * [Documents.ReloadDocument][google.cloud.dialogflow.v2.Documents.ReloadDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.ReloadDocumentRequest */ @@ -31,8 +32,8 @@ class ReloadDocumentRequest extends \Google\Protobuf\Internal\Message */ private $import_gcs_custom_metadata = false; /** - * Optional. When enabled, the reload request is to apply partial update to the smart - * messaging allowlist. + * Optional. When enabled, the reload request is to apply partial update to + * the smart messaging allowlist. * * Generated from protobuf field bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -50,16 +51,16 @@ class ReloadDocumentRequest extends \Google\Protobuf\Internal\Message * Format: `projects//locations//knowledgeBases//documents/` * @type string $content_uri - * Optional. The path of gcs source file for reloading document content. For now, - * only gcs uri is supported. + * Optional. The path of gcs source file for reloading document content. For + * now, only gcs uri is supported. * For documents stored in Google Cloud Storage, these URIs must have * the form `gs:///`. * @type bool $import_gcs_custom_metadata * Optional. Whether to import custom metadata from Google Cloud Storage. * Only valid when the document source is Google Cloud Storage URI. * @type bool $smart_messaging_partial_update - * Optional. When enabled, the reload request is to apply partial update to the smart - * messaging allowlist. + * Optional. When enabled, the reload request is to apply partial update to + * the smart messaging allowlist. * } */ public function __construct($data = NULL) { @@ -98,8 +99,8 @@ public function setName($var) } /** - * Optional. The path of gcs source file for reloading document content. For now, - * only gcs uri is supported. + * Optional. The path of gcs source file for reloading document content. For + * now, only gcs uri is supported. * For documents stored in Google Cloud Storage, these URIs must have * the form `gs:///`. * @@ -117,8 +118,8 @@ public function hasContentUri() } /** - * Optional. The path of gcs source file for reloading document content. For now, - * only gcs uri is supported. + * Optional. The path of gcs source file for reloading document content. For + * now, only gcs uri is supported. * For documents stored in Google Cloud Storage, these URIs must have * the form `gs:///`. * @@ -163,8 +164,8 @@ public function setImportGcsCustomMetadata($var) } /** - * Optional. When enabled, the reload request is to apply partial update to the smart - * messaging allowlist. + * Optional. When enabled, the reload request is to apply partial update to + * the smart messaging allowlist. * * Generated from protobuf field bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return bool @@ -175,8 +176,8 @@ public function getSmartMessagingPartialUpdate() } /** - * Optional. When enabled, the reload request is to apply partial update to the smart - * messaging allowlist. + * Optional. When enabled, the reload request is to apply partial update to + * the smart messaging allowlist. * * Generated from protobuf field bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var diff --git a/Dialogflow/src/V2/RestoreAgentRequest.php b/Dialogflow/src/V2/RestoreAgentRequest.php index 00823e6559ad..62cb2efff027 100644 --- a/Dialogflow/src/V2/RestoreAgentRequest.php +++ b/Dialogflow/src/V2/RestoreAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent]. + * The request message for + * [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.RestoreAgentRequest */ diff --git a/Dialogflow/src/V2/SearchAgentsRequest.php b/Dialogflow/src/V2/SearchAgentsRequest.php index b299dc0d5065..e6008562788e 100644 --- a/Dialogflow/src/V2/SearchAgentsRequest.php +++ b/Dialogflow/src/V2/SearchAgentsRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. + * The request message for + * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. * * Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsRequest */ diff --git a/Dialogflow/src/V2/SearchAgentsResponse.php b/Dialogflow/src/V2/SearchAgentsResponse.php index 64a61d470bba..763a884a77c6 100644 --- a/Dialogflow/src/V2/SearchAgentsResponse.php +++ b/Dialogflow/src/V2/SearchAgentsResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. + * The response message for + * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. * * Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsResponse */ diff --git a/Dialogflow/src/V2/SentimentAnalysisResult.php b/Dialogflow/src/V2/SentimentAnalysisResult.php index caabf02d4888..9ba2618f2c27 100644 --- a/Dialogflow/src/V2/SentimentAnalysisResult.php +++ b/Dialogflow/src/V2/SentimentAnalysisResult.php @@ -13,11 +13,14 @@ * and identifies the prevailing subjective opinion, especially to determine a * user's attitude as positive, negative, or neutral. * For [Participants.DetectIntent][], it needs to be configured in - * [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. For - * [Participants.StreamingDetectIntent][], it needs to be configured in + * [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. + * For [Participants.StreamingDetectIntent][], it needs to be configured in * [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. - * And for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and - * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], it needs to be configured in + * And for + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], + * it needs to be configured in * [ConversationProfile.human_agent_assistant_config][google.cloud.dialogflow.v2.ConversationProfile.human_agent_assistant_config] * * Generated from protobuf message google.cloud.dialogflow.v2.SentimentAnalysisResult diff --git a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php index d4e97367040b..6c47ba21c5a0 100644 --- a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php +++ b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php @@ -33,8 +33,9 @@ class EntityOverrideMode * `GetSessionEntityType`, `CreateSessionEntityType` and * `UpdateSessionEntityType` only return the additional entities added in * this session entity type. If you want to get the supplemented list, - * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the custom entity type - * and merge. + * please call + * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] + * on the custom entity type and merge. * * Generated from protobuf enum ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; */ diff --git a/Dialogflow/src/V2/SetAgentRequest.php b/Dialogflow/src/V2/SetAgentRequest.php index 4fe12c4f75ef..2508506f3a1c 100644 --- a/Dialogflow/src/V2/SetAgentRequest.php +++ b/Dialogflow/src/V2/SetAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent]. + * The request message for + * [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.SetAgentRequest */ diff --git a/Dialogflow/src/V2/SmartReplyModelMetadata.php b/Dialogflow/src/V2/SmartReplyModelMetadata.php index 5e91a24a6780..5ce7ee4c713a 100644 --- a/Dialogflow/src/V2/SmartReplyModelMetadata.php +++ b/Dialogflow/src/V2/SmartReplyModelMetadata.php @@ -16,7 +16,8 @@ class SmartReplyModelMetadata extends \Google\Protobuf\Internal\Message { /** - * Optional. Type of the smart reply model. If not provided, model_type is used. + * Optional. Type of the smart reply model. If not provided, model_type is + * used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -29,7 +30,8 @@ class SmartReplyModelMetadata extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $training_model_type - * Optional. Type of the smart reply model. If not provided, model_type is used. + * Optional. Type of the smart reply model. If not provided, model_type is + * used. * } */ public function __construct($data = NULL) { @@ -38,7 +40,8 @@ public function __construct($data = NULL) { } /** - * Optional. Type of the smart reply model. If not provided, model_type is used. + * Optional. Type of the smart reply model. If not provided, model_type is + * used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -49,7 +52,8 @@ public function getTrainingModelType() } /** - * Optional. Type of the smart reply model. If not provided, model_type is used. + * Optional. Type of the smart reply model. If not provided, model_type is + * used. * * Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/SpeechModelVariant.php b/Dialogflow/src/V2/SpeechModelVariant.php index 088a6b9b9912..ea10fcdb7041 100644 --- a/Dialogflow/src/V2/SpeechModelVariant.php +++ b/Dialogflow/src/V2/SpeechModelVariant.php @@ -7,7 +7,8 @@ use UnexpectedValueException; /** - * Variant of the specified [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. + * Variant of the specified [Speech + * model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. * See the [Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) * for which models have different variants. For example, the "phone_call" model @@ -47,8 +48,8 @@ class SpeechModelVariant /** * Use an enhanced model variant: * * If an enhanced variant does not exist for the given - * [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls - * back to the standard variant. + * [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request + * language, Dialogflow falls back to the standard variant. * The [Cloud Speech * documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) * describes which models have enhanced variants. diff --git a/Dialogflow/src/V2/SpeechToTextConfig.php b/Dialogflow/src/V2/SpeechToTextConfig.php index c0f55d67b466..3a97157cd7e1 100644 --- a/Dialogflow/src/V2/SpeechToTextConfig.php +++ b/Dialogflow/src/V2/SpeechToTextConfig.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]. + * Configures speech transcription for + * [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]. * * Generated from protobuf message google.cloud.dialogflow.v2.SpeechToTextConfig */ @@ -18,11 +19,13 @@ class SpeechToTextConfig extends \Google\Protobuf\Internal\Message /** * The speech model used in speech to text. * `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - * `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and - * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. - * If enhanced model variant is specified and an enhanced - * version of the specified model for the language does not exist, then it - * would emit an error. + * `USE_ENHANCED`. It can be overridden in + * [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] + * and + * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] + * request. If enhanced model variant is specified and an enhanced version of + * the specified model for the language does not exist, then it would emit an + * error. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1; */ @@ -49,11 +52,13 @@ class SpeechToTextConfig extends \Google\Protobuf\Internal\Message * @type int $speech_model_variant * The speech model used in speech to text. * `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - * `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and - * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. - * If enhanced model variant is specified and an enhanced - * version of the specified model for the language does not exist, then it - * would emit an error. + * `USE_ENHANCED`. It can be overridden in + * [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] + * and + * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] + * request. If enhanced model variant is specified and an enhanced version of + * the specified model for the language does not exist, then it would emit an + * error. * @type string $model * Which Speech model to select. Select the model best suited to your domain * to get best results. If a model is not explicitly specified, then a default @@ -72,11 +77,13 @@ public function __construct($data = NULL) { /** * The speech model used in speech to text. * `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - * `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and - * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. - * If enhanced model variant is specified and an enhanced - * version of the specified model for the language does not exist, then it - * would emit an error. + * `USE_ENHANCED`. It can be overridden in + * [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] + * and + * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] + * request. If enhanced model variant is specified and an enhanced version of + * the specified model for the language does not exist, then it would emit an + * error. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1; * @return int @@ -89,11 +96,13 @@ public function getSpeechModelVariant() /** * The speech model used in speech to text. * `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - * `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and - * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. - * If enhanced model variant is specified and an enhanced - * version of the specified model for the language does not exist, then it - * would emit an error. + * `USE_ENHANCED`. It can be overridden in + * [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] + * and + * [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] + * request. If enhanced model variant is specified and an enhanced version of + * the specified model for the language does not exist, then it would emit an + * error. * * Generated from protobuf field .google.cloud.dialogflow.v2.SpeechModelVariant speech_model_variant = 1; * @param int $var diff --git a/Dialogflow/src/V2/StreamingAnalyzeContentRequest.php b/Dialogflow/src/V2/StreamingAnalyzeContentRequest.php index 491e115b9095..f8a3666ad06b 100644 --- a/Dialogflow/src/V2/StreamingAnalyzeContentRequest.php +++ b/Dialogflow/src/V2/StreamingAnalyzeContentRequest.php @@ -10,28 +10,36 @@ /** * The top-level message sent by the client to the - * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method. + * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * method. * Multiple request messages should be sent in order: * 1. The first message must contain * [participant][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], - * [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally - * [query_params][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.query_params]. If you want - * to receive an audio response, it should also contain + * [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] + * and optionally + * [query_params][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.query_params]. + * If you want to receive an audio response, it should also contain * [reply_audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.reply_audio_config]. * The message must not contain * [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input]. - * 2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message - * was set to [audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.audio_config], + * 2. If + * [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in + * the first message + * was set to + * [audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.audio_config], * all subsequent messages must contain - * [input_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_audio] to continue - * with Speech recognition. - * However, note that: + * [input_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_audio] + * to continue with Speech recognition. However, note that: * * Dialogflow will bill you for the audio so far. * * Dialogflow discards all Speech recognition results in favor of the * text input. - * 3. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set - * to [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.text_config], then the second message - * must contain only [input_text][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_text]. + * 3. If + * [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] + * in the first message was set + * to + * [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.text_config], + * then the second message must contain only + * [input_text][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_text]. * Moreover, you must not send more than two messages. * After you sent all input, you must half-close or abort the request stream. * diff --git a/Dialogflow/src/V2/StreamingAnalyzeContentResponse.php b/Dialogflow/src/V2/StreamingAnalyzeContentResponse.php index 9c2cdbf559dd..a25d3eed8edb 100644 --- a/Dialogflow/src/V2/StreamingAnalyzeContentResponse.php +++ b/Dialogflow/src/V2/StreamingAnalyzeContentResponse.php @@ -63,7 +63,9 @@ class StreamingAnalyzeContentResponse extends \Google\Protobuf\Internal\Message * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4; */ @@ -76,7 +78,8 @@ class StreamingAnalyzeContentResponse extends \Google\Protobuf\Internal\Message private $message = null; /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7; @@ -84,7 +87,8 @@ class StreamingAnalyzeContentResponse extends \Google\Protobuf\Internal\Message private $human_agent_suggestion_results; /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8; @@ -122,16 +126,20 @@ class StreamingAnalyzeContentResponse extends \Google\Protobuf\Internal\Message * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] + * instead. * @type \Google\Cloud\Dialogflow\V2\Message $message * Message analyzed by CCAI. * @type array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $human_agent_suggestion_results * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * @type array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $end_user_suggestion_results * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * @type \Google\Cloud\Dialogflow\V2\DtmfParameters $dtmf_parameters * Indicates the parameters of DTMF. @@ -262,7 +270,9 @@ public function setReplyAudio($var) * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4; * @return \Google\Cloud\Dialogflow\V2\AutomatedAgentReply|null @@ -286,7 +296,9 @@ public function clearAutomatedAgentReply() * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] + * instead. * * Generated from protobuf field .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 4; * @param \Google\Cloud\Dialogflow\V2\AutomatedAgentReply $var @@ -338,7 +350,8 @@ public function setMessage($var) /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7; @@ -351,7 +364,8 @@ public function getHumanAgentSuggestionResults() /** * The suggestions for most recent human agent. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 7; @@ -368,7 +382,8 @@ public function setHumanAgentSuggestionResults($var) /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8; @@ -381,7 +396,8 @@ public function getEndUserSuggestionResults() /** * The suggestions for end user. The order is the same as - * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] + * of * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 8; diff --git a/Dialogflow/src/V2/StreamingDetectIntentRequest.php b/Dialogflow/src/V2/StreamingDetectIntentRequest.php index 4b87c9ffe7cc..5b8d1276fb6d 100644 --- a/Dialogflow/src/V2/StreamingDetectIntentRequest.php +++ b/Dialogflow/src/V2/StreamingDetectIntentRequest.php @@ -10,23 +10,27 @@ /** * The top-level message sent by the client to the - * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent] method. + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent] + * method. * Multiple request messages should be sent in order: * 1. The first message must contain * [session][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.session], - * [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] plus optionally - * [query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. If the client - * wants to receive an audio response, it should also contain + * [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] + * plus optionally + * [query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. + * If the client wants to receive an audio response, it should also contain * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config]. * The message must not contain * [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio]. - * 2. If [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] was set to - * [query_input.audio_config][google.cloud.dialogflow.v2.InputAudioConfig], all subsequent - * messages must contain - * [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio] to continue with - * Speech recognition. - * If you decide to rather detect an intent from text input after you - * already started Speech recognition, please send a message with + * 2. If + * [query_input][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_input] + * was set to + * [query_input.audio_config][google.cloud.dialogflow.v2.InputAudioConfig], + * all subsequent messages must contain + * [input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio] + * to continue with Speech recognition. If you decide to rather detect an + * intent from text input after you already started Speech recognition, + * please send a message with * [query_input.text][google.cloud.dialogflow.v2.QueryInput.text]. * However, note that: * * Dialogflow will bill you for the audio duration so far. @@ -76,14 +80,15 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message */ private $query_input = null; /** - * Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * If `false` (default), recognition does not cease until - * the client closes the stream. If `true`, the recognizer will detect a - * single spoken utterance in input audio. Recognition ceases when it detects - * the audio's voice has stopped or paused. In this case, once a detected - * intent is received, the client should close the stream and start a new - * request with a new stream as needed. - * This setting is ignored when `query_input` is a piece of text or an event. + * Please use + * [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] + * instead. If `false` (default), recognition does not cease until the client + * closes the stream. If `true`, the recognizer will detect a single spoken + * utterance in input audio. Recognition ceases when it detects the audio's + * voice has stopped or paused. In this case, once a detected intent is + * received, the client should close the stream and start a new request with a + * new stream as needed. This setting is ignored when `query_input` is a piece + * of text or an event. * * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; * @deprecated @@ -98,11 +103,13 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message */ private $output_audio_config = null; /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; */ @@ -147,24 +154,27 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message * 2. a conversational query in the form of text, or * 3. an event that specifies which intent to trigger. * @type bool $single_utterance - * Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * If `false` (default), recognition does not cease until - * the client closes the stream. If `true`, the recognizer will detect a - * single spoken utterance in input audio. Recognition ceases when it detects - * the audio's voice has stopped or paused. In this case, once a detected - * intent is received, the client should close the stream and start a new - * request with a new stream as needed. - * This setting is ignored when `query_input` is a piece of text or an event. + * Please use + * [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] + * instead. If `false` (default), recognition does not cease until the client + * closes the stream. If `true`, the recognizer will detect a single spoken + * utterance in input audio. Recognition ceases when it detects the audio's + * voice has stopped or paused. In this case, once a detected intent is + * received, the client should close the stream and start a new request with a + * new stream as needed. This setting is ignored when `query_input` is a piece + * of text or an event. * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config * Instructs the speech synthesizer how to generate the output * audio. If this field is not set and agent-level speech synthesizer is not * configured, no output audio is generated. * @type \Google\Protobuf\FieldMask $output_audio_config_mask - * Mask for [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * @type string $input_audio * The input audio content to be recognized. Must be sent if * `query_input` was set to a streaming input audio config. The complete audio @@ -311,14 +321,15 @@ public function setQueryInput($var) } /** - * Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * If `false` (default), recognition does not cease until - * the client closes the stream. If `true`, the recognizer will detect a - * single spoken utterance in input audio. Recognition ceases when it detects - * the audio's voice has stopped or paused. In this case, once a detected - * intent is received, the client should close the stream and start a new - * request with a new stream as needed. - * This setting is ignored when `query_input` is a piece of text or an event. + * Please use + * [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] + * instead. If `false` (default), recognition does not cease until the client + * closes the stream. If `true`, the recognizer will detect a single spoken + * utterance in input audio. Recognition ceases when it detects the audio's + * voice has stopped or paused. In this case, once a detected intent is + * received, the client should close the stream and start a new request with a + * new stream as needed. This setting is ignored when `query_input` is a piece + * of text or an event. * * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; * @return bool @@ -331,14 +342,15 @@ public function getSingleUtterance() } /** - * Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] instead. - * If `false` (default), recognition does not cease until - * the client closes the stream. If `true`, the recognizer will detect a - * single spoken utterance in input audio. Recognition ceases when it detects - * the audio's voice has stopped or paused. In this case, once a detected - * intent is received, the client should close the stream and start a new - * request with a new stream as needed. - * This setting is ignored when `query_input` is a piece of text or an event. + * Please use + * [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2.InputAudioConfig.single_utterance] + * instead. If `false` (default), recognition does not cease until the client + * closes the stream. If `true`, the recognizer will detect a single spoken + * utterance in input audio. Recognition ceases when it detects the audio's + * voice has stopped or paused. In this case, once a detected intent is + * received, the client should close the stream and start a new request with a + * new stream as needed. This setting is ignored when `query_input` is a piece + * of text or an event. * * Generated from protobuf field bool single_utterance = 4 [deprecated = true]; * @param bool $var @@ -395,11 +407,13 @@ public function setOutputAudioConfig($var) } /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; * @return \Google\Protobuf\FieldMask|null @@ -420,11 +434,13 @@ public function clearOutputAudioConfigMask() } /** - * Mask for [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] indicating which settings in this - * request-level config should override speech synthesizer settings defined at - * agent-level. - * If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level - * config in its entirety. + * Mask for + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * indicating which settings in this request-level config should override + * speech synthesizer settings defined at agent-level. + * If unspecified or empty, + * [output_audio_config][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config] + * replaces the agent-level config in its entirety. * * Generated from protobuf field .google.protobuf.FieldMask output_audio_config_mask = 7; * @param \Google\Protobuf\FieldMask $var diff --git a/Dialogflow/src/V2/StreamingDetectIntentResponse.php b/Dialogflow/src/V2/StreamingDetectIntentResponse.php index 5d1ff0025b27..920c1aa30ac3 100644 --- a/Dialogflow/src/V2/StreamingDetectIntentResponse.php +++ b/Dialogflow/src/V2/StreamingDetectIntentResponse.php @@ -15,8 +15,9 @@ * 1. If the `StreamingDetectIntentRequest.input_audio` field was * set, the `recognition_result` field is populated for one * or more messages. - * See the [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] message for details - * about the result message sequence. + * See the + * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] + * message for details about the result message sequence. * 2. The next message contains `response_id`, `query_result` * and optionally `webhook_status` if a WebHook was called. * diff --git a/Dialogflow/src/V2/StreamingRecognitionResult.php b/Dialogflow/src/V2/StreamingRecognitionResult.php index dea7bff4f53a..ec08bd7ecd55 100644 --- a/Dialogflow/src/V2/StreamingRecognitionResult.php +++ b/Dialogflow/src/V2/StreamingRecognitionResult.php @@ -80,7 +80,8 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message private $confidence = 0.0; /** * Word-specific information for the words recognized by Speech in - * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. + * Populated if and only if `message_type` = `TRANSCRIPT` and * [InputAudioConfig.enable_word_info] is set. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; @@ -125,7 +126,8 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * not rely on it being accurate or even set. * @type array<\Google\Cloud\Dialogflow\V2\SpeechWordInfo>|\Google\Protobuf\Internal\RepeatedField $speech_word_info * Word-specific information for the words recognized by Speech in - * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. + * Populated if and only if `message_type` = `TRANSCRIPT` and * [InputAudioConfig.enable_word_info] is set. * @type \Google\Protobuf\Duration $speech_end_offset * Time offset of the end of this Speech recognition result relative to the @@ -263,7 +265,8 @@ public function setConfidence($var) /** * Word-specific information for the words recognized by Speech in - * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. + * Populated if and only if `message_type` = `TRANSCRIPT` and * [InputAudioConfig.enable_word_info] is set. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; @@ -276,7 +279,8 @@ public function getSpeechWordInfo() /** * Word-specific information for the words recognized by Speech in - * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + * [transcript][google.cloud.dialogflow.v2.StreamingRecognitionResult.transcript]. + * Populated if and only if `message_type` = `TRANSCRIPT` and * [InputAudioConfig.enable_word_info] is set. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SpeechWordInfo speech_word_info = 7; diff --git a/Dialogflow/src/V2/StreamingRecognitionResult/MessageType.php b/Dialogflow/src/V2/StreamingRecognitionResult/MessageType.php index af043080373b..ed0c8397e758 100644 --- a/Dialogflow/src/V2/StreamingRecognitionResult/MessageType.php +++ b/Dialogflow/src/V2/StreamingRecognitionResult/MessageType.php @@ -28,11 +28,12 @@ class MessageType /** * Event indicates that the server has detected the end of the user's speech * utterance and expects no additional inputs. - * Therefore, the server will not process additional audio (although it may subsequently return additional results). The - * client should stop sending additional audio data, half-close the gRPC - * connection, and wait for any additional results until the server closes - * the gRPC connection. This message is only sent if `single_utterance` was - * set to `true`, and is not used otherwise. + * Therefore, the server will not process additional audio (although it may + * subsequently return additional results). The client should stop sending + * additional audio data, half-close the gRPC connection, and wait for any + * additional results until the server closes the gRPC connection. This + * message is only sent if `single_utterance` was set to `true`, and is not + * used otherwise. * * Generated from protobuf enum END_OF_SINGLE_UTTERANCE = 2; */ diff --git a/Dialogflow/src/V2/SuggestArticlesRequest.php b/Dialogflow/src/V2/SuggestArticlesRequest.php index d3a50cfa3b99..39db27df41ee 100644 --- a/Dialogflow/src/V2/SuggestArticlesRequest.php +++ b/Dialogflow/src/V2/SuggestArticlesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. + * The request message for + * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestArticlesRequest */ @@ -34,8 +35,9 @@ class SuggestArticlesRequest extends \Google\Protobuf\Internal\Message private $latest_message = ''; /** * Optional. Max number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - * when compiling the suggestion. By default 20 and at most 50. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + * to use as context when compiling the suggestion. By default 20 and at + * most 50. * * Generated from protobuf field int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -64,8 +66,9 @@ class SuggestArticlesRequest extends \Google\Protobuf\Internal\Message * ID>/conversations//messages/`. * @type int $context_size * Optional. Max number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - * when compiling the suggestion. By default 20 and at most 50. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + * to use as context when compiling the suggestion. By default 20 and at + * most 50. * @type \Google\Cloud\Dialogflow\V2\AssistQueryParameters $assist_query_params * Parameters for a human assist query. * } @@ -139,8 +142,9 @@ public function setLatestMessage($var) /** * Optional. Max number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - * when compiling the suggestion. By default 20 and at most 50. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + * to use as context when compiling the suggestion. By default 20 and at + * most 50. * * Generated from protobuf field int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -152,8 +156,9 @@ public function getContextSize() /** * Optional. Max number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - * when compiling the suggestion. By default 20 and at most 50. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + * to use as context when compiling the suggestion. By default 20 and at + * most 50. * * Generated from protobuf field int32 context_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dialogflow/src/V2/SuggestArticlesResponse.php b/Dialogflow/src/V2/SuggestArticlesResponse.php index b5ead9bf8a20..ce95dc912f06 100644 --- a/Dialogflow/src/V2/SuggestArticlesResponse.php +++ b/Dialogflow/src/V2/SuggestArticlesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. + * The response message for + * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestArticlesResponse */ @@ -32,10 +33,11 @@ class SuggestArticlesResponse extends \Google\Protobuf\Internal\Message private $latest_message = ''; /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; */ @@ -56,10 +58,11 @@ class SuggestArticlesResponse extends \Google\Protobuf\Internal\Message * ID>/conversations//messages/`. * @type int $context_size * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * } */ public function __construct($data = NULL) { @@ -127,10 +130,11 @@ public function setLatestMessage($var) /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @return int @@ -142,10 +146,11 @@ public function getContextSize() /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @param int $var diff --git a/Dialogflow/src/V2/SuggestConversationSummaryRequest.php b/Dialogflow/src/V2/SuggestConversationSummaryRequest.php new file mode 100644 index 000000000000..287820721b1f --- /dev/null +++ b/Dialogflow/src/V2/SuggestConversationSummaryRequest.php @@ -0,0 +1,168 @@ +google.cloud.dialogflow.v2.SuggestConversationSummaryRequest + */ +class SuggestConversationSummaryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversation to fetch suggestion for. + * Format: `projects//locations//conversations/`. + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $conversation = ''; + /** + * The name of the latest conversation message used as context for + * compiling suggestion. If empty, the latest message of the conversation will + * be used. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 3 [(.google.api.resource_reference) = { + */ + private $latest_message = ''; + /** + * Max number of messages prior to and including + * [latest_message] to use as context when compiling the + * suggestion. By default 500 and at most 1000. + * + * Generated from protobuf field int32 context_size = 4; + */ + private $context_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $conversation + * Required. The conversation to fetch suggestion for. + * Format: `projects//locations//conversations/`. + * @type string $latest_message + * The name of the latest conversation message used as context for + * compiling suggestion. If empty, the latest message of the conversation will + * be used. + * Format: `projects//locations//conversations//messages/`. + * @type int $context_size + * Max number of messages prior to and including + * [latest_message] to use as context when compiling the + * suggestion. By default 500 and at most 1000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversation to fetch suggestion for. + * Format: `projects//locations//conversations/`. + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getConversation() + { + return $this->conversation; + } + + /** + * Required. The conversation to fetch suggestion for. + * Format: `projects//locations//conversations/`. + * + * Generated from protobuf field string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConversation($var) + { + GPBUtil::checkString($var, True); + $this->conversation = $var; + + return $this; + } + + /** + * The name of the latest conversation message used as context for + * compiling suggestion. If empty, the latest message of the conversation will + * be used. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getLatestMessage() + { + return $this->latest_message; + } + + /** + * The name of the latest conversation message used as context for + * compiling suggestion. If empty, the latest message of the conversation will + * be used. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLatestMessage($var) + { + GPBUtil::checkString($var, True); + $this->latest_message = $var; + + return $this; + } + + /** + * Max number of messages prior to and including + * [latest_message] to use as context when compiling the + * suggestion. By default 500 and at most 1000. + * + * Generated from protobuf field int32 context_size = 4; + * @return int + */ + public function getContextSize() + { + return $this->context_size; + } + + /** + * Max number of messages prior to and including + * [latest_message] to use as context when compiling the + * suggestion. By default 500 and at most 1000. + * + * Generated from protobuf field int32 context_size = 4; + * @param int $var + * @return $this + */ + public function setContextSize($var) + { + GPBUtil::checkInt32($var); + $this->context_size = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SuggestConversationSummaryResponse.php b/Dialogflow/src/V2/SuggestConversationSummaryResponse.php new file mode 100644 index 000000000000..6cdeda5e13a9 --- /dev/null +++ b/Dialogflow/src/V2/SuggestConversationSummaryResponse.php @@ -0,0 +1,170 @@ +google.cloud.dialogflow.v2.SuggestConversationSummaryResponse + */ +class SuggestConversationSummaryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated summary. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1; + */ + private $summary = null; + /** + * The name of the latest conversation message used as context for + * compiling suggestion. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 2 [(.google.api.resource_reference) = { + */ + private $latest_message = ''; + /** + * Number of messages prior to and including + * [last_conversation_message][] used to compile the suggestion. It may be + * smaller than the [SuggestSummaryRequest.context_size][] field in the + * request if there weren't that many messages in the conversation. + * + * Generated from protobuf field int32 context_size = 3; + */ + private $context_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse\Summary $summary + * Generated summary. + * @type string $latest_message + * The name of the latest conversation message used as context for + * compiling suggestion. + * Format: `projects//locations//conversations//messages/`. + * @type int $context_size + * Number of messages prior to and including + * [last_conversation_message][] used to compile the suggestion. It may be + * smaller than the [SuggestSummaryRequest.context_size][] field in the + * request if there weren't that many messages in the conversation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * Generated summary. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1; + * @return \Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse\Summary|null + */ + public function getSummary() + { + return $this->summary; + } + + public function hasSummary() + { + return isset($this->summary); + } + + public function clearSummary() + { + unset($this->summary); + } + + /** + * Generated summary. + * + * Generated from protobuf field .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1; + * @param \Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse\Summary $var + * @return $this + */ + public function setSummary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse\Summary::class); + $this->summary = $var; + + return $this; + } + + /** + * The name of the latest conversation message used as context for + * compiling suggestion. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getLatestMessage() + { + return $this->latest_message; + } + + /** + * The name of the latest conversation message used as context for + * compiling suggestion. + * Format: `projects//locations//conversations//messages/`. + * + * Generated from protobuf field string latest_message = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLatestMessage($var) + { + GPBUtil::checkString($var, True); + $this->latest_message = $var; + + return $this; + } + + /** + * Number of messages prior to and including + * [last_conversation_message][] used to compile the suggestion. It may be + * smaller than the [SuggestSummaryRequest.context_size][] field in the + * request if there weren't that many messages in the conversation. + * + * Generated from protobuf field int32 context_size = 3; + * @return int + */ + public function getContextSize() + { + return $this->context_size; + } + + /** + * Number of messages prior to and including + * [last_conversation_message][] used to compile the suggestion. It may be + * smaller than the [SuggestSummaryRequest.context_size][] field in the + * request if there weren't that many messages in the conversation. + * + * Generated from protobuf field int32 context_size = 3; + * @param int $var + * @return $this + */ + public function setContextSize($var) + { + GPBUtil::checkInt32($var); + $this->context_size = $var; + + return $this; + } + +} + diff --git a/Dialogflow/src/V2/SuggestConversationSummaryResponse/Summary.php b/Dialogflow/src/V2/SuggestConversationSummaryResponse/Summary.php new file mode 100644 index 000000000000..7d226c765c26 --- /dev/null +++ b/Dialogflow/src/V2/SuggestConversationSummaryResponse/Summary.php @@ -0,0 +1,148 @@ +google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + */ +class Summary extends \Google\Protobuf\Internal\Message +{ + /** + * The summary content that is concatenated into one string. + * + * Generated from protobuf field string text = 1; + */ + private $text = ''; + /** + * The summary content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 4; + */ + private $text_sections; + /** + * The name of the answer record. Format: + * "projects//answerRecords/" + * + * Generated from protobuf field string answer_record = 3 [(.google.api.resource_reference) = { + */ + private $answer_record = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * The summary content that is concatenated into one string. + * @type array|\Google\Protobuf\Internal\MapField $text_sections + * The summary content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * @type string $answer_record + * The name of the answer record. Format: + * "projects//answerRecords/" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce(); + parent::__construct($data); + } + + /** + * The summary content that is concatenated into one string. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * The summary content that is concatenated into one string. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The summary content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTextSections() + { + return $this->text_sections; + } + + /** + * The summary content that is divided into sections. The key is the + * section's name and the value is the section's content. There is no + * specific format for the key or value. + * + * Generated from protobuf field map text_sections = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTextSections($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->text_sections = $arr; + + return $this; + } + + /** + * The name of the answer record. Format: + * "projects//answerRecords/" + * + * Generated from protobuf field string answer_record = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getAnswerRecord() + { + return $this->answer_record; + } + + /** + * The name of the answer record. Format: + * "projects//answerRecords/" + * + * Generated from protobuf field string answer_record = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAnswerRecord($var) + { + GPBUtil::checkString($var, True); + $this->answer_record = $var; + + return $this; + } + +} + + diff --git a/Dialogflow/src/V2/SuggestFaqAnswersRequest.php b/Dialogflow/src/V2/SuggestFaqAnswersRequest.php index c67244b00548..51d23d0bc32e 100644 --- a/Dialogflow/src/V2/SuggestFaqAnswersRequest.php +++ b/Dialogflow/src/V2/SuggestFaqAnswersRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. + * The request message for + * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestFaqAnswersRequest */ diff --git a/Dialogflow/src/V2/SuggestFaqAnswersResponse.php b/Dialogflow/src/V2/SuggestFaqAnswersResponse.php index eb5b4413fe6b..a3202855e61e 100644 --- a/Dialogflow/src/V2/SuggestFaqAnswersResponse.php +++ b/Dialogflow/src/V2/SuggestFaqAnswersResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. + * The request message for + * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestFaqAnswersResponse */ @@ -32,10 +33,11 @@ class SuggestFaqAnswersResponse extends \Google\Protobuf\Internal\Message private $latest_message = ''; /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; */ @@ -56,10 +58,11 @@ class SuggestFaqAnswersResponse extends \Google\Protobuf\Internal\Message * ID>/conversations//messages/`. * @type int $context_size * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * } */ public function __construct($data = NULL) { @@ -127,10 +130,11 @@ public function setLatestMessage($var) /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @return int @@ -142,10 +146,11 @@ public function getContextSize() /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @param int $var diff --git a/Dialogflow/src/V2/SuggestSmartRepliesRequest.php b/Dialogflow/src/V2/SuggestSmartRepliesRequest.php index 95780fca094c..ce274f3e8d66 100644 --- a/Dialogflow/src/V2/SuggestSmartRepliesRequest.php +++ b/Dialogflow/src/V2/SuggestSmartRepliesRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies]. + * The request message for + * [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestSmartRepliesRequest */ diff --git a/Dialogflow/src/V2/SuggestSmartRepliesResponse.php b/Dialogflow/src/V2/SuggestSmartRepliesResponse.php index 3be81121136c..b4f0a63f6789 100644 --- a/Dialogflow/src/V2/SuggestSmartRepliesResponse.php +++ b/Dialogflow/src/V2/SuggestSmartRepliesResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The response message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies]. + * The response message for + * [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestSmartRepliesResponse */ @@ -34,10 +35,11 @@ class SuggestSmartRepliesResponse extends \Google\Protobuf\Internal\Message private $latest_message = ''; /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; */ @@ -60,10 +62,11 @@ class SuggestSmartRepliesResponse extends \Google\Protobuf\Internal\Message * ID>/conversations//messages/`. * @type int $context_size * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * } */ public function __construct($data = NULL) { @@ -135,10 +138,11 @@ public function setLatestMessage($var) /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @return int @@ -150,10 +154,11 @@ public function getContextSize() /** * Number of messages prior to and including - * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the - * suggestion. It may be smaller than the - * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there - * aren't that many messages in the conversation. + * [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] + * to compile the suggestion. It may be smaller than the + * [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] + * field in the request if there aren't that many messages in the + * conversation. * * Generated from protobuf field int32 context_size = 3; * @param int $var diff --git a/Dialogflow/src/V2/SuggestionResult.php b/Dialogflow/src/V2/SuggestionResult.php index 425cc0e280ed..1adc8b87646b 100644 --- a/Dialogflow/src/V2/SuggestionResult.php +++ b/Dialogflow/src/V2/SuggestionResult.php @@ -10,8 +10,12 @@ /** * One response of different type of suggestion response which is used in - * the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and - * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent]. + * the response of + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + * and + * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], + * as well as + * [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent]. * * Generated from protobuf message google.cloud.dialogflow.v2.SuggestionResult */ diff --git a/Dialogflow/src/V2/TextToSpeechSettings.php b/Dialogflow/src/V2/TextToSpeechSettings.php index 3f727ae99cc8..35dd6e12687b 100644 --- a/Dialogflow/src/V2/TextToSpeechSettings.php +++ b/Dialogflow/src/V2/TextToSpeechSettings.php @@ -16,8 +16,8 @@ class TextToSpeechSettings extends \Google\Protobuf\Internal\Message { /** - * Optional. Indicates whether text to speech is enabled. Even when this field is false, - * other settings in this proto are still retained. + * Optional. Indicates whether text to speech is enabled. Even when this field + * is false, other settings in this proto are still retained. * * Generated from protobuf field bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -29,18 +29,18 @@ class TextToSpeechSettings extends \Google\Protobuf\Internal\Message */ private $output_audio_encoding = 0; /** - * Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then - * the synthesizer will use the default sample rate based on the audio - * encoding. If this is different from the voice's natural sample rate, then - * the synthesizer will honor this request by converting to the desired sample - * rate (which might result in worse audio quality). + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). * * Generated from protobuf field int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $sample_rate_hertz = 0; /** - * Optional. Configuration of how speech should be synthesized, mapping from language - * (https://cloud.google.com/dialogflow/docs/reference/language) to + * Optional. Configuration of how speech should be synthesized, mapping from + * language (https://cloud.google.com/dialogflow/docs/reference/language) to * SynthesizeSpeechConfig. * * Generated from protobuf field map synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -54,19 +54,19 @@ class TextToSpeechSettings extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type bool $enable_text_to_speech - * Optional. Indicates whether text to speech is enabled. Even when this field is false, - * other settings in this proto are still retained. + * Optional. Indicates whether text to speech is enabled. Even when this field + * is false, other settings in this proto are still retained. * @type int $output_audio_encoding * Required. Audio encoding of the synthesized audio content. * @type int $sample_rate_hertz - * Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then - * the synthesizer will use the default sample rate based on the audio - * encoding. If this is different from the voice's natural sample rate, then - * the synthesizer will honor this request by converting to the desired sample - * rate (which might result in worse audio quality). + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). * @type array|\Google\Protobuf\Internal\MapField $synthesize_speech_configs - * Optional. Configuration of how speech should be synthesized, mapping from language - * (https://cloud.google.com/dialogflow/docs/reference/language) to + * Optional. Configuration of how speech should be synthesized, mapping from + * language (https://cloud.google.com/dialogflow/docs/reference/language) to * SynthesizeSpeechConfig. * } */ @@ -76,8 +76,8 @@ public function __construct($data = NULL) { } /** - * Optional. Indicates whether text to speech is enabled. Even when this field is false, - * other settings in this proto are still retained. + * Optional. Indicates whether text to speech is enabled. Even when this field + * is false, other settings in this proto are still retained. * * Generated from protobuf field bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return bool @@ -88,8 +88,8 @@ public function getEnableTextToSpeech() } /** - * Optional. Indicates whether text to speech is enabled. Even when this field is false, - * other settings in this proto are still retained. + * Optional. Indicates whether text to speech is enabled. Even when this field + * is false, other settings in this proto are still retained. * * Generated from protobuf field bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var @@ -130,11 +130,11 @@ public function setOutputAudioEncoding($var) } /** - * Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then - * the synthesizer will use the default sample rate based on the audio - * encoding. If this is different from the voice's natural sample rate, then - * the synthesizer will honor this request by converting to the desired sample - * rate (which might result in worse audio quality). + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). * * Generated from protobuf field int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -145,11 +145,11 @@ public function getSampleRateHertz() } /** - * Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then - * the synthesizer will use the default sample rate based on the audio - * encoding. If this is different from the voice's natural sample rate, then - * the synthesizer will honor this request by converting to the desired sample - * rate (which might result in worse audio quality). + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). * * Generated from protobuf field int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var @@ -164,8 +164,8 @@ public function setSampleRateHertz($var) } /** - * Optional. Configuration of how speech should be synthesized, mapping from language - * (https://cloud.google.com/dialogflow/docs/reference/language) to + * Optional. Configuration of how speech should be synthesized, mapping from + * language (https://cloud.google.com/dialogflow/docs/reference/language) to * SynthesizeSpeechConfig. * * Generated from protobuf field map synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -177,8 +177,8 @@ public function getSynthesizeSpeechConfigs() } /** - * Optional. Configuration of how speech should be synthesized, mapping from language - * (https://cloud.google.com/dialogflow/docs/reference/language) to + * Optional. Configuration of how speech should be synthesized, mapping from + * language (https://cloud.google.com/dialogflow/docs/reference/language) to * SynthesizeSpeechConfig. * * Generated from protobuf field map synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/Dialogflow/src/V2/TrainAgentRequest.php b/Dialogflow/src/V2/TrainAgentRequest.php index 670ec72cf52b..80228b54b2f3 100644 --- a/Dialogflow/src/V2/TrainAgentRequest.php +++ b/Dialogflow/src/V2/TrainAgentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent]. + * The request message for + * [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent]. * * Generated from protobuf message google.cloud.dialogflow.v2.TrainAgentRequest */ diff --git a/Dialogflow/src/V2/UndeployConversationModelOperationMetadata.php b/Dialogflow/src/V2/UndeployConversationModelOperationMetadata.php index 0014aa70910f..456ba756db34 100644 --- a/Dialogflow/src/V2/UndeployConversationModelOperationMetadata.php +++ b/Dialogflow/src/V2/UndeployConversationModelOperationMetadata.php @@ -9,7 +9,9 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Metadata for a [ConversationModels.UndeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel] operation. + * Metadata for a + * [ConversationModels.UndeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel] + * operation. * * Generated from protobuf message google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata */ diff --git a/Dialogflow/src/V2/UpdateAnswerRecordRequest.php b/Dialogflow/src/V2/UpdateAnswerRecordRequest.php index b1610dbe2c30..b55826cec0f8 100644 --- a/Dialogflow/src/V2/UpdateAnswerRecordRequest.php +++ b/Dialogflow/src/V2/UpdateAnswerRecordRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord]. + * Request message for + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateAnswerRecordRequest */ diff --git a/Dialogflow/src/V2/UpdateContextRequest.php b/Dialogflow/src/V2/UpdateContextRequest.php index 3627f9c8f090..d7a530d07dab 100644 --- a/Dialogflow/src/V2/UpdateContextRequest.php +++ b/Dialogflow/src/V2/UpdateContextRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext]. + * The request message for + * [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateContextRequest */ diff --git a/Dialogflow/src/V2/UpdateConversationProfileRequest.php b/Dialogflow/src/V2/UpdateConversationProfileRequest.php index 5d4dc87aafcc..5612cd760c00 100644 --- a/Dialogflow/src/V2/UpdateConversationProfileRequest.php +++ b/Dialogflow/src/V2/UpdateConversationProfileRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [ConversationProfiles.UpdateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile]. + * The request message for + * [ConversationProfiles.UpdateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateConversationProfileRequest */ diff --git a/Dialogflow/src/V2/UpdateDocumentRequest.php b/Dialogflow/src/V2/UpdateDocumentRequest.php index d01492a8f0d7..630c34cfee30 100644 --- a/Dialogflow/src/V2/UpdateDocumentRequest.php +++ b/Dialogflow/src/V2/UpdateDocumentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [Documents.UpdateDocument][google.cloud.dialogflow.v2.Documents.UpdateDocument]. + * Request message for + * [Documents.UpdateDocument][google.cloud.dialogflow.v2.Documents.UpdateDocument]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateDocumentRequest */ diff --git a/Dialogflow/src/V2/UpdateEntityTypeRequest.php b/Dialogflow/src/V2/UpdateEntityTypeRequest.php index 165f3bdb448f..19383b794877 100644 --- a/Dialogflow/src/V2/UpdateEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]. + * The request message for + * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateEntityTypeRequest */ diff --git a/Dialogflow/src/V2/UpdateEnvironmentRequest.php b/Dialogflow/src/V2/UpdateEnvironmentRequest.php index e67018b4ea3b..c90f0ac19bc2 100644 --- a/Dialogflow/src/V2/UpdateEnvironmentRequest.php +++ b/Dialogflow/src/V2/UpdateEnvironmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.v2.Environments.UpdateEnvironment]. + * The request message for + * [Environments.UpdateEnvironment][google.cloud.dialogflow.v2.Environments.UpdateEnvironment]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateEnvironmentRequest */ diff --git a/Dialogflow/src/V2/UpdateFulfillmentRequest.php b/Dialogflow/src/V2/UpdateFulfillmentRequest.php index 43c386fbe247..96949c6f6a4a 100644 --- a/Dialogflow/src/V2/UpdateFulfillmentRequest.php +++ b/Dialogflow/src/V2/UpdateFulfillmentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Fulfillments.UpdateFulfillment][google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillment]. + * The request message for + * [Fulfillments.UpdateFulfillment][google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillment]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateFulfillmentRequest */ diff --git a/Dialogflow/src/V2/UpdateIntentRequest.php b/Dialogflow/src/V2/UpdateIntentRequest.php index ed272043f8e6..ad76f3100c87 100644 --- a/Dialogflow/src/V2/UpdateIntentRequest.php +++ b/Dialogflow/src/V2/UpdateIntentRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent]. + * The request message for + * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateIntentRequest */ diff --git a/Dialogflow/src/V2/UpdateKnowledgeBaseRequest.php b/Dialogflow/src/V2/UpdateKnowledgeBaseRequest.php index 1f57201d933d..8bc377604028 100644 --- a/Dialogflow/src/V2/UpdateKnowledgeBaseRequest.php +++ b/Dialogflow/src/V2/UpdateKnowledgeBaseRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase]. + * Request message for + * [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest */ diff --git a/Dialogflow/src/V2/UpdateParticipantRequest.php b/Dialogflow/src/V2/UpdateParticipantRequest.php index 096d0bf3ea66..0f903e9a0662 100644 --- a/Dialogflow/src/V2/UpdateParticipantRequest.php +++ b/Dialogflow/src/V2/UpdateParticipantRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant]. + * The request message for + * [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateParticipantRequest */ diff --git a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php index 9ef45fc0edf8..b2e65adbf2d9 100644 --- a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php +++ b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType]. + * The request message for + * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest */ diff --git a/Dialogflow/src/V2/UpdateVersionRequest.php b/Dialogflow/src/V2/UpdateVersionRequest.php index dfd5390edc71..9b1ab12f6b77 100644 --- a/Dialogflow/src/V2/UpdateVersionRequest.php +++ b/Dialogflow/src/V2/UpdateVersionRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * The request message for [Versions.UpdateVersion][google.cloud.dialogflow.v2.Versions.UpdateVersion]. + * The request message for + * [Versions.UpdateVersion][google.cloud.dialogflow.v2.Versions.UpdateVersion]. * * Generated from protobuf message google.cloud.dialogflow.v2.UpdateVersionRequest */ diff --git a/Dialogflow/src/V2/Version.php b/Dialogflow/src/V2/Version.php index 932d5450ad51..0f587eda45ce 100644 --- a/Dialogflow/src/V2/Version.php +++ b/Dialogflow/src/V2/Version.php @@ -45,22 +45,22 @@ class Version extends \Google\Protobuf\Internal\Message */ private $description = ''; /** - * Output only. The sequential number of this version. This field is read-only which means - * it cannot be set by create and update methods. + * Output only. The sequential number of this version. This field is read-only + * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $version_number = 0; /** - * Output only. The creation time of this version. This field is read-only, i.e., it cannot - * be set by create and update methods. + * Output only. The creation time of this version. This field is read-only, + * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $create_time = null; /** - * Output only. The status of this version. This field is read-only and cannot be set by - * create and update methods. + * Output only. The status of this version. This field is read-only and cannot + * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -81,14 +81,14 @@ class Version extends \Google\Protobuf\Internal\Message * @type string $description * Optional. The developer-provided description of this version. * @type int $version_number - * Output only. The sequential number of this version. This field is read-only which means - * it cannot be set by create and update methods. + * Output only. The sequential number of this version. This field is read-only + * which means it cannot be set by create and update methods. * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time of this version. This field is read-only, i.e., it cannot - * be set by create and update methods. + * Output only. The creation time of this version. This field is read-only, + * i.e., it cannot be set by create and update methods. * @type int $status - * Output only. The status of this version. This field is read-only and cannot be set by - * create and update methods. + * Output only. The status of this version. This field is read-only and cannot + * be set by create and update methods. * } */ public function __construct($data = NULL) { @@ -157,8 +157,8 @@ public function setDescription($var) } /** - * Output only. The sequential number of this version. This field is read-only which means - * it cannot be set by create and update methods. + * Output only. The sequential number of this version. This field is read-only + * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int @@ -169,8 +169,8 @@ public function getVersionNumber() } /** - * Output only. The sequential number of this version. This field is read-only which means - * it cannot be set by create and update methods. + * Output only. The sequential number of this version. This field is read-only + * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var @@ -185,8 +185,8 @@ public function setVersionNumber($var) } /** - * Output only. The creation time of this version. This field is read-only, i.e., it cannot - * be set by create and update methods. + * Output only. The creation time of this version. This field is read-only, + * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null @@ -207,8 +207,8 @@ public function clearCreateTime() } /** - * Output only. The creation time of this version. This field is read-only, i.e., it cannot - * be set by create and update methods. + * Output only. The creation time of this version. This field is read-only, + * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var @@ -223,8 +223,8 @@ public function setCreateTime($var) } /** - * Output only. The status of this version. This field is read-only and cannot be set by - * create and update methods. + * Output only. The status of this version. This field is read-only and cannot + * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int @@ -235,8 +235,8 @@ public function getStatus() } /** - * Output only. The status of this version. This field is read-only and cannot be set by - * create and update methods. + * Output only. The status of this version. This field is read-only and cannot + * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var diff --git a/Dialogflow/src/V2/VoiceSelectionParams.php b/Dialogflow/src/V2/VoiceSelectionParams.php index 3d313ddc82c0..285b6ea90dee 100644 --- a/Dialogflow/src/V2/VoiceSelectionParams.php +++ b/Dialogflow/src/V2/VoiceSelectionParams.php @@ -26,9 +26,10 @@ class VoiceSelectionParams extends \Google\Protobuf\Internal\Message /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a - * voice of the appropriate gender is not available, the synthesizer should - * substitute a voice with a different gender rather than failing the request. + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that + * this is only a preference, not requirement. If a voice of the appropriate + * gender is not available, the synthesizer should substitute a voice with a + * different gender rather than failing the request. * * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; */ @@ -47,9 +48,10 @@ class VoiceSelectionParams extends \Google\Protobuf\Internal\Message * @type int $ssml_gender * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a - * voice of the appropriate gender is not available, the synthesizer should - * substitute a voice with a different gender rather than failing the request. + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that + * this is only a preference, not requirement. If a voice of the appropriate + * gender is not available, the synthesizer should substitute a voice with a + * different gender rather than failing the request. * } */ public function __construct($data = NULL) { @@ -90,9 +92,10 @@ public function setName($var) /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a - * voice of the appropriate gender is not available, the synthesizer should - * substitute a voice with a different gender rather than failing the request. + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that + * this is only a preference, not requirement. If a voice of the appropriate + * gender is not available, the synthesizer should substitute a voice with a + * different gender rather than failing the request. * * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; * @return int @@ -105,9 +108,10 @@ public function getSsmlGender() /** * Optional. The preferred gender of the voice. If not set, the service will * choose a voice based on the other parameters such as language_code and - * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a - * voice of the appropriate gender is not available, the synthesizer should - * substitute a voice with a different gender rather than failing the request. + * [name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that + * this is only a preference, not requirement. If a voice of the appropriate + * gender is not available, the synthesizer should substitute a voice with a + * different gender rather than failing the request. * * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; * @param int $var diff --git a/Dialogflow/src/V2/WebhookResponse.php b/Dialogflow/src/V2/WebhookResponse.php index 8d91e32b357f..42eb5b59a2aa 100644 --- a/Dialogflow/src/V2/WebhookResponse.php +++ b/Dialogflow/src/V2/WebhookResponse.php @@ -11,9 +11,10 @@ /** * The response message for a webhook call. * This response is validated by the Dialogflow server. If validation fails, - * an error will be returned in the [QueryResult.diagnostic_info][google.cloud.dialogflow.v2.QueryResult.diagnostic_info] field. - * Setting JSON fields to an empty value with the wrong type is a common error. - * To avoid this error: + * an error will be returned in the + * [QueryResult.diagnostic_info][google.cloud.dialogflow.v2.QueryResult.diagnostic_info] + * field. Setting JSON fields to an empty value with the wrong type is a common + * error. To avoid this error: * - Use `""` for empty strings * - Use `{}` or `null` for empty objects * - Use `[]` or `null` for empty arrays @@ -29,7 +30,8 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Optional. The text response message intended for the end-user. * It is recommended to use `fulfillment_messages.text.text[0]` instead. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller. + * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] + * sent to the integration or API caller. * * Generated from protobuf field string fulfillment_text = 1; */ @@ -37,7 +39,8 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message /** * Optional. The rich response messages intended for the end-user. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller. + * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; */ @@ -46,17 +49,18 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Optional. A custom field used to identify the webhook source. * Arbitrary strings are supported. * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller. + * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] + * sent to the integration or API caller. * * Generated from protobuf field string source = 3; */ private $source = ''; /** - * Optional. This field can be used to pass custom data from your webhook to the - * integration or API caller. Arbitrary JSON objects are supported. - * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. - * This field is also used by the + * Optional. This field can be used to pass custom data from your webhook to + * the integration or API caller. Arbitrary JSON objects are supported. When + * provided, Dialogflow uses this field to populate + * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] + * sent to the integration or API caller. This field is also used by the * [Google Assistant * integration](https://cloud.google.com/dialogflow/docs/integrations/aog) * for rich response messages. @@ -70,7 +74,8 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Optional. The collection of output contexts that will overwrite currently * active contexts for the session and reset their lifespans. * When provided, Dialogflow uses this field to populate - * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller. + * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; */ @@ -88,7 +93,9 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * entity types with. The entity synonyms apply to all languages and persist * for the session. Setting this data from a webhook overwrites * the session entity types that have been set using `detectIntent`, - * `streamingDetectIntent` or [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] management methods. + * `streamingDetectIntent` or + * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] + * management methods. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; */ @@ -104,22 +111,25 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Optional. The text response message intended for the end-user. * It is recommended to use `fulfillment_messages.text.text[0]` instead. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller. + * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] + * sent to the integration or API caller. * @type array<\Google\Cloud\Dialogflow\V2\Intent\Message>|\Google\Protobuf\Internal\RepeatedField $fulfillment_messages * Optional. The rich response messages intended for the end-user. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller. + * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] + * sent to the integration or API caller. * @type string $source * Optional. A custom field used to identify the webhook source. * Arbitrary strings are supported. * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller. + * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] + * sent to the integration or API caller. * @type \Google\Protobuf\Struct $payload - * Optional. This field can be used to pass custom data from your webhook to the - * integration or API caller. Arbitrary JSON objects are supported. - * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. - * This field is also used by the + * Optional. This field can be used to pass custom data from your webhook to + * the integration or API caller. Arbitrary JSON objects are supported. When + * provided, Dialogflow uses this field to populate + * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] + * sent to the integration or API caller. This field is also used by the * [Google Assistant * integration](https://cloud.google.com/dialogflow/docs/integrations/aog) * for rich response messages. @@ -129,7 +139,8 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * Optional. The collection of output contexts that will overwrite currently * active contexts for the session and reset their lifespans. * When provided, Dialogflow uses this field to populate - * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller. + * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] + * sent to the integration or API caller. * @type \Google\Cloud\Dialogflow\V2\EventInput $followup_event_input * Optional. Invokes the supplied events. * When this field is set, Dialogflow ignores the `fulfillment_text`, @@ -139,7 +150,9 @@ class WebhookResponse extends \Google\Protobuf\Internal\Message * entity types with. The entity synonyms apply to all languages and persist * for the session. Setting this data from a webhook overwrites * the session entity types that have been set using `detectIntent`, - * `streamingDetectIntent` or [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] management methods. + * `streamingDetectIntent` or + * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] + * management methods. * } */ public function __construct($data = NULL) { @@ -151,7 +164,8 @@ public function __construct($data = NULL) { * Optional. The text response message intended for the end-user. * It is recommended to use `fulfillment_messages.text.text[0]` instead. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller. + * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] + * sent to the integration or API caller. * * Generated from protobuf field string fulfillment_text = 1; * @return string @@ -165,7 +179,8 @@ public function getFulfillmentText() * Optional. The text response message intended for the end-user. * It is recommended to use `fulfillment_messages.text.text[0]` instead. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller. + * [QueryResult.fulfillment_text][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] + * sent to the integration or API caller. * * Generated from protobuf field string fulfillment_text = 1; * @param string $var @@ -182,7 +197,8 @@ public function setFulfillmentText($var) /** * Optional. The rich response messages intended for the end-user. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller. + * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; * @return \Google\Protobuf\Internal\RepeatedField @@ -195,7 +211,8 @@ public function getFulfillmentMessages() /** * Optional. The rich response messages intended for the end-user. * When provided, Dialogflow uses this field to populate - * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller. + * [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; * @param array<\Google\Cloud\Dialogflow\V2\Intent\Message>|\Google\Protobuf\Internal\RepeatedField $var @@ -213,7 +230,8 @@ public function setFulfillmentMessages($var) * Optional. A custom field used to identify the webhook source. * Arbitrary strings are supported. * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller. + * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] + * sent to the integration or API caller. * * Generated from protobuf field string source = 3; * @return string @@ -227,7 +245,8 @@ public function getSource() * Optional. A custom field used to identify the webhook source. * Arbitrary strings are supported. * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller. + * [QueryResult.webhook_source][google.cloud.dialogflow.v2.QueryResult.webhook_source] + * sent to the integration or API caller. * * Generated from protobuf field string source = 3; * @param string $var @@ -242,11 +261,11 @@ public function setSource($var) } /** - * Optional. This field can be used to pass custom data from your webhook to the - * integration or API caller. Arbitrary JSON objects are supported. - * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. - * This field is also used by the + * Optional. This field can be used to pass custom data from your webhook to + * the integration or API caller. Arbitrary JSON objects are supported. When + * provided, Dialogflow uses this field to populate + * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] + * sent to the integration or API caller. This field is also used by the * [Google Assistant * integration](https://cloud.google.com/dialogflow/docs/integrations/aog) * for rich response messages. @@ -272,11 +291,11 @@ public function clearPayload() } /** - * Optional. This field can be used to pass custom data from your webhook to the - * integration or API caller. Arbitrary JSON objects are supported. - * When provided, Dialogflow uses this field to populate - * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. - * This field is also used by the + * Optional. This field can be used to pass custom data from your webhook to + * the integration or API caller. Arbitrary JSON objects are supported. When + * provided, Dialogflow uses this field to populate + * [QueryResult.webhook_payload][google.cloud.dialogflow.v2.QueryResult.webhook_payload] + * sent to the integration or API caller. This field is also used by the * [Google Assistant * integration](https://cloud.google.com/dialogflow/docs/integrations/aog) * for rich response messages. @@ -299,7 +318,8 @@ public function setPayload($var) * Optional. The collection of output contexts that will overwrite currently * active contexts for the session and reset their lifespans. * When provided, Dialogflow uses this field to populate - * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller. + * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; * @return \Google\Protobuf\Internal\RepeatedField @@ -313,7 +333,8 @@ public function getOutputContexts() * Optional. The collection of output contexts that will overwrite currently * active contexts for the session and reset their lifespans. * When provided, Dialogflow uses this field to populate - * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller. + * [QueryResult.output_contexts][google.cloud.dialogflow.v2.QueryResult.output_contexts] + * sent to the integration or API caller. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; * @param array<\Google\Cloud\Dialogflow\V2\Context>|\Google\Protobuf\Internal\RepeatedField $var @@ -372,7 +393,9 @@ public function setFollowupEventInput($var) * entity types with. The entity synonyms apply to all languages and persist * for the session. Setting this data from a webhook overwrites * the session entity types that have been set using `detectIntent`, - * `streamingDetectIntent` or [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] management methods. + * `streamingDetectIntent` or + * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] + * management methods. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; * @return \Google\Protobuf\Internal\RepeatedField @@ -387,7 +410,9 @@ public function getSessionEntityTypes() * entity types with. The entity synonyms apply to all languages and persist * for the session. Setting this data from a webhook overwrites * the session entity types that have been set using `detectIntent`, - * `streamingDetectIntent` or [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] management methods. + * `streamingDetectIntent` or + * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] + * management methods. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; * @param array<\Google\Cloud\Dialogflow\V2\SessionEntityType>|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Dialogflow/src/V2/gapic_metadata.json b/Dialogflow/src/V2/gapic_metadata.json index d45db367d9e8..3856eb92dc9e 100644 --- a/Dialogflow/src/V2/gapic_metadata.json +++ b/Dialogflow/src/V2/gapic_metadata.json @@ -437,6 +437,11 @@ "listMessages" ] }, + "SuggestConversationSummary": { + "methods": [ + "suggestConversationSummary" + ] + }, "GetLocation": { "methods": [ "getLocation" diff --git a/Dialogflow/src/V2/resources/conversations_client_config.json b/Dialogflow/src/V2/resources/conversations_client_config.json index 9083b58155aa..47e5785bc38a 100644 --- a/Dialogflow/src/V2/resources/conversations_client_config.json +++ b/Dialogflow/src/V2/resources/conversations_client_config.json @@ -53,6 +53,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "SuggestConversationSummary": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "GetLocation": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", diff --git a/Dialogflow/src/V2/resources/conversations_rest_client_config.php b/Dialogflow/src/V2/resources/conversations_rest_client_config.php index 82ac0be7a0c6..4aab11384239 100644 --- a/Dialogflow/src/V2/resources/conversations_rest_client_config.php +++ b/Dialogflow/src/V2/resources/conversations_rest_client_config.php @@ -92,6 +92,25 @@ ], ], ], + 'SuggestConversationSummary' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{conversation=projects/*/conversations/*}/suggestions:suggestConversationSummary', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:suggestConversationSummary', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'conversation' => [ + 'getters' => [ + 'getConversation', + ], + ], + ], + ], ], 'google.cloud.location.Locations' => [ 'GetLocation' => [ diff --git a/Dialogflow/tests/Unit/V2/ConversationModelsClientTest.php b/Dialogflow/tests/Unit/V2/ConversationModelsClientTest.php index 2e2c44673916..808b106374e9 100644 --- a/Dialogflow/tests/Unit/V2/ConversationModelsClientTest.php +++ b/Dialogflow/tests/Unit/V2/ConversationModelsClientTest.php @@ -223,9 +223,11 @@ public function createConversationModelEvaluationTest() $transport->addResponse($incompleteOperation); $name = 'name3373707'; $displayName = 'displayName1615086568'; + $rawHumanEvalTemplateCsv = 'rawHumanEvalTemplateCsv-1393080869'; $expectedResponse = new ConversationModelEvaluation(); $expectedResponse->setName($name); $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRawHumanEvalTemplateCsv($rawHumanEvalTemplateCsv); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); @@ -634,9 +636,11 @@ public function getConversationModelEvaluationTest() // Mock response $name2 = 'name2-1052831874'; $displayName = 'displayName1615086568'; + $rawHumanEvalTemplateCsv = 'rawHumanEvalTemplateCsv-1393080869'; $expectedResponse = new ConversationModelEvaluation(); $expectedResponse->setName($name2); $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRawHumanEvalTemplateCsv($rawHumanEvalTemplateCsv); $transport->addResponse($expectedResponse); // Mock request $name = 'name3373707'; diff --git a/Dialogflow/tests/Unit/V2/ConversationsClientTest.php b/Dialogflow/tests/Unit/V2/ConversationsClientTest.php index ca810871dcac..349e379e9fc5 100644 --- a/Dialogflow/tests/Unit/V2/ConversationsClientTest.php +++ b/Dialogflow/tests/Unit/V2/ConversationsClientTest.php @@ -31,6 +31,7 @@ use Google\Cloud\Dialogflow\V2\ListConversationsResponse; use Google\Cloud\Dialogflow\V2\ListMessagesResponse; use Google\Cloud\Dialogflow\V2\Message; +use Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse; use Google\Cloud\Location\ListLocationsResponse; use Google\Cloud\Location\Location; use Google\Rpc\Code; @@ -394,6 +395,68 @@ public function listMessagesExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function suggestConversationSummaryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $latestMessage2 = 'latestMessage2-440913086'; + $contextSize2 = 397491196; + $expectedResponse = new SuggestConversationSummaryResponse(); + $expectedResponse->setLatestMessage($latestMessage2); + $expectedResponse->setContextSize($contextSize2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedConversation = $gapicClient->conversationName('[PROJECT]', '[CONVERSATION]'); + $response = $gapicClient->suggestConversationSummary($formattedConversation); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dialogflow.v2.Conversations/SuggestConversationSummary', $actualFuncCall); + $actualValue = $actualRequestObject->getConversation(); + $this->assertProtobufEquals($formattedConversation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function suggestConversationSummaryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedConversation = $gapicClient->conversationName('[PROJECT]', '[CONVERSATION]'); + try { + $gapicClient->suggestConversationSummary($formattedConversation); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getLocationTest() {