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/document.proto
|
3
4
|
|
@@ -14,114 +15,35 @@ require 'google/protobuf/field_mask_pb'
|
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
15
16
|
require 'google/rpc/status_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
value :AGENT_FACING_SMART_REPLY, 4
|
43
|
-
end
|
44
|
-
add_enum "google.cloud.dialogflow.v2.Document.State" do
|
45
|
-
value :STATE_UNSPECIFIED, 0
|
46
|
-
value :CREATING, 1
|
47
|
-
value :ACTIVE, 2
|
48
|
-
value :UPDATING, 3
|
49
|
-
value :RELOADING, 4
|
50
|
-
value :DELETING, 5
|
51
|
-
end
|
52
|
-
add_message "google.cloud.dialogflow.v2.GetDocumentRequest" do
|
53
|
-
optional :name, :string, 1
|
54
|
-
end
|
55
|
-
add_message "google.cloud.dialogflow.v2.ListDocumentsRequest" do
|
56
|
-
optional :parent, :string, 1
|
57
|
-
optional :page_size, :int32, 2
|
58
|
-
optional :page_token, :string, 3
|
59
|
-
optional :filter, :string, 4
|
60
|
-
end
|
61
|
-
add_message "google.cloud.dialogflow.v2.ListDocumentsResponse" do
|
62
|
-
repeated :documents, :message, 1, "google.cloud.dialogflow.v2.Document"
|
63
|
-
optional :next_page_token, :string, 2
|
64
|
-
end
|
65
|
-
add_message "google.cloud.dialogflow.v2.CreateDocumentRequest" do
|
66
|
-
optional :parent, :string, 1
|
67
|
-
optional :document, :message, 2, "google.cloud.dialogflow.v2.Document"
|
68
|
-
end
|
69
|
-
add_message "google.cloud.dialogflow.v2.ImportDocumentsRequest" do
|
70
|
-
optional :parent, :string, 1
|
71
|
-
optional :document_template, :message, 3, "google.cloud.dialogflow.v2.ImportDocumentTemplate"
|
72
|
-
optional :import_gcs_custom_metadata, :bool, 4
|
73
|
-
oneof :source do
|
74
|
-
optional :gcs_source, :message, 2, "google.cloud.dialogflow.v2.GcsSources"
|
75
|
-
end
|
76
|
-
end
|
77
|
-
add_message "google.cloud.dialogflow.v2.ImportDocumentTemplate" do
|
78
|
-
optional :mime_type, :string, 1
|
79
|
-
repeated :knowledge_types, :enum, 2, "google.cloud.dialogflow.v2.Document.KnowledgeType"
|
80
|
-
map :metadata, :string, :string, 3
|
81
|
-
end
|
82
|
-
add_message "google.cloud.dialogflow.v2.ImportDocumentsResponse" do
|
83
|
-
repeated :warnings, :message, 1, "google.rpc.Status"
|
84
|
-
end
|
85
|
-
add_message "google.cloud.dialogflow.v2.DeleteDocumentRequest" do
|
86
|
-
optional :name, :string, 1
|
87
|
-
end
|
88
|
-
add_message "google.cloud.dialogflow.v2.UpdateDocumentRequest" do
|
89
|
-
optional :document, :message, 1, "google.cloud.dialogflow.v2.Document"
|
90
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
91
|
-
end
|
92
|
-
add_message "google.cloud.dialogflow.v2.ReloadDocumentRequest" do
|
93
|
-
optional :name, :string, 1
|
94
|
-
optional :import_gcs_custom_metadata, :bool, 4
|
95
|
-
optional :smart_messaging_partial_update, :bool, 5
|
96
|
-
oneof :source do
|
97
|
-
optional :content_uri, :string, 3
|
98
|
-
end
|
99
|
-
end
|
100
|
-
add_message "google.cloud.dialogflow.v2.ExportDocumentRequest" do
|
101
|
-
optional :name, :string, 1
|
102
|
-
optional :export_full_content, :bool, 3
|
103
|
-
optional :smart_messaging_partial_update, :bool, 5
|
104
|
-
oneof :destination do
|
105
|
-
optional :gcs_destination, :message, 2, "google.cloud.dialogflow.v2.GcsDestination"
|
106
|
-
end
|
107
|
-
end
|
108
|
-
add_message "google.cloud.dialogflow.v2.ExportOperationMetadata" do
|
109
|
-
optional :exported_gcs_destination, :message, 1, "google.cloud.dialogflow.v2.GcsDestination"
|
110
|
-
end
|
111
|
-
add_message "google.cloud.dialogflow.v2.KnowledgeOperationMetadata" do
|
112
|
-
optional :state, :enum, 1, "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State"
|
113
|
-
optional :knowledge_base, :string, 3
|
114
|
-
oneof :operation_metadata do
|
115
|
-
optional :export_operation_metadata, :message, 4, "google.cloud.dialogflow.v2.ExportOperationMetadata"
|
116
|
-
end
|
117
|
-
end
|
118
|
-
add_enum "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" do
|
119
|
-
value :STATE_UNSPECIFIED, 0
|
120
|
-
value :PENDING, 1
|
121
|
-
value :RUNNING, 2
|
122
|
-
value :DONE, 3
|
18
|
+
|
19
|
+
descriptor_data = "\n)google/cloud/dialogflow/v2/document.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/gcs.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa6\x08\n\x08\x44ocument\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tmime_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x04 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12\x15\n\x0b\x63ontent_uri\x18\x05 \x01(\tH\x00\x12\x15\n\x0braw_content\x18\t \x01(\x0cH\x00\x12\x1f\n\x12\x65nable_auto_reload\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12T\n\x14latest_reload_status\x18\x0c \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.Document.ReloadStatusB\x03\xe0\x41\x03\x12I\n\x08metadata\x18\x07 \x03(\x0b\x32\x32.google.cloud.dialogflow.v2.Document.MetadataEntryB\x03\xe0\x41\x01\x12>\n\x05state\x18\r \x01(\x0e\x32*.google.cloud.dialogflow.v2.Document.StateB\x03\xe0\x41\x03\x1a\\\n\x0cReloadStatus\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x01\n\rKnowledgeType\x12\x1e\n\x1aKNOWLEDGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x46\x41Q\x10\x01\x12\x11\n\rEXTRACTIVE_QA\x10\x02\x12\x16\n\x12\x41RTICLE_SUGGESTION\x10\x03\x12\x1c\n\x18\x41GENT_FACING_SMART_REPLY\x10\x04\"c\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\r\n\tRELOADING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:\xcf\x01\xea\x41\xcb\x01\n\"dialogflow.googleapis.com/Document\x12Gprojects/{project}/knowledgeBases/{knowledge_base}/documents/{document}\x12\\projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}B\x08\n\x06source\"N\n\x12GetDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x89\x01\n\x14ListDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"i\n\x15ListDocumentsResponse\x12\x37\n\tdocuments\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.v2.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x90\x01\n\x15\x43reateDocumentRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12;\n\x08\x64ocument\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\"\x94\x02\n\x16ImportDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12<\n\ngcs_source\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.GcsSourcesH\x00\x12R\n\x11\x64ocument_template\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.ImportDocumentTemplateB\x03\xe0\x41\x02\x12\"\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x08\n\x06source\"\x87\x02\n\x16ImportDocumentTemplate\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x02 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12R\n\x08metadata\x18\x03 \x03(\x0b\x32@.google.cloud.dialogflow.v2.ImportDocumentTemplate.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"?\n\x17ImportDocumentsResponse\x12$\n\x08warnings\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\"Q\n\x15\x44\x65leteDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x8a\x01\n\x15UpdateDocumentRequest\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcd\x01\n\x15ReloadDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1a\n\x0b\x63ontent_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\'\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"\xec\x01\n\x15\x45xportDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x45\n\x0fgcs_destination\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestinationH\x00\x12\x1b\n\x13\x65xport_full_content\x18\x03 \x01(\x08\x12&\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\r\n\x0b\x64\x65stination\"g\n\x17\x45xportOperationMetadata\x12L\n\x18\x65xported_gcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestination\"\xba\x02\n\x1aKnowledgeOperationMetadata\x12P\n\x05state\x18\x01 \x01(\x0e\x32<.google.cloud.dialogflow.v2.KnowledgeOperationMetadata.StateB\x03\xe0\x41\x03\x12\x16\n\x0eknowledge_base\x18\x03 \x01(\t\x12X\n\x19\x65xport_operation_metadata\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ExportOperationMetadataH\x00\"B\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x42\x14\n\x12operation_metadata2\xac\x16\n\tDocuments\x12\xb9\x02\n\rListDocuments\x12\x30.google.cloud.dialogflow.v2.ListDocumentsRequest\x1a\x31.google.cloud.dialogflow.v2.ListDocumentsResponse\"\xc2\x01\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{parent=projects/*/knowledgeBases/*}/documentsZ@\x12>/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documentsZ:\x12\x38/v2/{parent=projects/*/agent/knowledgeBases/*}/documents\xda\x41\x06parent\x12\xa6\x02\n\x0bGetDocument\x12..google.cloud.dialogflow.v2.GetDocumentRequest\x1a$.google.cloud.dialogflow.v2.Document\"\xc0\x01\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@\x12>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:\x12\x38/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\xda\x41\x04name\x12\xf7\x02\n\x0e\x43reateDocument\x12\x31.google.cloud.dialogflow.v2.CreateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x92\x02\x82\xd3\xe4\x93\x02\xd0\x01\"2/v2/{parent=projects/*/knowledgeBases/*}/documents:\x08\x64ocumentZJ\">/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:\x08\x64ocumentZD\"8/v2/{parent=projects/*/agent/knowledgeBases/*}/documents:\x08\x64ocument\xda\x41\x0fparent,document\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\xb0\x02\n\x0fImportDocuments\x12\x32.google.cloud.dialogflow.v2.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xc9\x01\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{parent=projects/*/knowledgeBases/*}/documents:import:\x01*ZJ\"E/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:import:\x01*\xca\x41\x35\n\x17ImportDocumentsResponse\x12\x1aKnowledgeOperationMetadata\x12\xdb\x02\n\x0e\x44\x65leteDocument\x12\x31.google.cloud.dialogflow.v2.DeleteDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xf6\x01\x82\xd3\xe4\x93\x02\xb2\x01*2/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@*>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:*8/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\xda\x41\x04name\xca\x41\x33\n\x15google.protobuf.Empty\x12\x1aKnowledgeOperationMetadata\x12\x97\x03\n\x0eUpdateDocument\x12\x31.google.cloud.dialogflow.v2.UpdateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x02\x82\xd3\xe4\x93\x02\xeb\x01\x32;/v2/{document.name=projects/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZS2G/v2/{document.name=projects/*/locations/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZM2A/v2/{document.name=projects/*/agent/knowledgeBases/*/documents/*}:\x08\x64ocument\xda\x41\x14\x64ocument,update_mask\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\xf8\x02\n\x0eReloadDocument\x12\x31.google.cloud.dialogflow.v2.ReloadDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x93\x02\x82\xd3\xe4\x93\x02\xd0\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:reload:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:reload:\x01*ZD\"?/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}:reload:\x01*\xda\x41\x10name,content_uri\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x12\x9f\x02\n\x0e\x45xportDocument\x12\x31.google.cloud.dialogflow.v2.ExportDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xba\x01\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:export:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:export:\x01*\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x96\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\rDocumentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
35
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
36
|
+
["google.cloud.dialogflow.v2.GcsSources", "google/cloud/dialogflow/v2/gcs.proto"],
|
37
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
38
|
+
]
|
39
|
+
imports.each do |type_name, expected_filename|
|
40
|
+
import_file = pool.lookup(type_name).file_descriptor
|
41
|
+
if import_file.name != expected_filename
|
42
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
123
43
|
end
|
124
44
|
end
|
45
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
46
|
+
warn "This will become an error in the next major version."
|
125
47
|
end
|
126
48
|
|
127
49
|
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
|
@@ -1130,7 +1130,9 @@ module Google
|
|
1130
1130
|
class Configuration
|
1131
1131
|
extend ::Gapic::Config
|
1132
1132
|
|
1133
|
-
|
1133
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1134
|
+
|
1135
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1134
1136
|
config_attr :credentials, nil do |value|
|
1135
1137
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1136
1138
|
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
|
@@ -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
|
@@ -883,7 +883,9 @@ module Google
|
|
883
883
|
class Configuration
|
884
884
|
extend ::Gapic::Config
|
885
885
|
|
886
|
-
|
886
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
887
|
+
|
888
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
887
889
|
config_attr :credentials, nil do |value|
|
888
890
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
889
891
|
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_list_documents_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_document_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_create_document_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_import_documents_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_delete_document_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_update_document_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_reload_document_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_export_document_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
|
@@ -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/entity_type.proto
|
3
4
|
|
@@ -12,93 +13,32 @@ require 'google/protobuf/empty_pb'
|
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
require 'google/protobuf/struct_pb'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
value :AUTO_EXPANSION_MODE_DEFAULT, 1
|
38
|
-
end
|
39
|
-
add_message "google.cloud.dialogflow.v2.ListEntityTypesRequest" do
|
40
|
-
optional :parent, :string, 1
|
41
|
-
optional :language_code, :string, 2
|
42
|
-
optional :page_size, :int32, 3
|
43
|
-
optional :page_token, :string, 4
|
44
|
-
end
|
45
|
-
add_message "google.cloud.dialogflow.v2.ListEntityTypesResponse" do
|
46
|
-
repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType"
|
47
|
-
optional :next_page_token, :string, 2
|
48
|
-
end
|
49
|
-
add_message "google.cloud.dialogflow.v2.GetEntityTypeRequest" do
|
50
|
-
optional :name, :string, 1
|
51
|
-
optional :language_code, :string, 2
|
52
|
-
end
|
53
|
-
add_message "google.cloud.dialogflow.v2.CreateEntityTypeRequest" do
|
54
|
-
optional :parent, :string, 1
|
55
|
-
optional :entity_type, :message, 2, "google.cloud.dialogflow.v2.EntityType"
|
56
|
-
optional :language_code, :string, 3
|
57
|
-
end
|
58
|
-
add_message "google.cloud.dialogflow.v2.UpdateEntityTypeRequest" do
|
59
|
-
optional :entity_type, :message, 1, "google.cloud.dialogflow.v2.EntityType"
|
60
|
-
optional :language_code, :string, 2
|
61
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
62
|
-
end
|
63
|
-
add_message "google.cloud.dialogflow.v2.DeleteEntityTypeRequest" do
|
64
|
-
optional :name, :string, 1
|
65
|
-
end
|
66
|
-
add_message "google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest" do
|
67
|
-
optional :parent, :string, 1
|
68
|
-
optional :language_code, :string, 4
|
69
|
-
optional :update_mask, :message, 5, "google.protobuf.FieldMask"
|
70
|
-
oneof :entity_type_batch do
|
71
|
-
optional :entity_type_batch_uri, :string, 2
|
72
|
-
optional :entity_type_batch_inline, :message, 3, "google.cloud.dialogflow.v2.EntityTypeBatch"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse" do
|
76
|
-
repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType"
|
77
|
-
end
|
78
|
-
add_message "google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest" do
|
79
|
-
optional :parent, :string, 1
|
80
|
-
repeated :entity_type_names, :string, 2
|
81
|
-
end
|
82
|
-
add_message "google.cloud.dialogflow.v2.BatchCreateEntitiesRequest" do
|
83
|
-
optional :parent, :string, 1
|
84
|
-
repeated :entities, :message, 2, "google.cloud.dialogflow.v2.EntityType.Entity"
|
85
|
-
optional :language_code, :string, 3
|
86
|
-
end
|
87
|
-
add_message "google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest" do
|
88
|
-
optional :parent, :string, 1
|
89
|
-
repeated :entities, :message, 2, "google.cloud.dialogflow.v2.EntityType.Entity"
|
90
|
-
optional :language_code, :string, 3
|
91
|
-
optional :update_mask, :message, 4, "google.protobuf.FieldMask"
|
92
|
-
end
|
93
|
-
add_message "google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest" do
|
94
|
-
optional :parent, :string, 1
|
95
|
-
repeated :entity_values, :string, 2
|
96
|
-
optional :language_code, :string, 3
|
97
|
-
end
|
98
|
-
add_message "google.cloud.dialogflow.v2.EntityTypeBatch" do
|
99
|
-
repeated :entity_types, :message, 1, "google.cloud.dialogflow.v2.EntityType"
|
16
|
+
|
17
|
+
descriptor_data = "\n,google/cloud/dialogflow/v2/entity_type.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 google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc3\x05\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x03\xe0\x41\x02\x12Z\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x03\xe0\x41\x01\x12\x44\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x01\x12$\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02\"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03\"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:\xa7\x01\xea\x41\xa3\x01\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}\x12Gprojects/{project}/locations/{location}/agent/entityTypes/{entity_type}\"\xa3\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\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\"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"n\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12@\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xad\x01\n\x17UpdateEntityTypeRequest\x12@\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"U\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"\xb6\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x13\n\x11\x65ntity_type_batch\"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\"}\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1e\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xbc\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf2\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x92\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rentity_values\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\xd6\x19\n\x0b\x45ntityTypes\x12\x87\x02\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse\"\x8a\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{parent=projects/*/agent}/entityTypesZ7\x12\x35/v2/{parent=projects/*/locations/*/agent}/entityTypes\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xf2\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\x86\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{name=projects/*/agent/entityTypes/*}Z7\x12\x35/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\xae\x02\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xbc\x01\x82\xd3\xe4\x93\x02~\")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_typeZD\"5/v2/{parent=projects/*/locations/*/agent}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x12\xb9\x02\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xc7\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_typeZP2A/v2/{entity_type.name=projects/*/locations/*/agent/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x12\xd2\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"q\x82\xd3\xe4\x93\x02\x64*)/v2/{name=projects/*/agent/entityTypes/*}Z7*5/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\x12\xd4\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xdf\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchUpdate:\x01*\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x12\xcb\x02\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xd6\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchDelete:\x01*\xda\x41\x18parent,entity_type_names\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchCreate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xfc\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchDelete:\x01*\xda\x41\x14parent,entity_values\xda\x41\"parent,entity_values,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
100
38
|
end
|
101
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
102
42
|
end
|
103
43
|
|
104
44
|
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
|
@@ -1320,7 +1320,9 @@ module Google
|
|
1320
1320
|
class Configuration
|
1321
1321
|
extend ::Gapic::Config
|
1322
1322
|
|
1323
|
-
|
1323
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1324
|
+
|
1325
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1324
1326
|
config_attr :credentials, nil do |value|
|
1325
1327
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1326
1328
|
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
|
@@ -1034,7 +1034,9 @@ module Google
|
|
1034
1034
|
class Configuration
|
1035
1035
|
extend ::Gapic::Config
|
1036
1036
|
|
1037
|
-
|
1037
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1038
|
+
|
1039
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1038
1040
|
config_attr :credentials, nil do |value|
|
1039
1041
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1040
1042
|
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
|