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

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/chat/v1/membership_pb'
require 'google/chat/v1/message_pb'
require 'google/chat/v1/reaction_pb'
require 'google/chat/v1/space_pb'


descriptor_data = "\n\"google/chat/v1/event_payload.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\"L\n\x1aMembershipCreatedEventData\x12.\n\nmembership\x18\x01 \x01(\x0b\x32\x1a.google.chat.v1.Membership\"L\n\x1aMembershipDeletedEventData\x12.\n\nmembership\x18\x01 \x01(\x0b\x32\x1a.google.chat.v1.Membership\"L\n\x1aMembershipUpdatedEventData\x12.\n\nmembership\x18\x01 \x01(\x0b\x32\x1a.google.chat.v1.Membership\"b\n\x1fMembershipBatchCreatedEventData\x12?\n\x0bmemberships\x18\x01 \x03(\x0b\x32*.google.chat.v1.MembershipCreatedEventData\"b\n\x1fMembershipBatchUpdatedEventData\x12?\n\x0bmemberships\x18\x01 \x03(\x0b\x32*.google.chat.v1.MembershipUpdatedEventData\"b\n\x1fMembershipBatchDeletedEventData\x12?\n\x0bmemberships\x18\x01 \x03(\x0b\x32*.google.chat.v1.MembershipDeletedEventData\"C\n\x17MessageCreatedEventData\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\"C\n\x17MessageUpdatedEventData\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\"C\n\x17MessageDeletedEventData\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\"Y\n\x1cMessageBatchCreatedEventData\x12\x39\n\x08messages\x18\x01 \x03(\x0b\x32\'.google.chat.v1.MessageCreatedEventData\"Y\n\x1cMessageBatchUpdatedEventData\x12\x39\n\x08messages\x18\x01 \x03(\x0b\x32\'.google.chat.v1.MessageUpdatedEventData\"Y\n\x1cMessageBatchDeletedEventData\x12\x39\n\x08messages\x18\x01 \x03(\x0b\x32\'.google.chat.v1.MessageDeletedEventData\"=\n\x15SpaceUpdatedEventData\x12$\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.Space\"S\n\x1aSpaceBatchUpdatedEventData\x12\x35\n\x06spaces\x18\x01 \x03(\x0b\x32%.google.chat.v1.SpaceUpdatedEventData\"F\n\x18ReactionCreatedEventData\x12*\n\x08reaction\x18\x01 \x01(\x0b\x32\x18.google.chat.v1.Reaction\"F\n\x18ReactionDeletedEventData\x12*\n\x08reaction\x18\x01 \x01(\x0b\x32\x18.google.chat.v1.Reaction\"\\\n\x1dReactionBatchCreatedEventData\x12;\n\treactions\x18\x01 \x03(\x0b\x32(.google.chat.v1.ReactionCreatedEventData\"\\\n\x1dReactionBatchDeletedEventData\x12;\n\treactions\x18\x01 \x03(\x0b\x32(.google.chat.v1.ReactionDeletedEventDataB\xaa\x01\n\x12\x63om.google.chat.v1B\x11\x45ventPayloadProtoP\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.Membership", "google/chat/v1/membership.proto"],
    ["google.chat.v1.Message", "google/chat/v1/message.proto"],
    ["google.chat.v1.Space", "google/chat/v1/space.proto"],
    ["google.chat.v1.Reaction", "google/chat/v1/reaction.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
        MembershipCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipCreatedEventData").msgclass
        MembershipDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipDeletedEventData").msgclass
        MembershipUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipUpdatedEventData").msgclass
        MembershipBatchCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipBatchCreatedEventData").msgclass
        MembershipBatchUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipBatchUpdatedEventData").msgclass
        MembershipBatchDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MembershipBatchDeletedEventData").msgclass
        MessageCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageCreatedEventData").msgclass
        MessageUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageUpdatedEventData").msgclass
        MessageDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageDeletedEventData").msgclass
        MessageBatchCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageBatchCreatedEventData").msgclass
        MessageBatchUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageBatchUpdatedEventData").msgclass
        MessageBatchDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MessageBatchDeletedEventData").msgclass
        SpaceUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SpaceUpdatedEventData").msgclass
        SpaceBatchUpdatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SpaceBatchUpdatedEventData").msgclass
        ReactionCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReactionCreatedEventData").msgclass
        ReactionDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReactionDeletedEventData").msgclass
        ReactionBatchCreatedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReactionBatchCreatedEventData").msgclass
        ReactionBatchDeletedEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReactionBatchDeletedEventData").msgclass
      end
    end
  end
end
