Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,7 @@

// AUTO-GENERATED DOCUMENTATION AND SERVICE
/**
* Service Description: Agents are best described as Natural Language Understanding (NLU) modules
* that transform user requests into actionable data. You can include agents in your app, product,
* or service to determine user intent and respond to the user in a natural way.
*
* <p>After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents],
* [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity
* Types][google.cloud.dialogflow.v2.EntityTypes],
* [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage the flow of a
* conversation and match user input to predefined intents and actions.
*
* <p>You can create an agent using both Dialogflow Standard Edition and Dialogflow Enterprise
* Edition. For details, see [Dialogflow
* Editions](https://cloud.google.com/dialogflow/docs/editions).
*
* <p>You can save your agent for backup or versioning by exporting the agent by using the
* [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved agent
* by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
*
* <p>Dialogflow provides several [prebuilt
* agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt) for common conversation
* scenarios such as determining a date and time, converting currency, and so on.
*
* <p>For more information about agents, see the [Dialogflow
* documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
* Service Description: Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
*
* <p>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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,7 @@
*
* <p>============ AgentsClient ============
*
* <p>Service Description: Agents are best described as Natural Language Understanding (NLU) modules
* that transform user requests into actionable data. You can include agents in your app, product,
* or service to determine user intent and respond to the user in a natural way.
*
* <p>After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents],
* [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity
* Types][google.cloud.dialogflow.v2.EntityTypes],
* [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage the flow of a
* conversation and match user input to predefined intents and actions.
*
* <p>You can create an agent using both Dialogflow Standard Edition and Dialogflow Enterprise
* Edition. For details, see [Dialogflow
* Editions](https://cloud.google.com/dialogflow/docs/editions).
*
* <p>You can save your agent for backup or versioning by exporting the agent by using the
* [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved agent
* by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
*
* <p>Dialogflow provides several [prebuilt
* agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt) for common conversation
* scenarios such as determining a date and time, converting currency, and so on.
*
* <p>For more information about agents, see the [Dialogflow
* documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
* <p>Service Description: Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
*
* <p>Sample for AgentsClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,9 @@ public final UnaryCallable<GetAgentRequest, Agent> getAgentCallable() {

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns the list of agents.
*
* <p>Since there is at most one conversational agent per project, this method is useful primarily
* for listing all agents across projects the caller has access to. One can achieve that with a
* wildcard project collection id "-". Refer to [List
* Returns the list of agents. Since there is at most one conversational agent per project, this
* method is useful primarily for listing all agents across projects the caller has access to. One
* can achieve that with a wildcard project collection id "-". Refer to [List
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
*
* <p>Sample code:
Expand Down Expand Up @@ -475,11 +473,9 @@ public final SearchAgentsPagedResponse searchAgents(ProjectName parent) {

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns the list of agents.
*
* <p>Since there is at most one conversational agent per project, this method is useful primarily
* for listing all agents across projects the caller has access to. One can achieve that with a
* wildcard project collection id "-". Refer to [List
* Returns the list of agents. Since there is at most one conversational agent per project, this
* method is useful primarily for listing all agents across projects the caller has access to. One
* can achieve that with a wildcard project collection id "-". Refer to [List
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
*
* <p>Sample code:
Expand All @@ -504,11 +500,9 @@ public final SearchAgentsPagedResponse searchAgents(String parent) {

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns the list of agents.
*
* <p>Since there is at most one conversational agent per project, this method is useful primarily
* for listing all agents across projects the caller has access to. One can achieve that with a
* wildcard project collection id "-". Refer to [List
* Returns the list of agents. Since there is at most one conversational agent per project, this
* method is useful primarily for listing all agents across projects the caller has access to. One
* can achieve that with a wildcard project collection id "-". Refer to [List
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
*
* <p>Sample code:
Expand All @@ -534,11 +528,9 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request)

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns the list of agents.
*
* <p>Since there is at most one conversational agent per project, this method is useful primarily
* for listing all agents across projects the caller has access to. One can achieve that with a
* wildcard project collection id "-". Refer to [List
* Returns the list of agents. Since there is at most one conversational agent per project, this
* method is useful primarily for listing all agents across projects the caller has access to. One
* can achieve that with a wildcard project collection id "-". Refer to [List
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
*
* <p>Sample code:
Expand All @@ -564,11 +556,9 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request)

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns the list of agents.
*
* <p>Since there is at most one conversational agent per project, this method is useful primarily
* for listing all agents across projects the caller has access to. One can achieve that with a
* wildcard project collection id "-". Refer to [List
* Returns the list of agents. Since there is at most one conversational agent per project, this
* method is useful primarily for listing all agents across projects the caller has access to. One
* can achieve that with a wildcard project collection id "-". Refer to [List
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
*
* <p>Sample code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public final UnaryCallable<CreateDocumentRequest, Operation> createDocumentCalla
* }
* </code></pre>
*
* @param name The name of the document to delete. Format: `projects/&lt;Project
* @param name Required. The name of the document to delete. Format: `projects/&lt;Project
* ID&gt;/knowledgeBases/&lt;Knowledge Base ID&gt;/documents/&lt;Document ID&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -615,7 +615,7 @@ public final OperationFuture<Empty, KnowledgeOperationMetadata> deleteDocumentAs
* }
* </code></pre>
*
* @param name The name of the document to delete. Format: `projects/&lt;Project
* @param name Required. The name of the document to delete. Format: `projects/&lt;Project
* ID&gt;/knowledgeBases/&lt;Knowledge Base ID&gt;/documents/&lt;Document ID&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,9 +902,7 @@ public final UnaryCallable<DeleteEntityTypeRequest, Empty> deleteEntityTypeCalla

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates/Creates multiple entity types in the specified agent.
*
* <p>Operation &lt;response:
* Updates/Creates multiple entity types in the specified agent. Operation &lt;response:
* [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]&gt;
*
* <p>Sample code:
Expand All @@ -931,9 +929,7 @@ public final OperationFuture<BatchUpdateEntityTypesResponse, Struct> batchUpdate

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates/Creates multiple entity types in the specified agent.
*
* <p>Operation &lt;response:
* Updates/Creates multiple entity types in the specified agent. Operation &lt;response:
* [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]&gt;
*
* <p>Sample code:
Expand All @@ -959,9 +955,7 @@ public final OperationFuture<BatchUpdateEntityTypesResponse, Struct> batchUpdate

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates/Creates multiple entity types in the specified agent.
*
* <p>Operation &lt;response:
* Updates/Creates multiple entity types in the specified agent. Operation &lt;response:
* [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]&gt;
*
* <p>Sample code:
Expand All @@ -985,9 +979,8 @@ public final OperationFuture<BatchUpdateEntityTypesResponse, Struct> batchUpdate

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Deletes entity types in the specified agent.
*
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
* Deletes entity types in the specified agent. Operation &lt;response:
* [google.protobuf.Empty][google.protobuf.Empty]&gt;
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1019,9 +1012,8 @@ public final OperationFuture<Empty, Struct> batchDeleteEntityTypesAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Deletes entity types in the specified agent.
*
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
* Deletes entity types in the specified agent. Operation &lt;response:
* [google.protobuf.Empty][google.protobuf.Empty]&gt;
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1053,9 +1045,8 @@ public final OperationFuture<Empty, Struct> batchDeleteEntityTypesAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Deletes entity types in the specified agent.
*
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
* Deletes entity types in the specified agent. Operation &lt;response:
* [google.protobuf.Empty][google.protobuf.Empty]&gt;
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1083,9 +1074,8 @@ public final OperationFuture<Empty, Struct> batchDeleteEntityTypesAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Deletes entity types in the specified agent.
*
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
* Deletes entity types in the specified agent. Operation &lt;response:
* [google.protobuf.Empty][google.protobuf.Empty]&gt;
*
* <p>Sample code:
*
Expand All @@ -1111,9 +1101,8 @@ public final OperationFuture<Empty, Struct> batchDeleteEntityTypesAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Deletes entity types in the specified agent.
*
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
* Deletes entity types in the specified agent. Operation &lt;response:
* [google.protobuf.Empty][google.protobuf.Empty]&gt;
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ public void getDocumentTest() {
String displayName = "displayName1615086568";
String mimeType = "mimeType-196041627";
String contentUri = "contentUri-388807514";
boolean enableAutoReload = false;
Document expectedResponse =
Document.newBuilder()
.setName(name2.toString())
.setDisplayName(displayName)
.setMimeType(mimeType)
.setContentUri(contentUri)
.setEnableAutoReload(enableAutoReload)
.build();
mockDocuments.addResponse(expectedResponse);

Expand Down Expand Up @@ -211,12 +213,14 @@ public void createDocumentTest() throws Exception {
String displayName = "displayName1615086568";
String mimeType = "mimeType-196041627";
String contentUri = "contentUri-388807514";
boolean enableAutoReload = false;
Document expectedResponse =
Document.newBuilder()
.setName(name.toString())
.setDisplayName(displayName)
.setMimeType(mimeType)
.setContentUri(contentUri)
.setEnableAutoReload(enableAutoReload)
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -316,12 +320,14 @@ public void updateDocumentTest() throws Exception {
String displayName = "displayName1615086568";
String mimeType = "mimeType-196041627";
String contentUri = "contentUri-388807514";
boolean enableAutoReload = false;
Document expectedResponse =
Document.newBuilder()
.setName(name.toString())
.setDisplayName(displayName)
.setMimeType(mimeType)
.setContentUri(contentUri)
.setEnableAutoReload(enableAutoReload)
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Loading