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.



6559
6560
6561
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6559

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)


6551
6552
6553
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6551

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)


6557
6558
6559
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6557

def label_id
  @label_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6564
6565
6566
6567
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6564

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