// Copyright 2021 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
//
//     https://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.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.27.1
// 	protoc        v3.17.3
// source: messages_proto2.proto

package testdata

import (
	reflect "reflect"
	sync "sync"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// ExtEnum is an externally define enum.
type ExtEnum int32

const (
	ExtEnum_UNDEFINED   ExtEnum = 0
	ExtEnum_THING       ExtEnum = 1
	ExtEnum_OTHER_THING ExtEnum = 2
)

// Enum value maps for ExtEnum.
var (
	ExtEnum_name = map[int32]string{
		0: "UNDEFINED",
		1: "THING",
		2: "OTHER_THING",
	}
	ExtEnum_value = map[string]int32{
		"UNDEFINED":   0,
		"THING":       1,
		"OTHER_THING": 2,
	}
)

func (x ExtEnum) Enum() *ExtEnum {
	p := new(ExtEnum)
	*p = x
	return p
}

func (x ExtEnum) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ExtEnum) Descriptor() protoreflect.EnumDescriptor {
	return file_messages_proto2_proto_enumTypes[0].Descriptor()
}

func (ExtEnum) Type() protoreflect.EnumType {
	return &file_messages_proto2_proto_enumTypes[0]
}

func (x ExtEnum) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Do not use.
func (x *ExtEnum) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = ExtEnum(num)
	return nil
}

// Deprecated: Use ExtEnum.Descriptor instead.
func (ExtEnum) EnumDescriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{0}
}

// SimpleMessage represents a simple message that transmits a string and int64 value.
type SimpleMessageProto2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// name is a simple scalar string.
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// value is a simple int64 value.
	Value *int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
}

func (x *SimpleMessageProto2) Reset() {
	*x = SimpleMessageProto2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *SimpleMessageProto2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SimpleMessageProto2) ProtoMessage() {}

func (x *SimpleMessageProto2) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SimpleMessageProto2.ProtoReflect.Descriptor instead.
func (*SimpleMessageProto2) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{0}
}

func (x *SimpleMessageProto2) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

func (x *SimpleMessageProto2) GetValue() int64 {
	if x != nil && x.Value != nil {
		return *x.Value
	}
	return 0
}

type SimpleMessageEvolvedProto2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// name is a simple scalar string.
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// value is a simple int64 value.
	Value *int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
	// other is an additional string.
	Other *string `protobuf:"bytes,3,opt,name=other" json:"other,omitempty"`
}

func (x *SimpleMessageEvolvedProto2) Reset() {
	*x = SimpleMessageEvolvedProto2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *SimpleMessageEvolvedProto2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SimpleMessageEvolvedProto2) ProtoMessage() {}

func (x *SimpleMessageEvolvedProto2) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SimpleMessageEvolvedProto2.ProtoReflect.Descriptor instead.
func (*SimpleMessageEvolvedProto2) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{1}
}

func (x *SimpleMessageEvolvedProto2) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

func (x *SimpleMessageEvolvedProto2) GetValue() int64 {
	if x != nil && x.Value != nil {
		return *x.Value
	}
	return 0
}

func (x *SimpleMessageEvolvedProto2) GetOther() string {
	if x != nil && x.Other != nil {
		return *x.Other
	}
	return ""
}

type GithubArchiveEntityProto2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id         *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Login      *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"`
	GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"`
	AvatarUrl  *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	Url        *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"`
}

func (x *GithubArchiveEntityProto2) Reset() {
	*x = GithubArchiveEntityProto2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GithubArchiveEntityProto2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GithubArchiveEntityProto2) ProtoMessage() {}

func (x *GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GithubArchiveEntityProto2.ProtoReflect.Descriptor instead.
func (*GithubArchiveEntityProto2) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{2}
}

func (x *GithubArchiveEntityProto2) GetId() int64 {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return 0
}

func (x *GithubArchiveEntityProto2) GetLogin() string {
	if x != nil && x.Login != nil {
		return *x.Login
	}
	return ""
}

func (x *GithubArchiveEntityProto2) GetGravatarId() string {
	if x != nil && x.GravatarId != nil {
		return *x.GravatarId
	}
	return ""
}

func (x *GithubArchiveEntityProto2) GetAvatarUrl() string {
	if x != nil && x.AvatarUrl != nil {
		return *x.AvatarUrl
	}
	return ""
}

func (x *GithubArchiveEntityProto2) GetUrl() string {
	if x != nil && x.Url != nil {
		return *x.Url
	}
	return ""
}

type GithubArchiveRepoProto2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id   *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Url  *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
}

func (x *GithubArchiveRepoProto2) Reset() {
	*x = GithubArchiveRepoProto2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GithubArchiveRepoProto2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GithubArchiveRepoProto2) ProtoMessage() {}

func (x *GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GithubArchiveRepoProto2.ProtoReflect.Descriptor instead.
func (*GithubArchiveRepoProto2) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{3}
}

func (x *GithubArchiveRepoProto2) GetId() int64 {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return 0
}

