Class: Google::Apis::SpeechV1p1beta1::Entry
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1p1beta1::Entry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/representations.rb
Overview
A single replacement configuration.
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Boolean
(also: #case_sensitive?)
Whether the search is case sensitive.
-
#replace ⇒ String
What to replace with.
-
#search ⇒ String
What to replace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entry
constructor
A new instance of Entry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entry
Returns a new instance of Entry.
173 174 175 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 173 def initialize(**args) update!(**args) end |
Instance Attribute Details
#case_sensitive ⇒ Boolean Also known as: case_sensitive?
Whether the search is case sensitive.
Corresponds to the JSON property caseSensitive
160 161 162 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 160 def case_sensitive @case_sensitive end |
#replace ⇒ String
What to replace with. Max length is 100 characters.
Corresponds to the JSON property replace
166 167 168 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 166 def replace @replace end |
#search ⇒ String
What to replace. Max length is 100 characters.
Corresponds to the JSON property search
171 172 173 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 171 def search @search end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
178 179 180 181 182 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 178 def update!(**args) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) @replace = args[:replace] if args.key?(:replace) @search = args[:search] if args.key?(:search) end |