Class: Google::Cloud::Dialogflow::V2::NotificationConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::NotificationConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb
Overview
Defines notification behavior.
Defined Under Namespace
Modules: MessageFormat
Instance Attribute Summary collapse
-
#message_format ⇒ ::Google::Cloud::Dialogflow::V2::NotificationConfig::MessageFormat
Format of message.
-
#topic ⇒ ::String
Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos.
Instance Attribute Details
#message_format ⇒ ::Google::Cloud::Dialogflow::V2::NotificationConfig::MessageFormat
Returns Format of message.
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb', line 468 class NotificationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Format of cloud pub/sub message. module MessageFormat # If it is unspeified, PROTO will be used. MESSAGE_FORMAT_UNSPECIFIED = 0 # Pubsub message will be serialized proto. PROTO = 1 # Pubsub message will be json. JSON = 2 end end |
#topic ⇒ ::String
Returns Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos.
Notification works for phone calls, if this topic either is in the same
project as the conversation or you grant service-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.com the Dialogflow Service
Agent role in the topic project.
Format: projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb', line 468 class NotificationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Format of cloud pub/sub message. module MessageFormat # If it is unspeified, PROTO will be used. MESSAGE_FORMAT_UNSPECIFIED = 0 # Pubsub message will be serialized proto. PROTO = 1 # Pubsub message will be json. JSON = 2 end end |