class Google::Apis::DatastoreV1beta2::GqlQuery
A GQL query.
Attributes
When false, the query string must not contain a literal. Corresponds to the JSON property `allowLiteral` @return [Boolean]
When false, the query string must not contain a literal. Corresponds to the JSON property `allowLiteral` @return [Boolean]
A named argument must set field Google::Apis::DatastoreV1beta2::GqlQueryArg#name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse. Corresponds to the JSON property `nameArgs` @return [Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>]
Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field Google::Apis::DatastoreV1beta2::GqlQueryArg#name. For each binding site numbered i in #query_string, there must be an ith numbered argument. The inverse must also be true. Corresponds to the JSON property `numberArgs` @return [Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>]
The query string. Corresponds to the JSON property `queryString` @return [String]
Public Class Methods
# File generated/google/apis/datastore_v1beta2/classes.rb, line 309 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/datastore_v1beta2/classes.rb, line 314 def update!(**args) @allow_literal = args[:allow_literal] if args.key?(:allow_literal) @name_args = args[:name_args] if args.key?(:name_args) @number_args = args[:number_args] if args.key?(:number_args) @query_string = args[:query_string] if args.key?(:query_string) end