google-cloud-dialogflow-cx-v3 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +1 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +44 -25
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -15
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +44 -25
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +43 -38
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +102 -68
  11. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +1 -1
  12. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +32 -6
  14. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +32 -6
  15. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +30 -14
  16. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +32 -8
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +32 -8
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +30 -14
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +1 -1
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +43 -21
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +12 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +43 -21
  24. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +43 -38
  25. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +70 -44
  26. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +50 -27
  28. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -15
  29. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +50 -27
  30. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +43 -38
  31. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +86 -56
  32. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +1 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +38 -21
  34. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +38 -21
  35. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +70 -44
  36. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +47 -26
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +47 -26
  40. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +43 -38
  41. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +94 -62
  42. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +1 -1
  44. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +1 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/generator_pb.rb +2 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +35 -12
  47. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +35 -12
  48. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +54 -32
  49. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +1 -1
  50. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +41 -19
  52. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +12 -15
  53. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +41 -19
  54. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +43 -38
  55. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +70 -44
  56. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +1 -1
  57. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +37 -14
  58. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +37 -14
  59. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +54 -32
  60. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +35 -12
  62. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +35 -12
  63. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +54 -32
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +54 -29
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +54 -29
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +54 -32
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +5 -1
  68. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +40 -16
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +40 -14
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +47 -26
  71. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +1 -1
  72. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +59 -38
  73. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -15
  74. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +59 -38
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +43 -38
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +110 -74
  77. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
  78. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +43 -21
  79. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +43 -21
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +54 -32
  81. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  82. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  83. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -1
  84. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +44 -22
  85. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -15
  86. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +44 -22
  87. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +43 -38
  88. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +70 -44
  89. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +1 -1
  90. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +35 -12
  91. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +35 -12
  92. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +54 -32
  93. data/proto_docs/google/api/client.rb +39 -0
  94. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +1 -1
  95. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -20
  96. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +6 -0
  97. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +5 -5
  98. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +11 -13
  99. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +16 -17
  100. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +26 -28
  101. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +15 -19
  102. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +28 -27
  103. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +2 -2
  104. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +2 -2
  105. data/proto_docs/google/cloud/dialogflow/cx/v3/generator.rb +41 -8
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +19 -19
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +33 -33
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +2 -1
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +14 -14
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +107 -22
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +30 -28
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +41 -43
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +16 -18
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +19 -19
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +24 -25
  116. data/proto_docs/google/longrunning/operations.rb +19 -14
  117. metadata +5 -5
@@ -7,7 +7,7 @@ require 'google/protobuf'
7
7
  require 'google/api/field_behavior_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n9google/cloud/dialogflow/cx/v3/data_store_connection.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\"p\n\x13\x44\x61taStoreConnection\x12\x45\n\x0f\x64\x61ta_store_type\x18\x01 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.DataStoreType\x12\x12\n\ndata_store\x18\x02 \x01(\t\"\xa2\x12\n\x1a\x44\x61taStoreConnectionSignals\x12|\n\x1brewriter_model_call_signals\x18\x01 \x01(\x0b\x32R.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignalsB\x03\xe0\x41\x01\x12\x1c\n\x0frewritten_query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x65\n\x0fsearch_snippets\x18\x03 \x03(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetB\x03\xe0\x41\x01\x12\x8d\x01\n$answer_generation_model_call_signals\x18\x04 \x01(\x0b\x32Z.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignalsB\x03\xe0\x41\x01\x12\x13\n\x06\x61nswer\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x0c\x61nswer_parts\x18\x06 \x03(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartB\x03\xe0\x41\x01\x12\x63\n\x0e\x63ited_snippets\x18\x07 \x03(\x0b\x32\x46.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetB\x03\xe0\x41\x01\x12j\n\x11grounding_signals\x18\x08 \x01(\x0b\x32J.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsB\x03\xe0\x41\x01\x12\x64\n\x0esafety_signals\x18\t \x01(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsB\x03\xe0\x41\x01\x1aX\n\x18RewriterModelCallSignals\x12\x17\n\x0frendered_prompt\x18\x01 \x01(\t\x12\x14\n\x0cmodel_output\x18\x02 \x01(\t\x12\r\n\x05model\x18\x03 \x01(\t\x1aK\n\rSearchSnippet\x12\x16\n\x0e\x64ocument_title\x18\x01 \x01(\t\x12\x14\n\x0c\x64ocument_uri\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x1a`\n AnswerGenerationModelCallSignals\x12\x17\n\x0frendered_prompt\x18\x01 \x01(\t\x12\x14\n\x0cmodel_output\x18\x02 \x01(\t\x12\r\n\x05model\x18\x03 \x01(\t\x1a\x36\n\nAnswerPart\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x1a\n\x12supporting_indices\x18\x02 \x03(\x05\x1a\x86\x01\n\x0c\x43itedSnippet\x12_\n\x0esearch_snippet\x18\x01 \x01(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet\x12\x15\n\rsnippet_index\x18\x02 \x01(\x05\x1a\xdd\x03\n\x10GroundingSignals\x12n\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32\\.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision\x12n\n\x05score\x18\x02 \x01(\x0e\x32_.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket\"m\n\x11GroundingDecision\x12\"\n\x1eGROUNDING_DECISION_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41\x43\x43\x45PTED_BY_GROUNDING\x10\x01\x12\x19\n\x15REJECTED_BY_GROUNDING\x10\x02\"z\n\x14GroundingScoreBucket\x12&\n\"GROUNDING_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x0c\n\x08VERY_LOW\x10\x01\x12\x07\n\x03LOW\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\r\n\tVERY_HIGH\x10\x06\x1a\x99\x04\n\rSafetySignals\x12h\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32V.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision\x12v\n\x13\x62\x61nned_phrase_match\x18\x02 \x01(\x0e\x32Y.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch\x12\x1d\n\x15matched_banned_phrase\x18\x03 \x01(\t\"m\n\x0eSafetyDecision\x12\x1f\n\x1bSAFETY_DECISION_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41\x43\x43\x45PTED_BY_SAFETY_CHECK\x10\x01\x12\x1c\n\x18REJECTED_BY_SAFETY_CHECK\x10\x02\"\x97\x01\n\x11\x42\x61nnedPhraseMatch\x12#\n\x1f\x42\x41NNED_PHRASE_MATCH_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x42\x41NNED_PHRASE_MATCH_NONE\x10\x01\x12\x1d\n\x19\x42\x41NNED_PHRASE_MATCH_QUERY\x10\x02\x12 \n\x1c\x42\x41NNED_PHRASE_MATCH_RESPONSE\x10\x03*b\n\rDataStoreType\x12\x1f\n\x1b\x44\x41TA_STORE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPUBLIC_WEB\x10\x01\x12\x10\n\x0cUNSTRUCTURED\x10\x02\x12\x0e\n\nSTRUCTURED\x10\x03\x42\xbe\x01\n!com.google.cloud.dialogflow.cx.v3B\x18\x44\x61taStoreConnectionProtoP\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"
