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.
80 81 82 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 80 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
67 68 69 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 67 def @attachments 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.
73 74 75 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 73 def payload @payload end |
#protocol ⇒ String
Required. Identifier for the underlying wire protocol.
Corresponds to the JSON property protocol
78 79 80 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 78 def protocol @protocol 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) @attachments = args[:attachments] if args.key?(:attachments) @payload = args[:payload] if args.key?(:payload) @protocol = args[:protocol] if args.key?(:protocol) end |