// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Apps.Chat.V1";
option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
option java_multiple_files = true;
option java_outer_classname = "MarkupSyntaxProto";
option java_package = "com.google.chat.v1";
option objc_class_prefix = "DYNAPIProto";
option php_namespace = "Google\\Apps\\Chat\\V1";
option ruby_package = "Google::Apps::Chat::V1";

// Specifies the markup syntax used to format the Chat message text.
// Applies to the `text` field of the `Message` resource.
enum MarkupSyntax {
  // Represents the unspecified value.
  MARKUP_SYNTAX_UNSPECIFIED = 0;

  // Uses Google Chat's markup syntax.
  // See
  // https://developers.google.com/workspace/chat/format-messages#format-texts
  // for more information.
  MARKUP_SYNTAX_CHAT = 1;

  // Uses Markdown syntax. This syntax is based on the
  // [CommonMark](https://commonmark.org/help/) specification, with additional
  // extensions.
  // See
  // https://developers.google.com/workspace/chat/format-messages#format-texts
  // for more information.
  MARKUP_SYNTAX_MARKDOWN = 2;
}