10
+ descriptor_data = "\n9google/cloud/dialogflow/cx/v3/data_store_connection.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\"p\n\x13\x44\x61taStoreConnection\x12\x45\n\x0f\x64\x61ta_store_type\x18\x01 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.DataStoreType\x12\x12\n\ndata_store\x18\x02 \x01(\t\"\xa2\x12\n\x1a\x44\x61taStoreConnectionSignals\x12|\n\x1brewriter_model_call_signals\x18\x01 \x01(\x0b\x32R.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignalsB\x03\xe0\x41\x01\x12\x1c\n\x0frewritten_query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x65\n\x0fsearch_snippets\x18\x03 \x03(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetB\x03\xe0\x41\x01\x12\x8d\x01\n$answer_generation_model_call_signals\x18\x04 \x01(\x0b\x32Z.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignalsB\x03\xe0\x41\x01\x12\x13\n\x06\x61nswer\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x0c\x61nswer_parts\x18\x06 \x03(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartB\x03\xe0\x41\x01\x12\x63\n\x0e\x63ited_snippets\x18\x07 \x03(\x0b\x32\x46.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetB\x03\xe0\x41\x01\x12j\n\x11grounding_signals\x18\x08 \x01(\x0b\x32J.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsB\x03\xe0\x41\x01\x12\x64\n\x0esafety_signals\x18\t \x01(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsB\x03\xe0\x41\x01\x1aX\n\x18RewriterModelCallSignals\x12\x17\n\x0frendered_prompt\x18\x01 \x01(\t\x12\x14\n\x0cmodel_output\x18\x02 \x01(\t\x12\r\n\x05model\x18\x03 \x01(\t\x1aK\n\rSearchSnippet\x12\x16\n\x0e\x64ocument_title\x18\x01 \x01(\t\x12\x14\n\x0c\x64ocument_uri\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x1a`\n AnswerGenerationModelCallSignals\x12\x17\n\x0frendered_prompt\x18\x01 \x01(\t\x12\x14\n\x0cmodel_output\x18\x02 \x01(\t\x12\r\n\x05model\x18\x03 \x01(\t\x1a\x36\n\nAnswerPart\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x1a\n\x12supporting_indices\x18\x02 \x03(\x05\x1a\x86\x01\n\x0c\x43itedSnippet\x12_\n\x0esearch_snippet\x18\x01 \x01(\x0b\x32G.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet\x12\x15\n\rsnippet_index\x18\x02 \x01(\x05\x1a\xdd\x03\n\x10GroundingSignals\x12n\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32\\.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision\x12n\n\x05score\x18\x02 \x01(\x0e\x32_.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket\"m\n\x11GroundingDecision\x12\"\n\x1eGROUNDING_DECISION_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41\x43\x43\x45PTED_BY_GROUNDING\x10\x01\x12\x19\n\x15REJECTED_BY_GROUNDING\x10\x02\"z\n\x14GroundingScoreBucket\x12&\n\"GROUNDING_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x0c\n\x08VERY_LOW\x10\x01\x12\x07\n\x03LOW\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\r\n\tVERY_HIGH\x10\x06\x1a\x99\x04\n\rSafetySignals\x12h\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32V.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision\x12v\n\x13\x62\x61nned_phrase_match\x18\x02 \x01(\x0e\x32Y.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch\x12\x1d\n\x15matched_banned_phrase\x18\x03 \x01(\t\"m\n\x0eSafetyDecision\x12\x1f\n\x1bSAFETY_DECISION_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41\x43\x43\x45PTED_BY_SAFETY_CHECK\x10\x01\x12\x1c\n\x18REJECTED_BY_SAFETY_CHECK\x10\x02\"\x97\x01\n\x11\x42\x61nnedPhraseMatch\x12#\n\x1f\x42\x41NNED_PHRASE_MATCH_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x42\x41NNED_PHRASE_MATCH_NONE\x10\x01\x12\x1d\n\x19\x42\x41NNED_PHRASE_MATCH_QUERY\x10\x02\x12 \n\x1c\x42\x41NNED_PHRASE_MATCH_RESPONSE\x10\x03*b\n\rDataStoreType\x12\x1f\n\x1b\x44\x41TA_STORE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPUBLIC_WEB\x10\x01\x12\x10\n\x0cUNSTRUCTURED\x10\x02\x12\x0e\n\nSTRUCTURED\x10\x03\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x18\x44\x61taStoreConnectionProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
11
11
 
