Class: Google::Apis::CloudsearchV1::ImapSessionContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImapSessionContext

Returns a new instance of ImapSessionContext.



11529
11530
11531
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11529

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

Instance Attribute Details

#appString

Corresponds to the JSON property app

Returns:

  • (String)


11498
11499
11500
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11498

def app
  @app
end

#device_typeString

User agent information Corresponds to the JSON property deviceType

Returns:

  • (String)


11503
11504
11505
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11503

def device_type
  @device_type
end

#guid_fingerprintFixnum

As agreed with Bond team, this holds the fingerprint of any "aguid" or "guid" provided by the ID command. The fingerprint should be calculated by fingerprint2011. Note that not all clients will provide aguid or guid through ID command. Corresponds to the JSON property guidFingerprint

Returns:

  • (Fixnum)


11511
11512
11513
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11511

def guid_fingerprint
  @guid_fingerprint
end

#osString

Corresponds to the JSON property os

Returns:

  • (String)


11516
11517
11518
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11516

def os
  @os
end

#os_versionGoogle::Apis::CloudsearchV1::OsVersion

Corresponds to the JSON property osVersion



11521
11522
11523
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11521

def os_version
  @os_version
end

#possibly_trimmed_modelGoogle::Apis::CloudsearchV1::PossiblyTrimmedModel

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. Corresponds to the JSON property possiblyTrimmedModel



11527
11528
11529
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11527

def possibly_trimmed_model
  @possibly_trimmed_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11534
11535
11536
11537
11538
11539
11540
11541
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11534

def update!(**args)
  @app = args[:app] if args.key?(:app)
  @device_type = args[:device_type] if args.key?(:device_type)
  @guid_fingerprint = args[:guid_fingerprint] if args.key?(:guid_fingerprint)
  @os = args[:os] if args.key?(:os)
  @os_version = args[:os_version] if args.key?(:os_version)
  @possibly_trimmed_model = args[:possibly_trimmed_model] if args.key?(:possibly_trimmed_model)
end