Class: Google::Apis::CloudsearchV1::MessageInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MessageInfo
- 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
-
#author_user_type ⇒ String
Message author’s user type (human/bot).
-
#message ⇒ Google::Apis::CloudsearchV1::Message
Message posted to a Space.
-
#searcher_membership_state ⇒ String
Searcher's membership state in the space where the message is posted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MessageInfo
constructor
A new instance of MessageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MessageInfo
Returns a new instance of MessageInfo.
14278 14279 14280 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author_user_type ⇒ String
Message author’s user type (human/bot).
Corresponds to the JSON property authorUserType
14266 14267 14268 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14266 def @author_user_type end |
#message ⇒ Google::Apis::CloudsearchV1::Message
Message posted to a Space.
Corresponds to the JSON property message
14271 14272 14273 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14271 def @message end |
#searcher_membership_state ⇒ String
Searcher's membership state in the space where the message is posted.
Corresponds to the JSON property searcherMembershipState
14276 14277 14278 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14276 def searcher_membership_state @searcher_membership_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14283 14284 14285 14286 14287 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14283 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 |