Class: Google::Apis::DatastoreV1::GqlQueryParameter

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

Overview

A binding parameter for a GQL query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GqlQueryParameter

Returns a new instance of GqlQueryParameter.


420
421
422
# File 'generated/google/apis/datastore_v1/classes.rb', line 420

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

Instance Attribute Details

#cursorString

A query cursor. Query cursors are returned in query result batches. Corresponds to the JSON property cursor

Returns:

  • (String)

418
419
420
# File 'generated/google/apis/datastore_v1/classes.rb', line 418

def cursor
  @cursor
end

#valueGoogle::Apis::DatastoreV1::Value

A message that can hold any of the supported value types and associated metadata. Corresponds to the JSON property value


412
413
414
# File 'generated/google/apis/datastore_v1/classes.rb', line 412

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


425
426
427
428
# File 'generated/google/apis/datastore_v1/classes.rb', line 425

def update!(**args)
  @value = args[:value] if args.key?(:value)
  @cursor = args[:cursor] if args.key?(:cursor)
end