google-cloud-dialogflow-v2 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +25 -82
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +27 -70
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +25 -96
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +26 -32
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +27 -55
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +26 -17
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +25 -153
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +27 -89
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +27 -159
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +28 -106
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +25 -85
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +10 -10
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +28 -62
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +24 -7
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +25 -6
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +27 -291
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +30 -190
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +33 -122
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +24 -16
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +26 -37
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +29 -21
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/v2/conversation_event.proto
|
3
4
|
|
@@ -6,25 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/cloud/dialogflow/v2/participant_pb'
|
7
8
|
require 'google/rpc/status_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_event.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a,google/cloud/dialogflow/v2/participant.proto\x1a\x17google/rpc/status.proto\"\x81\x03\n\x11\x43onversationEvent\x12\x14\n\x0c\x63onversation\x18\x01 \x01(\t\x12@\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.ConversationEvent.Type\x12(\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x13new_message_payload\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.v2.MessageH\x00\"\x9a\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONVERSATION_STARTED\x10\x01\x12\x19\n\x15\x43ONVERSATION_FINISHED\x10\x02\x12\x1d\n\x19HUMAN_INTERVENTION_NEEDED\x10\x03\x12\x0f\n\x0bNEW_MESSAGE\x10\x05\x12\x17\n\x13UNRECOVERABLE_ERROR\x10\x04\x42\t\n\x07payloadB\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationEventProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
27
|
+
["google.cloud.dialogflow.v2.Message", "google/cloud/dialogflow/v2/participant.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
26
33
|
end
|
27
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
28
37
|
end
|
29
38
|
|
30
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/v2/conversation_model.proto
|
3
4
|
|
@@ -11,161 +12,32 @@ require 'google/longrunning/operations_pb'
|
|
11
12
|
require 'google/protobuf/empty_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
|
14
|
-
|
15
|
-
add_file("google/cloud/dialogflow/v2/conversation_model.proto", :syntax => :proto3) do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
value :FAILED, 7
|
37
|
-
value :PENDING, 8
|
38
|
-
end
|
39
|
-
add_enum "google.cloud.dialogflow.v2.ConversationModel.ModelType" do
|
40
|
-
value :MODEL_TYPE_UNSPECIFIED, 0
|
41
|
-
value :SMART_REPLY_DUAL_ENCODER_MODEL, 2
|
42
|
-
value :SMART_REPLY_BERT_MODEL, 6
|
43
|
-
end
|
44
|
-
add_message "google.cloud.dialogflow.v2.ConversationModelEvaluation" do
|
45
|
-
optional :name, :string, 1
|
46
|
-
optional :display_name, :string, 2
|
47
|
-
optional :evaluation_config, :message, 6, "google.cloud.dialogflow.v2.EvaluationConfig"
|
48
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
49
|
-
optional :raw_human_eval_template_csv, :string, 8
|
50
|
-
oneof :metrics do
|
51
|
-
optional :smart_reply_metrics, :message, 5, "google.cloud.dialogflow.v2.SmartReplyMetrics"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
add_message "google.cloud.dialogflow.v2.EvaluationConfig" do
|
55
|
-
repeated :datasets, :message, 3, "google.cloud.dialogflow.v2.InputDataset"
|
56
|
-
oneof :model_specific_config do
|
57
|
-
optional :smart_reply_config, :message, 2, "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig"
|
58
|
-
optional :smart_compose_config, :message, 4, "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig"
|
59
|
-
end
|
60
|
-
end
|
61
|
-
add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig" do
|
62
|
-
optional :allowlist_document, :string, 1
|
63
|
-
optional :max_result_count, :int32, 2
|
64
|
-
end
|
65
|
-
add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig" do
|
66
|
-
optional :allowlist_document, :string, 1
|
67
|
-
optional :max_result_count, :int32, 2
|
68
|
-
end
|
69
|
-
add_message "google.cloud.dialogflow.v2.InputDataset" do
|
70
|
-
optional :dataset, :string, 1
|
71
|
-
end
|
72
|
-
add_message "google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata" do
|
73
|
-
optional :training_model_type, :enum, 3, "google.cloud.dialogflow.v2.ConversationModel.ModelType"
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dialogflow.v2.SmartReplyModelMetadata" do
|
76
|
-
optional :training_model_type, :enum, 6, "google.cloud.dialogflow.v2.ConversationModel.ModelType"
|
77
|
-
end
|
78
|
-
add_message "google.cloud.dialogflow.v2.SmartReplyMetrics" do
|
79
|
-
optional :allowlist_coverage, :float, 1
|
80
|
-
repeated :top_n_metrics, :message, 2, "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics"
|
81
|
-
optional :conversation_count, :int64, 3
|
82
|
-
end
|
83
|
-
add_message "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics" do
|
84
|
-
optional :n, :int32, 1
|
85
|
-
optional :recall, :float, 2
|
86
|
-
end
|
87
|
-
add_message "google.cloud.dialogflow.v2.CreateConversationModelRequest" do
|
88
|
-
optional :parent, :string, 1
|
89
|
-
optional :conversation_model, :message, 2, "google.cloud.dialogflow.v2.ConversationModel"
|
90
|
-
end
|
91
|
-
add_message "google.cloud.dialogflow.v2.GetConversationModelRequest" do
|
92
|
-
optional :name, :string, 1
|
93
|
-
end
|
94
|
-
add_message "google.cloud.dialogflow.v2.ListConversationModelsRequest" do
|
95
|
-
optional :parent, :string, 1
|
96
|
-
optional :page_size, :int32, 2
|
97
|
-
optional :page_token, :string, 3
|
98
|
-
end
|
99
|
-
add_message "google.cloud.dialogflow.v2.ListConversationModelsResponse" do
|
100
|
-
repeated :conversation_models, :message, 1, "google.cloud.dialogflow.v2.ConversationModel"
|
101
|
-
optional :next_page_token, :string, 2
|
102
|
-
end
|
103
|
-
add_message "google.cloud.dialogflow.v2.DeleteConversationModelRequest" do
|
104
|
-
optional :name, :string, 1
|
105
|
-
end
|
106
|
-
add_message "google.cloud.dialogflow.v2.DeployConversationModelRequest" do
|
107
|
-
optional :name, :string, 1
|
108
|
-
end
|
109
|
-
add_message "google.cloud.dialogflow.v2.UndeployConversationModelRequest" do
|
110
|
-
optional :name, :string, 1
|
111
|
-
end
|
112
|
-
add_message "google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest" do
|
113
|
-
optional :name, :string, 1
|
114
|
-
end
|
115
|
-
add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest" do
|
116
|
-
optional :parent, :string, 1
|
117
|
-
optional :page_size, :int32, 2
|
118
|
-
optional :page_token, :string, 3
|
119
|
-
end
|
120
|
-
add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse" do
|
121
|
-
repeated :conversation_model_evaluations, :message, 1, "google.cloud.dialogflow.v2.ConversationModelEvaluation"
|
122
|
-
optional :next_page_token, :string, 2
|
123
|
-
end
|
124
|
-
add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest" do
|
125
|
-
optional :parent, :string, 1
|
126
|
-
optional :conversation_model_evaluation, :message, 2, "google.cloud.dialogflow.v2.ConversationModelEvaluation"
|
127
|
-
end
|
128
|
-
add_message "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata" do
|
129
|
-
optional :conversation_model, :string, 1
|
130
|
-
optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State"
|
131
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
132
|
-
end
|
133
|
-
add_enum "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State" do
|
134
|
-
value :STATE_UNSPECIFIED, 0
|
135
|
-
value :PENDING, 1
|
136
|
-
value :SUCCEEDED, 2
|
137
|
-
value :FAILED, 3
|
138
|
-
value :CANCELLED, 4
|
139
|
-
value :CANCELLING, 5
|
140
|
-
value :TRAINING, 6
|
141
|
-
end
|
142
|
-
add_message "google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata" do
|
143
|
-
optional :conversation_model, :string, 1
|
144
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
145
|
-
end
|
146
|
-
add_message "google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata" do
|
147
|
-
optional :conversation_model, :string, 1
|
148
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
149
|
-
end
|
150
|
-
add_message "google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata" do
|
151
|
-
optional :conversation_model, :string, 1
|
152
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
153
|
-
end
|
154
|
-
add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata" do
|
155
|
-
optional :conversation_model_evaluation, :string, 1
|
156
|
-
optional :conversation_model, :string, 4
|
157
|
-
optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State"
|
158
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
159
|
-
end
|
160
|
-
add_enum "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State" do
|
161
|
-
value :STATE_UNSPECIFIED, 0
|
162
|
-
value :INITIALIZING, 1
|
163
|
-
value :RUNNING, 2
|
164
|
-
value :CANCELLED, 3
|
165
|
-
value :SUCCEEDED, 4
|
166
|
-
value :FAILED, 5
|
15
|
+
|
16
|
+
descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_model.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x07\n\x11\x43onversationModel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12G\n\x05state\x18\x07 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.ConversationModel.StateB\x03\xe0\x41\x03\x12\x15\n\rlanguage_code\x18\x13 \x01(\t\x12g\n!article_suggestion_model_metadata\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadataH\x00\x12Y\n\x1asmart_reply_model_metadata\x18\t \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SmartReplyModelMetadataH\x00\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45PLOYED\x10\x04\x12\x0f\n\x0bUNDEPLOYING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\x0b\n\x07PENDING\x10\x08\"g\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\"\n\x1eSMART_REPLY_DUAL_ENCODER_MODEL\x10\x02\x12\x1a\n\x16SMART_REPLY_BERT_MODEL\x10\x06:\xbe\x01\xea\x41\xba\x01\n+dialogflow.googleapis.com/ConversationModel\x12Oprojects/{project}/locations/{location}/conversationModels/{conversation_model}\x12:projects/{project}/conversationModels/{conversation_model}B\x10\n\x0emodel_metadata\"\xcf\x04\n\x1b\x43onversationModelEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x11\x65valuation_config\x18\x06 \x01(\x0b\x32,.google.cloud.dialogflow.v2.EvaluationConfigB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x13smart_reply_metrics\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SmartReplyMetricsB\x03\xe0\x41\x03H\x00\x12(\n\x1braw_human_eval_template_csv\x18\x08 \x01(\tB\x03\xe0\x41\x03:\xfa\x01\xea\x41\xf6\x01\n5dialogflow.googleapis.com/ConversationModelEvaluation\x12Sprojects/{project}/conversationModels/{conversation_model}/evaluations/{evaluation}\x12hprojects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/{evaluation}B\t\n\x07metrics\"\x9c\x04\n\x10\x45valuationConfig\x12?\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12[\n\x12smart_reply_config\x18\x02 \x01(\x0b\x32=.google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfigH\x00\x12_\n\x14smart_compose_config\x18\x04 \x01(\x0b\x32?.google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfigH\x00\x1av\n\x10SmartReplyConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1ax\n\x12SmartComposeConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x42\x17\n\x15model_specific_config\"V\n\x0cInputDataset\x12\x46\n\x07\x64\x61taset\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"{\n\x1e\x41rticleSuggestionModelMetadata\x12Y\n\x13training_model_type\x18\x03 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"t\n\x17SmartReplyModelMetadata\x12Y\n\x13training_model_type\x18\x06 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"\xc7\x01\n\x11SmartReplyMetrics\x12\x1a\n\x12\x61llowlist_coverage\x18\x01 \x01(\x02\x12P\n\rtop_n_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics\x12\x1a\n\x12\x63onversation_count\x18\x03 \x01(\x03\x1a(\n\x0bTopNMetrics\x12\t\n\x01n\x18\x01 \x01(\x05\x12\x0e\n\x06recall\x18\x02 \x01(\x02\"\x80\x01\n\x1e\x43reateConversationModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x12\x63onversation_model\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModelB\x03\xe0\x41\x02\"0\n\x1bGetConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"e\n\x1dListConversationModelsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x85\x01\n\x1eListConversationModelsResponse\x12J\n\x13\x63onversation_models\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"3\n\x1e\x44\x65leteConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x1e\x44\x65ployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"5\n UndeployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\":\n%GetConversationModelEvaluationRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"o\n\'ListConversationModelEvaluationsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa4\x01\n(ListConversationModelEvaluationsResponse\x12_\n\x1e\x63onversation_model_evaluations\x18\x01 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xde\x01\n(CreateConversationModelEvaluationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x64ialogflow.googleapis.com/ConversationModelEvaluation\x12\x63\n\x1d\x63onversation_model_evaluation\x18\x02 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluationB\x03\xe0\x41\x02\"\xc7\x02\n(CreateConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12Y\n\x05state\x18\x02 \x01(\x0e\x32J.google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\x0c\n\x08TRAINING\x10\x06\"w\n(DeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"y\n*UndeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n(DeleteConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x02\n2CreateConversationModelEvaluationOperationMetadata\x12%\n\x1d\x63onversation_model_evaluation\x18\x01 \x01(\t\x12\x1a\n\x12\x63onversation_model\x18\x04 \x01(\t\x12\x63\n\x05state\x18\x02 \x01(\x0e\x32T.google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x32\xfe\x16\n\x12\x43onversationModels\x12\xe8\x02\n\x17\x43reateConversationModel\x12:.google.cloud.dialogflow.v2.CreateConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\x82\xd3\xe4\x93\x02\x8e\x01\"*/v2/{parent=projects/*}/conversationModels:\x12\x63onversation_modelZL\"6/v2/{parent=projects/*/locations/*}/conversationModels:\x12\x63onversation_model\xda\x41\x19parent,conversation_model\xca\x41=\n\x11\x43onversationModel\x12(CreateConversationModelOperationMetadata\x12\xf3\x01\n\x14GetConversationModel\x12\x37.google.cloud.dialogflow.v2.GetConversationModelRequest\x1a-.google.cloud.dialogflow.v2.ConversationModel\"s\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/conversationModels/*}Z8\x12\x36/v2/{name=projects/*/locations/*/conversationModels/*}\xda\x41\x04name\x12\x86\x02\n\x16ListConversationModels\x12\x39.google.cloud.dialogflow.v2.ListConversationModelsRequest\x1a:.google.cloud.dialogflow.v2.ListConversationModelsResponse\"u\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*}/conversationModelsZ8\x12\x36/v2/{parent=projects/*/locations/*}/conversationModels\xda\x41\x06parent\x12\xae\x02\n\x17\x44\x65leteConversationModel\x12:.google.cloud.dialogflow.v2.DeleteConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/conversationModels/*}Z8*6/v2/{name=projects/*/locations/*/conversationModels/*}\xda\x41\x04name\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeleteConversationModelOperationMetadata\x12\xbb\x02\n\x17\x44\x65ployConversationModel\x12:.google.cloud.dialogflow.v2.DeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xc4\x01\x82\xd3\xe4\x93\x02z\"1/v2/{name=projects/*/conversationModels/*}:deploy:\x01*ZB\"=/v2/{name=projects/*/locations/*/conversationModels/*}:deploy:\x01*\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeployConversationModelOperationMetadata\x12\xc5\x02\n\x19UndeployConversationModel\x12<.google.cloud.dialogflow.v2.UndeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\x82\xd3\xe4\x93\x02~\"3/v2/{name=projects/*/conversationModels/*}:undeploy:\x01*ZD\"?/v2/{name=projects/*/locations/*/conversationModels/*}:undeploy:\x01*\xca\x41\x43\n\x15google.protobuf.Empty\x12*UndeployConversationModelOperationMetadata\x12\xaf\x02\n\x1eGetConversationModelEvaluation\x12\x41.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest\x1a\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\"\x90\x01\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{name=projects/*/conversationModels/*/evaluations/*}ZF\x12\x44/v2/{name=projects/*/locations/*/conversationModels/*/evaluations/*}\xda\x41\x04name\x12\xc2\x02\n ListConversationModelEvaluations\x12\x43.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest\x1a\x44.google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse\"\x92\x01\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{parent=projects/*/conversationModels/*}/evaluationsZF\x12\x44/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations\xda\x41\x06parent\x12\xd5\x02\n!CreateConversationModelEvaluation\x12\x44.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\x82\xd3\xe4\x93\x02I\"D/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations:\x01*\xda\x41$parent,conversation_model_evaluation\xca\x41Q\n\x1b\x43onversationModelEvaluation\x12\x32\x43reateConversationModelEvaluationOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationModelProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
167
37
|
end
|
168
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
169
41
|
end
|
170
42
|
|
171
43
|
module Google
|
@@ -129,7 +129,7 @@ module Google
|
|
129
129
|
credentials = @config.credentials
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1140,7 +1140,9 @@ module Google
|
|
1140
1140
|
class Configuration
|
1141
1141
|
extend ::Gapic::Config
|
1142
1142
|
|
1143
|
-
|
1143
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1144
|
+
|
1145
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1144
1146
|
config_attr :credentials, nil do |value|
|
1145
1147
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1146
1148
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -873,7 +873,9 @@ module Google
|
|
873
873
|
class Configuration
|
874
874
|
extend ::Gapic::Config
|
875
875
|
|
876
|
-
|
876
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
877
|
+
|
878
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
877
879
|
config_attr :credentials, nil do |value|
|
878
880
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
879
881
|
allowed.any? { |klass| klass === value }
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_conversation_model_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_conversation_model_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_conversation_models_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversation_model_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_deploy_conversation_model_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_undeploy_conversation_model_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_conversation_model_evaluation_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_conversation_model_evaluations_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_conversation_model_evaluation_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/v2/conversation.proto
|
3
4
|
|
@@ -11,97 +12,34 @@ require 'google/cloud/dialogflow/v2/conversation_profile_pb'
|
|
11
12
|
require 'google/cloud/dialogflow/v2/participant_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
optional :conversation_id, :string, 3
|
39
|
-
end
|
40
|
-
add_message "google.cloud.dialogflow.v2.ListConversationsRequest" do
|
41
|
-
optional :parent, :string, 1
|
42
|
-
optional :page_size, :int32, 2
|
43
|
-
optional :page_token, :string, 3
|
44
|
-
optional :filter, :string, 4
|
45
|
-
end
|
46
|
-
add_message "google.cloud.dialogflow.v2.ListConversationsResponse" do
|
47
|
-
repeated :conversations, :message, 1, "google.cloud.dialogflow.v2.Conversation"
|
48
|
-
optional :next_page_token, :string, 2
|
49
|
-
end
|
50
|
-
add_message "google.cloud.dialogflow.v2.GetConversationRequest" do
|
51
|
-
optional :name, :string, 1
|
52
|
-
end
|
53
|
-
add_message "google.cloud.dialogflow.v2.CompleteConversationRequest" do
|
54
|
-
optional :name, :string, 1
|
55
|
-
end
|
56
|
-
add_message "google.cloud.dialogflow.v2.ListMessagesRequest" do
|
57
|
-
optional :parent, :string, 1
|
58
|
-
optional :filter, :string, 4
|
59
|
-
optional :page_size, :int32, 2
|
60
|
-
optional :page_token, :string, 3
|
61
|
-
end
|
62
|
-
add_message "google.cloud.dialogflow.v2.ListMessagesResponse" do
|
63
|
-
repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message"
|
64
|
-
optional :next_page_token, :string, 2
|
65
|
-
end
|
66
|
-
add_message "google.cloud.dialogflow.v2.ConversationPhoneNumber" do
|
67
|
-
optional :phone_number, :string, 3
|
68
|
-
end
|
69
|
-
add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryRequest" do
|
70
|
-
optional :conversation, :string, 1
|
71
|
-
optional :latest_message, :string, 3
|
72
|
-
optional :context_size, :int32, 4
|
73
|
-
optional :assist_query_params, :message, 5, "google.cloud.dialogflow.v2.AssistQueryParameters"
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse" do
|
76
|
-
optional :summary, :message, 1, "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary"
|
77
|
-
optional :latest_message, :string, 2
|
78
|
-
optional :context_size, :int32, 3
|
79
|
-
end
|
80
|
-
add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary" do
|
81
|
-
optional :text, :string, 1
|
82
|
-
map :text_sections, :string, :string, 4
|
83
|
-
optional :answer_record, :string, 3
|
84
|
-
end
|
85
|
-
add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest" do
|
86
|
-
optional :stateless_conversation, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation"
|
87
|
-
optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile"
|
88
|
-
optional :latest_message, :string, 3
|
89
|
-
optional :max_context_size, :int32, 4
|
90
|
-
end
|
91
|
-
add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation" do
|
92
|
-
repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message"
|
93
|
-
optional :parent, :string, 2
|
94
|
-
end
|
95
|
-
add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse" do
|
96
|
-
optional :summary, :message, 1, "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary"
|
97
|
-
optional :latest_message, :string, 2
|
98
|
-
optional :context_size, :int32, 3
|
99
|
-
end
|
100
|
-
add_message "google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary" do
|
101
|
-
optional :text, :string, 1
|
102
|
-
map :text_sections, :string, :string, 2
|
15
|
+
|
16
|
+
descriptor_data = "\n-google/cloud/dialogflow/v2/conversation.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/v2/conversation_profile.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x06\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0flifecycle_state\x18\x02 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.Conversation.LifecycleStateB\x03\xe0\x41\x03\x12S\n\x14\x63onversation_profile\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationProfile\x12N\n\x0cphone_number\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ConversationPhoneNumberB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x12\x63onversation_stage\x18\x07 \x01(\x0e\x32:.google.cloud.dialogflow.v2.Conversation.ConversationStage\"Q\n\x0eLifecycleState\x12\x1f\n\x1bLIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02\"h\n\x11\x43onversationStage\x12\"\n\x1e\x43ONVERSATION_STAGE_UNSPECIFIED\x10\x00\x12\x17\n\x13VIRTUAL_AGENT_STAGE\x10\x01\x12\x16\n\x12HUMAN_ASSIST_STAGE\x10\x02:\xa3\x01\xea\x41\x9f\x01\n&dialogflow.googleapis.com/Conversation\x12/projects/{project}/conversations/{conversation}\x12\x44projects/{project}/locations/{location}/conversations/{conversation}\"\xbe\x01\n\x19\x43reateConversationRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x43\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32(.google.cloud.dialogflow.v2.ConversationB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x18ListConversationsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"u\n\x19ListConversationsResponse\x12?\n\rconversations\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x16GetConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"[\n\x1b\x43ompleteConversationRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\"\x96\x01\n\x13ListMessagesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Message\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x14ListMessagesResponse\x12\x35\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"4\n\x17\x43onversationPhoneNumber\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x8f\x02\n!SuggestConversationSummaryRequest\x12\x44\n\x0c\x63onversation\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dialogflow.googleapis.com/Conversation\x12>\n\x0elatest_message\x18\x03 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x04 \x01(\x05\x12N\n\x13\x61ssist_query_params\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.AssistQueryParameters\"\xd7\x03\n\"SuggestConversationSummaryResponse\x12W\n\x07summary\x18\x01 \x01(\x0b\x32\x46.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\x81\x02\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12o\n\rtext_sections\x18\x04 \x03(\x0b\x32X.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\x12\x42\n\ranswer_record\x18\x03 \x01(\tB+\xfa\x41(\n&dialogflow.googleapis.com/AnswerRecord\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd4\x03\n\x1fGenerateStatelessSummaryRequest\x12t\n\x16stateless_conversation\x18\x01 \x01(\x0b\x32O.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\x03\xe0\x41\x02\x12R\n\x14\x63onversation_profile\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.v2.ConversationProfileB\x03\xe0\x41\x02\x12>\n\x0elatest_message\x18\x03 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x18\n\x10max_context_size\x18\x04 \x01(\x05\x1a\x8c\x01\n\x13MinimalConversation\x12:\n\x08messages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.MessageB\x03\xe0\x41\x02\x12\x39\n\x06parent\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"\x8d\x03\n GenerateStatelessSummaryResponse\x12U\n\x07summary\x18\x01 \x01(\x0b\x32\x44.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary\x12>\n\x0elatest_message\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Message\x12\x14\n\x0c\x63ontext_size\x18\x03 \x01(\x05\x1a\xbb\x01\n\x07Summary\x12\x0c\n\x04text\x18\x01 \x01(\t\x12m\n\rtext_sections\x18\x02 \x03(\x0b\x32V.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xb4\x10\n\rConversations\x12\x8c\x02\n\x12\x43reateConversation\x12\x35.google.cloud.dialogflow.v2.CreateConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x94\x01\x82\xd3\xe4\x93\x02x\"%/v2/{parent=projects/*}/conversations:\x0c\x63onversationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\xda\x41\x13parent,conversation\x12\xed\x01\n\x11ListConversations\x12\x34.google.cloud.dialogflow.v2.ListConversationsRequest\x1a\x35.google.cloud.dialogflow.v2.ListConversationsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/conversationsZ3\x12\x31/v2/{parent=projects/*/locations/*}/conversations\xda\x41\x06parent\x12\xda\x01\n\x0fGetConversation\x12\x32.google.cloud.dialogflow.v2.GetConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"i\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/conversations/*}Z3\x12\x31/v2/{name=projects/*/locations/*/conversations/*}\xda\x41\x04name\x12\xfd\x01\n\x14\x43ompleteConversation\x12\x37.google.cloud.dialogflow.v2.CompleteConversationRequest\x1a(.google.cloud.dialogflow.v2.Conversation\"\x81\x01\x82\xd3\xe4\x93\x02t\"./v2/{name=projects/*/conversations/*}:complete:\x01*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\x01*\xda\x41\x04name\x12\xf5\x01\n\x0cListMessages\x12/.google.cloud.dialogflow.v2.ListMessagesRequest\x1a\x30.google.cloud.dialogflow.v2.ListMessagesResponse\"\x81\x01\x82\xd3\xe4\x93\x02r\x12\x30/v2/{parent=projects/*/conversations/*}/messagesZ>\x12</v2/{parent=projects/*/locations/*/conversations/*}/messages\xda\x41\x06parent\x12\xf4\x02\n\x1aSuggestConversationSummary\x12=.google.cloud.dialogflow.v2.SuggestConversationSummaryRequest\x1a>.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse\"\xd6\x01\x82\xd3\xe4\x93\x02\xc0\x01\"T/v2/{conversation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\x01*Ze\"`/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:suggestConversationSummary:\x01*\xda\x41\x0c\x63onversation\x12\xdd\x02\n\x18GenerateStatelessSummary\x12;.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest\x1a<.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse\"\xc5\x01\x82\xd3\xe4\x93\x02\xbe\x01\"S/v2/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\x01*Zd\"_/v2/{stateless_conversation.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9a\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x11\x43onversationProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
["google.cloud.dialogflow.v2.Message", "google/cloud/dialogflow/v2/participant.proto"],
|
33
|
+
["google.cloud.dialogflow.v2.ConversationProfile", "google/cloud/dialogflow/v2/conversation_profile.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
103
39
|
end
|
104
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
105
43
|
end
|
106
44
|
|
107
45
|
module Google
|