Class: Google::Apis::DatastoreV1beta2::GqlQueryArg

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

Overview

A binding argument 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) ⇒ GqlQueryArg

Returns a new instance of GqlQueryArg.



343
344
345
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 343

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

Instance Attribute Details

#cursorString

Corresponds to the JSON property cursor

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 329

def cursor
  @cursor
end

#nameString

Must match regex "[A-Za-z_$][A-Za-z_$0-9]". Must not match regex "__.__". Must not be "". Corresponds to the JSON property name

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 335

def name
  @name
end

#valueGoogle::Apis::DatastoreV1beta2::Value

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



341
342
343
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 341

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
352
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 348

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