Class: Google::Cloud::Dialogflow::V2::NotificationConfig

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#message_format::Google::Cloud::Dialogflow::V2::NotificationConfig::MessageFormat

Returns Format of message.



699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb', line 699

class NotificationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Format of cloud pub/sub message.
  module MessageFormat
    # If it is unspecified, PROTO will be used.
    MESSAGE_FORMAT_UNSPECIFIED = 0

    # Pub/Sub message will be serialized proto.
    PROTO = 1

    # Pub/Sub 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.

For telephony integration to receive notification, make sure either this topic 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.

For chat integration to receive notification, make sure API caller has been granted the Dialogflow Service Agent role for the topic.

Format: projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.

Returns:

  • (::String)

    Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos.

    For telephony integration to receive notification, make sure either this topic 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.

    For chat integration to receive notification, make sure API caller has been granted the Dialogflow Service Agent role for the topic.

    Format: projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.



699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
# File 'proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb', line 699

class NotificationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Format of cloud pub/sub message.
  module MessageFormat
    # If it is unspecified, PROTO will be used.
    MESSAGE_FORMAT_UNSPECIFIED = 0

    # Pub/Sub message will be serialized proto.
    PROTO = 1

    # Pub/Sub message will be json.
    JSON = 2
  end
end