12
12
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
@@ -164,14 +164,26 @@ module Google
164
164
  universe_domain: @config.universe_domain,
165
165
  channel_args: @config.channel_args,
166
166
  interceptors: @config.interceptors,
167
- channel_pool_config: @config.channel_pool
167
+ channel_pool_config: @config.channel_pool,
168
+ logger: @config.logger
168
169
  )
169
170
 
171
+ @deployments_stub.stub_logger&.info do |entry|
172
+ entry.set_system_name
173
+ entry.set_service
174
+ entry.message = "Created client for #{entry.service}"
175
+ entry.set_credentials_fields credentials
176
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
177
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
178
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
179
+ end
180
+
170
181
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
171
182
  config.credentials = credentials
172
183
  config.quota_project = @quota_project_id
173
184
  config.endpoint = @deployments_stub.endpoint
174
185
  config.universe_domain = @deployments_stub.universe_domain
186
+ config.logger = @deployments_stub.logger if config.respond_to? :logger=
175
187
  end
176
188
  end
177
189
 
@@ -182,6 +194,15 @@ module Google
182
194
  #
183
195
  attr_reader :location_client
184
196
 
197
+ ##
198
+ # The logger used for request/response debug logging.
199
+ #
200
+ # @return [Logger]
201
+ #
202
+ def logger
203
+ @deployments_stub.logger
204
+ end
205
+
185
206
  # Service calls
186
207
 
187
208
  ##
@@ -205,9 +226,8 @@ module Google
205
226
  #
206
227
  # @param parent [::String]
207
228
  # Required. The {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} to
208
- # list all environments for. Format: `projects/<Project
209
- # ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
210
- # ID>`.
229
+ # list all environments for. Format:
230
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
211
231
  # @param page_size [::Integer]
212
232
  # The maximum number of items to return in a single page. By default 20 and
213
233
  # at most 100.
@@ -278,7 +298,7 @@ module Google
278
298
  @deployments_stub.call_rpc :list_deployments, request, options: options do |response, operation|
279
299
  response = ::Gapic::PagedEnumerable.new @deployments_stub, :list_deployments, request, response, operation, options
280
300
  yield response, operation if block_given?
281
- return response
301
+ throw :response, response
282
302
  end
283
303
  rescue ::GRPC::BadStatus => e
284
304
  raise ::Google::Cloud::Error.from_error(e)
@@ -306,8 +326,7 @@ module Google
306
326
  # @param name [::String]
307
327
  # Required. The name of the
308
328
  # {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployment}. Format:
309
- # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
310
- # ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
329
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`.
311
330
  #
312
331
  # @yield [response, operation] Access the result along with the RPC operation
313
332
  # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::Deployment]
@@ -368,7 +387,6 @@ module Google
368
387
 
369
388
  @deployments_stub.call_rpc :get_deployment, request, options: options do |response, operation|
370
389
  yield response, operation if block_given?
371
- return response
372
390
  end
373
391
  rescue ::GRPC::BadStatus => e
374
392
  raise ::Google::Cloud::Error.from_error(e)
@@ -457,6 +475,11 @@ module Google
457
475
  # default endpoint URL. The default value of nil uses the environment
458
476
  # universe (usually the default "googleapis.com" universe).
459
477
  # @return [::String,nil]
478
+ # @!attribute [rw] logger
479
+ # A custom logger to use for request/response debug logging, or the value
480
+ # `:default` (the default) to construct a default logger, or `nil` to
481
+ # explicitly disable logging.
482
+ # @return [::Logger,:default,nil]
460
483
  #
461
484
  class Configuration
462
485
  extend ::Gapic::Config
@@ -481,6 +504,7 @@ module Google
481
504
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
482
505
  config_attr :quota_project, nil, ::String, nil
483
506
  config_attr :universe_domain, nil, ::String, nil
507
+ config_attr :logger, :default, ::Logger, nil, :default
484
508
 
485
509
  # @private
486
510
  def initialize parent_config = nil
@@ -157,15 +157,27 @@ module Google
157
157
  endpoint: @config.endpoint,
158
158
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
159
159
  universe_domain: @config.universe_domain,
160
- credentials: credentials
160
+ credentials: credentials,
161
+ logger: @config.logger
161
162
  )
162
163
 
164
+ @deployments_stub.logger(stub: true)&.info do |entry|
165
+ entry.set_system_name
166
+ entry.set_service
167
+ entry.message = "Created client for #{entry.service}"
168
+ entry.set_credentials_fields credentials
169
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
170
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
171
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
172
+ end
173
+
163
174
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
164
175
  config.credentials = credentials
165
176
  config.quota_project = @quota_project_id
166
177
  config.endpoint = @deployments_stub.endpoint
167
178
  config.universe_domain = @deployments_stub.universe_domain
168
179
  config.bindings_override = @config.bindings_override
180
+ config.logger = @deployments_stub.logger if config.respond_to? :logger=
169
181
  end
170
182
  end
171
183
 
@@ -176,6 +188,15 @@ module Google
176
188
  #
177
189
  attr_reader :location_client
178
190
 
191
+ ##
192
+ # The logger used for request/response debug logging.
193
+ #
194
+ # @return [Logger]
195
+ #
196
+ def logger
197
+ @deployments_stub.logger
198
+ end
199
+
179
200
  # Service calls
180
201
 
181
202
  ##
@@ -199,9 +220,8 @@ module Google
199
220
  #
200
221
  # @param parent [::String]
201
222
  # Required. The {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} to
202
- # list all environments for. Format: `projects/<Project
203
- # ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
204
- # ID>`.
223
+ # list all environments for. Format:
224
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
205
225
  # @param page_size [::Integer]