func (x *GithubArchiveRepoProto2) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

func (x *GithubArchiveRepoProto2) GetUrl() string {
	if x != nil && x.Url != nil {
		return *x.Url
	}
	return ""
}

// GithubArchiveMessageProto2 is the proto2 version of github archive row.
type GithubArchiveMessageProto2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Type      *string                    `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Public    *bool                      `protobuf:"varint,2,opt,name=public" json:"public,omitempty"`
	Payload   *string                    `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
	Repo      *GithubArchiveRepoProto2   `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"`
	Actor     *GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"`
	Org       *GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"`
	CreatedAt *int64                     `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	Id        *string                    `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"`
	Other     *string                    `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"`
}

func (x *GithubArchiveMessageProto2) Reset() {
	*x = GithubArchiveMessageProto2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GithubArchiveMessageProto2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GithubArchiveMessageProto2) ProtoMessage() {}

func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead.
func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{4}
}

func (x *GithubArchiveMessageProto2) GetType() string {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return ""
}

func (x *GithubArchiveMessageProto2) GetPublic() bool {
	if x != nil && x.Public != nil {
		return *x.Public
	}
	return false
}

func (x *GithubArchiveMessageProto2) GetPayload() string {
	if x != nil && x.Payload != nil {
		return *x.Payload
	}
	return ""
}

func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveRepoProto2 {
	if x != nil {
		return x.Repo
	}
	return nil
}

func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveEntityProto2 {
	if x != nil {
		return x.Actor
	}
	return nil
}

func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveEntityProto2 {
	if x != nil {
		return x.Org
	}
	return nil
}

func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 {
	if x != nil && x.CreatedAt != nil {
		return *x.CreatedAt
	}
	return 0
}

func (x *GithubArchiveMessageProto2) GetId() string {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return ""
}

func (x *GithubArchiveMessageProto2) GetOther() string {
	if x != nil && x.Other != nil {
		return *x.Other
	}
	return ""
}

// ExternalEnumMessage demonstrates an externally defined enum
// being present in two different submessages.
type ExternalEnumMessage struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	MsgA *EnumMsgA `protobuf:"bytes,1,opt,name=msg_a,json=msgA" json:"msg_a,omitempty"`
	MsgB *EnumMsgB `protobuf:"bytes,2,opt,name=msg_b,json=msgB" json:"msg_b,omitempty"`
}

func (x *ExternalEnumMessage) Reset() {
	*x = ExternalEnumMessage{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ExternalEnumMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ExternalEnumMessage) ProtoMessage() {}

func (x *ExternalEnumMessage) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ExternalEnumMessage.ProtoReflect.Descriptor instead.
func (*ExternalEnumMessage) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{5}
}

func (x *ExternalEnumMessage) GetMsgA() *EnumMsgA {
	if x != nil {
		return x.MsgA
	}
	return nil
}

func (x *ExternalEnumMessage) GetMsgB() *EnumMsgB {
	if x != nil {
		return x.MsgB
	}
	return nil
}

type EnumMsgA struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Foo *string  `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"`
	Bar *ExtEnum `protobuf:"varint,2,opt,name=bar,enum=testdata.ExtEnum" json:"bar,omitempty"`
}

func (x *EnumMsgA) Reset() {
	*x = EnumMsgA{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[6]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *EnumMsgA) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EnumMsgA) ProtoMessage() {}

func (x *EnumMsgA) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[6]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use EnumMsgA.ProtoReflect.Descriptor instead.
func (*EnumMsgA) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{6}
}

func (x *EnumMsgA) GetFoo() string {
	if x != nil && x.Foo != nil {
		return *x.Foo
	}
	return ""
}

func (x *EnumMsgA) GetBar() ExtEnum {
	if x != nil && x.Bar != nil {
		return *x.Bar
	}
	return ExtEnum_UNDEFINED
}

type EnumMsgB struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Baz *ExtEnum `protobuf:"varint,1,opt,name=baz,enum=testdata.ExtEnum" json:"baz,omitempty"`
}

func (x *EnumMsgB) Reset() {
	*x = EnumMsgB{}
	if protoimpl.UnsafeEnabled {
		mi := &file_messages_proto2_proto_msgTypes[7]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *EnumMsgB) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EnumMsgB) ProtoMessage() {}

