google-cloud-dialogflow-v2 0.32.0 → 0.32.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +7 -7
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +8 -8
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +9 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -7
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +8 -8
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +9 -0
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +2 -2
  11. data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
  12. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +7 -7
  13. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +8 -8
  14. data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +9 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +7 -7
  17. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +8 -8
  18. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +9 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +1 -1
  20. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +2 -2
  21. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +7 -7
  22. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +8 -8
  23. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +9 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
  25. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +7 -7
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +8 -8
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +9 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +7 -7
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +8 -8
  31. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +9 -0
  32. data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
  33. data/lib/google/cloud/dialogflow/v2/documents/client.rb +7 -7
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +8 -8
  35. data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +9 -0
  36. data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +7 -7
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +8 -8
  39. data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +9 -0
  40. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
  41. data/lib/google/cloud/dialogflow/v2/environments/client.rb +7 -7
  42. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +8 -8
  43. data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +9 -0
  44. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
  45. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -7
  46. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +8 -8
  47. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +9 -0
  48. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
  49. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +1 -1
  50. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/intents/client.rb +7 -7
  52. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +8 -8
  53. data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +9 -0
  54. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
  55. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +7 -7
  56. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +8 -8
  57. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +9 -0
  58. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
  59. data/lib/google/cloud/dialogflow/v2/participants/client.rb +7 -7
  60. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +8 -8
  61. data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +9 -0
  62. data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
  63. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +7 -7
  64. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +8 -8
  65. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +9 -0
  66. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -2
  67. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -7
  68. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +8 -8
  69. data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +9 -0
  70. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
  71. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  72. data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
  73. data/lib/google/cloud/dialogflow/v2/versions/client.rb +7 -7
  74. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +8 -8
  75. data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +9 -0
  76. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +1 -1
  77. data/proto_docs/google/protobuf/any.rb +2 -1
  78. metadata +2 -2
@@ -14,13 +14,13 @@ require 'google/protobuf/field_mask_pb'
14
14
  require 'google/protobuf/struct_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n,google/cloud/dialogflow/v2/entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc3\x05\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x03\xe0\x41\x02\x12Z\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x03\xe0\x41\x01\x12\x44\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x01\x12$\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02\"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03\"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:\xa7\x01\xea\x41\xa3\x01\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}\x12Gprojects/{project}/locations/{location}/agent/entityTypes/{entity_type}\"\xa3\x01\n\x16ListEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"n\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n\x17\x43reateEntityTypeRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12@\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xad\x01\n\x17UpdateEntityTypeRequest\x12@\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"U\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"\xb6\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x13\n\x11\x65ntity_type_batch\"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\"}\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1e\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xbc\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf2\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x92\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rentity_values\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\xd6\x19\n\x0b\x45ntityTypes\x12\x87\x02\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse\"\x8a\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{parent=projects/*/agent}/entityTypesZ7\x12\x35/v2/{parent=projects/*/locations/*/agent}/entityTypes\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xf2\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\x86\x01\x82\xd3\xe4\x93\x02\x64\x12)/v2/{name=projects/*/agent/entityTypes/*}Z7\x12\x35/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\xae\x02\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xbc\x01\x82\xd3\xe4\x93\x02~\")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_typeZD\"5/v2/{parent=projects/*/locations/*/agent}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x12\xb9\x02\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xc7\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_typeZP2A/v2/{entity_type.name=projects/*/locations/*/agent/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x12\xd2\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"q\x82\xd3\xe4\x93\x02\x64*)/v2/{name=projects/*/agent/entityTypes/*}Z7*5/v2/{name=projects/*/locations/*/agent/entityTypes/*}\xda\x41\x04name\x12\xd4\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xdf\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchUpdate:\x01*\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x12\xcb\x02\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xd6\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchDelete:\x01*\xda\x41\x18parent,entity_type_names\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchCreate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf2\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xfc\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x02\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchDelete:\x01*\xda\x41\x14parent,entity_values\xda\x41\"parent,entity_values,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
17
+ descriptor_data = "\n,google/cloud/dialogflow/v2/entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xca\x05\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12?\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x04\xe2\x41\x01\x02\x12[\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x04\xe2\x41\x01\x01\x12\x45\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x04\xe2\x41\x01\x01\x12%\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a\x35\n\x06\x45ntity\x12\x13\n\x05value\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08synonyms\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03\"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:\xa7\x01\xea\x41\xa3\x01\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}\x12Gprojects/{project}/locations/{location}/agent/entityTypes/{entity_type}\"\xa7\x01\n\x16ListEntityTypesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tpage_size\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"p\n\x14GetEntityTypeRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xb8\x01\n\x17\x43reateEntityTypeRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x41\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\xb0\x01\n\x17UpdateEntityTypeRequest\x12\x41\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x35\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\"V\n\x17\x44\x65leteEntityTypeRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\"\xb9\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1b\n\rlanguage_code\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x35\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\x42\x13\n\x11\x65ntity_type_batch\"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\"\x7f\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\x12$dialogflow.googleapis.com/EntityType\x12\x1f\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\"\xbf\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x45\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\xf6\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x45\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x35\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\"\x95\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1b\n\rentity_values\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\xd6\x19\n\x0b\x45ntityTypes\x12\x87\x02\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse\"\x8a\x01\xda\x41\x06parent\xda\x41\x14parent,language_code\x82\xd3\xe4\x93\x02\x64\x12)/v2/{parent=projects/*/agent}/entityTypesZ7\x12\x35/v2/{parent=projects/*/locations/*/agent}/entityTypes\x12\xf2\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\x86\x01\xda\x41\x04name\xda\x41\x12name,language_code\x82\xd3\xe4\x93\x02\x64\x12)/v2/{name=projects/*/agent/entityTypes/*}Z7\x12\x35/v2/{name=projects/*/locations/*/agent/entityTypes/*}\x12\xae\x02\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xbc\x01\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x82\xd3\xe4\x93\x02~\")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_typeZD\"5/v2/{parent=projects/*/locations/*/agent}/entityTypes:\x0b\x65ntity_type\x12\xb9\x02\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType\"\xc7\x01\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x82\xd3\xe4\x93\x02\x96\x01\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_typeZP2A/v2/{entity_type.name=projects/*/locations/*/agent/entityTypes/*}:\x0b\x65ntity_type\x12\xd2\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty\"q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x64*)/v2/{name=projects/*/agent/entityTypes/*}Z7*5/v2/{name=projects/*/locations/*/agent/entityTypes/*}\x12\xd4\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xdf\x01\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchUpdate:\x01*\x12\xcb\x02\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation\"\xd6\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x18parent,entity_type_names\x82\xd3\xe4\x93\x02\x82\x01\"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*ZF\"A/v2/{parent=projects/*/locations/*/agent}/entityTypes:batchDelete:\x01*\x12\xf2\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchCreate:\x01*\x12\xf2\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x83\x02\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\x12\xfc\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x02\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x14parent,entity_values\xda\x41\"parent,entity_values,language_code\x82\xd3\xe4\x93\x02\x98\x01\"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*ZQ\"L/v2/{parent=projects/*/locations/*/agent/entityTypes/*}/entities:batchDelete:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20
 
