class Google::Apis::PubsubV1beta1a::PubsubEvent
An event indicating a received message or truncation event.
Attributes
Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.) Corresponds to the JSON property `deleted` @return [Boolean]
Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.) Corresponds to the JSON property `deleted` @return [Boolean]
A message data and its labels. Corresponds to the JSON property `message` @return [Google::Apis::PubsubV1beta1a::PubsubMessage]
The subscription that received the event. Corresponds to the JSON property `subscription` @return [String]
Indicates that this subscription has been truncated. Corresponds to the JSON property `truncated` @return [Boolean]
Indicates that this subscription has been truncated. Corresponds to the JSON property `truncated` @return [Boolean]
Public Class Methods
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 329 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 334 def update!(**args) @deleted = args[:deleted] if args.key?(:deleted) @message = args[:message] if args.key?(:message) @subscription = args[:subscription] if args.key?(:subscription) @truncated = args[:truncated] if args.key?(:truncated) end