Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ version: v0.46.0
repo: googleapis/google-cloud-node
sources:
googleapis:
commit: 5d2a5100759be0b6fe5a1d3ce5e025d53d8283f4
sha256: 8b90727f378e5efd1fea9ea5592854dc9c3285e03fc96fcaf3027d97e9094c7d
commit: 93d6085996d0b4ff7e7e86ca9945d5524bb380d1
sha256: 2271ff64a808d6a9089d0f410d28fc9ce4dd35ffe6e1c2cf79dd9a8578ddc871
tools:
pnpm:
- name: gapic-generator-typescript
Expand Down
6 changes: 4 additions & 2 deletions packages/google-chat/protos/google/chat/v1/membership.proto
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ message Membership {
// Optional. The Google Chat user or app the membership corresponds to.
// If your Chat app [authenticates as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// the output populates the
// the output only populates the
// [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
// `name` and `type`.
// `name` and `type` fields for both internal and external users, unless
// they are members of the space or have a prior affinity, like a direct
// message (DM) conversation, with the calling user.
User member = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. The Google Group the membership corresponds to.
Expand Down
6 changes: 4 additions & 2 deletions packages/google-chat/protos/google/chat/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ message Message {
// Output only. The user who created the message.
// If your Chat app [authenticates as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// the output populates the
// the output only populates the
// [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
// `name` and `type`.
// `name` and `type` fields for both internal and external users, unless they
// are members of the space or have a prior affinity, like a direct message
// (DM) conversation, with the calling user.
User sender = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. Immutable. For spaces created in Chat, the time at which the
Expand Down
42 changes: 37 additions & 5 deletions packages/google-chat/protos/google/chat/v1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ option objc_class_prefix = "DYNAPIProto";
option php_namespace = "Google\\Apps\\Chat\\V1";
option ruby_package = "Google::Apps::Chat::V1";

// A user in Google Chat.
// When returned as an output from a request, if your Chat app [authenticates as
// a
// If your Chat app [authenticates as a
// user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// the output for a `User` resource only populates the user's `name` and `type`.
// the output for a `User` resource (such as in the Messages and Memberships
// APIs) only populates the `name` and `type` fields for both internal and
// external users, unless they are members of the space or have prior affinity
// with the calling user.
message User {
enum Type {
// Default value for the enum. DO NOT USE.
Expand Down Expand Up @@ -69,15 +70,46 @@ message User {
string name = 1;

// Output only. The user's display name.
//
// Populated for both app authentication and user authentication.
// This field is always populated for requests made with [app
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
// When calling the Messages and Memberships APIs with [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// this field is populated for both internal and external users for the
// `sender` of a message, users within `annotations` (such as user
// mentions), and within `Membership` resources, provided the user is a
// member of the space or has prior affinity with the calling user.
string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The user's avatar image URL.
//
// When calling the Messages and Memberships APIs with [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// this field is populated for both internal and external users for the
// `sender` of a message, users within `annotations` (such as user
// mentions), and within `Membership` resources, provided the user is a
// member of the space or has prior affinity with the calling user.
string avatar_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The user's email address.
//
// When calling the Messages and Memberships APIs with [user
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
// this field is populated for both internal and external users for the
// `sender` of a message, users within `annotations` (such as user
// mentions), and within `Membership` resources, provided the user is a
// member of the space or has prior affinity with the calling user.
string email = 4 [(google.api.field_behavior) = OUTPUT_ONLY];

// Unique identifier of the user's Google Workspace domain.
string domain_id = 6;

// User type.
Type type = 5;

// Output only. When `true`, the user is deleted or their profile is not
// visible.
// visible, such as when a user is mentioned in a space without being a member
// and without prior affinity with the calling user.
bool is_anonymous = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
}
12 changes: 12 additions & 0 deletions packages/google-chat/protos/protos.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14504,6 +14504,12 @@ export namespace google {
/** User displayName */
displayName?: (string|null);

/** User avatarUrl */
avatarUrl?: (string|null);

/** User email */
email?: (string|null);

/** User domainId */
domainId?: (string|null);

Expand All @@ -14529,6 +14535,12 @@ export namespace google {
/** User displayName. */
public displayName: string;

/** User avatarUrl. */
public avatarUrl: string;

/** User email. */
public email: string;

/** User domainId. */
public domainId: string;

Expand Down
2 changes: 1 addition & 1 deletion packages/google-chat/protos/protos.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions packages/google-chat/protos/protos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3675,6 +3675,20 @@
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"avatarUrl": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"email": {
"type": "string",
"id": 4,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"domainId": {
"type": "string",
"id": 6
Expand Down
Loading
Loading