Class: Google::Apis::CloudsearchV1::PropertyDefinition
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::PropertyDefinition
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb more...
Overview
The definition of a property within an object.
Instance Attribute Summary collapse
-
#boolean_property_options ⇒ Google::Apis::CloudsearchV1::BooleanPropertyOptions
Options for boolean properties.
-
#date_property_options ⇒ Google::Apis::CloudsearchV1::DatePropertyOptions
Options for date properties.
-
#display_options ⇒ Google::Apis::CloudsearchV1::PropertyDisplayOptions
The display options for a property.
-
#double_property_options ⇒ Google::Apis::CloudsearchV1::DoublePropertyOptions
Options for double properties.
-
#enum_property_options ⇒ Google::Apis::CloudsearchV1::EnumPropertyOptions
Options for enum properties, which allow you to define a restricted set of strings to match user queries, set rankings for those string values, and define an operator name to be paired with those strings so that users can narrow results to only items with a specific value.
-
#html_property_options ⇒ Google::Apis::CloudsearchV1::HtmlPropertyOptions
Options for html properties.
-
#integer_property_options ⇒ Google::Apis::CloudsearchV1::IntegerPropertyOptions
Options for integer properties.
-
#is_facetable ⇒ Boolean
(also: #is_facetable?)
Indicates that the property can be used for generating facets.
-
#is_repeatable ⇒ Boolean
(also: #is_repeatable?)
Indicates that multiple values are allowed for the property.
-
#is_returnable ⇒ Boolean
(also: #is_returnable?)
Indicates that the property identifies data that should be returned in search results via the Query API.
-
#is_sortable ⇒ Boolean
(also: #is_sortable?)
Indicates that the property can be used for sorting.
-
#name ⇒ String
The name of the property.
-
#object_property_options ⇒ Google::Apis::CloudsearchV1::ObjectPropertyOptions
Options for object properties.
-
#text_property_options ⇒ Google::Apis::CloudsearchV1::TextPropertyOptions
Options for text properties.
-
#timestamp_property_options ⇒ Google::Apis::CloudsearchV1::TimestampPropertyOptions
Options for timestamp properties.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PropertyDefinition
constructor
A new instance of PropertyDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PropertyDefinition
Returns a new instance of PropertyDefinition
2817 2818 2819 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boolean_property_options ⇒ Google::Apis::CloudsearchV1::BooleanPropertyOptions
Options for boolean properties.
Corresponds to the JSON property booleanPropertyOptions
2707 2708 2709 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2707 def @boolean_property_options end |
#date_property_options ⇒ Google::Apis::CloudsearchV1::DatePropertyOptions
Options for date properties.
Corresponds to the JSON property datePropertyOptions
2712 2713 2714 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2712 def @date_property_options end |
#display_options ⇒ Google::Apis::CloudsearchV1::PropertyDisplayOptions
The display options for a property.
Corresponds to the JSON property displayOptions
2717 2718 2719 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2717 def @display_options end |
#double_property_options ⇒ Google::Apis::CloudsearchV1::DoublePropertyOptions
Options for double properties.
Corresponds to the JSON property doublePropertyOptions
2722 2723 2724 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2722 def @double_property_options end |
#enum_property_options ⇒ Google::Apis::CloudsearchV1::EnumPropertyOptions
Options for enum properties, which allow you to define a restricted set of
strings to match user queries, set rankings for those string values, and
define an operator name to be paired with those strings so that users can
narrow results to only items with a specific value. For example, for items in
a request tracking system with priority information, you could define p0 as
an allowable enum value and tie this enum to the operator name priority so
that search users could add priority:p0 to their query to restrict the set
of results to only those items indexed with the value p0.
Corresponds to the JSON property enumPropertyOptions
2734 2735 2736 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2734 def @enum_property_options end |
#html_property_options ⇒ Google::Apis::CloudsearchV1::HtmlPropertyOptions
Options for html properties.
Corresponds to the JSON property htmlPropertyOptions
2739 2740 2741 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2739 def @html_property_options end |
#integer_property_options ⇒ Google::Apis::CloudsearchV1::IntegerPropertyOptions
Options for integer properties.
Corresponds to the JSON property integerPropertyOptions
2744 2745 2746 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2744 def @integer_property_options end |
#is_facetable ⇒ Boolean Also known as: is_facetable?
Indicates that the property can be used for generating facets. Cannot be
true for properties whose type is object. IsReturnable must be true to set
this option.
Only supported for Boolean, Enum, and Text properties.
Corresponds to the JSON property isFacetable
2752 2753 2754 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2752 def is_facetable @is_facetable end |
#is_repeatable ⇒ Boolean Also known as: is_repeatable?
Indicates that multiple values are allowed for the property. For example, a
document only has one description but can have multiple comments. Cannot be
true for properties whose type is a boolean.
If set to false, properties that contain more than one value will cause the
indexing request for that item to be rejected.
Corresponds to the JSON property isRepeatable
2762 2763 2764 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2762 def is_repeatable @is_repeatable end |
#is_returnable ⇒ Boolean Also known as: is_returnable?
Indicates that the property identifies data that should be returned in search
results via the Query API. If set to true, indicates that Query API
users can use matching property fields in results. However, storing fields
requires more space allocation and uses more bandwidth for search queries,
which impacts performance over large datasets. Set to true here only if
the field is needed for search results. Cannot be true for properties
whose type is an object.
Corresponds to the JSON property isReturnable
2774 2775 2776 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2774 def is_returnable @is_returnable end |
#is_sortable ⇒ Boolean Also known as: is_sortable?
Indicates that the property can be used for sorting. Cannot be true for
properties that are repeatable. Cannot be true for properties whose type
is object or user identifier. IsReturnable must be true to set this option.
Only supported for Boolean, Date, Double, Integer, and Timestamp
properties.
Corresponds to the JSON property isSortable
2784 2785 2786 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2784 def is_sortable @is_sortable end |
#name ⇒ String
The name of the property. Item indexing requests sent to the Indexing API
should set the property name
equal to this value. For example, if name is subject_line, then indexing
requests for document items with subject fields should set the
name for that field equal to
subject_line. Use the name as the identifier for the object property.
Once registered as a property for an object, you cannot re-use this name
for another property within that object.
The name must start with a letter and can only contain letters (A-Z, a-z)
or numbers (0-9).
The maximum length is 256 characters.
Corresponds to the JSON property name
2800 2801 2802 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2800 def name @name end |
#object_property_options ⇒ Google::Apis::CloudsearchV1::ObjectPropertyOptions
Options for object properties.
Corresponds to the JSON property objectPropertyOptions
2805 2806 2807 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2805 def @object_property_options end |
#text_property_options ⇒ Google::Apis::CloudsearchV1::TextPropertyOptions
Options for text properties.
Corresponds to the JSON property textPropertyOptions
2810 2811 2812 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2810 def @text_property_options end |
#timestamp_property_options ⇒ Google::Apis::CloudsearchV1::TimestampPropertyOptions
Options for timestamp properties.
Corresponds to the JSON property timestampPropertyOptions
2815 2816 2817 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2815 def @timestamp_property_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2822 def update!(**args) @boolean_property_options = args[:boolean_property_options] if args.key?(:boolean_property_options) @date_property_options = args[:date_property_options] if args.key?(:date_property_options) @display_options = args[:display_options] if args.key?(:display_options) @double_property_options = args[:double_property_options] if args.key?(:double_property_options) @enum_property_options = args[:enum_property_options] if args.key?(:enum_property_options) @html_property_options = args[:html_property_options] if args.key?(:html_property_options) @integer_property_options = args[:integer_property_options] if args.key?(:integer_property_options) @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) @name = args[:name] if args.key?(:name) @object_property_options = args[:object_property_options] if args.key?(:object_property_options) @text_property_options = args[:text_property_options] if args.key?(:text_property_options) @timestamp_property_options = args[:timestamp_property_options] if args.key?(:timestamp_property_options) end |