Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SearchTextIndexSpec
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SearchTextIndexSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
Specification of how the field should be indexed for search text indexes.
Instance Attribute Summary collapse
-
#index_type ⇒ String
Required.
-
#match_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1SearchTextIndexSpec
constructor
A new instance of GoogleFirestoreAdminV1SearchTextIndexSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1SearchTextIndexSpec
Returns a new instance of GoogleFirestoreAdminV1SearchTextIndexSpec.
3137 3138 3139 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index_type ⇒ String
Required. How to index the text field value.
Corresponds to the JSON property indexType
3130 3131 3132 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3130 def index_type @index_type end |
#match_type ⇒ String
Required. How to match the text field value.
Corresponds to the JSON property matchType
3135 3136 3137 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3135 def match_type @match_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3142 3143 3144 3145 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3142 def update!(**args) @index_type = args[:index_type] if args.key?(:index_type) @match_type = args[:match_type] if args.key?(:match_type) end |