Class: Google::Apis::PubsubV1::ReceivedMessage
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::PubsubV1::ReceivedMessage
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/pubsub_v1/classes.rb,
generated/google/apis/pubsub_v1/representations.rb,
generated/google/apis/pubsub_v1/representations.rb 
Overview
A message and its corresponding acknowledgment ID.
Instance Attribute Summary collapse
- 
  
    
      #ack_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This ID can be used to acknowledge the received message.
 - 
  
    
      #message  ⇒ Google::Apis::PubsubV1::Message 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A message that is published by publishers and consumed by subscribers.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReceivedMessage 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ReceivedMessage.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReceivedMessage
Returns a new instance of ReceivedMessage
      655 656 657  | 
    
      # File 'generated/google/apis/pubsub_v1/classes.rb', line 655 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#ack_id ⇒ String
This ID can be used to acknowledge the received message.
Corresponds to the JSON property ackId
      647 648 649  | 
    
      # File 'generated/google/apis/pubsub_v1/classes.rb', line 647 def ack_id @ack_id end  | 
  
#message ⇒ Google::Apis::PubsubV1::Message
A message that is published by publishers and consumed by subscribers. The
message must contain either a non-empty data field or at least one attribute.
Corresponds to the JSON property message
      653 654 655  | 
    
      # File 'generated/google/apis/pubsub_v1/classes.rb', line 653 def @message end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      660 661 662 663  | 
    
      # File 'generated/google/apis/pubsub_v1/classes.rb', line 660 def update!(**args) @ack_id = args[:ack_id] if args.key?(:ack_id) @message = args[:message] if args.key?(:message) end  |