class Google::Apis::PubsubV1beta1a::PubsubEvent

An event indicating a received message or truncation event.

Attributes

deleted[RW]

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]

deleted?[RW]

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]

message[RW]

A message data and its labels. Corresponds to the JSON property `message` @return [Google::Apis::PubsubV1beta1a::PubsubMessage]

subscription[RW]

The subscription that received the event. Corresponds to the JSON property `subscription` @return [String]

truncated[RW]

Indicates that this subscription has been truncated. Corresponds to the JSON property `truncated` @return [Boolean]

truncated?[RW]

Indicates that this subscription has been truncated. Corresponds to the JSON property `truncated` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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