206
226
  # The maximum number of items to return in a single page. By default 20 and
207
227
  # at most 100.
@@ -265,7 +285,7 @@ module Google
265
285
  @deployments_stub.list_deployments request, options do |result, operation|
266
286
  result = ::Gapic::Rest::PagedEnumerable.new @deployments_stub, :list_deployments, "deployments", request, result, options
267
287
  yield result, operation if block_given?
268
- return result
288
+ throw :response, result
269
289
  end
270
290
  rescue ::Gapic::Rest::Error => e
271
291
  raise ::Google::Cloud::Error.from_error(e)
@@ -293,8 +313,7 @@ module Google
293
313
  # @param name [::String]
294
314
  # Required. The name of the
295
315
  # {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployment}. Format:
296
- # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
297
- # ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
316
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`.
298
317
  # @yield [result, operation] Access the result along with the TransportOperation object
299
318
  # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::Deployment]
300
319
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -348,7 +367,6 @@ module Google
348
367
 
349
368
  @deployments_stub.get_deployment request, options do |result, operation|
350
369
  yield result, operation if block_given?
351
- return result
352
370
  end
353
371
  rescue ::Gapic::Rest::Error => e
354
372
  raise ::Google::Cloud::Error.from_error(e)
@@ -428,6 +446,11 @@ module Google
428
446
  # default endpoint URL. The default value of nil uses the environment
429
447
  # universe (usually the default "googleapis.com" universe).
430
448
  # @return [::String,nil]
449
+ # @!attribute [rw] logger
450
+ # A custom logger to use for request/response debug logging, or the value
451
+ # `:default` (the default) to construct a default logger, or `nil` to
452
+ # explicitly disable logging.
453
+ # @return [::Logger,:default,nil]
431
454
  #
432
455
  class Configuration
433
456
  extend ::Gapic::Config
@@ -456,6 +479,7 @@ module Google
456
479
  # by the host service.
457
480
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
458
481
  config_attr :bindings_override, {}, ::Hash, nil
482
+ config_attr :logger, :default, ::Logger, nil, :default
459
483
 
460
484
  # @private
461
485
  def initialize parent_config = nil
@@ -31,7 +31,8 @@ module Google
31
31
  # including transcoding, making the REST call, and deserialing the response.
32
32
  #
33
33
  class ServiceStub
34
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # @private
35
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
36
  # These require statements are intentionally placed here to initialize
36
37
  # the REST modules only when it's required.
37
38
  require "gapic/rest"
@@ -41,7 +42,9 @@ module Google
41
42
  universe_domain: universe_domain,
42
43
  credentials: credentials,
43
44
  numeric_enums: true,
44
- raise_faraday_errors: false
45
+ service_name: self.class,
46
+ raise_faraday_errors: false,
47
+ logger: logger
45
48
  end
46
49
 
47
50
  ##
@@ -62,6 +65,15 @@ module Google
62
65
  @client_stub.endpoint
63
66
  end
64
67
 
68
+ ##
69
+ # The logger used for request/response debug logging.
70
+ #
71
+ # @return [Logger]
72
+ #
73
+ def logger stub: false
74
+ stub ? @client_stub.stub_logger : @client_stub.logger
75
+ end
76
+
65
77
  ##
66
78
  # Baseline implementation for the list_deployments REST call
67
79
  #
@@ -88,16 +100,18 @@ module Google
88
100
 
89
101
  response = @client_stub.make_http_request(
90
102
  verb,
91
- uri: uri,
92
- body: body || "",
93
- params: query_string_params,
103
+ uri: uri,
104
+ body: body || "",
105
+ params: query_string_params,
106
+ method_name: "list_deployments",
94
107
  options: options
95
108
  )
96
109
  operation = ::Gapic::Rest::TransportOperation.new response
97
110
  result = ::Google::Cloud::Dialogflow::CX::V3::ListDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true
98
-
99
- yield result, operation if block_given?
100
- result
111
+ catch :response do
112
+ yield result, operation if block_given?
113
+ result
114
+ end
101
115
  end
102
116
 
103
117
  ##
@@ -126,16 +140,18 @@ module Google
126
140
 
127
141
  response = @client_stub.make_http_request(
128
142
  verb,
129
- uri: uri,
130
- body: body || "",
131
- params: query_string_params,
143
+ uri: uri,
144
+ body: body || "",
145
+ params: query_string_params,
146
+ method_name: "get_deployment",
132
147
  options: options
133
148
  )
134
149
  operation = ::Gapic::Rest::TransportOperation.new response
135
150
  result = ::Google::Cloud::Dialogflow::CX::V3::Deployment.decode_json response.body, ignore_unknown_fields: true
136
-
137
- yield result, operation if block_given?
138
- result
151
+ catch :response do
152
+ yield result, operation if block_given?
153
+ result
154
+ end
139
155
  end
140
156
 
141
157
  ##
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
14
14
  require 'google/protobuf/field_mask_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n/google/cloud/dialogflow/cx/v3/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/inline.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9a\x06\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\x41\n\x04kind\x18\x03 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.EntityType.KindB\x03\xe0\x41\x02\x12X\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode\x12\x42\n\x08\x65ntities\x18\x05 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.EntityType.Entity\x12R\n\x10\x65xcluded_phrases\x18\x06 \x03(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase\x12\x1f\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x12\x0e\n\x06redact\x18\t \x01(\x08\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\x1a$\n\x0e\x45xcludedPhrase\x12\x12\n\x05value\x18\x01 \x01(\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:{\xea\x41x\n$dialogflow.googleapis.com/EntityType\x12Pprojects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}\"\x90\x03\n\x18\x45xportEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x19\n\x0c\x65ntity_types\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1f\n\x10\x65ntity_types_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12*\n\x1b\x65ntity_types_content_inline\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\\\n\x0b\x64\x61ta_format\x18\x05 \x01(\x0e\x32\x42.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest.DataFormatB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x06 \x01(\tB\x03\xe0\x41\x01\"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\x05\x42\r\n\x0b\x64\x65stination\"\xa2\x01\n\x19\x45xportEntityTypesResponse\x12\x1a\n\x10\x65ntity_types_uri\x18\x01 \x01(\tH\x00\x12P\n\x14\x65ntity_types_content\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.InlineDestinationH\x00\x42\x17\n\x15\x65xported_entity_types\"\x1b\n\x19\x45xportEntityTypesMetadata\"\xeb\x03\n\x18ImportEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1a\n\x10\x65ntity_types_uri\x18\x02 \x01(\tH\x00\x12K\n\x14\x65ntity_types_content\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.cx.v3.InlineSourceH\x00\x12^\n\x0cmerge_option\x18\x04 \x01(\x0e\x32\x43.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOptionB\x03\xe0\x41\x02\x12H\n\x12target_entity_type\x18\x05 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"n\n\x0bMergeOption\x12\x1c\n\x18MERGE_OPTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07REPLACE\x10\x01\x12\t\n\x05MERGE\x10\x02\x12\n\n\x06RENAME\x10\x03\x12\x13\n\x0fREPORT_CONFLICT\x10\x04\x12\x08\n\x04KEEP\x10\x05\x42\x0e\n\x0c\x65ntity_types\"\xa3\x02\n\x19ImportEntityTypesResponse\x12?\n\x0c\x65ntity_types\x18\x01 \x03(\tB)\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12l\n\x15\x63onflicting_resources\x18\x02 \x01(\x0b\x32M.google.cloud.dialogflow.cx.v3.ImportEntityTypesResponse.ConflictingResources\x1aW\n\x14\x43onflictingResources\x12!\n\x19\x65ntity_type_display_names\x18\x01 \x03(\t\x12\x1c\n\x14\x65ntity_display_names\x18\x02 \x03(\t\"\x1b\n\x19ImportEntityTypesMetadata\"\x94\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"s\n\x17ListEntityTypesResponse\x12?\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb3\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x43\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xa6\x01\n\x17UpdateEntityTypeRequest\x12\x43\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"d\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xef\x0c\n\x0b\x45ntityTypes\x12\xb8\x01\n\rGetEntityType\x12\x33.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\x12\xd9\x01\n\x10\x43reateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"b\xda\x41\x12parent,entity_type\x82\xd3\xe4\x93\x02G\"8/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:\x0b\x65ntity_type\x12\xea\x01\n\x10UpdateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"s\xda\x41\x17\x65ntity_type,update_mask\x82\xd3\xe4\x93\x02S2D/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}:\x0b\x65ntity_type\x12\xab\x01\n\x10\x44\x65leteEntityType\x12\x36.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\x12\xcb\x01\n\x0fListEntityTypes\x12\x35.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest\x1a\x36.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v3/{parent=projects/*/locations/*/agents/*}/entityTypes\x12\xf1\x01\n\x11\x45xportEntityTypes\x12\x37.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x36\n\x19\x45xportEntityTypesResponse\x12\x19\x45xportEntityTypesMetadata\x82\xd3\xe4\x93\x02\x44\"?/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:export:\x01*\x12\xf1\x01\n\x11ImportEntityTypes\x12\x37.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x36\n\x19ImportEntityTypesResponse\x12\x19ImportEntityTypesMetadata\x82\xd3\xe4\x93\x02\x44\"?/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:import:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb5\x01\n!com.google.cloud.dialogflow.cx.v3B\x0f\x45ntityTypeProtoP\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
+ descriptor_data = "\n/google/cloud/dialogflow/cx/v3/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/inline.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9a\x06\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\x41\n\x04kind\x18\x03 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.EntityType.KindB\x03\xe0\x41\x02\x12X\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode\x12\x42\n\x08\x65ntities\x18\x05 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.EntityType.Entity\x12R\n\x10\x65xcluded_phrases\x18\x06 \x03(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase\x12\x1f\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x12\x0e\n\x06redact\x18\t \x01(\x08\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\x1a$\n\x0e\x45xcludedPhrase\x12\x12\n\x05value\x18\x01 \x01(\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:{\xea\x41x\n$dialogflow.googleapis.com/EntityType\x12Pprojects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}\"\x90\x03\n\x18\x45xportEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x19\n\x0c\x65ntity_types\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1f\n\x10\x65ntity_types_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12*\n\x1b\x65ntity_types_content_inline\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\\\n\x0b\x64\x61ta_format\x18\x05 \x01(\x0e\x32\x42.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest.DataFormatB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x06 \x01(\tB\x03\xe0\x41\x01\"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\x05\x42\r\n\x0b\x64\x65stination\"\xa2\x01\n\x19\x45xportEntityTypesResponse\x12\x1a\n\x10\x65ntity_types_uri\x18\x01 \x01(\tH\x00\x12P\n\x14\x65ntity_types_content\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.InlineDestinationH\x00\x42\x17\n\x15\x65xported_entity_types\"\x1b\n\x19\x45xportEntityTypesMetadata\"\xeb\x03\n\x18ImportEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1a\n\x10\x65ntity_types_uri\x18\x02 \x01(\tH\x00\x12K\n\x14\x65ntity_types_content\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.cx.v3.InlineSourceH\x00\x12^\n\x0cmerge_option\x18\x04 \x01(\x0e\x32\x43.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOptionB\x03\xe0\x41\x02\x12H\n\x12target_entity_type\x18\x05 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"n\n\x0bMergeOption\x12\x1c\n\x18MERGE_OPTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07REPLACE\x10\x01\x12\t\n\x05MERGE\x10\x02\x12\n\n\x06RENAME\x10\x03\x12\x13\n\x0fREPORT_CONFLICT\x10\x04\x12\x08\n\x04KEEP\x10\x05\x42\x0e\n\x0c\x65ntity_types\"\xa3\x02\n\x19ImportEntityTypesResponse\x12?\n\x0c\x65ntity_types\x18\x01 \x03(\tB)\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12l\n\x15\x63onflicting_resources\x18\x02 \x01(\x0b\x32M.google.cloud.dialogflow.cx.v3.ImportEntityTypesResponse.ConflictingResources\x1aW\n\x14\x43onflictingResources\x12!\n\x19\x65ntity_type_display_names\x18\x01 \x03(\t\x12\x1c\n\x14\x65ntity_display_names\x18\x02 \x03(\t\"\x1b\n\x19ImportEntityTypesMetadata\"\x94\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"s\n\x17ListEntityTypesResponse\x12?\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb3\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x43\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xa6\x01\n\x17UpdateEntityTypeRequest\x12\x43\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32).google.cloud.dialogflow.cx.v3.EntityTypeB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"d\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xef\x0c\n\x0b\x45ntityTypes\x12\xb8\x01\n\rGetEntityType\x12\x33.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\x12\xd9\x01\n\x10\x43reateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"b\xda\x41\x12parent,entity_type\x82\xd3\xe4\x93\x02G\"8/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:\x0b\x65ntity_type\x12\xea\x01\n\x10UpdateEntityType\x12\x36.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest\x1a).google.cloud.dialogflow.cx.v3.EntityType\"s\xda\x41\x17\x65ntity_type,update_mask\x82\xd3\xe4\x93\x02S2D/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}:\x0b\x65ntity_type\x12\xab\x01\n\x10\x44\x65leteEntityType\x12\x36.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}\x12\xcb\x01\n\x0fListEntityTypes\x12\x35.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest\x1a\x36.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v3/{parent=projects/*/locations/*/agents/*}/entityTypes\x12\xf1\x01\n\x11\x45xportEntityTypes\x12\x37.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x36\n\x19\x45xportEntityTypesResponse\x12\x19\x45xportEntityTypesMetadata\x82\xd3\xe4\x93\x02\x44\"?/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:export:\x01*\x12\xf1\x01\n\x11ImportEntityTypes\x12\x37.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x36\n\x19ImportEntityTypesResponse\x12\x19ImportEntityTypesMetadata\x82\xd3\xe4\x93\x02\x44\"?/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:import:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb2\x01\n!com.google.cloud.dialogflow.cx.v3B\x0f\x45ntityTypeProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20
 
@@ -171,14 +171,26 @@ module Google
171
171
  universe_domain: @config.universe_domain,
172
172
  channel_args: @config.channel_args,
173
173
  interceptors: @config.interceptors,
174
- channel_pool_config: @config.channel_pool
174
+ channel_pool_config: @config.channel_pool,
175
+ logger: @config.logger
175
176
  )
176
177
 
178
+ @entity_types_stub.stub_logger&.info do |entry|
179
+ entry.set_system_name
180
+ entry.set_service
181
+ entry.message = "Created client for #{entry.service}"
182
+ entry.set_credentials_fields credentials
183
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
184
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
185
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
186
+ end
187
+
177
188
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
178
189
  config.credentials = credentials
179
190
  config.quota_project = @quota_project_id
180
191
  config.endpoint = @entity_types_stub.endpoint
181
192
  config.universe_domain = @entity_types_stub.universe_domain
193
+ config.logger = @entity_types_stub.logger if config.respond_to? :logger=
182
194
  end
183
195
  end
184
196
 
@@ -196,6 +208,15 @@ module Google
196
208
  #
197
209
  attr_reader :location_client
198
210
 
211
+ ##
212
+ # The logger used for request/response debug logging.
213
+ #
214
+ # @return [Logger]
215
+ #
216
+ def logger
217
+ @entity_types_stub.logger
218
+ end
219
+
199
220
  # Service calls
200
221
 
201
222
  ##
@@ -218,8 +239,8 @@ module Google
218
239
  #
219
240
  # @param name [::String]
220
241
  # Required. The name of the entity type.
221
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
222
- # ID>/entityTypes/<Entity Type ID>`.
242
+ # Format:
243
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
223
244
  # @param language_code [::String]
