Class: Google::Apis::CloudsearchV1::PossiblyTrimmedModel

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

This message contains either the device model, or a prefix of the device model (AKA a trimmed device model). The "is_trimmed" field indicates which one it is.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PossiblyTrimmedModel

Returns a new instance of PossiblyTrimmedModel.



14954
14955
14956
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14954

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

Instance Attribute Details

#is_trimmedBoolean Also known as: is_trimmed?

Corresponds to the JSON property isTrimmed

Returns:

  • (Boolean)


14946
14947
14948
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14946

def is_trimmed
  @is_trimmed
end

#modelString

Corresponds to the JSON property model

Returns:

  • (String)


14952
14953
14954
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14952

def model
  @model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14959
14960
14961
14962
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14959

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