# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/chat/v1/annotation.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/chat/v1/attachment_pb'
require 'google/chat/v1/reaction_pb'
require 'google/chat/v1/user_pb'


descriptor_data = "\n\x1fgoogle/chat/v1/annotation.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x19google/chat/v1/user.proto\"\x82\x03\n\nAnnotation\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.google.chat.v1.AnnotationType\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12;\n\x0cuser_mention\x18\x04 \x01(\x0b\x32#.google.chat.v1.UserMentionMetadataH\x00\x12=\n\rslash_command\x18\x05 \x01(\x0b\x32$.google.chat.v1.SlashCommandMetadataH\x00\x12>\n\x12rich_link_metadata\x18\x06 \x01(\x0b\x32 .google.chat.v1.RichLinkMetadataH\x00\x12\x44\n\x15\x63ustom_emoji_metadata\x18\x07 \x01(\x0b\x32#.google.chat.v1.CustomEmojiMetadataH\x00\x42\n\n\x08metadataB\x0e\n\x0c_start_index\"\xa5\x01\n\x13UserMentionMetadata\x12\"\n\x04user\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.chat.v1.UserMentionMetadata.Type\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x0b\n\x07MENTION\x10\x02\"\xe8\x01\n\x14SlashCommandMetadata\x12!\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).google.chat.v1.SlashCommandMetadata.Type\x12\x14\n\x0c\x63ommand_name\x18\x03 \x01(\t\x12\x12\n\ncommand_id\x18\x04 \x01(\x03\x12\x17\n\x0ftriggers_dialog\x18\x05 \x01(\x08\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06INVOKE\x10\x02\"\xed\x03\n\x10RichLinkMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x45\n\x0erich_link_type\x18\x02 \x01(\x0e\x32-.google.chat.v1.RichLinkMetadata.RichLinkType\x12\x38\n\x0f\x64rive_link_data\x18\x03 \x01(\x0b\x32\x1d.google.chat.v1.DriveLinkDataH\x00\x12\x41\n\x14\x63hat_space_link_data\x18\x04 \x01(\x0b\x32!.google.chat.v1.ChatSpaceLinkDataH\x00\x12\x41\n\x14meet_space_link_data\x18\x05 \x01(\x0b\x32!.google.chat.v1.MeetSpaceLinkDataH\x00\x12I\n\x18\x63\x61lendar_event_link_data\x18\x06 \x01(\x0b\x32%.google.chat.v1.CalendarEventLinkDataH\x00\"r\n\x0cRichLinkType\x12\x1e\n\x1aRICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x12\x0e\n\nCHAT_SPACE\x10\x02\x12\x0e\n\nMEET_SPACE\x10\x04\x12\x12\n\x0e\x43\x41LENDAR_EVENT\x10\x05\x42\x06\n\x04\x64\x61ta\"H\n\x13\x43ustomEmojiMetadata\x12\x31\n\x0c\x63ustom_emoji\x18\x01 \x01(\x0b\x32\x1b.google.chat.v1.CustomEmoji\"X\n\rDriveLinkData\x12\x34\n\x0e\x64rive_data_ref\x18\x01 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRef\x12\x11\n\tmime_type\x18\x02 \x01(\t\"\xa6\x01\n\x11\x43hatSpaceLinkData\x12-\n\x05space\x18\x01 \x01(\tB\x1e\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12/\n\x06thread\x18\x02 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x63hat.googleapis.com/Thread\x12\x31\n\x07message\x18\x03 \x01(\tB \xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\"\xb8\x02\n\x11MeetSpaceLinkData\x12\x14\n\x0cmeeting_code\x18\x01 \x01(\t\x12\x34\n\x04type\x18\x02 \x01(\x0e\x32&.google.chat.v1.MeetSpaceLinkData.Type\x12M\n\rhuddle_status\x18\x03 \x01(\x0e\x32..google.chat.v1.MeetSpaceLinkData.HuddleStatusB\x06\xe0\x41\x01\xe0\x41\x03\"5\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MEETING\x10\x01\x12\n\n\x06HUDDLE\x10\x02\"Q\n\x0cHuddleStatus\x12\x1d\n\x19HUDDLE_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\t\n\x05\x45NDED\x10\x02\x12\n\n\x06MISSED\x10\x03\">\n\x15\x43\x61lendarEventLinkData\x12\x13\n\x0b\x63\x61lendar_id\x18\x01 \x01(\t\x12\x10\n\x08\x65vent_id\x18\x02 \x01(\t*w\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_MENTION\x10\x01\x12\x11\n\rSLASH_COMMAND\x10\x02\x12\r\n\tRICH_LINK\x10\x03\x12\x10\n\x0c\x43USTOM_EMOJI\x10\x04\x42\xa8\x01\n\x12\x63om.google.chat.v1B\x0f\x41nnotationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.chat.v1.User", "google/chat/v1/user.proto"],
    ["google.chat.v1.CustomEmoji", "google/chat/v1/reaction.proto"],
    ["google.chat.v1.DriveDataRef", "google/chat/v1/attachment.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Apps
    module Chat
      module V1
        Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Annotation").msgclass
        UserMentionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UserMentionMetadata").msgclass
        UserMentionMetadata::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UserMentionMetadata.Type").enummodule
        SlashCommandMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SlashCommandMetadata").msgclass
        SlashCommandMetadata::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SlashCommandMetadata.Type").enummodule
        RichLinkMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.RichLinkMetadata").msgclass
        RichLinkMetadata::RichLinkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.RichLinkMetadata.RichLinkType").enummodule
        CustomEmojiMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CustomEmojiMetadata").msgclass
        DriveLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DriveLinkData").msgclass
        ChatSpaceLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ChatSpaceLinkData").msgclass
        MeetSpaceLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData").msgclass
        MeetSpaceLinkData::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData.Type").enummodule
        MeetSpaceLinkData::HuddleStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData.HuddleStatus").enummodule
        CalendarEventLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CalendarEventLinkData").msgclass
        AnnotationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.AnnotationType").enummodule
      end
    end
  end
end
