• 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 = "HistoryStateProto";
23option java_package = "com.google.chat.v1";
24option php_namespace = "Google\\Apps\\Chat\\V1";
25option ruby_package = "Google::Apps::Chat::V1";
26
27// The history state for messages and spaces. Specifies how long messages and
28// conversation threads are kept after creation.
29enum HistoryState {
30  // Default value. Do not use.
31  HISTORY_STATE_UNSPECIFIED = 0;
32
33  // History off. [Messages and threads are kept for 24
34  // hours](https://support.google.com/chat/answer/7664687).
35  HISTORY_OFF = 1;
36
37  // History on. The organization's [Vault retention
38  // rules](https://support.google.com/vault/answer/7657597) specify for
39  // how long messages and threads are kept.
40  HISTORY_ON = 2;
41}
42