google-cloud-dialogflow-cx-v3 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +25 -9
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +28 -86
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +7 -3
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +3 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +7 -3
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +7 -5
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +9 -9
  9. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +25 -65
  10. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +25 -23
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -2
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +4 -2
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +2 -2
  14. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +25 -31
  15. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -2
  16. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +4 -2
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +2 -2
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +25 -56
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -2
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +4 -2
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +5 -5
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +28 -93
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +4 -2
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +3 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +4 -2
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +7 -5
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +9 -9
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +27 -127
  29. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -2
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +4 -2
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +7 -7
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +28 -96
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -2
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +3 -1
  35. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -2
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +7 -5
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +10 -10
  38. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +26 -26
  39. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +24 -4
  40. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +25 -59
  41. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -2
  42. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +4 -2
  43. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +5 -5
  44. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +27 -73
  45. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -2
  46. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +4 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +5 -5
  48. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +25 -53
  49. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +25 -65
  50. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -2
  51. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +4 -2
  52. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +5 -5
  53. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +26 -34
  54. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -2
  55. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +4 -2
  56. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +5 -5
  57. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +33 -177
  58. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +4 -2
  59. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +4 -2
  60. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +3 -3
  61. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +34 -224
  62. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +4 -2
  63. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +3 -1
  64. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +4 -2
  65. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +7 -5
  66. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +12 -12
  67. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +26 -34
  68. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -2
  69. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +4 -2
  70. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +5 -5
  71. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +24 -34
  72. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  73. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +27 -55
  74. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +4 -2
  75. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +3 -1
  76. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +4 -2
  77. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +7 -5
  78. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +7 -7
  79. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +30 -125
  80. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -2
  81. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +4 -2
  82. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +5 -5
  83. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +3 -0
  84. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +12 -5
  85. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +6 -0
  86. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +2 -1
  87. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +65 -0
  88. data/proto_docs/google/protobuf/any.rb +7 -4
  89. data/proto_docs/google/protobuf/struct.rb +1 -1
  90. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  91. 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/cx/v3/response_message.proto
3
4
 
