Skip to content

Commit

Permalink
refactor: drop dependency on lodash.merge and update links (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed May 21, 2019
1 parent d5d5969 commit cc841fa
Show file tree
Hide file tree
Showing 36 changed files with 313 additions and 286 deletions.
1 change: 0 additions & 1 deletion packages/google-cloud-dialogflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
},
"dependencies": {
"google-gax": "^1.0.0",
"lodash.merge": "^4.6.0",
"protobufjs": "^6.8.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/context.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
Expand Down Expand Up @@ -521,6 +520,9 @@ message Intent {
// }
// }</pre>
ACTIONS_ON_GOOGLE = 8;

// Google Hangouts.
GOOGLE_HANGOUTS = 11;
}

// Required. The rich response message.
Expand Down Expand Up @@ -653,8 +655,8 @@ message Intent {
// `Response` field in the Dialogflow console.
repeated Message messages = 14;

// Optional. The list of platforms for which the first response will be
// taken from among the messages assigned to the DEFAULT_PLATFORM.
// Optional. The list of platforms for which the first responses will be
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated Message.Platform default_response_platforms = 15;

// Read-only. The unique identifier of the root intent in the chain of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/audio_config.proto";
import "google/cloud/dialogflow/v2/context.proto";
import "google/cloud/dialogflow/v2/intent.proto";
Expand Down Expand Up @@ -174,12 +173,14 @@ message QueryInput {
// Represents the result of conversational query or event processing.
message QueryResult {
// The original conversational query text:
//
// - If natural language text was provided as input, `query_text` contains
// a copy of the input.
// - If natural language speech audio was provided as input, `query_text`
// contains the speech recognition result. If speech recognizer produced
// multiple alternatives, a particular one is picked.
// - If an event was provided as input, `query_text` is not set.
// - If automatic spell correction is enabled, `query_text` will contain the
// corrected user input.
string query_text = 1;

// The language that was triggered during intent detection.
Expand All @@ -206,6 +207,7 @@ message QueryResult {
google.protobuf.Struct parameters = 4;

// This field is set to:
//
// - `false` if the matched intent has required parameters and not all of
// the required parameter values have been collected.
// - `true` if all required parameter values have been collected, or if the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/entity_type.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand All @@ -35,6 +34,9 @@ option objc_class_prefix = "DF";
// Manages documents of a knowledge base.
service Documents {
// Returns the list of all documents of the knowledge base.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) {
option (google.api.http) = {
get: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents"
Expand All @@ -45,6 +47,9 @@ service Documents {
}

// Retrieves the specified document.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
rpc GetDocument(GetDocumentRequest) returns (Document) {
option (google.api.http) = {
get: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}"
Expand All @@ -56,6 +61,9 @@ service Documents {

// Creates a new document.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
//
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
rpc CreateDocument(CreateDocumentRequest) returns (google.longrunning.Operation) {
Expand All @@ -71,6 +79,9 @@ service Documents {

// Deletes the specified document.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
rpc DeleteDocument(DeleteDocumentRequest) returns (google.longrunning.Operation) {
Expand All @@ -83,6 +94,10 @@ service Documents {
}

// Updates the specified document.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
//
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
rpc UpdateDocument(UpdateDocumentRequest) returns (google.longrunning.Operation) {
Expand All @@ -100,6 +115,10 @@ service Documents {
// content. The previously loaded content of the document will be deleted.
// Note: Even when the content of the document has not changed, there still
// may be side effects because of internal implementation changes.
//
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
//
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
rpc ReloadDocument(ReloadDocumentRequest) returns (google.longrunning.Operation) {
Expand All @@ -116,8 +135,8 @@ service Documents {

// A document resource.
//
// Note: resource `projects.agent.knowledgeBases.documents` is deprecated,
// please use `projects.knowledgeBases.documents` instead.
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
// only use `projects.knowledgeBases.documents`.
message Document {
// The knowledge type of document content.
enum KnowledgeType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2beta1/context.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
Expand Down Expand Up @@ -569,6 +568,9 @@ message Intent {

// Telephony Gateway.
TELEPHONY = 10;

// Google Hangouts.
GOOGLE_HANGOUTS = 11;
}

// Required. The rich response message.
Expand Down Expand Up @@ -728,8 +730,8 @@ message Intent {
// `Response` field in the Dialogflow console.
repeated Message messages = 14;

// Optional. The list of platforms for which the first response will be
// taken from among the messages assigned to the DEFAULT_PLATFORM.
// Optional. The list of platforms for which the first responses will be
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated Message.Platform default_response_platforms = 15;

// Read-only. The unique identifier of the root intent in the chain of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";

Expand All @@ -35,6 +34,9 @@ option objc_class_prefix = "DF";
// Allows users to setup and maintain knowledge bases with their knowledge data.
service KnowledgeBases {
// Returns the list of all knowledge bases of the specified agent.
//
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
rpc ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) {
option (google.api.http) = {
get: "/v2beta1/{parent=projects/*}/knowledgeBases"
Expand All @@ -45,6 +47,9 @@ service KnowledgeBases {
}

// Retrieves the specified knowledge base.
//
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
rpc GetKnowledgeBase(GetKnowledgeBaseRequest) returns (KnowledgeBase) {
option (google.api.http) = {
get: "/v2beta1/{name=projects/*/knowledgeBases/*}"
Expand All @@ -55,6 +60,9 @@ service KnowledgeBases {
}

// Creates a knowledge base.
//
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
rpc CreateKnowledgeBase(CreateKnowledgeBaseRequest) returns (KnowledgeBase) {
option (google.api.http) = {
post: "/v2beta1/{parent=projects/*}/knowledgeBases"
Expand All @@ -67,6 +75,9 @@ service KnowledgeBases {
}

// Deletes the specified knowledge base.
//
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2beta1/{name=projects/*/knowledgeBases/*}"
Expand All @@ -77,6 +88,9 @@ service KnowledgeBases {
}

// Updates the specified knowledge base.
//
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
rpc UpdateKnowledgeBase(UpdateKnowledgeBaseRequest) returns (KnowledgeBase) {
option (google.api.http) = {
patch: "/v2beta1/{knowledge_base.name=projects/*/knowledgeBases/*}"
Expand All @@ -91,8 +105,8 @@ service KnowledgeBases {

// Represents knowledge base resource.
//
// Note: resource `projects.agent.knowledgeBases` is deprecated, please use
// `projects.knowledgeBases` instead.
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
// only use `projects.knowledgeBases`.
message KnowledgeBase {
// The knowledge base resource name.
// The name must be empty when creating a knowledge base.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2beta1/agent.proto";
import "google/cloud/dialogflow/v2beta1/audio_config.proto";
import "google/cloud/dialogflow/v2beta1/context.proto";
Expand Down Expand Up @@ -202,12 +201,14 @@ message QueryInput {
// Represents the result of conversational query or event processing.
message QueryResult {
// The original conversational query text:
//
// - If natural language text was provided as input, `query_text` contains
// a copy of the input.
// - If natural language speech audio was provided as input, `query_text`
// contains the speech recognition result. If speech recognizer produced
// multiple alternatives, a particular one is picked.
// - If an event was provided as input, `query_text` is not set.
// - If automatic spell correction is enabled, `query_text` will contain the
// corrected user input.
string query_text = 1;

// The language that was triggered during intent detection.
Expand All @@ -234,6 +235,7 @@ message QueryResult {
google.protobuf.Struct parameters = 4;

// This field is set to:
//
// - `false` if the matched intent has required parameters and not all of
// the required parameter values have been collected.
// - `true` if all required parameter values have been collected, or if the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2beta1/entity_type.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down
Loading

0 comments on commit cc841fa

Please sign in to comment.