Class: Google::Apps::Chat::V1::User
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::User
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/chat/v1/user.rb
Overview
A user in Google Chat.
When returned as an output from a request, if your Chat app authenticates as
a
user,
the output for a User resource only populates the user's name and type.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#display_name ⇒ ::String
readonly
Output only.
-
#domain_id ⇒ ::String
Unique identifier of the user's Google Workspace domain.
-
#is_anonymous ⇒ ::Boolean
readonly
Output only.
-
#name ⇒ ::String
Resource name for a Google Chat user.
-
#type ⇒ ::Google::Apps::Chat::V1::User::Type
User type.
Instance Attribute Details
#display_name ⇒ ::String (readonly)
Returns Output only. The user's display name.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'proto_docs/google/chat/v1/user.rb', line 66 class User include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module Type # Default value for the enum. DO NOT USE. TYPE_UNSPECIFIED = 0 # Human user. HUMAN = 1 # Chat app user. BOT = 2 end end |
#domain_id ⇒ ::String
Returns Unique identifier of the user's Google Workspace domain.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'proto_docs/google/chat/v1/user.rb', line 66 class User include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module Type # Default value for the enum. DO NOT USE. TYPE_UNSPECIFIED = 0 # Human user. HUMAN = 1 # Chat app user. BOT = 2 end end |
#is_anonymous ⇒ ::Boolean (readonly)
Returns Output only. When true, the user is deleted or their profile is not
visible.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'proto_docs/google/chat/v1/user.rb', line 66 class User include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module Type # Default value for the enum. DO NOT USE. TYPE_UNSPECIFIED = 0 # Human user. HUMAN = 1 # Chat app user. BOT = 2 end end |
#name ⇒ ::String
Returns Resource name for a Google Chat user.
Format: users/{user}. users/app can be used as an alias for the calling
app bot user.
For human users, {user} is the same
user identifier as:
the
idfor the Person in the People API. For example,users/123456789in Chat API represents the same person as the123456789Person profile ID in People API.the
idfor a user in the Admin SDK Directory API.the user's email address can be used as an alias for
{user}in API requests. For example, if the People API Person profile ID for[email protected]is123456789, you can useusers/[email protected]as an alias to referenceusers/123456789. Only the canonical resource name (for exampleusers/123456789) will be returned from the API.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'proto_docs/google/chat/v1/user.rb', line 66 class User include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module Type # Default value for the enum. DO NOT USE. TYPE_UNSPECIFIED = 0 # Human user. HUMAN = 1 # Chat app user. BOT = 2 end end |
#type ⇒ ::Google::Apps::Chat::V1::User::Type
Returns User type.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'proto_docs/google/chat/v1/user.rb', line 66 class User include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module Type # Default value for the enum. DO NOT USE. TYPE_UNSPECIFIED = 0 # Human user. HUMAN = 1 # Chat app user. BOT = 2 end end |