Class: Google::Apis::SpannerV1::AdaptMessageRequest

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 client to the adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attachmentsHash<String,String>

Optional. Opaque request state passed by the client to the server. Corresponds to the JSON property attachments

Returns:

  • (Hash<String,String>)


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

def attachments
  @attachments
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

#protocolString

Required. Identifier for the underlying wire protocol. Corresponds to the JSON property protocol

Returns:

  • (String)


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