Class: Google::Apis::SpannerV1::AdaptMessageRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::AdaptMessageRequest
- 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 client to the adapter.
Instance Attribute Summary collapse
-
#attachments ⇒ Hash<String,String>
Optional.
-
#payload ⇒ String
Optional.
-
#protocol ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdaptMessageRequest
constructor
A new instance of AdaptMessageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdaptMessageRequest
Returns a new instance of AdaptMessageRequest.
45 46 47 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 45 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachments ⇒ Hash<String,String>
Optional. Opaque request state passed by the client to the server.
Corresponds to the JSON property attachments
32 33 34 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 32 def end |
#payload ⇒ String
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.
38 39 40 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 38 def payload @payload end |
#protocol ⇒ String
Required. Identifier for the underlying wire protocol.
Corresponds to the JSON property protocol
43 44 45 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 43 def protocol @protocol end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 54 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 50 def update!(**args) = args[:attachments] if args.key?(:attachments) @payload = args[:payload] if args.key?(:payload) @protocol = args[:protocol] if args.key?(:protocol) end |