Class: Google::Apis::CloudsearchV1::MessageInfo

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) ⇒ MessageInfo

Returns a new instance of MessageInfo.



14355
14356
14357
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14355

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

Instance Attribute Details

#author_user_typeString

Message author’s user type (human/bot). Corresponds to the JSON property authorUserType

Returns:

  • (String)


14343
14344
14345
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14343

def author_user_type
  @author_user_type
end

#messageGoogle::Apis::CloudsearchV1::Message

Message posted to a Space. Corresponds to the JSON property message



14348
14349
14350
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14348

def message
  @message
end

#searcher_membership_stateString

Searcher's membership state in the space where the message is posted. Corresponds to the JSON property searcherMembershipState

Returns:

  • (String)


14353
14354
14355
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14353

def searcher_membership_state
  @searcher_membership_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14360
14361
14362
14363
14364
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14360

def update!(**args)
  @author_user_type = args[:author_user_type] if args.key?(:author_user_type)
  @message = args[:message] if args.key?(:message)
  @searcher_membership_state = args[:searcher_membership_state] if args.key?(:searcher_membership_state)
end