func (x *EnumMsgB) ProtoReflect() protoreflect.Message {
	mi := &file_messages_proto2_proto_msgTypes[7]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use EnumMsgB.ProtoReflect.Descriptor instead.
func (*EnumMsgB) Descriptor() ([]byte, []int) {
	return file_messages_proto2_proto_rawDescGZIP(), []int{7}
}

func (x *EnumMsgB) GetBaz() ExtEnum {
	if x != nil && x.Baz != nil {
		return *x.Baz
	}
	return ExtEnum_UNDEFINED
}

var File_messages_proto2_proto protoreflect.FileDescriptor

var file_messages_proto2_proto_rawDesc = []byte{
	0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
	0x61, 0x22, 0x3f, 0x0a, 0x13, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
	0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c,
	0x75, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
	0x61, 0x67, 0x65, 0x45, 0x76, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32,
	0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
	0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
	0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74,
	0x68, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72,
	0x22, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69,
	0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e,
	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14,
	0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c,
	0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
	0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x76, 0x61,
	0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f,
	0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
	0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x4f, 0x0a, 0x17, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62,
	0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f,
	0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
	0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xd0, 0x02, 0x0a, 0x1a, 0x47, 0x69, 0x74, 0x68,
	0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75,
	0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c,
	0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x35, 0x0a, 0x04,
	0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x73,
	0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68,
	0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x04, 0x72,
	0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01,
	0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69,
	0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74,
	0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x35,
	0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65,
	0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63,
	0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32,
	0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
	0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
	0x65, 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
	0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x09, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x67, 0x0a, 0x13, 0x45, 0x78,
	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
	0x65, 0x12, 0x27, 0x0a, 0x05, 0x6d, 0x73, 0x67, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
	0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x75, 0x6d,
	0x4d, 0x73, 0x67, 0x41, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x41, 0x12, 0x27, 0x0a, 0x05, 0x6d, 0x73,
	0x67, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74,
	0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x73, 0x67, 0x42, 0x52, 0x04, 0x6d,
	0x73, 0x67, 0x42, 0x22, 0x41, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x73, 0x67, 0x41, 0x12,
	0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x6f,
	0x6f, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11,
	0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x74, 0x45, 0x6e, 0x75,
	0x6d, 0x52, 0x03, 0x62, 0x61, 0x72, 0x22, 0x2f, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x73,
	0x67, 0x42, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
	0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x74, 0x45, 0x6e,
	0x75, 0x6d, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x2a, 0x34, 0x0a, 0x07, 0x45, 0x78, 0x74, 0x45, 0x6e,
	0x75, 0x6d, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10,
	0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x48, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b,
	0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x42, 0x3d, 0x5a,
	0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
	0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74,
	0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x77, 0x72, 0x69,
	0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61,
}

var (
	file_messages_proto2_proto_rawDescOnce sync.Once
	file_messages_proto2_proto_rawDescData = file_messages_proto2_proto_rawDesc
)

func file_messages_proto2_proto_rawDescGZIP() []byte {
	file_messages_proto2_proto_rawDescOnce.Do(func() {
		file_messages_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto2_proto_rawDescData)
	})
	return file_messages_proto2_proto_rawDescData
}

var file_messages_proto2_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_messages_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_messages_proto2_proto_goTypes = []interface{}{
	(ExtEnum)(0),                       // 0: testdata.ExtEnum
	(*SimpleMessageProto2)(nil),        // 1: testdata.SimpleMessageProto2
	(*SimpleMessageEvolvedProto2)(nil), // 2: testdata.SimpleMessageEvolvedProto2
	(*GithubArchiveEntityProto2)(nil),  // 3: testdata.GithubArchiveEntityProto2
	(*GithubArchiveRepoProto2)(nil),    // 4: testdata.GithubArchiveRepoProto2
	(*GithubArchiveMessageProto2)(nil), // 5: testdata.GithubArchiveMessageProto2
	(*ExternalEnumMessage)(nil),        // 6: testdata.ExternalEnumMessage
	(*EnumMsgA)(nil),                   // 7: testdata.EnumMsgA
	(*EnumMsgB)(nil),                   // 8: testdata.EnumMsgB
}
var file_messages_proto2_proto_depIdxs = []int32{
	4, // 0: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveRepoProto2
	3, // 1: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveEntityProto2
	3, // 2: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveEntityProto2
	7, // 3: testdata.ExternalEnumMessage.msg_a:type_name -> testdata.EnumMsgA
	8, // 4: testdata.ExternalEnumMessage.msg_b:type_name -> testdata.EnumMsgB
	0, // 5: testdata.EnumMsgA.bar:type_name -> testdata.ExtEnum
	0, // 6: testdata.EnumMsgB.baz:type_name -> testdata.ExtEnum
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_messages_proto2_proto_init() }
func file_messages_proto2_proto_init() {
	if File_messages_proto2_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_messages_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*SimpleMessageProto2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*SimpleMessageEvolvedProto2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GithubArchiveEntityProto2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GithubArchiveRepoProto2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GithubArchiveMessageProto2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ExternalEnumMessage); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*EnumMsgA); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_messages_proto2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*EnumMsgB); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_messages_proto2_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_messages_proto2_proto_goTypes,
		DependencyIndexes: file_messages_proto2_proto_depIdxs,
		EnumInfos:         file_messages_proto2_proto_enumTypes,
		MessageInfos:      file_messages_proto2_proto_msgTypes,
	}.Build()
	File_messages_proto2_proto = out.File
	file_messages_proto2_proto_rawDesc = nil
	file_messages_proto2_proto_goTypes = nil
	file_messages_proto2_proto_depIdxs = nil
}
