Class: Google::Apis::SpannerV1::AdaptMessageResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

Message sent by the adapter to the client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdaptMessageResponse

Returns a new instance of AdaptMessageResponse.



80
81
82
# File 'lib/google/apis/spanner_v1/classes.rb', line 80

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#lastBoolean Also known as: last?

Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may be optionally set by the server. Clients should not rely on this field being set in all cases. Corresponds to the JSON property last

Returns:

  • (Boolean)


66
67
68
# File 'lib/google/apis/spanner_v1/classes.rb', line 66

def last
  @last
end

#payloadString

Optional. Uninterpreted bytes from the underlying wire protocol. Corresponds to the JSON property payload NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


73
74
75
# File 'lib/google/apis/spanner_v1/classes.rb', line 73

def payload
  @payload
end

#state_updatesHash<String,String>

Optional. Opaque state updates to be applied by the client. Corresponds to the JSON property stateUpdates

Returns:

  • (Hash<String,String>)


78
79
80
# File 'lib/google/apis/spanner_v1/classes.rb', line 78

def state_updates
  @state_updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
89
# File 'lib/google/apis/spanner_v1/classes.rb', line 85

def update!(**args)
  @last = args[:last] if args.key?(:last)
  @payload = args[:payload] if args.key?(:payload)
  @state_updates = args[:state_updates] if args.key?(:state_updates)
end