224
245
  # The language to retrieve the entity type for. The following fields are
225
246
  # language dependent:
@@ -293,7 +314,6 @@ module Google
293
314
 
294
315
  @entity_types_stub.call_rpc :get_entity_type, request, options: options do |response, operation|
295
316
  yield response, operation if block_given?
296
- return response
297
317
  end
298
318
  rescue ::GRPC::BadStatus => e
299
319
  raise ::Google::Cloud::Error.from_error(e)
@@ -323,7 +343,7 @@ module Google
323
343
  #
324
344
  # @param parent [::String]
325
345
  # Required. The agent to create a entity type for.
326
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
346
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
327
347
  # @param entity_type [::Google::Cloud::Dialogflow::CX::V3::EntityType, ::Hash]
328
348
  # Required. The entity type to create.
329
349
  # @param language_code [::String]
@@ -398,7 +418,6 @@ module Google
398
418
 
399
419
  @entity_types_stub.call_rpc :create_entity_type, request, options: options do |response, operation|
400
420
  yield response, operation if block_given?
401
- return response
402
421
  end
403
422
  rescue ::GRPC::BadStatus => e
404
423
  raise ::Google::Cloud::Error.from_error(e)
@@ -502,7 +521,6 @@ module Google
502
521
 
503
522
  @entity_types_stub.call_rpc :update_entity_type, request, options: options do |response, operation|
