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.



45
46
47
# File 'lib/google/apis/spanner_v1/classes.rb', line 45

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>)


32
33
34
# File 'lib/google/apis/spanner_v1/classes.rb', line 32

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)


38
39
40
# File 'lib/google/apis/spanner_v1/classes.rb', line 38

def payload
  @payload
end

#protocolString

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

Returns:

  • (String)


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)
  @attachments = args[:attachments] if args.key?(:attachments)
  @payload = args[:payload] if args.key?(:payload)
  @protocol = args[:protocol] if args.key?(:protocol)
end