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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5de629026c1d954d9302b83c22de1f3de07e971cc385fb504be8eb43486e0f2
|
4
|
+
data.tar.gz: 8bf08ac366fa49d295c47740aeb7d175a0e56a0442795d1fd50b22d358a34518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c492059536eb52015761e0c6059aa90bbe5868983d8f164577408441468ff70db2b0e7af100b2965ad7a714a0c1138d997d83fdab724ca043fae32d686b270b6
|
7
|
+
data.tar.gz: 984d6ff7549e0f57d07cf0e165d8c63aa4704fda2fb22a450502db5541ac08babc08d29e83641ea558f7d5cab4da6495e62538edb827dc210bb0a3ae3f5226ae
|
@@ -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/agent.proto
|
3
4
|
|
@@ -13,90 +14,32 @@ require 'google/protobuf/empty_pb'
|
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
require 'google/protobuf/struct_pb'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
value :API_VERSION_UNSPECIFIED, 0
|
39
|
-
value :API_VERSION_V1, 1
|
40
|
-
value :API_VERSION_V2, 2
|
41
|
-
value :API_VERSION_V2_BETA_1, 3
|
42
|
-
end
|
43
|
-
add_enum "google.cloud.dialogflow.v2.Agent.Tier" do
|
44
|
-
value :TIER_UNSPECIFIED, 0
|
45
|
-
value :TIER_STANDARD, 1
|
46
|
-
value :TIER_ENTERPRISE, 2
|
47
|
-
value :TIER_ENTERPRISE_PLUS, 3
|
48
|
-
end
|
49
|
-
add_message "google.cloud.dialogflow.v2.GetAgentRequest" do
|
50
|
-
optional :parent, :string, 1
|
51
|
-
end
|
52
|
-
add_message "google.cloud.dialogflow.v2.SetAgentRequest" do
|
53
|
-
optional :agent, :message, 1, "google.cloud.dialogflow.v2.Agent"
|
54
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
55
|
-
end
|
56
|
-
add_message "google.cloud.dialogflow.v2.DeleteAgentRequest" do
|
57
|
-
optional :parent, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.dialogflow.v2.SearchAgentsRequest" do
|
60
|
-
optional :parent, :string, 1
|
61
|
-
optional :page_size, :int32, 2
|
62
|
-
optional :page_token, :string, 3
|
63
|
-
end
|
64
|
-
add_message "google.cloud.dialogflow.v2.SearchAgentsResponse" do
|
65
|
-
repeated :agents, :message, 1, "google.cloud.dialogflow.v2.Agent"
|
66
|
-
optional :next_page_token, :string, 2
|
67
|
-
end
|
68
|
-
add_message "google.cloud.dialogflow.v2.TrainAgentRequest" do
|
69
|
-
optional :parent, :string, 1
|
70
|
-
end
|
71
|
-
add_message "google.cloud.dialogflow.v2.ExportAgentRequest" do
|
72
|
-
optional :parent, :string, 1
|
73
|
-
optional :agent_uri, :string, 2
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dialogflow.v2.ExportAgentResponse" do
|
76
|
-
oneof :agent do
|
77
|
-
optional :agent_uri, :string, 1
|
78
|
-
optional :agent_content, :bytes, 2
|
79
|
-
end
|
80
|
-
end
|
81
|
-
add_message "google.cloud.dialogflow.v2.ImportAgentRequest" do
|
82
|
-
optional :parent, :string, 1
|
83
|
-
oneof :agent do
|
84
|
-
optional :agent_uri, :string, 2
|
85
|
-
optional :agent_content, :bytes, 3
|
86
|
-
end
|
87
|
-
end
|
88
|
-
add_message "google.cloud.dialogflow.v2.RestoreAgentRequest" do
|
89
|
-
optional :parent, :string, 1
|
90
|
-
oneof :agent do
|
91
|
-
optional :agent_uri, :string, 2
|
92
|
-
optional :agent_content, :bytes, 3
|
93
|
-
end
|
94
|
-
end
|
95
|
-
add_message "google.cloud.dialogflow.v2.GetValidationResultRequest" do
|
96
|
-
optional :parent, :string, 1
|
97
|
-
optional :language_code, :string, 3
|
17
|
+
|
18
|
+
descriptor_data = "\n&google/cloud/dialogflow/v2/agent.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\x32google/cloud/dialogflow/v2/validation_result.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa5\x07\n\x05\x41gent\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18supported_language_codes\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\navatar_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x46\n\nmatch_mode\x18\t \x01(\x0e\x32+.google.cloud.dialogflow.v2.Agent.MatchModeB\x05\x18\x01\xe0\x41\x01\x12%\n\x18\x63lassification_threshold\x18\n \x01(\x02\x42\x03\xe0\x41\x01\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32,.google.cloud.dialogflow.v2.Agent.ApiVersionB\x03\xe0\x41\x01\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32&.google.cloud.dialogflow.v2.Agent.TierB\x03\xe0\x41\x01\"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02\"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03\"b\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x1c\n\x14TIER_ENTERPRISE_PLUS\x10\x03\x1a\x02\x08\x01:m\xea\x41j\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent\x12-projects/{project}/locations/{location}/agent\"J\n\x0fGetAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"~\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32!.google.cloud.dialogflow.v2.AgentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"M\n\x12\x44\x65leteAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"z\n\x13SearchAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\"b\n\x14SearchAgentsResponse\x12\x31\n\x06\x61gents\x18\x01 \x03(\x0b\x32!.google.cloud.dialogflow.v2.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11TrainAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\"e\n\x12\x45xportAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\x84\x01\n\x12ImportAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\x85\x01\n\x13RestoreAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"q\n\x1aGetValidationResultRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x32\xaa\x11\n\x06\x41gents\x12\xb7\x01\n\x08GetAgent\x12+.google.cloud.dialogflow.v2.GetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent\"[\x82\xd3\xe4\x93\x02L\x12\x1d/v2/{parent=projects/*}/agentZ+\x12)/v2/{parent=projects/*/locations/*}/agent\xda\x41\x06parent\x12\xd0\x01\n\x08SetAgent\x12+.google.cloud.dialogflow.v2.SetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent\"t\x82\xd3\xe4\x93\x02\x66\"#/v2/{agent.parent=projects/*}/agent:\x05\x61gentZ8\"//v2/{agent.parent=projects/*/locations/*}/agent:\x05\x61gent\xda\x41\x05\x61gent\x12\xb2\x01\n\x0b\x44\x65leteAgent\x12..google.cloud.dialogflow.v2.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"[\x82\xd3\xe4\x93\x02L*\x1d/v2/{parent=projects/*}/agentZ+*)/v2/{parent=projects/*/locations/*}/agent\xda\x41\x06parent\x12\xdc\x01\n\x0cSearchAgents\x12/.google.cloud.dialogflow.v2.SearchAgentsRequest\x1a\x30.google.cloud.dialogflow.v2.SearchAgentsResponse\"i\x82\xd3\xe4\x93\x02Z\x12$/v2/{parent=projects/*}/agent:searchZ2\x12\x30/v2/{parent=projects/*/locations/*}/agent:search\xda\x41\x06parent\x12\xfc\x01\n\nTrainAgent\x12-.google.cloud.dialogflow.v2.TrainAgentRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02^\"#/v2/{parent=projects/*}/agent:train:\x01*Z4\"//v2/{parent=projects/*/locations/*}/agent:train:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x99\x02\n\x0b\x45xportAgent\x12..google.cloud.dialogflow.v2.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"\xba\x01\x82\xd3\xe4\x93\x02`\"$/v2/{parent=projects/*}/agent:export:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/agent:export:\x01*\xda\x41\x06parent\xca\x41H\n.google.cloud.dialogflow.v2.ExportAgentResponse\x12\x16google.protobuf.Struct\x12\xf7\x01\n\x0bImportAgent\x12..google.cloud.dialogflow.v2.ImportAgentRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02`\"$/v2/{parent=projects/*}/agent:import:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/agent:import:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xfb\x01\n\x0cRestoreAgent\x12/.google.cloud.dialogflow.v2.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x62\"%/v2/{parent=projects/*}/agent:restore:\x01*Z6\"1/v2/{parent=projects/*/locations/*}/agent:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf1\x01\n\x13GetValidationResult\x12\x36.google.cloud.dialogflow.v2.GetValidationResultRequest\x1a,.google.cloud.dialogflow.v2.ValidationResult\"t\x82\xd3\xe4\x93\x02n\x12./v2/{parent=projects/*}/agent/validationResultZ<\x12:/v2/{parent=projects/*/locations/*}/agent/validationResult\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x93\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\nAgentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.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}"
|
98
39
|
end
|
99
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."
|
100
43
|
end
|
101
44
|
|
102
45
|
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
|
@@ -1197,7 +1197,9 @@ module Google
|
|
1197
1197
|
class Configuration
|
1198
1198
|
extend ::Gapic::Config
|
1199
1199
|
|
1200
|
-
|
1200
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1201
|
+
|
1202
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1201
1203
|
config_attr :credentials, nil do |value|
|
1202
1204
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1203
1205
|
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
|
@@ -941,7 +941,9 @@ module Google
|
|
941
941
|
class Configuration
|
942
942
|
extend ::Gapic::Config
|
943
943
|
|
944
|
-
|
944
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
945
|
+
|
946
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
945
947
|
config_attr :credentials, nil do |value|
|
946
948
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
947
949
|
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_get_agent_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_set_agent_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_delete_agent_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_search_agents_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_train_agent_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_export_agent_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_import_agent_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_restore_agent_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_get_validation_result_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/answer_record.proto
|
3
4
|
|
@@ -11,78 +12,34 @@ require 'google/cloud/dialogflow/v2/participant_pb'
|
|
11
12
|
require 'google/protobuf/field_mask_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 :correctness_level, :enum, 1, "google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel"
|
39
|
-
optional :clicked, :bool, 3
|
40
|
-
optional :click_time, :message, 5, "google.protobuf.Timestamp"
|
41
|
-
optional :displayed, :bool, 4
|
42
|
-
optional :display_time, :message, 6, "google.protobuf.Timestamp"
|
43
|
-
oneof :detail_feedback do
|
44
|
-
optional :agent_assistant_detail_feedback, :message, 2, "google.cloud.dialogflow.v2.AgentAssistantFeedback"
|
45
|
-
end
|
46
|
-
end
|
47
|
-
add_enum "google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel" do
|
48
|
-
value :CORRECTNESS_LEVEL_UNSPECIFIED, 0
|
49
|
-
value :NOT_CORRECT, 1
|
50
|
-
value :PARTIALLY_CORRECT, 2
|
51
|
-
value :FULLY_CORRECT, 3
|
52
|
-
end
|
53
|
-
add_message "google.cloud.dialogflow.v2.AgentAssistantFeedback" do
|
54
|
-
optional :answer_relevance, :enum, 1, "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance"
|
55
|
-
optional :document_correctness, :enum, 2, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness"
|
56
|
-
optional :document_efficiency, :enum, 3, "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency"
|
57
|
-
optional :summarization_feedback, :message, 4, "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback"
|
58
|
-
end
|
59
|
-
add_message "google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback" do
|
60
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
61
|
-
optional :submit_time, :message, 2, "google.protobuf.Timestamp"
|
62
|
-
optional :summary_text, :string, 3
|
63
|
-
end
|
64
|
-
add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance" do
|
65
|
-
value :ANSWER_RELEVANCE_UNSPECIFIED, 0
|
66
|
-
value :IRRELEVANT, 1
|
67
|
-
value :RELEVANT, 2
|
68
|
-
end
|
69
|
-
add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness" do
|
70
|
-
value :DOCUMENT_CORRECTNESS_UNSPECIFIED, 0
|
71
|
-
value :INCORRECT, 1
|
72
|
-
value :CORRECT, 2
|
73
|
-
end
|
74
|
-
add_enum "google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency" do
|
75
|
-
value :DOCUMENT_EFFICIENCY_UNSPECIFIED, 0
|
76
|
-
value :INEFFICIENT, 1
|
77
|
-
value :EFFICIENT, 2
|
78
|
-
end
|
79
|
-
add_message "google.cloud.dialogflow.v2.AgentAssistantRecord" do
|
80
|
-
oneof :answer do
|
81
|
-
optional :article_suggestion_answer, :message, 5, "google.cloud.dialogflow.v2.ArticleAnswer"
|
82
|
-
optional :faq_answer, :message, 6, "google.cloud.dialogflow.v2.FaqAnswer"
|
83
|
-
end
|
15
|
+
|
16
|
+
descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.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/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xd6\x06\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x1a\x8e\x01\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\xb7\x01\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\xda\x41\x06parent\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\xda\x41\x19\x61nswer_record,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\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.FieldMask", "google/protobuf/field_mask.proto"],
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
|
+
["google.cloud.dialogflow.v2.ArticleAnswer", "google/cloud/dialogflow/v2/participant.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}"
|
84
39
|
end
|
85
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."
|
86
43
|
end
|
87
44
|
|
88
45
|
module Google
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -442,7 +442,9 @@ module Google
|
|
442
442
|
class Configuration
|
443
443
|
extend ::Gapic::Config
|
444
444
|
|
445
|
-
|
445
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
446
|
+
|
447
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
446
448
|
config_attr :credentials, nil do |value|
|
447
449
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
448
450
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -375,7 +375,9 @@ module Google
|
|
375
375
|
class Configuration
|
376
376
|
extend ::Gapic::Config
|
377
377
|
|
378
|
-
|
378
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
379
|
+
|
380
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
379
381
|
config_attr :credentials, nil do |value|
|
380
382
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
381
383
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_answer_records_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_update_answer_record_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
|