@@ -6,61 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/struct_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/dialogflow/cx/v3/response_message.proto", :syntax => :proto3) do
11
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage" do
12
- optional :channel, :string, 19
13
- oneof :message do
14
- optional :text, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage.Text"
15
- optional :payload, :message, 2, "google.protobuf.Struct"
16
- optional :conversation_success, :message, 9, "google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess"
17
- optional :output_audio_text, :message, 8, "google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText"
18
- optional :live_agent_handoff, :message, 10, "google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff"
19
- optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"
20
- optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio"
21
- optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio"
22
- optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall"
23
- end
24
- end
25
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do
26
- repeated :text, :string, 1
27
- optional :allow_playback_interruption, :bool, 2
28
- end
29
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff" do
30
- optional :metadata, :message, 1, "google.protobuf.Struct"
31
- end
32
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess" do
33
- optional :metadata, :message, 1, "google.protobuf.Struct"
34
- end
35
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText" do
36
- optional :allow_playback_interruption, :bool, 3
37
- oneof :source do
38
- optional :text, :string, 1
39
- optional :ssml, :string, 2
40
- end
41
- end
42
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction" do
43
- end
44
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio" do
45
- optional :audio_uri, :string, 1
46
- optional :allow_playback_interruption, :bool, 2
47
- end
48
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio" do
49
- repeated :segments, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment"
50
- end
51
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment" do
52
- optional :allow_playback_interruption, :bool, 3
53
- oneof :content do
54
- optional :audio, :bytes, 1
55
- optional :uri, :string, 2
56
- end
57
- end
58
- add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do
59
- oneof :endpoint do
60
- optional :phone_number, :string, 1
61
- end
10
+
11
+ descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xbc\x0b\n\x0fResponseMessage\x12\x43\n\x04text\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ResponseMessage.TextH\x00\x12*\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x62\n\x14\x63onversation_success\x18\t \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccessH\x00\x12[\n\x11output_audio_text\x18\x08 \x01(\x0b\x32>.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioTextH\x00\x12]\n\x12live_agent_handoff\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoffH\x00\x12]\n\x0f\x65nd_interaction\x18\x0b \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteractionB\x03\xe0\x41\x03H\x00\x12N\n\nplay_audio\x18\x0c \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudioH\x00\x12U\n\x0bmixed_audio\x18\r \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudioB\x03\xe0\x41\x03H\x00\x12g\n\x17telephony_transfer_call\x18\x12 \x01(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallH\x00\x12\x0f\n\x07\x63hannel\x18\x13 \x01(\t\x1a\x43\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a=\n\x10LiveAgentHandoff\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\x13\x43onversationSuccess\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x65\n\x0fOutputAudioText\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\x08\n\x06source\x1a\x10\n\x0e\x45ndInteraction\x1aM\n\tPlayAudio\x12\x16\n\taudio_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xc1\x01\n\nMixedAudio\x12S\n\x08segments\x18\x01 \x03(\x0b\x32\x41.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment\x1a^\n\x07Segment\x12\x0f\n\x05\x61udio\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\t\n\x07\x63ontent\x1a;\n\x15TelephonyTransferCall\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x42\n\n\x08\x65ndpointB\t\n\x07messageB\xba\x01\n!com.google.cloud.dialogflow.cx.v3B\x14ResponseMessageProtoP\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.protobuf.Struct", "google/protobuf/struct.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}"
62
32
  end
63
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."
64
36
  end
65
37
 
66
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/security_settings.proto
3
4
 
@@ -10,73 +11,32 @@ require 'google/api/resource_pb'
10
11
  require 'google/protobuf/empty_pb'
11
12
  require 'google/protobuf/field_mask_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/cloud/dialogflow/cx/v3/security_settings.proto", :syntax => :proto3) do
15
- add_message "google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest" do
16
- optional :name, :string, 1
17
- end
18
- add_message "google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest" do
19
- optional :security_settings, :message, 1, "google.cloud.dialogflow.cx.v3.SecuritySettings"
20
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
21
- end
22
- add_message "google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest" do
23
- optional :parent, :string, 1
24
- optional :page_size, :int32, 2
25
- optional :page_token, :string, 3
26
- end
27
- add_message "google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse" do
28
- repeated :security_settings, :message, 1, "google.cloud.dialogflow.cx.v3.SecuritySettings"
29
- optional :next_page_token, :string, 2
30
- end
31
- add_message "google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest" do
32
- optional :parent, :string, 1
33
- optional :security_settings, :message, 2, "google.cloud.dialogflow.cx.v3.SecuritySettings"
34
- end
35
- add_message "google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest" do
36
- optional :name, :string, 1
37
- end
38
- add_message "google.cloud.dialogflow.cx.v3.SecuritySettings" do
39
- optional :name, :string, 1
40
- optional :display_name, :string, 2
41
- optional :redaction_strategy, :enum, 3, "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy"
42
- optional :redaction_scope, :enum, 4, "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope"
43
- optional :inspect_template, :string, 9
44
- optional :deidentify_template, :string, 17
45
- repeated :purge_data_types, :enum, 8, "google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType"
46
- optional :audio_export_settings, :message, 12, "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings"
47
- optional :insights_export_settings, :message, 13, "google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings"
48
- oneof :data_retention do
49
- optional :retention_window_days, :int32, 6
50
- end
51
- end
52
- add_message "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings" do
53
- optional :gcs_bucket, :string, 1
54
- optional :audio_export_pattern, :string, 2
55
- optional :enable_audio_redaction, :bool, 3
56
- optional :audio_format, :enum, 4, "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat"
57
- end
58
- add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat" do
59
- value :AUDIO_FORMAT_UNSPECIFIED, 0
60
- value :MULAW, 1
61
- value :MP3, 2
62
- value :OGG, 3
63
- end
64
- add_message "google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings" do
65
- optional :enable_insights_export, :bool, 1
66
- end
67
- add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy" do
68
- value :REDACTION_STRATEGY_UNSPECIFIED, 0
69
- value :REDACT_WITH_SERVICE, 1
70
- end
71
- add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope" do
72
- value :REDACTION_SCOPE_UNSPECIFIED, 0
73
- value :REDACT_DISK_STORAGE, 2
74
- end
75
- add_enum "google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType" do
76
- value :PURGE_DATA_TYPE_UNSPECIFIED, 0
77
- value :DIALOGFLOW_HISTORY, 1
14
+
15
+ descriptor_data = "\n5google/cloud/dialogflow/cx/v3/security_settings.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\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"^\n\x1aGetSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\xa6\x01\n\x1dUpdateSecuritySettingsRequest\x12O\n\x11security_settings\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x88\x01\n\x1bListSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n\x1cListSecuritySettingsResponse\x12J\n\x11security_settings\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettings\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x01\n\x1d\x43reateSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12O\n\x11security_settings\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\"a\n\x1d\x44\x65leteSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\x95\x0b\n\x10SecuritySettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12]\n\x12redaction_strategy\x18\x03 \x01(\x0e\x32\x41.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy\x12W\n\x0fredaction_scope\x18\x04 \x01(\x0e\x32>.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope\x12\x41\n\x10inspect_template\x18\t \x01(\tB\'\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12G\n\x13\x64\x65identify_template\x18\x11 \x01(\tB*\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\x12\x1f\n\x15retention_window_days\x18\x06 \x01(\x05H\x00\x12W\n\x10purge_data_types\x18\x08 \x03(\x0e\x32=.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType\x12\x62\n\x15\x61udio_export_settings\x18\x0c \x01(\x0b\x32\x43.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings\x12h\n\x18insights_export_settings\x18\r \x01(\x0b\x32\x46.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings\x1a\x98\x02\n\x13\x41udioExportSettings\x12\x12\n\ngcs_bucket\x18\x01 \x01(\t\x12\x1c\n\x14\x61udio_export_pattern\x18\x02 \x01(\t\x12\x1e\n\x16\x65nable_audio_redaction\x18\x03 \x01(\x08\x12\x65\n\x0c\x61udio_format\x18\x04 \x01(\x0e\x32O.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat\"H\n\x0b\x41udioFormat\x12\x1c\n\x18\x41UDIO_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05MULAW\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x07\n\x03OGG\x10\x03\x1a\x38\n\x16InsightsExportSettings\x12\x1e\n\x16\x65nable_insights_export\x18\x01 \x01(\x08\"P\n\x11RedactionStrategy\x12\"\n\x1eREDACTION_STRATEGY_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_WITH_SERVICE\x10\x01\"J\n\x0eRedactionScope\x12\x1f\n\x1bREDACTION_SCOPE_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_DISK_STORAGE\x10\x02\"H\n\rPurgeDataType\x12\x1f\n\x1bPURGE_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44IALOGFLOW_HISTORY\x10\x01:}\xea\x41z\n*dialogflow.googleapis.com/SecuritySettings\x12Lprojects/{project}/locations/{location}/securitySettings/{security_settings}B\x10\n\x0e\x64\x61ta_retention2\xef\t\n\x17SecuritySettingsService\x12\xf3\x01\n\x16\x43reateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"j\x82\xd3\xe4\x93\x02I\"4/v3/{parent=projects/*/locations/*}/securitySettings:\x11security_settings\xda\x41\x18parent,security_settings\x12\xc6\x01\n\x13GetSecuritySettings\x12\x39.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x12\x8b\x02\n\x16UpdateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"\x81\x01\x82\xd3\xe4\x93\x02[2F/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}:\x11security_settings\xda\x41\x1dsecurity_settings,update_mask\x12\xd6\x01\n\x14ListSecuritySettings\x12:.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest\x1a;.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*}/securitySettings\xda\x41\x06parent\x12\xb3\x01\n\x16\x44\x65leteSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xe2\x04\n!com.google.cloud.dialogflow.cx.v3B\x15SecuritySettingsProtoP\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\x41\xc8\x01\n\"dlp.googleapis.com/InspectTemplate\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\xea\x41\xd7\x01\n%dlp.googleapis.com/DeidentifyTemplate\x12[organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}\x12Qprojects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
78
36
  end
79
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
80
40
  end
81
41
 
82
42
  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 == Client.configure.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
@@ -699,7 +699,9 @@ module Google
699
699
  class Configuration
700
700
  extend ::Gapic::Config
701
701
 
702
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
702
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
703
+
704
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
703
705
  config_attr :credentials, nil do |value|
704
706
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
707
  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 == Client.configure.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
@@ -563,7 +563,9 @@ module Google
563
563
  class Configuration
564
564
  extend ::Gapic::Config
565
565
 
566
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
566
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
567
+
568
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
567
569
  config_attr :credentials, nil do |value|
568
570
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
569
571
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_security_settings_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
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_security_settings_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
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_update_security_settings_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
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_list_security_settings_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
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_security_settings_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  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/session_entity_type.proto
3
4
 
@@ -11,42 +12,33 @@ require 'google/cloud/dialogflow/cx/v3/entity_type_pb'
11
12
  require 'google/protobuf/empty_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/dialogflow/cx/v3/session_entity_type.proto", :syntax => :proto3) do
16
- add_message "google.cloud.dialogflow.cx.v3.SessionEntityType" do
17
- optional :name, :string, 1
18
- optional :entity_override_mode, :enum, 3, "google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode"
19
- repeated :entities, :message, 4, "google.cloud.dialogflow.cx.v3.EntityType.Entity"
20
- end
21
- add_enum "google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode" do
22
- value :ENTITY_OVERRIDE_MODE_UNSPECIFIED, 0
23
- value :ENTITY_OVERRIDE_MODE_OVERRIDE, 1
24
- value :ENTITY_OVERRIDE_MODE_SUPPLEMENT, 2
25
- end
26
- add_message "google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest" do
27
- optional :parent, :string, 1
28
- optional :page_size, :int32, 2
29
- optional :page_token, :string, 3
30
- end
31
- add_message "google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse" do
32
- repeated :session_entity_types, :message, 1, "google.cloud.dialogflow.cx.v3.SessionEntityType"
33
- optional :next_page_token, :string, 2
34
- end
35
- add_message "google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest" do
36
- optional :name, :string, 1
37
- end
38
- add_message "google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest" do
39
- optional :parent, :string, 1
40
- optional :session_entity_type, :message, 2, "google.cloud.dialogflow.cx.v3.SessionEntityType"
41
- end
42
- add_message "google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest" do
43
- optional :session_entity_type, :message, 1, "google.cloud.dialogflow.cx.v3.SessionEntityType"
44
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
45
- end
46
- add_message "google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest" do
47
- optional :name, :string, 1
15
+
16
+ descriptor_data = "\n7google/cloud/dialogflow/cx/v3/session_entity_type.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/google/cloud/dialogflow/cx/v3/entity_type.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xf5\x04\n\x11SessionEntityType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x66\n\x14\x65ntity_override_mode\x18\x03 \x01(\x0e\x32\x43.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideModeB\x03\xe0\x41\x02\x12G\n\x08\x65ntities\x18\x04 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.EntityType.EntityB\x03\xe0\x41\x02\"\x82\x01\n\x12\x45ntityOverrideMode\x12$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x45NTITY_OVERRIDE_MODE_OVERRIDE\x10\x01\x12#\n\x1f\x45NTITY_OVERRIDE_MODE_SUPPLEMENT\x10\x02:\x96\x02\xea\x41\x92\x02\n+dialogflow.googleapis.com/SessionEntityType\x12\x63projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}\x12~projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}\"\x8b\x01\n\x1dListSessionEntityTypesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x89\x01\n\x1eListSessionEntityTypesResponse\x12N\n\x14session_entity_types\x18\x01 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"`\n\x1bGetSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType\"\xb9\x01\n\x1e\x43reateSessionEntityTypeRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+dialogflow.googleapis.com/SessionEntityType\x12R\n\x13session_entity_type\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityTypeB\x03\xe0\x41\x02\"\xa5\x01\n\x1eUpdateSessionEntityTypeRequest\x12R\n\x13session_entity_type\x18\x01 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.SessionEntityTypeB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"c\n\x1e\x44\x65leteSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType2\xc5\x0e\n\x12SessionEntityTypes\x12\xc3\x02\n\x16ListSessionEntityTypes\x12<.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest\x1a=.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse\"\xab\x01\x82\xd3\xe4\x93\x02\x9b\x01\x12\x43/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypesZT\x12R/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes\xda\x41\x06parent\x12\xb0\x02\n\x14GetSessionEntityType\x12:.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\xa9\x01\x82\xd3\xe4\x93\x02\x9b\x01\x12\x43/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}ZT\x12R/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}\xda\x41\x04name\x12\xf6\x02\n\x17\x43reateSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\xe9\x01\x82\xd3\xe4\x93\x02\xc5\x01\"C/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes:\x13session_entity_typeZi\"R/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes:\x13session_entity_type\xda\x41\x1aparent,session_entity_type\x12\xa3\x03\n\x17UpdateSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest\x1a\x30.google.cloud.dialogflow.cx.v3.SessionEntityType\"\x96\x02\x82\xd3\xe4\x93\x02\xed\x01\x32W/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}:\x13session_entity_typeZ}2f/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}:\x13session_entity_type\xda\x41\x1fsession_entity_type,update_mask\x12\x9c\x02\n\x17\x44\x65leteSessionEntityType\x12=.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest\x1a\x16.google.protobuf.Empty\"\xa9\x01\x82\xd3\xe4\x93\x02\x9b\x01*C/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}ZT*R/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16SessionEntityTypeProtoP\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"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.cloud.dialogflow.cx.v3.EntityType.Entity", "google/cloud/dialogflow/cx/v3/entity_type.proto"],
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}"
48
38
  end
49
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."
50
42
  end
51
43
 
52
44
  module Google
@@ -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 == Client.configure.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
@@ -714,7 +714,9 @@ module Google
714
714
  class Configuration
715
715
  extend ::Gapic::Config
716
716
 
717
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
717
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
718
+
719
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
718
720
  config_attr :credentials, nil do |value|
719
721
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
720
722
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -578,7 +578,9 @@ module Google
578
578
  class Configuration
579
579
  extend ::Gapic::Config
580
580
 
581
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
581
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
582
+
583
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
582
584
  config_attr :credentials, nil do |value|
583
585
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
584
586
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_list_session_entity_types_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
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_session_entity_type_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
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_session_entity_type_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
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_session_entity_type_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
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_session_entity_type_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end