Class: Google::Apis::CloudsearchV1::CommunalLabelTag

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

An individual instance (or "tag") of a label configured as a communal type that's associated with a message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommunalLabelTag

Returns a new instance of CommunalLabelTag.



6623
6624
6625
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6623

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

Instance Attribute Details

#creator_user_idFixnum

Gaia ID of the user who added the tag, if any. Not present for any tags automatically created by server-side processing. Corresponds to the JSON property creatorUserId

Returns:

  • (Fixnum)


6615
6616
6617
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6615

def creator_user_id
  @creator_user_id
end

#label_idString

A string ID representing the label. Possible ID values are documented at go/ chat-labels-howto:ids. Example: "^*t_p" for "Pinned". Corresponds to the JSON property labelId

Returns:

  • (String)


6621
6622
6623
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6621

def label_id
  @label_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6628
6629
6630
6631
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6628

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