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.



3137
3138
3139
# File 'lib/google/apis/firestore_v1/classes.rb', line 3137

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)


3130
3131
3132
# File 'lib/google/apis/firestore_v1/classes.rb', line 3130

def index_type
  @index_type
end

#match_typeString

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

Returns:

  • (String)


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