504
523
  yield response, operation if block_given?
505
- return response
506
524
  end
507
525
  rescue ::GRPC::BadStatus => e
508
526
  raise ::Google::Cloud::Error.from_error(e)
@@ -532,8 +550,8 @@ module Google
532
550
  #
533
551
  # @param name [::String]
534
552
  # Required. The name of the entity type to delete.
535
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
536
- # ID>/entityTypes/<Entity Type ID>`.
553
+ # Format:
554
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
537
555
  # @param force [::Boolean]
538
556
  # This field has no effect for entity type not being used.
539
557
  # For entity types that are used by intents or pages:
@@ -607,7 +625,6 @@ module Google
607
625
 
608
626
  @entity_types_stub.call_rpc :delete_entity_type, request, options: options do |response, operation|
609
627
  yield response, operation if block_given?
610
- return response
611
628
  end
612
629
  rescue ::GRPC::BadStatus => e
613
630
  raise ::Google::Cloud::Error.from_error(e)
@@ -633,7 +650,7 @@ module Google
633
650
  #
634
651
  # @param parent [::String]
635
652
  # Required. The agent to list all entity types for.
636
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
653
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
637
654
  # @param language_code [::String]
638
655
  # The language to list entity types for. The following fields are language
639
656
  # dependent:
@@ -717,7 +734,7 @@ module Google
717
734
  @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
