class Google::Apis::CloudsearchV1::QueryOperator

The definition of a operator that can be used in a Search/Suggest request.

Attributes

display_name[RW]

Display name of the operator Corresponds to the JSON property `displayName` @return [String]

enum_values[RW]

Potential list of values for the opeatror field. This field is only filled when we can safely enumerate all the possible values of this operator. Corresponds to the JSON property `enumValues` @return [Array<String>]

greater_than_operator_name[RW]

Indicates the operator name that can be used to isolate the property using the greater-than operator. Corresponds to the JSON property `greaterThanOperatorName` @return [String]

is_facetable[RW]

Can this operator be used to get facets. Corresponds to the JSON property `isFacetable` @return [Boolean]

is_facetable?[RW]

Can this operator be used to get facets. Corresponds to the JSON property `isFacetable` @return [Boolean]

is_repeatable[RW]

Indicates if multiple values can be set for this property. Corresponds to the JSON property `isRepeatable` @return [Boolean]

is_repeatable?[RW]

Indicates if multiple values can be set for this property. Corresponds to the JSON property `isRepeatable` @return [Boolean]

is_returnable[RW]

Will the property associated with this facet be returned as part of search results. Corresponds to the JSON property `isReturnable` @return [Boolean]

is_returnable?[RW]

Will the property associated with this facet be returned as part of search results. Corresponds to the JSON property `isReturnable` @return [Boolean]

is_sortable[RW]

Can this operator be used to sort results. Corresponds to the JSON property `isSortable` @return [Boolean]

is_sortable?[RW]

Can this operator be used to sort results. Corresponds to the JSON property `isSortable` @return [Boolean]

is_suggestable[RW]

Can get suggestions for this field. Corresponds to the JSON property `isSuggestable` @return [Boolean]

is_suggestable?[RW]

Can get suggestions for this field. Corresponds to the JSON property `isSuggestable` @return [Boolean]

less_than_operator_name[RW]

Indicates the operator name that can be used to isolate the property using the less-than operator. Corresponds to the JSON property `lessThanOperatorName` @return [String]

object_type[RW]

Name of the object corresponding to the operator. This field is only filled for schema-specific operators, and is unset for common operators. Corresponds to the JSON property `objectType` @return [String]

operator_name[RW]

The name of the operator. Corresponds to the JSON property `operatorName` @return [String]

type[RW]

Type of the operator. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 3480
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 3485
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enum_values = args[:enum_values] if args.key?(:enum_values)
  @greater_than_operator_name = args[:greater_than_operator_name] if args.key?(:greater_than_operator_name)
  @is_facetable = args[:is_facetable] if args.key?(:is_facetable)
  @is_repeatable = args[:is_repeatable] if args.key?(:is_repeatable)
  @is_returnable = args[:is_returnable] if args.key?(:is_returnable)
  @is_sortable = args[:is_sortable] if args.key?(:is_sortable)
  @is_suggestable = args[:is_suggestable] if args.key?(:is_suggestable)
  @less_than_operator_name = args[:less_than_operator_name] if args.key?(:less_than_operator_name)
  @object_type = args[:object_type] if args.key?(:object_type)
  @operator_name = args[:operator_name] if args.key?(:operator_name)
  @type = args[:type] if args.key?(:type)
end