google-cloud-dialogflow-cx-v3 0.16.0 → 0.17.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/cx/v3/advanced_settings_pb.rb +25 -9
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +28 -86
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +25 -65
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +25 -23
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +25 -56
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +28 -93
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +27 -127
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +28 -96
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +10 -10
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +26 -26
- data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +24 -4
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +25 -59
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +27 -73
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +25 -53
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +25 -65
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +33 -177
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +3 -3
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +34 -224
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +12 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +24 -34
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +27 -55
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +28 -125
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +5 -5
- 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: f45dd19f543780584058600112006d6bd9cb10c32e82e4012e4d1aec784a6389
|
4
|
+
data.tar.gz: e706a32333855cde933ae441308bdd21e7620845d7cacc46cac34a03c2b3c54c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5d010b60ce8e020da0c8fdf17b5f65b01474d213cf965e648f96e42b3470057cd875a9a53bd0e664210c42832628c222f3d931c3babd58f78e52405d1280c12
|
7
|
+
data.tar.gz: 205137b78f39c5bb32313fc39a8840afd4c6c4b96c16d9a22439d4bf87c1f2724934f71b89e91e07612f3a99cb605e604b9a712efd50bddadcf7d8dba091abbe
|
@@ -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/cx/v3/advanced_settings.proto
|
3
4
|
|
@@ -6,17 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/cloud/dialogflow/cx/v3/gcs_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n5google/cloud/dialogflow/cx/v3/advanced_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/dialogflow/cx/v3/gcs.proto\"\x9d\x02\n\x10\x41\x64vancedSettings\x12S\n\x1c\x61udio_export_gcs_destination\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.GcsDestination\x12Y\n\x10logging_settings\x18\x06 \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings\x1aY\n\x0fLoggingSettings\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x02 \x01(\x08\x12\"\n\x1a\x65nable_interaction_logging\x18\x03 \x01(\x08\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x15\x41\x64vancedSettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\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.cloud.dialogflow.cx.v3.GcsDestination", "google/cloud/dialogflow/cx/v3/gcs.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
18
32
|
end
|
19
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
20
36
|
end
|
21
37
|
|
22
38
|
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/cx/v3/agent.proto
|
3
4
|
|
@@ -15,94 +16,35 @@ require 'google/protobuf/empty_pb'
|
|
15
16
|
require 'google/protobuf/field_mask_pb'
|
16
17
|
require 'google/protobuf/struct_pb'
|
17
18
|
|
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
|
-
|
43
|
-
optional :page_token, :string, 3
|
44
|
-
end
|
45
|
-
add_message "google.cloud.dialogflow.cx.v3.ListAgentsResponse" do
|
46
|
-
repeated :agents, :message, 1, "google.cloud.dialogflow.cx.v3.Agent"
|
47
|
-
optional :next_page_token, :string, 2
|
48
|
-
end
|
49
|
-
add_message "google.cloud.dialogflow.cx.v3.GetAgentRequest" do
|
50
|
-
optional :name, :string, 1
|
51
|
-
end
|
52
|
-
add_message "google.cloud.dialogflow.cx.v3.CreateAgentRequest" do
|
53
|
-
optional :parent, :string, 1
|
54
|
-
optional :agent, :message, 2, "google.cloud.dialogflow.cx.v3.Agent"
|
55
|
-
end
|
56
|
-
add_message "google.cloud.dialogflow.cx.v3.UpdateAgentRequest" do
|
57
|
-
optional :agent, :message, 1, "google.cloud.dialogflow.cx.v3.Agent"
|
58
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
59
|
-
end
|
60
|
-
add_message "google.cloud.dialogflow.cx.v3.DeleteAgentRequest" do
|
61
|
-
optional :name, :string, 1
|
62
|
-
end
|
63
|
-
add_message "google.cloud.dialogflow.cx.v3.ExportAgentRequest" do
|
64
|
-
optional :name, :string, 1
|
65
|
-
optional :agent_uri, :string, 2
|
66
|
-
optional :data_format, :enum, 3, "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat"
|
67
|
-
optional :environment, :string, 5
|
68
|
-
end
|
69
|
-
add_enum "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" do
|
70
|
-
value :DATA_FORMAT_UNSPECIFIED, 0
|
71
|
-
value :BLOB, 1
|
72
|
-
value :JSON_PACKAGE, 4
|
73
|
-
end
|
74
|
-
add_message "google.cloud.dialogflow.cx.v3.ExportAgentResponse" do
|
75
|
-
oneof :agent do
|
76
|
-
optional :agent_uri, :string, 1
|
77
|
-
optional :agent_content, :bytes, 2
|
78
|
-
end
|
79
|
-
end
|
80
|
-
add_message "google.cloud.dialogflow.cx.v3.RestoreAgentRequest" do
|
81
|
-
optional :name, :string, 1
|
82
|
-
optional :restore_option, :enum, 5, "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption"
|
83
|
-
oneof :agent do
|
84
|
-
optional :agent_uri, :string, 2
|
85
|
-
optional :agent_content, :bytes, 3
|
86
|
-
end
|
87
|
-
end
|
88
|
-
add_enum "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption" do
|
89
|
-
value :RESTORE_OPTION_UNSPECIFIED, 0
|
90
|
-
value :KEEP, 1
|
91
|
-
value :FALLBACK, 2
|
92
|
-
end
|
93
|
-
add_message "google.cloud.dialogflow.cx.v3.ValidateAgentRequest" do
|
94
|
-
optional :name, :string, 1
|
95
|
-
optional :language_code, :string, 2
|
96
|
-
end
|
97
|
-
add_message "google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest" do
|
98
|
-
optional :name, :string, 1
|
99
|
-
optional :language_code, :string, 2
|
100
|
-
end
|
101
|
-
add_message "google.cloud.dialogflow.cx.v3.AgentValidationResult" do
|
102
|
-
optional :name, :string, 1
|
103
|
-
repeated :flow_validation_results, :message, 2, "google.cloud.dialogflow.cx.v3.FlowValidationResult"
|
19
|
+
|
20
|
+
descriptor_data = "\n)google/cloud/dialogflow/cx/v3/agent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\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/cx/v3/advanced_settings.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"8\n\x14SpeechToTextSettings\x12 \n\x18\x65nable_speech_adaptation\x18\x01 \x01(\x08\"\xf1\x05\n\x05\x41gent\x12\x0c\n\x04name\x18\x01 \x01(\t\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\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12T\n\x17speech_to_text_settings\x18\r \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.SpeechToTextSettings\x12:\n\nstart_flow\x18\x10 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12J\n\x11security_settings\x18\x11 \x01(\tB/\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\x12&\n\x1a\x65nable_stackdriver_logging\x18\x12 \x01(\x08\x42\x02\x18\x01\x12\x1f\n\x17\x65nable_spell_correction\x18\x14 \x01(\x08\x12\x0e\n\x06locked\x18\x1b \x01(\x08\x12J\n\x11\x61\x64vanced_settings\x18\x16 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12T\n\x17text_to_speech_settings\x18\x1f \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TextToSpeechSettings:\\\xea\x41Y\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x36projects/{project}/locations/{location}/agents/{agent}\"s\n\x11ListAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"c\n\x12ListAgentsResponse\x12\x34\n\x06\x61gents\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.cx.v3.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x0fGetAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x87\x01\n\x12\x43reateAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x38\n\x05\x61gent\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\"\x7f\n\x12UpdateAgentRequest\x12\x38\n\x05\x61gent\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\xc6\x02\n\x12\x45xportAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12V\n\x0b\x64\x61ta_format\x18\x03 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormatB\x03\xe0\x41\x01\x12\x42\n\x0b\x65nvironment\x18\x05 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"E\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x10\n\x0cJSON_PACKAGE\x10\x04\"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\"\xa6\x02\n\x13RestoreAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\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\x12X\n\x0erestore_option\x18\x05 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption\"G\n\rRestoreOption\x12\x1e\n\x1aRESTORE_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x07\n\x05\x61gent\"d\n\x14ValidateAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x7f\n\x1fGetAgentValidationResultRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/dialogflow.googleapis.com/AgentValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xfa\x01\n\x15\x41gentValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12T\n\x17\x66low_validation_results\x18\x02 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult:}\xea\x41z\n/dialogflow.googleapis.com/AgentValidationResult\x12Gprojects/{project}/locations/{location}/agents/{agent}/validationResult2\x99\x0e\n\x06\x41gents\x12\xae\x01\n\nListAgents\x12\x30.google.cloud.dialogflow.cx.v3.ListAgentsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.ListAgentsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*/locations/*}/agents\xda\x41\x06parent\x12\x9b\x01\n\x08GetAgent\x12..google.cloud.dialogflow.cx.v3.GetAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xb0\x01\n\x0b\x43reateAgent\x12\x31.google.cloud.dialogflow.cx.v3.CreateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"H\x82\xd3\xe4\x93\x02\x33\"*/v3/{parent=projects/*/locations/*}/agents:\x05\x61gent\xda\x41\x0cparent,agent\x12\xbb\x01\n\x0bUpdateAgent\x12\x31.google.cloud.dialogflow.cx.v3.UpdateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v3/{agent.name=projects/*/locations/*/agents/*}:\x05\x61gent\xda\x41\x11\x61gent,update_mask\x12\x93\x01\n\x0b\x44\x65leteAgent\x12\x31.google.cloud.dialogflow.cx.v3.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xcd\x01\n\x0b\x45xportAgent\x12\x31.google.cloud.dialogflow.cx.v3.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x36\"1/v3/{name=projects/*/locations/*/agents/*}:export:\x01*\xca\x41-\n\x13\x45xportAgentResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\x0cRestoreAgent\x12\x32.google.cloud.dialogflow.cx.v3.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02\x37\"2/v3/{name=projects/*/locations/*/agents/*}:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xba\x01\n\rValidateAgent\x12\x33.google.cloud.dialogflow.cx.v3.ValidateAgentRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/locations/*/agents/*}:validate:\x01*\x12\xdc\x01\n\x18GetAgentValidationResult\x12>.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\"J\x82\xd3\xe4\x93\x02=\x12;/v3/{name=projects/*/locations/*/agents/*/validationResult}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb0\x01\n!com.google.cloud.dialogflow.cx.v3B\nAgentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
21
|
+
|
22
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
|
+
|
24
|
+
begin
|
25
|
+
pool.add_serialized_file(descriptor_data)
|
26
|
+
rescue TypeError => e
|
27
|
+
# Compatibility code: will be removed in the next major version.
|
28
|
+
require 'google/protobuf/descriptor_pb'
|
29
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
30
|
+
parsed.clear_dependency
|
31
|
+
serialized = parsed.class.encode(parsed)
|
32
|
+
file = pool.add_serialized_file(serialized)
|
33
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
34
|
+
imports = [
|
35
|
+
["google.cloud.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"],
|
36
|
+
["google.cloud.dialogflow.cx.v3.TextToSpeechSettings", "google/cloud/dialogflow/cx/v3/audio_config.proto"],
|
37
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
38
|
+
["google.cloud.dialogflow.cx.v3.FlowValidationResult", "google/cloud/dialogflow/cx/v3/flow.proto"],
|
39
|
+
]
|
40
|
+
imports.each do |type_name, expected_filename|
|
41
|
+
import_file = pool.lookup(type_name).file_descriptor
|
42
|
+
if import_file.name != expected_filename
|
43
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
104
44
|
end
|
105
45
|
end
|
46
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
47
|
+
warn "This will become an error in the next major version."
|
106
48
|
end
|
107
49
|
|
108
50
|
module Google
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
credentials = @config.credentials
|
136
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
137
137
|
# but only if the default endpoint does not have a region prefix.
|
138
|
-
enable_self_signed_jwt = @config.endpoint ==
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
139
139
|
!@config.endpoint.split(".").first.include?("-")
|
140
140
|
credentials ||= Credentials.default scope: @config.scope,
|
141
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1141,7 +1141,9 @@ module Google
|
|
1141
1141
|
class Configuration
|
1142
1142
|
extend ::Gapic::Config
|
1143
1143
|
|
1144
|
-
|
1144
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1145
|
+
|
1146
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1145
1147
|
config_attr :credentials, nil do |value|
|
1146
1148
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1147
1149
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -665,7 +665,9 @@ module Google
|
|
665
665
|
class Configuration
|
666
666
|
extend ::Gapic::Config
|
667
667
|
|
668
|
-
|
668
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
669
671
|
config_attr :credentials, nil do |value|
|
670
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
671
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
credentials = @config.credentials
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -899,7 +899,9 @@ module Google
|
|
899
899
|
class Configuration
|
900
900
|
extend ::Gapic::Config
|
901
901
|
|
902
|
-
|
902
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
903
|
+
|
904
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
903
905
|
config_attr :credentials, nil do |value|
|
904
906
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
905
907
|
allowed.any? { |klass| klass === value }
|
@@ -447,7 +447,9 @@ module Google
|
|
447
447
|
class Configuration
|
448
448
|
extend ::Gapic::Config
|
449
449
|
|
450
|
-
|
450
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
451
|
+
|
452
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
451
453
|
config_attr :credentials, nil do |value|
|
452
454
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
453
455
|
allowed.any? { |klass| klass === value }
|
@@ -568,7 +570,7 @@ module Google
|
|
568
570
|
|
569
571
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
570
572
|
query_string_params = if query_string_params.any?
|
571
|
-
query_string_params.to_h { |p| p.split
|
573
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
572
574
|
else
|
573
575
|
{}
|
574
576
|
end
|
@@ -606,7 +608,7 @@ module Google
|
|
606
608
|
|
607
609
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
608
610
|
query_string_params = if query_string_params.any?
|
609
|
-
query_string_params.to_h { |p| p.split
|
611
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
610
612
|
else
|
611
613
|
{}
|
612
614
|
end
|
@@ -644,7 +646,7 @@ module Google
|
|
644
646
|
|
645
647
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
646
648
|
query_string_params = if query_string_params.any?
|
647
|
-
query_string_params.to_h { |p| p.split
|
649
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
648
650
|
else
|
649
651
|
{}
|
650
652
|
end
|
@@ -682,7 +684,7 @@ module Google
|
|
682
684
|
|
683
685
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
684
686
|
query_string_params = if query_string_params.any?
|
685
|
-
query_string_params.to_h { |p| p.split
|
687
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
686
688
|
else
|
687
689
|
{}
|
688
690
|
end
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_agents_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_agent_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_agent_request request_pb
|
138
138
|
query_string_params = if query_string_params.any?
|
139
|
-
query_string_params.to_h { |p| p.split
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
140
140
|
else
|
141
141
|
{}
|
142
142
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_agent_request request_pb
|
176
176
|
query_string_params = if query_string_params.any?
|
177
|
-
query_string_params.to_h { |p| p.split
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
178
178
|
else
|
179
179
|
{}
|
180
180
|
end
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_agent_request request_pb
|
214
214
|
query_string_params = if query_string_params.any?
|
215
|
-
query_string_params.to_h { |p| p.split
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
216
|
else
|
217
217
|
{}
|
218
218
|
end
|
@@ -250,7 +250,7 @@ module Google
|
|
250
250
|
|
251
251
|
verb, uri, query_string_params, body = ServiceStub.transcode_export_agent_request request_pb
|
252
252
|
query_string_params = if query_string_params.any?
|
253
|
-
query_string_params.to_h { |p| p.split
|
253
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
254
254
|
else
|
255
255
|
{}
|
256
256
|
end
|
@@ -288,7 +288,7 @@ module Google
|
|
288
288
|
|
289
289
|
verb, uri, query_string_params, body = ServiceStub.transcode_restore_agent_request request_pb
|
290
290
|
query_string_params = if query_string_params.any?
|
291
|
-
query_string_params.to_h { |p| p.split
|
291
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
292
292
|
else
|
293
293
|
{}
|
294
294
|
end
|
@@ -326,7 +326,7 @@ module Google
|
|
326
326
|
|
327
327
|
verb, uri, query_string_params, body = ServiceStub.transcode_validate_agent_request request_pb
|
328
328
|
query_string_params = if query_string_params.any?
|
329
|
-
query_string_params.to_h { |p| p.split
|
329
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
330
330
|
else
|
331
331
|
{}
|
332
332
|
end
|
@@ -364,7 +364,7 @@ module Google
|
|
364
364
|
|
365
365
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_agent_validation_result_request request_pb
|
366
366
|
query_string_params = if query_string_params.any?
|
367
|
-
query_string_params.to_h { |p| p.split
|
367
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
368
368
|
else
|
369
369
|
{}
|
370
370
|
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/cx/v3/audio_config.proto
|
3
4
|
|
@@ -7,73 +8,32 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
optional :speaking_rate, :double, 1
|
33
|
-
optional :pitch, :double, 2
|
34
|
-
optional :volume_gain_db, :double, 3
|
35
|
-
repeated :effects_profile_id, :string, 5
|
36
|
-
optional :voice, :message, 4, "google.cloud.dialogflow.cx.v3.VoiceSelectionParams"
|
37
|
-
end
|
38
|
-
add_message "google.cloud.dialogflow.cx.v3.OutputAudioConfig" do
|
39
|
-
optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.OutputAudioEncoding"
|
40
|
-
optional :sample_rate_hertz, :int32, 2
|
41
|
-
optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
|
42
|
-
end
|
43
|
-
add_message "google.cloud.dialogflow.cx.v3.TextToSpeechSettings" do
|
44
|
-
map :synthesize_speech_configs, :string, :message, 1, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
|
45
|
-
end
|
46
|
-
add_enum "google.cloud.dialogflow.cx.v3.AudioEncoding" do
|
47
|
-
value :AUDIO_ENCODING_UNSPECIFIED, 0
|
48
|
-
value :AUDIO_ENCODING_LINEAR_16, 1
|
49
|
-
value :AUDIO_ENCODING_FLAC, 2
|
50
|
-
value :AUDIO_ENCODING_MULAW, 3
|
51
|
-
value :AUDIO_ENCODING_AMR, 4
|
52
|
-
value :AUDIO_ENCODING_AMR_WB, 5
|
53
|
-
value :AUDIO_ENCODING_OGG_OPUS, 6
|
54
|
-
value :AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE, 7
|
55
|
-
end
|
56
|
-
add_enum "google.cloud.dialogflow.cx.v3.SpeechModelVariant" do
|
57
|
-
value :SPEECH_MODEL_VARIANT_UNSPECIFIED, 0
|
58
|
-
value :USE_BEST_AVAILABLE, 1
|
59
|
-
value :USE_STANDARD, 2
|
60
|
-
value :USE_ENHANCED, 3
|
61
|
-
end
|
62
|
-
add_enum "google.cloud.dialogflow.cx.v3.SsmlVoiceGender" do
|
63
|
-
value :SSML_VOICE_GENDER_UNSPECIFIED, 0
|
64
|
-
value :SSML_VOICE_GENDER_MALE, 1
|
65
|
-
value :SSML_VOICE_GENDER_FEMALE, 2
|
66
|
-
value :SSML_VOICE_GENDER_NEUTRAL, 3
|
67
|
-
end
|
68
|
-
add_enum "google.cloud.dialogflow.cx.v3.OutputAudioEncoding" do
|
69
|
-
value :OUTPUT_AUDIO_ENCODING_UNSPECIFIED, 0
|
70
|
-
value :OUTPUT_AUDIO_ENCODING_LINEAR_16, 1
|
71
|
-
value :OUTPUT_AUDIO_ENCODING_MP3, 2
|
72
|
-
value :OUTPUT_AUDIO_ENCODING_MP3_64_KBPS, 4
|
73
|
-
value :OUTPUT_AUDIO_ENCODING_OGG_OPUS, 3
|
74
|
-
value :OUTPUT_AUDIO_ENCODING_MULAW, 5
|
11
|
+
|
12
|
+
descriptor_data = "\n0google/cloud/dialogflow/cx/v3/audio_config.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\x9b\x02\n\x10InputAudioConfig\x12I\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.AudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x14\n\x0cphrase_hints\x18\x04 \x03(\t\x12\r\n\x05model\x18\x07 \x01(\t\x12H\n\rmodel_variant\x18\n \x01(\x0e\x32\x31.google.cloud.dialogflow.cx.v3.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\"i\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x0bssml_gender\x18\x02 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.SsmlVoiceGender\"\xb6\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12\x42\n\x05voice\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.VoiceSelectionParams\"\xd8\x01\n\x11OutputAudioConfig\x12O\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x32.google.cloud.dialogflow.cx.v3.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12W\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig\"\x82\x02\n\x14TextToSpeechSettings\x12s\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32P.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.SynthesizeSpeechConfigsEntry\x1au\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x44\n\x05value\x18\x02 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig:\x02\x38\x01*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\x8e\x02\n!com.google.cloud.dialogflow.cx.v3B\x10\x41udioConfigProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.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}"
|
75
33
|
end
|
76
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."
|
77
37
|
end
|
78
38
|
|
79
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/cx/v3/changelog.proto
|
3
4
|
|
@@ -9,31 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
13
|
+
|
14
|
+
descriptor_data = "\n-google/cloud/dialogflow/cx/v3/changelog.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x01\n\x15ListChangelogsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#dialogflow.googleapis.com/Changelog\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"o\n\x16ListChangelogsResponse\x12<\n\nchangelogs\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.Changelog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x13GetChangelogRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dialogflow.googleapis.com/Changelog\"\x9d\x02\n\tChangelog\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nuser_email\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:w\xea\x41t\n#dialogflow.googleapis.com/Changelog\x12Mprojects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}2\x87\x04\n\nChangelogs\x12\xc7\x01\n\x0eListChangelogs\x12\x34.google.cloud.dialogflow.cx.v3.ListChangelogsRequest\x1a\x35.google.cloud.dialogflow.cx.v3.ListChangelogsResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{parent=projects/*/locations/*/agents/*}/changelogs\xda\x41\x06parent\x12\xb4\x01\n\x0cGetChangelog\x12\x32.google.cloud.dialogflow.cx.v3.GetChangelogRequest\x1a(.google.cloud.dialogflow.cx.v3.Changelog\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{name=projects/*/locations/*/agents/*/changelogs/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb4\x01\n!com.google.cloud.dialogflow.cx.v3B\x0e\x43hangelogProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
35
|
end
|
36
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
37
39
|
end
|
38
40
|
|
39
41
|
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
|
@@ -450,7 +450,9 @@ module Google
|
|
450
450
|
class Configuration
|
451
451
|
extend ::Gapic::Config
|
452
452
|
|
453
|
-
|
453
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
454
|
+
|
455
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
454
456
|
config_attr :credentials, nil do |value|
|
455
457
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
456
458
|
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
|
@@ -383,7 +383,9 @@ module Google
|
|
383
383
|
class Configuration
|
384
384
|
extend ::Gapic::Config
|
385
385
|
|
386
|
-
|
386
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
387
|
+
|
388
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
387
389
|
config_attr :credentials, nil do |value|
|
388
390
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
389
391
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_changelogs_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_changelog_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|