718
735
  response = ::Gapic::PagedEnumerable.new @entity_types_stub, :list_entity_types, request, response, operation, options
719
736
  yield response, operation if block_given?
720
- return response
737
+ throw :response, response
721
738
  end
722
739
  rescue ::GRPC::BadStatus => e
723
740
  raise ::Google::Cloud::Error.from_error(e)
@@ -743,12 +760,11 @@ module Google
743
760
  #
744
761
  # @param parent [::String]
745
762
  # Required. The name of the parent agent to export entity types.
746
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
747
- # ID>`.
763
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
748
764
  # @param entity_types [::Array<::String>]
749
765
  # Required. The name of the entity types to export.
750
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
751
- # ID>/entityTypes/<EntityType ID>`.
766
+ # Format:
767
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
752
768
  # @param entity_types_uri [::String]
753
769
  # Optional. The [Google Cloud
754
770
  # Storage](https://cloud.google.com/storage/docs/) URI to export the entity
@@ -846,7 +862,7 @@ module Google
846
862
  @entity_types_stub.call_rpc :export_entity_types, request, options: options do |response, operation|
847
863
  response = ::Gapic::Operation.new response, @operations_client, options: options
848
864
  yield response, operation if block_given?
849
- return response
865
+ throw :response, response
850
866
  end
851
867
  rescue ::GRPC::BadStatus => e
852
868
  raise ::Google::Cloud::Error.from_error(e)
@@ -872,7 +888,7 @@ module Google
872
888
  #
873
889
  # @param parent [::String]
874
890
  # Required. The agent to import the entity types into.
875
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
891
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
876
892
  # @param entity_types_uri [::String]
877
893
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
878
894
  # to import entity types from. The format of this URI must be
@@ -889,8 +905,8 @@ module Google
889
905
  # Required. Merge option for importing entity types.