21
21
  begin
22
22
  pool.add_serialized_file(descriptor_data)
23
- rescue TypeError => e
23
+ rescue TypeError
24
24
  # Compatibility code: will be removed in the next major version.
25
25
  require 'google/protobuf/descriptor_pb'
26
26
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -159,13 +159,6 @@ module Google
159
159
  config.universe_domain = @config.universe_domain
160
160
  end
161
161
 
162
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
163
- config.credentials = credentials
164
- config.quota_project = @quota_project_id
165
- config.endpoint = @config.endpoint
166
- config.universe_domain = @config.universe_domain
167
- end
168
-
169
162
  @entity_types_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
171
164
  credentials: credentials,
@@ -176,6 +169,13 @@ module Google
176
169
  interceptors: @config.interceptors,
177
170
  channel_pool_config: @config.channel_pool
178
171
  )
172
+
173
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @entity_types_stub.endpoint
177
+ config.universe_domain = @entity_types_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -156,20 +156,20 @@ module Google
156
156
  config.universe_domain = @config.universe_domain
157
157
  end
158
158
 
159
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
- config.credentials = credentials
161
- config.quota_project = @quota_project_id
162
- config.endpoint = @config.endpoint
163
- config.universe_domain = @config.universe_domain
164
- config.bindings_override = @config.bindings_override
165
- end
166
-
167
159
  @entity_types_stub = ::Google::Cloud::Dialogflow::V2::EntityTypes::Rest::ServiceStub.new(
168
160
  endpoint: @config.endpoint,
169
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
170
162
  universe_domain: @config.universe_domain,
171
163
  credentials: credentials
172
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @entity_types_stub.endpoint
170
+ config.universe_domain = @entity_types_stub.universe_domain
171
+ config.bindings_override = @config.bindings_override
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the list_entity_types REST call
57
66
  #
@@ -15,13 +15,13 @@ require 'google/protobuf/field_mask_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n,google/cloud/dialogflow/v2/environment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a,google/cloud/dialogflow/v2/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\x05\n\x0b\x45nvironment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\ragent_version\x18\x03 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32-.google.cloud.dialogflow.v2.Environment.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x17text_to_speech_settings\x18\x07 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.TextToSpeechSettingsB\x03\xe0\x41\x01\x12\x41\n\x0b\x66ulfillment\x18\x08 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x03\xe0\x41\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STOPPED\x10\x01\x12\x0b\n\x07LOADING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03:\xaa\x01\xea\x41\xa6\x01\n%dialogflow.googleapis.com/Environment\x12\x33projects/{project}/agent/environments/{environment}\x12Hprojects/{project}/locations/{location}/agent/environments/{environment}\"\x9a\x03\n\x14TextToSpeechSettings\x12\"\n\x15\x65nable_text_to_speech\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12S\n\x15output_audio_encoding\x18\x02 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12u\n\x19synthesize_speech_configs\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.TextToSpeechSettings.SynthesizeSpeechConfigsEntryB\x03\xe0\x41\x01\x1ar\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\x02\x38\x01\"\x89\x01\n\x17ListEnvironmentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"r\n\x18ListEnvironmentsResponse\x12=\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15GetEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\xb9\x01\n\x18\x43reateEnvironmentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x41\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x03\xe0\x41\x02\x12\x1b\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xc9\x01\n\x18UpdateEnvironmentRequest\x12\x41\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x34\n\'allow_load_to_draft_and_discard_changes\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"W\n\x18\x44\x65leteEnvironmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\x8e\x01\n\x1cGetEnvironmentHistoryRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf9\x01\n\x12\x45nvironmentHistory\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x34.google.cloud.dialogflow.v2.EnvironmentHistory.EntryB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\x64\n\x05\x45ntry\x12\x15\n\ragent_version\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xcb\x0c\n\x0c\x45nvironments\x12\xf4\x01\n\x10ListEnvironments\x12\x33.google.cloud.dialogflow.v2.ListEnvironmentsRequest\x1a\x34.google.cloud.dialogflow.v2.ListEnvironmentsResponse\"u\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*/agent}/environmentsZ8\x12\x36/v2/{parent=projects/*/locations/*/agent}/environments\xda\x41\x06parent\x12\xda\x01\n\x0eGetEnvironment\x12\x31.google.cloud.dialogflow.v2.GetEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"l\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/agent/environments/*}Z8\x12\x36/v2/{name=projects/*/locations/*/agent/environments/*}\x12\xfc\x01\n\x11\x43reateEnvironment\x12\x34.google.cloud.dialogflow.v2.CreateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x87\x01\x82\xd3\xe4\x93\x02\x80\x01\"*/v2/{parent=projects/*/agent}/environments:\x0b\x65nvironmentZE\"6/v2/{parent=projects/*/locations/*/agent}/environments:\x0b\x65nvironment\x12\x94\x02\n\x11UpdateEnvironment\x12\x34.google.cloud.dialogflow.v2.UpdateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x32\x36/v2/{environment.name=projects/*/agent/environments/*}:\x0b\x65nvironmentZQ2B/v2/{environment.name=projects/*/locations/*/agent/environments/*}:\x0b\x65nvironment\x12\xcf\x01\n\x11\x44\x65leteEnvironment\x12\x34.google.cloud.dialogflow.v2.DeleteEnvironmentRequest\x1a\x16.google.protobuf.Empty\"l\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/agent/environments/*}Z8*6/v2/{name=projects/*/locations/*/agent/environments/*}\x12\x84\x02\n\x15GetEnvironmentHistory\x12\x38.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest\x1a..google.cloud.dialogflow.v2.EnvironmentHistory\"\x80\x01\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/agent/environments/*}/historyZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/history\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x45nvironmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
18
+ descriptor_data = "\n,google/cloud/dialogflow/v2/environment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/dialogflow/v2/audio_config.proto\x1a,google/cloud/dialogflow/v2/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x05\n\x0b\x45nvironment\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x41\n\ragent_version\x18\x03 \x01(\tB*\xe2\x41\x01\x01\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x42\n\x05state\x18\x04 \x01(\x0e\x32-.google.cloud.dialogflow.v2.Environment.StateB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12W\n\x17text_to_speech_settings\x18\x07 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.TextToSpeechSettingsB\x04\xe2\x41\x01\x01\x12\x42\n\x0b\x66ulfillment\x18\x08 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x04\xe2\x41\x01\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STOPPED\x10\x01\x12\x0b\n\x07LOADING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03:\xaa\x01\xea\x41\xa6\x01\n%dialogflow.googleapis.com/Environment\x12\x33projects/{project}/agent/environments/{environment}\x12Hprojects/{project}/locations/{location}/agent/environments/{environment}\"\x9e\x03\n\x14TextToSpeechSettings\x12#\n\x15\x65nable_text_to_speech\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12T\n\x15output_audio_encoding\x18\x02 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x04\xe2\x41\x01\x02\x12\x1f\n\x11sample_rate_hertz\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12v\n\x19synthesize_speech_configs\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.TextToSpeechSettings.SynthesizeSpeechConfigsEntryB\x04\xe2\x41\x01\x01\x1ar\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\x02\x38\x01\"\x8c\x01\n\x17ListEnvironmentsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"r\n\x18ListEnvironmentsResponse\x12=\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32\'.google.cloud.dialogflow.v2.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"U\n\x15GetEnvironmentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\xbc\x01\n\x18\x43reateEnvironmentRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\x12%dialogflow.googleapis.com/Environment\x12\x42\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x04\xe2\x41\x01\x02\x12\x1c\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\"\xcc\x01\n\x18UpdateEnvironmentRequest\x12\x42\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.EnvironmentB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x35\n\'allow_load_to_draft_and_discard_changes\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"X\n\x18\x44\x65leteEnvironmentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\"\x91\x01\n\x1cGetEnvironmentHistoryRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\xfc\x01\n\x12\x45nvironmentHistory\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12K\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x34.google.cloud.dialogflow.v2.EnvironmentHistory.EntryB\x04\xe2\x41\x01\x03\x12\x1d\n\x0fnext_page_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x1a\x64\n\x05\x45ntry\x12\x15\n\ragent_version\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xcb\x0c\n\x0c\x45nvironments\x12\xf4\x01\n\x10ListEnvironments\x12\x33.google.cloud.dialogflow.v2.ListEnvironmentsRequest\x1a\x34.google.cloud.dialogflow.v2.ListEnvironmentsResponse\"u\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*/agent}/environmentsZ8\x12\x36/v2/{parent=projects/*/locations/*/agent}/environments\x12\xda\x01\n\x0eGetEnvironment\x12\x31.google.cloud.dialogflow.v2.GetEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"l\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/agent/environments/*}Z8\x12\x36/v2/{name=projects/*/locations/*/agent/environments/*}\x12\xfc\x01\n\x11\x43reateEnvironment\x12\x34.google.cloud.dialogflow.v2.CreateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x87\x01\x82\xd3\xe4\x93\x02\x80\x01\"*/v2/{parent=projects/*/agent}/environments:\x0b\x65nvironmentZE\"6/v2/{parent=projects/*/locations/*/agent}/environments:\x0b\x65nvironment\x12\x94\x02\n\x11UpdateEnvironment\x12\x34.google.cloud.dialogflow.v2.UpdateEnvironmentRequest\x1a\'.google.cloud.dialogflow.v2.Environment\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x32\x36/v2/{environment.name=projects/*/agent/environments/*}:\x0b\x65nvironmentZQ2B/v2/{environment.name=projects/*/locations/*/agent/environments/*}:\x0b\x65nvironment\x12\xcf\x01\n\x11\x44\x65leteEnvironment\x12\x34.google.cloud.dialogflow.v2.DeleteEnvironmentRequest\x1a\x16.google.protobuf.Empty\"l\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/agent/environments/*}Z8*6/v2/{name=projects/*/locations/*/agent/environments/*}\x12\x84\x02\n\x15GetEnvironmentHistory\x12\x38.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest\x1a..google.cloud.dialogflow.v2.EnvironmentHistory\"\x80\x01\x82\xd3\xe4\x93\x02z\x12\x34/v2/{parent=projects/*/agent/environments/*}/historyZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/history\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x45nvironmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
22
22
  begin
23
23
  pool.add_serialized_file(descriptor_data)
24
- rescue TypeError => e
24
+ rescue TypeError
25
25
  # Compatibility code: will be removed in the next major version.
26
26
  require 'google/protobuf/descriptor_pb'
27
27
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @environments_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::Dialogflow::V2::Environments::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @environments_stub.endpoint
170
+ config.universe_domain = @environments_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,20 +149,20 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- config.bindings_override = @config.bindings_override
158
- end
159
-
160
152
  @environments_stub = ::Google::Cloud::Dialogflow::V2::Environments::Rest::ServiceStub.new(
161
153
  endpoint: @config.endpoint,
162
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
155
  universe_domain: @config.universe_domain,
164
156
  credentials: credentials
165
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @environments_stub.endpoint
163
+ config.universe_domain = @environments_stub.universe_domain
164
+ config.bindings_override = @config.bindings_override
165
+ end
166
166
  end
167
167
 
168
168
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the list_environments REST call
57
66
  #
@@ -11,13 +11,13 @@ require 'google/api/resource_pb'
11
11
  require 'google/protobuf/field_mask_pb'
12
12
 
13
13
 
14
- descriptor_data = "\n,google/cloud/dialogflow/v2/fulfillment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa9\x06\n\x0b\x46ulfillment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13generic_web_service\x18\x03 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceH\x00\x12\x14\n\x07\x65nabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x46\n\x08\x66\x65\x61tures\x18\x05 \x03(\x0b\x32/.google.cloud.dialogflow.v2.Fulfillment.FeatureB\x03\xe0\x41\x01\x1a\x99\x02\n\x11GenericWebService\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12k\n\x0frequest_headers\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.RequestHeadersEntryB\x03\xe0\x41\x01\x12 \n\x11is_cloud_function\x18\x05 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x1a\x35\n\x13RequestHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1az\n\x07\x46\x65\x61ture\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2.Fulfillment.Feature.Type\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSMALLTALK\x10\x01:\x8c\x01\xea\x41\x88\x01\n%dialogflow.googleapis.com/Fulfillment\x12$projects/{project}/agent/fulfillment\x12\x39projects/{project}/locations/{location}/agent/fulfillmentB\r\n\x0b\x66ulfillment\"T\n\x15GetFulfillmentRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dialogflow.googleapis.com/Fulfillment\"\x93\x01\n\x18UpdateFulfillmentRequest\x12\x41\n\x0b\x66ulfillment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x32\x91\x05\n\x0c\x46ulfillments\x12\xdb\x01\n\x0eGetFulfillment\x12\x31.google.cloud.dialogflow.v2.GetFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"m\x82\xd3\xe4\x93\x02`\x12\'/v2/{name=projects/*/agent/fulfillment}Z5\x12\x33/v2/{name=projects/*/locations/*/agent/fulfillment}\xda\x41\x04name\x12\xa8\x02\n\x11UpdateFulfillment\x12\x34.google.cloud.dialogflow.v2.UpdateFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"\xb3\x01\x82\xd3\xe4\x93\x02\x92\x01\x32\x33/v2/{fulfillment.name=projects/*/agent/fulfillment}:\x0b\x66ulfillmentZN2?/v2/{fulfillment.name=projects/*/locations/*/agent/fulfillment}:\x0b\x66ulfillment\xda\x41\x17\x66ulfillment,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x46ulfillmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
14
+ descriptor_data = "\n,google/cloud/dialogflow/v2/fulfillment.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb2\x06\n\x0b\x46ulfillment\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12X\n\x13generic_web_service\x18\x03 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceH\x00\x12\x15\n\x07\x65nabled\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12G\n\x08\x66\x65\x61tures\x18\x05 \x03(\x0b\x32/.google.cloud.dialogflow.v2.Fulfillment.FeatureB\x04\xe2\x41\x01\x01\x1a\x9e\x02\n\x11GenericWebService\x12\x11\n\x03uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08username\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08password\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12l\n\x0frequest_headers\x18\x04 \x03(\x0b\x32M.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.RequestHeadersEntryB\x04\xe2\x41\x01\x01\x12!\n\x11is_cloud_function\x18\x05 \x01(\x08\x42\x06\x18\x01\xe2\x41\x01\x01\x1a\x35\n\x13RequestHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1az\n\x07\x46\x65\x61ture\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2.Fulfillment.Feature.Type\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSMALLTALK\x10\x01:\x8c\x01\xea\x41\x88\x01\n%dialogflow.googleapis.com/Fulfillment\x12$projects/{project}/agent/fulfillment\x12\x39projects/{project}/locations/{location}/agent/fulfillmentB\r\n\x0b\x66ulfillment\"U\n\x15GetFulfillmentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe2\x41\x01\x02\xfa\x41\'\n%dialogflow.googleapis.com/Fulfillment\"\x95\x01\n\x18UpdateFulfillmentRequest\x12\x42\n\x0b\x66ulfillment\x18\x01 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.FulfillmentB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x32\x91\x05\n\x0c\x46ulfillments\x12\xdb\x01\n\x0eGetFulfillment\x12\x31.google.cloud.dialogflow.v2.GetFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"m\xda\x41\x04name\x82\xd3\xe4\x93\x02`\x12\'/v2/{name=projects/*/agent/fulfillment}Z5\x12\x33/v2/{name=projects/*/locations/*/agent/fulfillment}\x12\xa8\x02\n\x11UpdateFulfillment\x12\x34.google.cloud.dialogflow.v2.UpdateFulfillmentRequest\x1a\'.google.cloud.dialogflow.v2.Fulfillment\"\xb3\x01\xda\x41\x17\x66ulfillment,update_mask\x82\xd3\xe4\x93\x02\x92\x01\x32\x33/v2/{fulfillment.name=projects/*/agent/fulfillment}:\x0b\x66ulfillmentZN2?/v2/{fulfillment.name=projects/*/locations/*/agent/fulfillment}:\x0b\x66ulfillment\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x46ulfillmentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
18
18
  begin
19
19
  pool.add_serialized_file(descriptor_data)
20
- rescue TypeError => e
20
+ rescue TypeError
21
21
  # Compatibility code: will be removed in the next major version.
22
22
  require 'google/protobuf/descriptor_pb'
23
23
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @fulfillments_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::Dialogflow::V2::Fulfillments::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @fulfillments_stub.endpoint
170
+ config.universe_domain = @fulfillments_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,20 +149,20 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- config.bindings_override = @config.bindings_override
158
- end
159
-
160
152
  @fulfillments_stub = ::Google::Cloud::Dialogflow::V2::Fulfillments::Rest::ServiceStub.new(
161
153
  endpoint: @config.endpoint,
162
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
155
  universe_domain: @config.universe_domain,
164
156
  credentials: credentials
165
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @fulfillments_stub.endpoint
163
+ config.universe_domain = @fulfillments_stub.universe_domain
164
+ config.bindings_override = @config.bindings_override
165
+ end
166
166
  end
167
167
 
168
168
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_fulfillment REST call
57
66
  #
@@ -7,13 +7,13 @@ require 'google/protobuf'
7
7
  require 'google/api/field_behavior_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n$google/cloud/dialogflow/v2/gcs.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\"\x1f\n\nGcsSources\x12\x11\n\x04uris\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\tB\x91\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x08GcsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
10
+ descriptor_data = "\n$google/cloud/dialogflow/v2/gcs.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\" \n\nGcsSources\x12\x12\n\x04uris\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\tB\x91\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x08GcsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
11
11
 
12
12
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
14
14
  begin
15
15
  pool.add_serialized_file(descriptor_data)
16
- rescue TypeError => e
16
+ rescue TypeError
17
17
  # Compatibility code: will be removed in the next major version.
18
18
  require 'google/protobuf/descriptor_pb'
19
19
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
14
14
  begin
15
15
  pool.add_serialized_file(descriptor_data)
16
- rescue TypeError => e
16
+ rescue TypeError
17
17
  # Compatibility code: will be removed in the next major version.
18
18
  require 'google/protobuf/descriptor_pb'
19
19
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -15,13 +15,13 @@ require 'google/protobuf/field_mask_pb'
15
15
  require 'google/protobuf/struct_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n\'google/cloud/dialogflow/v2/intent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd7\x38\n\x06Intent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12K\n\rwebhook_state\x18\x06 \x01(\x0e\x32/.google.cloud.dialogflow.v2.Intent.WebhookStateB\x03\xe0\x41\x01\x12\x15\n\x08priority\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bis_fallback\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bml_disabled\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12live_agent_handoff\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x65nd_interaction\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13input_context_names\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x65vents\x18\x08 \x03(\tB\x03\xe0\x41\x01\x12P\n\x10training_phrases\x18\t \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.Intent.TrainingPhraseB\x03\xe0\x41\x01\x12\x13\n\x06\x61\x63tion\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x0foutput_contexts\x18\x0b \x03(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x01\x12\x1b\n\x0ereset_contexts\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x45\n\nparameters\x18\r \x03(\x0b\x32,.google.cloud.dialogflow.v2.Intent.ParameterB\x03\xe0\x41\x01\x12\x41\n\x08messages\x18\x0e \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.MessageB\x03\xe0\x41\x01\x12\\\n\x1a\x64\x65\x66\x61ult_response_platforms\x18\x0f \x03(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x12&\n\x19root_followup_intent_name\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12#\n\x1bparent_followup_intent_name\x18\x11 \x01(\t\x12X\n\x14\x66ollowup_intent_info\x18\x12 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.FollowupIntentInfoB\x03\xe0\x41\x03\x1a\xf1\x02\n\x0eTrainingPhrase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12I\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.TypeB\x03\xe0\x41\x02\x12J\n\x05parts\x18\x03 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x1e\n\x11times_added_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1a]\n\x04Part\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x18\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cuser_defined\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XAMPLE\x10\x01\x12\x10\n\x08TEMPLATE\x10\x02\x1a\x02\x08\x01\x1a\xca\x01\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rdefault_value\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x65ntity_type_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmandatory\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x14\n\x07prompts\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x14\n\x07is_list\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x96*\n\x07Message\x12?\n\x04text\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.TextH\x00\x12\x41\n\x05image\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageH\x00\x12P\n\rquick_replies\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesH\x00\x12?\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.CardH\x00\x12*\n\x07payload\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12V\n\x10simple_responses\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesH\x00\x12J\n\nbasic_card\x18\x08 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.BasicCardH\x00\x12M\n\x0bsuggestions\x18\t \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.SuggestionsH\x00\x12[\n\x13link_out_suggestion\x18\n \x01(\x0b\x32<.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionH\x00\x12L\n\x0blist_select\x18\x0b \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.ListSelectH\x00\x12T\n\x0f\x63\x61rousel_select\x18\x0c \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectH\x00\x12]\n\x14\x62rowse_carousel_card\x18\x16 \x01(\x0b\x32=.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardH\x00\x12J\n\ntable_card\x18\x17 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.TableCardH\x00\x12P\n\rmedia_content\x18\x18 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.MediaContentH\x00\x12J\n\x08platform\x18\x06 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x03\xe0\x41\x01\x1a\x19\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a@\n\x05Image\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x61\x63\x63\x65ssibility_text\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a>\n\x0cQuickReplies\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rquick_replies\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\xcb\x01\n\x04\x43\x61rd\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x07\x62uttons\x18\x04 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonB\x03\xe0\x41\x01\x1a\x32\n\x06\x42utton\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08postback\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1aQ\n\x0eSimpleResponse\x12\x16\n\x0etext_to_speech\x18\x01 \x01(\t\x12\x0c\n\x04ssml\x18\x02 \x01(\t\x12\x19\n\x0c\x64isplay_text\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1ak\n\x0fSimpleResponses\x12X\n\x10simple_responses\x18\x01 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SimpleResponseB\x03\xe0\x41\x02\x1a\x88\x03\n\tBasicCard\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\x0e\x66ormatted_text\x18\x03 \x01(\t\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\x9e\x01\n\x06\x42utton\x12\r\n\x05title\x18\x01 \x01(\t\x12g\n\x0fopen_uri_action\x18\x02 \x01(\x0b\x32I.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriActionB\x03\xe0\x41\x02\x1a\x1c\n\rOpenUriAction\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a \n\nSuggestion\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a^\n\x0bSuggestions\x12O\n\x0bsuggestions\x18\x01 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.SuggestionB\x03\xe0\x41\x02\x1a\x44\n\x11LinkOutSuggestion\x12\x1d\n\x10\x64\x65stination_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\xd2\x02\n\nListSelect\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12N\n\x05items\x18\x02 \x03(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.ListSelect.ItemB\x03\xe0\x41\x02\x12\x15\n\x08subtitle\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\xaf\x02\n\x0e\x43\x61rouselSelect\x12R\n\x05items\x18\x01 \x03(\x0b\x32>.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.ItemB\x03\xe0\x41\x02\x1a\xc8\x01\n\x04Item\x12L\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x1a\x39\n\x0eSelectItemInfo\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\x8e\x04\n\x0cMediaContent\x12\x62\n\nmedia_type\x18\x01 \x01(\x0e\x32I.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaTypeB\x03\xe0\x41\x01\x12\x62\n\rmedia_objects\x18\x02 \x03(\x0b\x32K.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject\x1a\xf0\x01\n\x13ResponseMediaObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x0blarge_image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x45\n\x04icon\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01H\x00\x12\x13\n\x0b\x63ontent_url\x18\x05 \x01(\tB\x07\n\x05image\"C\n\x11ResponseMediaType\x12#\n\x1fRESPONSE_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x1a\xff\x06\n\x12\x42rowseCarouselCard\x12\x63\n\x05items\x18\x01 \x03(\x0b\x32T.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem\x12u\n\x15image_display_options\x18\x02 \x01(\x0e\x32Q.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptionsB\x03\xe0\x41\x01\x1a\x94\x04\n\x16\x42rowseCarouselCardItem\x12{\n\x0fopen_uri_action\x18\x01 \x01(\x0b\x32\x62.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction\x12\r\n\x05title\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12\x13\n\x06\x66ooter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\xf8\x01\n\rOpenUrlAction\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x8a\x01\n\rurl_type_hint\x18\x03 \x01(\x0e\x32n.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHintB\x03\xe0\x41\x01\"M\n\x0bUrlTypeHint\x12\x1d\n\x19URL_TYPE_HINT_UNSPECIFIED\x10\x00\x12\x0e\n\nAMP_ACTION\x10\x01\x12\x0f\n\x0b\x41MP_CONTENT\x10\x02\"v\n\x13ImageDisplayOptions\x12%\n!IMAGE_DISPLAY_OPTIONS_UNSPECIFIED\x10\x00\x12\x08\n\x04GRAY\x10\x01\x12\t\n\x05WHITE\x10\x02\x12\x0b\n\x07\x43ROPPED\x10\x03\x12\x16\n\x12\x42LURRED_BACKGROUND\x10\x04\x1a\xf3\x02\n\tTableCard\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08subtitle\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x05image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x03\xe0\x41\x01\x12[\n\x11\x63olumn_properties\x18\x04 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesB\x03\xe0\x41\x01\x12J\n\x04rows\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.TableCardRowB\x03\xe0\x41\x01\x12Q\n\x07\x62uttons\x18\x06 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x03\xe0\x41\x01\x1a\xfa\x01\n\x10\x43olumnProperties\x12\x0e\n\x06header\x18\x01 \x01(\t\x12r\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32O.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignmentB\x03\xe0\x41\x01\"b\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0b\n\x07LEADING\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x0c\n\x08TRAILING\x10\x03\x1ax\n\x0cTableCardRow\x12L\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2.Intent.Message.TableCardCellB\x03\xe0\x41\x01\x12\x1a\n\rdivider_after\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x1d\n\rTableCardCell\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xa0\x01\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46\x41\x43\x45\x42OOK\x10\x01\x12\t\n\x05SLACK\x10\x02\x12\x0c\n\x08TELEGRAM\x10\x03\x12\x07\n\x03KIK\x10\x04\x12\t\n\x05SKYPE\x10\x05\x12\x08\n\x04LINE\x10\x06\x12\t\n\x05VIBER\x10\x07\x12\x15\n\x11\x41\x43TIONS_ON_GOOGLE\x10\x08\x12\x13\n\x0fGOOGLE_HANGOUTS\x10\x0b\x42\t\n\x07message\x1aW\n\x12\x46ollowupIntentInfo\x12\x1c\n\x14\x66ollowup_intent_name\x18\x01 \x01(\t\x12#\n\x1bparent_followup_intent_name\x18\x02 \x01(\t\"t\n\x0cWebhookState\x12\x1d\n\x19WEBHOOK_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15WEBHOOK_STATE_ENABLED\x10\x01\x12*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING\x10\x02:\x91\x01\xea\x41\x8d\x01\n dialogflow.googleapis.com/Intent\x12)projects/{project}/agent/intents/{intent}\x12>projects/{project}/locations/{location}/agent/intents/{intent}\"\xdd\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x13ListIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x01\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe6\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x37\n\x06intent\x18\x02 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"\xe2\x01\n\x13UpdateIntentRequest\x12\x37\n\x06intent\x18\x01 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"\xdd\x02\n\x19\x42\x61tchUpdateIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\x10intent_batch_uri\x18\x02 \x01(\tH\x00\x12\x46\n\x13intent_batch_inline\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.IntentBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x0bintent_view\x18\x06 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x03\xe0\x41\x01\x42\x0e\n\x0cintent_batch\"Q\n\x1a\x42\x61tchUpdateIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\"\x8f\x01\n\x19\x42\x61tchDeleteIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x38\n\x07intents\x18\x02 \x03(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x03\xe0\x41\x02\"B\n\x0bIntentBatch\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent*?\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10INTENT_VIEW_FULL\x10\x01\x32\xf3\x10\n\x07Intents\x12\xf0\x02\n\x0bListIntents\x12..google.cloud.dialogflow.v2.ListIntentsRequest\x1a/.google.cloud.dialogflow.v2.ListIntentsResponse\"\xff\x01\x82\xd3\xe4\x93\x02\xd8\x01\x12%/v2/{parent=projects/*/agent}/intentsZ3\x12\x31/v2/{parent=projects/*/locations/*/agent}/intentsZ6\x12\x34/v2/{parent=projects/*/agent/environments/*}/intentsZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/intents\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xdd\x01\n\tGetIntent\x12,.google.cloud.dialogflow.v2.GetIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"~\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/agent/intents/*}Z3\x12\x31/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\x86\x02\n\x0c\x43reateIntent\x12/.google.cloud.dialogflow.v2.CreateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xa0\x01\x82\xd3\xe4\x93\x02l\"%/v2/{parent=projects/*/agent}/intents:\x06intentZ;\"1/v2/{parent=projects/*/locations/*/agent}/intents:\x06intent\xda\x41\rparent,intent\xda\x41\x1bparent,intent,language_code\x12\xa0\x02\n\x0cUpdateIntent\x12/.google.cloud.dialogflow.v2.UpdateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xba\x01\x82\xd3\xe4\x93\x02z2,/v2/{intent.name=projects/*/agent/intents/*}:\x06intentZB28/v2/{intent.name=projects/*/locations/*/agent/intents/*}:\x06intent\xda\x41\x14intent,language_code\xda\x41 intent,language_code,update_mask\x12\xc2\x01\n\x0c\x44\x65leteIntent\x12/.google.cloud.dialogflow.v2.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"i\x82\xd3\xe4\x93\x02\\*%/v2/{name=projects/*/agent/intents/*}Z3*1/v2/{name=projects/*/locations/*/agent/intents/*}\xda\x41\x04name\x12\xf6\x02\n\x12\x42\x61tchUpdateIntents\x12\x35.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest\x1a\x1d.google.longrunning.Operation\"\x89\x02\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchUpdate:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchUpdate:\x01*\xda\x41\x17parent,intent_batch_uri\xda\x41\x1aparent,intent_batch_inline\xca\x41O\n5google.cloud.dialogflow.v2.BatchUpdateIntentsResponse\x12\x16google.protobuf.Struct\x12\xb0\x02\n\x12\x42\x61tchDeleteIntents\x12\x35.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchDelete:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchDelete:\x01*\xda\x41\x0eparent,intents\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x94\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0bIntentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
18
+ descriptor_data = "\n\'google/cloud/dialogflow/v2/intent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/v2/context.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xac\x39\n\x06Intent\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12L\n\rwebhook_state\x18\x06 \x01(\x0e\x32/.google.cloud.dialogflow.v2.Intent.WebhookStateB\x04\xe2\x41\x01\x01\x12\x16\n\x08priority\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x19\n\x0bis_fallback\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x19\n\x0bml_disabled\x18\x13 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12 \n\x12live_agent_handoff\x18\x14 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x1d\n\x0f\x65nd_interaction\x18\x15 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12!\n\x13input_context_names\x18\x07 \x03(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x65vents\x18\x08 \x03(\tB\x04\xe2\x41\x01\x01\x12Q\n\x10training_phrases\x18\t \x03(\x0b\x32\x31.google.cloud.dialogflow.v2.Intent.TrainingPhraseB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x61\x63tion\x18\n \x01(\tB\x04\xe2\x41\x01\x01\x12\x42\n\x0foutput_contexts\x18\x0b \x03(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x04\xe2\x41\x01\x01\x12\x1c\n\x0ereset_contexts\x18\x0c \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x46\n\nparameters\x18\r \x03(\x0b\x32,.google.cloud.dialogflow.v2.Intent.ParameterB\x04\xe2\x41\x01\x01\x12\x42\n\x08messages\x18\x0e \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.MessageB\x04\xe2\x41\x01\x01\x12]\n\x1a\x64\x65\x66\x61ult_response_platforms\x18\x0f \x03(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x04\xe2\x41\x01\x01\x12\'\n\x19root_followup_intent_name\x18\x10 \x01(\tB\x04\xe2\x41\x01\x03\x12#\n\x1bparent_followup_intent_name\x18\x11 \x01(\t\x12Y\n\x14\x66ollowup_intent_info\x18\x12 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.FollowupIntentInfoB\x04\xe2\x41\x01\x03\x1a\xf7\x02\n\x0eTrainingPhrase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.TypeB\x04\xe2\x41\x01\x02\x12K\n\x05parts\x18\x03 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartB\x04\xe2\x41\x01\x02\x12\x1f\n\x11times_added_count\x18\x04 \x01(\x05\x42\x04\xe2\x41\x01\x01\x1a`\n\x04Part\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x19\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x13\n\x05\x61lias\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0cuser_defined\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45XAMPLE\x10\x01\x12\x10\n\x08TEMPLATE\x10\x02\x1a\x02\x08\x01\x1a\xd0\x01\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x05value\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1b\n\rdefault_value\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12&\n\x18\x65ntity_type_display_name\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tmandatory\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x15\n\x07prompts\x18\x07 \x03(\tB\x04\xe2\x41\x01\x01\x12\x15\n\x07is_list\x18\x08 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a\xcc*\n\x07Message\x12?\n\x04text\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.TextH\x00\x12\x41\n\x05image\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageH\x00\x12P\n\rquick_replies\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesH\x00\x12?\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32/.google.cloud.dialogflow.v2.Intent.Message.CardH\x00\x12*\n\x07payload\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12V\n\x10simple_responses\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesH\x00\x12J\n\nbasic_card\x18\x08 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.BasicCardH\x00\x12M\n\x0bsuggestions\x18\t \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.SuggestionsH\x00\x12[\n\x13link_out_suggestion\x18\n \x01(\x0b\x32<.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionH\x00\x12L\n\x0blist_select\x18\x0b \x01(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.ListSelectH\x00\x12T\n\x0f\x63\x61rousel_select\x18\x0c \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectH\x00\x12]\n\x14\x62rowse_carousel_card\x18\x16 \x01(\x0b\x32=.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardH\x00\x12J\n\ntable_card\x18\x17 \x01(\x0b\x32\x34.google.cloud.dialogflow.v2.Intent.Message.TableCardH\x00\x12P\n\rmedia_content\x18\x18 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.MediaContentH\x00\x12K\n\x08platform\x18\x06 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.Intent.Message.PlatformB\x04\xe2\x41\x01\x01\x1a\x1a\n\x04Text\x12\x12\n\x04text\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x1a\x42\n\x05Image\x12\x17\n\timage_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12 \n\x12\x61\x63\x63\x65ssibility_text\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x1a@\n\x0cQuickReplies\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1b\n\rquick_replies\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x1a\xd1\x01\n\x04\x43\x61rd\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08subtitle\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\timage_uri\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12M\n\x07\x62uttons\x18\x04 \x03(\x0b\x32\x36.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonB\x04\xe2\x41\x01\x01\x1a\x34\n\x06\x42utton\x12\x12\n\x04text\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08postback\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x1aR\n\x0eSimpleResponse\x12\x16\n\x0etext_to_speech\x18\x01 \x01(\t\x12\x0c\n\x04ssml\x18\x02 \x01(\t\x12\x1a\n\x0c\x64isplay_text\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x1al\n\x0fSimpleResponses\x12Y\n\x10simple_responses\x18\x01 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SimpleResponseB\x04\xe2\x41\x01\x02\x1a\x8d\x03\n\tBasicCard\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08subtitle\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x0e\x66ormatted_text\x18\x03 \x01(\t\x12\x45\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01\x12R\n\x07\x62uttons\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x04\xe2\x41\x01\x01\x1a\x9f\x01\n\x06\x42utton\x12\r\n\x05title\x18\x01 \x01(\t\x12h\n\x0fopen_uri_action\x18\x02 \x01(\x0b\x32I.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriActionB\x04\xe2\x41\x01\x02\x1a\x1c\n\rOpenUriAction\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a!\n\nSuggestion\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x1a_\n\x0bSuggestions\x12P\n\x0bsuggestions\x18\x01 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.Intent.Message.SuggestionB\x04\xe2\x41\x01\x02\x1a\x46\n\x11LinkOutSuggestion\x12\x1e\n\x10\x64\x65stination_name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x11\n\x03uri\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x1a\xd9\x02\n\nListSelect\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12O\n\x05items\x18\x02 \x03(\x0b\x32:.google.cloud.dialogflow.v2.Intent.Message.ListSelect.ItemB\x04\xe2\x41\x01\x02\x12\x16\n\x08subtitle\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x1a\xcc\x01\n\x04Item\x12M\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x04\xe2\x41\x01\x02\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x45\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01\x1a\xb4\x02\n\x0e\x43\x61rouselSelect\x12S\n\x05items\x18\x01 \x03(\x0b\x32>.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.ItemB\x04\xe2\x41\x01\x02\x1a\xcc\x01\n\x04Item\x12M\n\x04info\x18\x01 \x01(\x0b\x32\x39.google.cloud.dialogflow.v2.Intent.Message.SelectItemInfoB\x04\xe2\x41\x01\x02\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x45\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01\x1a;\n\x0eSelectItemInfo\x12\x11\n\x03key\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08synonyms\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x1a\x92\x04\n\x0cMediaContent\x12\x63\n\nmedia_type\x18\x01 \x01(\x0e\x32I.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaTypeB\x04\xe2\x41\x01\x01\x12\x62\n\rmedia_objects\x18\x02 \x03(\x0b\x32K.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject\x1a\xf3\x01\n\x13ResponseMediaObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12M\n\x0blarge_image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01H\x00\x12\x46\n\x04icon\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01H\x00\x12\x13\n\x0b\x63ontent_url\x18\x05 \x01(\tB\x07\n\x05image\"C\n\x11ResponseMediaType\x12#\n\x1fRESPONSE_MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x1a\x84\x07\n\x12\x42rowseCarouselCard\x12\x63\n\x05items\x18\x01 \x03(\x0b\x32T.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem\x12v\n\x15image_display_options\x18\x02 \x01(\x0e\x32Q.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptionsB\x04\xe2\x41\x01\x01\x1a\x98\x04\n\x16\x42rowseCarouselCardItem\x12{\n\x0fopen_uri_action\x18\x01 \x01(\x0b\x32\x62.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction\x12\r\n\x05title\x18\x02 \x01(\t\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x45\n\x05image\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ooter\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x1a\xf9\x01\n\rOpenUrlAction\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x8b\x01\n\rurl_type_hint\x18\x03 \x01(\x0e\x32n.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHintB\x04\xe2\x41\x01\x01\"M\n\x0bUrlTypeHint\x12\x1d\n\x19URL_TYPE_HINT_UNSPECIFIED\x10\x00\x12\x0e\n\nAMP_ACTION\x10\x01\x12\x0f\n\x0b\x41MP_CONTENT\x10\x02\"v\n\x13ImageDisplayOptions\x12%\n!IMAGE_DISPLAY_OPTIONS_UNSPECIFIED\x10\x00\x12\x08\n\x04GRAY\x10\x01\x12\t\n\x05WHITE\x10\x02\x12\x0b\n\x07\x43ROPPED\x10\x03\x12\x16\n\x12\x42LURRED_BACKGROUND\x10\x04\x1a\xf8\x02\n\tTableCard\x12\r\n\x05title\x18\x01 \x01(\t\x12\x16\n\x08subtitle\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x45\n\x05image\x18\x03 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.Intent.Message.ImageB\x04\xe2\x41\x01\x01\x12\\\n\x11\x63olumn_properties\x18\x04 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.ColumnPropertiesB\x04\xe2\x41\x01\x01\x12K\n\x04rows\x18\x05 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.Intent.Message.TableCardRowB\x04\xe2\x41\x01\x01\x12R\n\x07\x62uttons\x18\x06 \x03(\x0b\x32;.google.cloud.dialogflow.v2.Intent.Message.BasicCard.ButtonB\x04\xe2\x41\x01\x01\x1a\xfb\x01\n\x10\x43olumnProperties\x12\x0e\n\x06header\x18\x01 \x01(\t\x12s\n\x14horizontal_alignment\x18\x02 \x01(\x0e\x32O.google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignmentB\x04\xe2\x41\x01\x01\"b\n\x13HorizontalAlignment\x12$\n HORIZONTAL_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x0b\n\x07LEADING\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\x0c\n\x08TRAILING\x10\x03\x1az\n\x0cTableCardRow\x12M\n\x05\x63\x65lls\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2.Intent.Message.TableCardCellB\x04\xe2\x41\x01\x01\x12\x1b\n\rdivider_after\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a\x1d\n\rTableCardCell\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xa0\x01\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46\x41\x43\x45\x42OOK\x10\x01\x12\t\n\x05SLACK\x10\x02\x12\x0c\n\x08TELEGRAM\x10\x03\x12\x07\n\x03KIK\x10\x04\x12\t\n\x05SKYPE\x10\x05\x12\x08\n\x04LINE\x10\x06\x12\t\n\x05VIBER\x10\x07\x12\x15\n\x11\x41\x43TIONS_ON_GOOGLE\x10\x08\x12\x13\n\x0fGOOGLE_HANGOUTS\x10\x0b\x42\t\n\x07message\x1aW\n\x12\x46ollowupIntentInfo\x12\x1c\n\x14\x66ollowup_intent_name\x18\x01 \x01(\t\x12#\n\x1bparent_followup_intent_name\x18\x02 \x01(\t\"t\n\x0cWebhookState\x12\x1d\n\x19WEBHOOK_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15WEBHOOK_STATE_ENABLED\x10\x01\x12*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING\x10\x02:\x91\x01\xea\x41\x8d\x01\n dialogflow.googleapis.com/Intent\x12)projects/{project}/agent/intents/{intent}\x12>projects/{project}/locations/{location}/agent/intents/{intent}\"\xe2\x01\n\x12ListIntentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x41\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x04\xe2\x41\x01\x01\x12\x17\n\tpage_size\x18\x04 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"c\n\x13ListIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xab\x01\n\x10GetIntentRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x41\n\x0bintent_view\x18\x03 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x04\xe2\x41\x01\x01\"\xea\x01\n\x13\x43reateIntentRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x38\n\x06intent\x18\x02 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x41\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x04\xe2\x41\x01\x01\"\xe6\x01\n\x13UpdateIntentRequest\x12\x38\n\x06intent\x18\x01 \x01(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x04\xe2\x41\x01\x02\x12\x1b\n\rlanguage_code\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x35\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\x12\x41\n\x0bintent_view\x18\x04 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x04\xe2\x41\x01\x01\"N\n\x13\x44\x65leteIntentRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"\xe1\x02\n\x19\x42\x61tchUpdateIntentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x1a\n\x10intent_batch_uri\x18\x02 \x01(\tH\x00\x12\x46\n\x13intent_batch_inline\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.IntentBatchH\x00\x12\x1b\n\rlanguage_code\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x35\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\x12\x41\n\x0bintent_view\x18\x06 \x01(\x0e\x32&.google.cloud.dialogflow.v2.IntentViewB\x04\xe2\x41\x01\x01\x42\x0e\n\x0cintent_batch\"Q\n\x1a\x42\x61tchUpdateIntentsResponse\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent\"\x91\x01\n\x19\x42\x61tchDeleteIntentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x39\n\x07intents\x18\x02 \x03(\x0b\x32\".google.cloud.dialogflow.v2.IntentB\x04\xe2\x41\x01\x02\"B\n\x0bIntentBatch\x12\x33\n\x07intents\x18\x01 \x03(\x0b\x32\".google.cloud.dialogflow.v2.Intent*?\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10INTENT_VIEW_FULL\x10\x01\x32\xf3\x10\n\x07Intents\x12\xf0\x02\n\x0bListIntents\x12..google.cloud.dialogflow.v2.ListIntentsRequest\x1a/.google.cloud.dialogflow.v2.ListIntentsResponse\"\xff\x01\xda\x41\x06parent\xda\x41\x14parent,language_code\x82\xd3\xe4\x93\x02\xd8\x01\x12%/v2/{parent=projects/*/agent}/intentsZ3\x12\x31/v2/{parent=projects/*/locations/*/agent}/intentsZ6\x12\x34/v2/{parent=projects/*/agent/environments/*}/intentsZB\x12@/v2/{parent=projects/*/locations/*/agent/environments/*}/intents\x12\xdd\x01\n\tGetIntent\x12,.google.cloud.dialogflow.v2.GetIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"~\xda\x41\x04name\xda\x41\x12name,language_code\x82\xd3\xe4\x93\x02\\\x12%/v2/{name=projects/*/agent/intents/*}Z3\x12\x31/v2/{name=projects/*/locations/*/agent/intents/*}\x12\x86\x02\n\x0c\x43reateIntent\x12/.google.cloud.dialogflow.v2.CreateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xa0\x01\xda\x41\rparent,intent\xda\x41\x1bparent,intent,language_code\x82\xd3\xe4\x93\x02l\"%/v2/{parent=projects/*/agent}/intents:\x06intentZ;\"1/v2/{parent=projects/*/locations/*/agent}/intents:\x06intent\x12\xa0\x02\n\x0cUpdateIntent\x12/.google.cloud.dialogflow.v2.UpdateIntentRequest\x1a\".google.cloud.dialogflow.v2.Intent\"\xba\x01\xda\x41\x14intent,language_code\xda\x41 intent,language_code,update_mask\x82\xd3\xe4\x93\x02z2,/v2/{intent.name=projects/*/agent/intents/*}:\x06intentZB28/v2/{intent.name=projects/*/locations/*/agent/intents/*}:\x06intent\x12\xc2\x01\n\x0c\x44\x65leteIntent\x12/.google.cloud.dialogflow.v2.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"i\xda\x41\x04name\x82\xd3\xe4\x93\x02\\*%/v2/{name=projects/*/agent/intents/*}Z3*1/v2/{name=projects/*/locations/*/agent/intents/*}\x12\xf6\x02\n\x12\x42\x61tchUpdateIntents\x12\x35.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest\x1a\x1d.google.longrunning.Operation\"\x89\x02\xca\x41O\n5google.cloud.dialogflow.v2.BatchUpdateIntentsResponse\x12\x16google.protobuf.Struct\xda\x41\x17parent,intent_batch_uri\xda\x41\x1aparent,intent_batch_inline\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchUpdate:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchUpdate:\x01*\x12\xb0\x02\n\x12\x42\x61tchDeleteIntents\x12\x35.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\xda\x41\x0eparent,intents\x82\xd3\xe4\x93\x02z\"1/v2/{parent=projects/*/agent}/intents:batchDelete:\x01*ZB\"=/v2/{parent=projects/*/locations/*/agent}/intents:batchDelete:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x94\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0bIntentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
22
22
  begin
23
23
  pool.add_serialized_file(descriptor_data)
24
- rescue TypeError => e
24
+ rescue TypeError
25
25
  # Compatibility code: will be removed in the next major version.
26
26
  require 'google/protobuf/descriptor_pb'
27
27
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -159,13 +159,6 @@ module Google
159
159
  config.universe_domain = @config.universe_domain
160
160
  end
161
161
 
162
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
163
- config.credentials = credentials
164
- config.quota_project = @quota_project_id
165
- config.endpoint = @config.endpoint
166
- config.universe_domain = @config.universe_domain
167
- end
168
-
169
162
  @intents_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::Dialogflow::V2::Intents::Stub,
171
164
  credentials: credentials,
@@ -176,6 +169,13 @@ module Google
176
169
  interceptors: @config.interceptors,
177
170
  channel_pool_config: @config.channel_pool
178
171
  )
172
+
173
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @intents_stub.endpoint
177
+ config.universe_domain = @intents_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -156,20 +156,20 @@ module Google
156
156
  config.universe_domain = @config.universe_domain
157
157
  end
158
158
 
159
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
- config.credentials = credentials
161
- config.quota_project = @quota_project_id
162
- config.endpoint = @config.endpoint
163
- config.universe_domain = @config.universe_domain
164
- config.bindings_override = @config.bindings_override
165
- end
166
-
167
159
  @intents_stub = ::Google::Cloud::Dialogflow::V2::Intents::Rest::ServiceStub.new(
168
160
  endpoint: @config.endpoint,
169
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
170
162
  universe_domain: @config.universe_domain,
171
163
  credentials: credentials
172
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @intents_stub.endpoint
170
+ config.universe_domain = @intents_stub.universe_domain
171
+ config.bindings_override = @config.bindings_override
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the list_intents REST call
57
66
  #