Class: Google::Apis::SpeechV1p1beta1::Entry

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entry

Returns a new instance of Entry.



193
194
195
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 193

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

Instance Attribute Details

#case_sensitiveBoolean Also known as: case_sensitive?

Whether the search is case sensitive. Corresponds to the JSON property caseSensitive

Returns:

  • (Boolean)


180
181
182
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 180

def case_sensitive
  @case_sensitive
end

#replaceString

What to replace with. Max length is 100 characters. Corresponds to the JSON property replace

Returns:

  • (String)


186
187
188
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 186

def replace
  @replace
end

#searchString

What to replace. Max length is 100 characters. Corresponds to the JSON property search

Returns:

  • (String)


191
192
193
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 191

def search
  @search
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



198
199
200
201
202
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 198

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