890
906
  # @param target_entity_type [::String]
891
907
  # Optional. The target entity type to import into.
892
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
893
- # ID>/entity_types/<EntityType ID>`.
908
+ # Format:
909
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
894
910
  # If set, there should be only one entity type included in
895
911
  # [entity_types][google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.entity_types],
896
912
  # of which the type should match the type of the target entity type. All
@@ -964,7 +980,7 @@ module Google
964
980
  @entity_types_stub.call_rpc :import_entity_types, request, options: options do |response, operation|
965
981
  response = ::Gapic::Operation.new response, @operations_client, options: options
966
982
  yield response, operation if block_given?
967
- return response
983
+ throw :response, response
968
984
  end
969
985
  rescue ::GRPC::BadStatus => e
970
986
  raise ::Google::Cloud::Error.from_error(e)
@@ -1053,6 +1069,11 @@ module Google
1053
1069
  # default endpoint URL. The default value of nil uses the environment
1054
1070
  # universe (usually the default "googleapis.com" universe).
1055
1071
  # @return [::String,nil]
1072
+ # @!attribute [rw] logger
1073
+ # A custom logger to use for request/response debug logging, or the value
1074
+ # `:default` (the default) to construct a default logger, or `nil` to
1075
+ # explicitly disable logging.
1076
+ # @return [::Logger,:default,nil]
1056
1077
  #
1057
1078
  class Configuration
1058
1079
  extend ::Gapic::Config
@@ -1077,6 +1098,7 @@ module Google
1077
1098
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1078
1099
  config_attr :quota_project, nil, ::String, nil
1079
1100
  config_attr :universe_domain, nil, ::String, nil
1101
+ config_attr :logger, :default, ::Logger, nil, :default
1080
1102
 
1081
1103
  # @private
1082
1104
  def initialize parent_config = nil
@@ -125,14 +125,6 @@ module Google
125
125
  # Lists operations that match the specified filter in the request. If the
126
126
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
127
127
  #
128
- # NOTE: the `name` binding allows API services to override the binding
129
- # to use different resource name schemes, such as `users/*/operations`. To
130
- # override the binding, API services can add a binding such as
131
- # `"/v1/{name=users/*}/operations"` to their service configuration.
132
- # For backwards compatibility, the default name includes the operations
133
- # collection id, however overriding users must ensure the name binding
134
- # is the parent resource, without the operations collection id.
135
- #
136
128
  # @overload list_operations(request, options = nil)
137
129
  # Pass arguments to `list_operations` via a request object, either of type
138
130
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -222,7 +214,7 @@ module Google
222
214
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
223
215
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
224
216
  yield response, operation if block_given?
225
- return response
217
+ throw :response, response
226
218
  end
227
219
  rescue ::GRPC::BadStatus => e
228
220
  raise ::Google::Cloud::Error.from_error(e)
@@ -318,7 +310,7 @@ module Google
318
310
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
319
311
  response = ::Gapic::Operation.new response, @operations_client, options: options
320
312
  yield response, operation if block_given?
321
- return response
313
+ throw :response, response
322
314
  end
323
315
  rescue ::GRPC::BadStatus => e
324
316
  raise ::Google::Cloud::Error.from_error(e)
@@ -407,7 +399,6 @@ module Google
407
399
 
408
400
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
409
401
  yield response, operation if block_given?
410
- return response
411
402
  end
412
403
  rescue ::GRPC::BadStatus => e
413
404
  raise ::Google::Cloud::Error.from_error(e)
@@ -422,8 +413,9 @@ module Google
422
413
  # other methods to check whether the cancellation succeeded or whether the
423
414
  # operation completed despite cancellation. On successful cancellation,
424
415
  # the operation is not deleted; instead, it becomes an operation with
425
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
426
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
427
419
  #
428
420
  # @overload cancel_operation(request, options = nil)
429
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -502,7 +494,6 @@ module Google
502
494
 
503
495
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
504
496
  yield response, operation if block_given?
505
- return response
506
497
  end
507
498
  rescue ::GRPC::BadStatus => e
508
499
  raise ::Google::Cloud::Error.from_error(e)
@@ -600,7 +591,7 @@ module Google
600
591
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
601
592
  response = ::Gapic::Operation.new response, @operations_client, options: options
602
593
  yield response, operation if block_given?
603
- return response
594
+ throw :response, response
604
595
  end
605
596
  rescue ::GRPC::BadStatus => e
606
597
  raise ::Google::Cloud::Error.from_error(e)
@@ -689,6 +680,11 @@ module Google
689
680
  # default endpoint URL. The default value of nil uses the environment
690
681
  # universe (usually the default "googleapis.com" universe).
691
682
  # @return [::String,nil]
683
+ # @!attribute [rw] logger
684
+ # A custom logger to use for request/response debug logging, or the value
685
+ # `:default` (the default) to construct a default logger, or `nil` to
686
+ # explicitly disable logging.
687
+ # @return [::Logger,:default,nil]
692
688
  #
693
689
  class Configuration
694
690
  extend ::Gapic::Config
@@ -713,6 +709,7 @@ module Google
713
709
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
714
710
  config_attr :quota_project, nil, ::String, nil
715
711
  config_attr :universe_domain, nil, ::String, nil
712
+ config_attr :logger, :default, ::Logger, nil, :default
716
713
 
717
714
  # @private
718
715
  def initialize parent_config = nil