class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ConversationEvent

Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.

Attributes

conversation[RW]

The unique identifier of the conversation this notification refers to. Format: `projects//conversations/`. Corresponds to the JSON property `conversation` @return [String]

error_status[RW]

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `errorStatus` @return [Google::Apis::DialogflowV3::GoogleRpcStatus]

new_message_payload[RW]

Represents a message posted into a conversation. Corresponds to the JSON property `newMessagePayload` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2Message]

type[RW]

The type of the event that this notification refers to. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 9290
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 9295
def update!(**args)
  @conversation = args[:conversation] if args.key?(:conversation)
  @error_status = args[:error_status] if args.key?(:error_status)
  @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
  @type = args[:type] if args.key?(:type)
end