• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.chat.v1;
18
19option csharp_namespace = "Google.Apps.Chat.V1";
20option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21option java_multiple_files = true;
22option java_outer_classname = "DeletionMetadataProto";
23option java_package = "com.google.chat.v1";
24option php_namespace = "Google\\Apps\\Chat\\V1";
25option ruby_package = "Google::Apps::Chat::V1";
26
27// Information about a deleted message. A message is deleted when `delete_time`
28// is set.
29message DeletionMetadata {
30  // Who deleted the message and how it was deleted.
31  enum DeletionType {
32    // This value is unused.
33    DELETION_TYPE_UNSPECIFIED = 0;
34
35    // User deleted their own message.
36    CREATOR = 1;
37
38    // The space owner deleted the message.
39    SPACE_OWNER = 2;
40
41    // A Google Workspace admin deleted the message.
42    ADMIN = 3;
43
44    // A Chat app deleted its own message when it expired.
45    APP_MESSAGE_EXPIRY = 4;
46
47    // A Chat app deleted the message on behalf of the user.
48    CREATOR_VIA_APP = 5;
49
50    // A Chat app deleted the message on behalf of the space owner.
51    SPACE_OWNER_VIA_APP = 6;
52  }
53
54  // Indicates who deleted the message.
55  DeletionType deletion_type = 1;
56}
57