Class: Google::Apis::DatastoreV1beta3::CompositeFilter

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

Overview

A filter that merges multiple other filters using the given operator.

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

Returns a new instance of CompositeFilter



1272
1273
1274
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1272

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

Instance Attribute Details

#filtersArray<Google::Apis::DatastoreV1beta3::Filter>

The list of filters to combine. Must contain at least one filter. Corresponds to the JSON property filters



1270
1271
1272
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1270

def filters
  @filters
end

#opString

The operator for combining multiple filters. Corresponds to the JSON property op

Returns:

  • (String)


1264
1265
1266
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1264

def op
  @op
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1277

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