Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SearchTextIndexSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1SearchTextIndexSpec

Returns a new instance of GoogleFirestoreAdminV1SearchTextIndexSpec.



3151
3152
3153
# File 'lib/google/apis/firestore_v1/classes.rb', line 3151

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

Instance Attribute Details

#index_typeString

Required. How to index the text field value. Corresponds to the JSON property indexType

Returns:

  • (String)


3144
3145
3146
# File 'lib/google/apis/firestore_v1/classes.rb', line 3144

def index_type
  @index_type
end

#match_typeString

Required. How to match the text field value. Corresponds to the JSON property matchType

Returns:

  • (String)


3149
3150
3151
# File 'lib/google/apis/firestore_v1/classes.rb', line 3149

def match_type
  @match_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3156
3157
3158
3159
# File 'lib/google/apis/firestore_v1/classes.rb', line 3156

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