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

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

Overview

A binding parameter for a GQL query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GqlQueryParameter

Returns a new instance of GqlQueryParameter.

[View source]

1532
1533
1534
# File 'lib/google/apis/datastore_v1/classes.rb', line 1532

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 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)

1524
1525
1526
# File 'lib/google/apis/datastore_v1/classes.rb', line 1524

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


1530
1531
1532
# File 'lib/google/apis/datastore_v1/classes.rb', line 1530

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1537
1538
1539
1540
# File 'lib/google/apis/datastore_v1/classes.rb', line 1537

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