...

Source file src/cloud.google.com/go/bigquery/storage/managedwriter/testdata/messages_proto2.pb.go

Documentation: cloud.google.com/go/bigquery/storage/managedwriter/testdata

     1  // Copyright 2021 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  //     https://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  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.28.0
    18  // 	protoc        v3.17.3
    19  // source: messages_proto2.proto
    20  
    21  package testdata
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // ExtEnum is an externally define enum.
    39  type ExtEnum int32
    40  
    41  const (
    42  	ExtEnum_UNDEFINED   ExtEnum = 0
    43  	ExtEnum_THING       ExtEnum = 1
    44  	ExtEnum_OTHER_THING ExtEnum = 2
    45  )
    46  
    47  // Enum value maps for ExtEnum.
    48  var (
    49  	ExtEnum_name = map[int32]string{
    50  		0: "UNDEFINED",
    51  		1: "THING",
    52  		2: "OTHER_THING",
    53  	}
    54  	ExtEnum_value = map[string]int32{
    55  		"UNDEFINED":   0,
    56  		"THING":       1,
    57  		"OTHER_THING": 2,
    58  	}
    59  )
    60  
    61  func (x ExtEnum) Enum() *ExtEnum {
    62  	p := new(ExtEnum)
    63  	*p = x
    64  	return p
    65  }
    66  
    67  func (x ExtEnum) String() string {
    68  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    69  }
    70  
    71  func (ExtEnum) Descriptor() protoreflect.EnumDescriptor {
    72  	return file_messages_proto2_proto_enumTypes[0].Descriptor()
    73  }
    74  
    75  func (ExtEnum) Type() protoreflect.EnumType {
    76  	return &file_messages_proto2_proto_enumTypes[0]
    77  }
    78  
    79  func (x ExtEnum) Number() protoreflect.EnumNumber {
    80  	return protoreflect.EnumNumber(x)
    81  }
    82  
    83  // Deprecated: Do not use.
    84  func (x *ExtEnum) UnmarshalJSON(b []byte) error {
    85  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    86  	if err != nil {
    87  		return err
    88  	}
    89  	*x = ExtEnum(num)
    90  	return nil
    91  }
    92  
    93  // Deprecated: Use ExtEnum.Descriptor instead.
    94  func (ExtEnum) EnumDescriptor() ([]byte, []int) {
    95  	return file_messages_proto2_proto_rawDescGZIP(), []int{0}
    96  }
    97  
    98  type OutOfOrderDefinitionProto2_OutOfOrderEnum int32
    99  
   100  const (
   101  	OutOfOrderDefinitionProto2_E1 OutOfOrderDefinitionProto2_OutOfOrderEnum = 1
   102  	OutOfOrderDefinitionProto2_E3 OutOfOrderDefinitionProto2_OutOfOrderEnum = 3
   103  	OutOfOrderDefinitionProto2_E2 OutOfOrderDefinitionProto2_OutOfOrderEnum = 2
   104  )
   105  
   106  // Enum value maps for OutOfOrderDefinitionProto2_OutOfOrderEnum.
   107  var (
   108  	OutOfOrderDefinitionProto2_OutOfOrderEnum_name = map[int32]string{
   109  		1: "E1",
   110  		3: "E3",
   111  		2: "E2",
   112  	}
   113  	OutOfOrderDefinitionProto2_OutOfOrderEnum_value = map[string]int32{
   114  		"E1": 1,
   115  		"E3": 3,
   116  		"E2": 2,
   117  	}
   118  )
   119  
   120  func (x OutOfOrderDefinitionProto2_OutOfOrderEnum) Enum() *OutOfOrderDefinitionProto2_OutOfOrderEnum {
   121  	p := new(OutOfOrderDefinitionProto2_OutOfOrderEnum)
   122  	*p = x
   123  	return p
   124  }
   125  
   126  func (x OutOfOrderDefinitionProto2_OutOfOrderEnum) String() string {
   127  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   128  }
   129  
   130  func (OutOfOrderDefinitionProto2_OutOfOrderEnum) Descriptor() protoreflect.EnumDescriptor {
   131  	return file_messages_proto2_proto_enumTypes[1].Descriptor()
   132  }
   133  
   134  func (OutOfOrderDefinitionProto2_OutOfOrderEnum) Type() protoreflect.EnumType {
   135  	return &file_messages_proto2_proto_enumTypes[1]
   136  }
   137  
   138  func (x OutOfOrderDefinitionProto2_OutOfOrderEnum) Number() protoreflect.EnumNumber {
   139  	return protoreflect.EnumNumber(x)
   140  }
   141  
   142  // Deprecated: Do not use.
   143  func (x *OutOfOrderDefinitionProto2_OutOfOrderEnum) UnmarshalJSON(b []byte) error {
   144  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   145  	if err != nil {
   146  		return err
   147  	}
   148  	*x = OutOfOrderDefinitionProto2_OutOfOrderEnum(num)
   149  	return nil
   150  }
   151  
   152  // Deprecated: Use OutOfOrderDefinitionProto2_OutOfOrderEnum.Descriptor instead.
   153  func (OutOfOrderDefinitionProto2_OutOfOrderEnum) EnumDescriptor() ([]byte, []int) {
   154  	return file_messages_proto2_proto_rawDescGZIP(), []int{2, 0}
   155  }
   156  
   157  // SimpleMessage represents a simple message that transmits a string and int64 value.
   158  type SimpleMessageProto2 struct {
   159  	state         protoimpl.MessageState
   160  	sizeCache     protoimpl.SizeCache
   161  	unknownFields protoimpl.UnknownFields
   162  
   163  	// name is a simple scalar string.
   164  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   165  	// value is a simple int64 value.
   166  	Value *int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
   167  }
   168  
   169  func (x *SimpleMessageProto2) Reset() {
   170  	*x = SimpleMessageProto2{}
   171  	if protoimpl.UnsafeEnabled {
   172  		mi := &file_messages_proto2_proto_msgTypes[0]
   173  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   174  		ms.StoreMessageInfo(mi)
   175  	}
   176  }
   177  
   178  func (x *SimpleMessageProto2) String() string {
   179  	return protoimpl.X.MessageStringOf(x)
   180  }
   181  
   182  func (*SimpleMessageProto2) ProtoMessage() {}
   183  
   184  func (x *SimpleMessageProto2) ProtoReflect() protoreflect.Message {
   185  	mi := &file_messages_proto2_proto_msgTypes[0]
   186  	if protoimpl.UnsafeEnabled && x != nil {
   187  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   188  		if ms.LoadMessageInfo() == nil {
   189  			ms.StoreMessageInfo(mi)
   190  		}
   191  		return ms
   192  	}
   193  	return mi.MessageOf(x)
   194  }
   195  
   196  // Deprecated: Use SimpleMessageProto2.ProtoReflect.Descriptor instead.
   197  func (*SimpleMessageProto2) Descriptor() ([]byte, []int) {
   198  	return file_messages_proto2_proto_rawDescGZIP(), []int{0}
   199  }
   200  
   201  func (x *SimpleMessageProto2) GetName() string {
   202  	if x != nil && x.Name != nil {
   203  		return *x.Name
   204  	}
   205  	return ""
   206  }
   207  
   208  func (x *SimpleMessageProto2) GetValue() int64 {
   209  	if x != nil && x.Value != nil {
   210  		return *x.Value
   211  	}
   212  	return 0
   213  }
   214  
   215  type SimpleMessageEvolvedProto2 struct {
   216  	state         protoimpl.MessageState
   217  	sizeCache     protoimpl.SizeCache
   218  	unknownFields protoimpl.UnknownFields
   219  
   220  	// name is a simple scalar string.
   221  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   222  	// value is a simple int64 value.
   223  	Value *int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
   224  	// other is an additional string.
   225  	Other *string `protobuf:"bytes,3,opt,name=other" json:"other,omitempty"`
   226  }
   227  
   228  func (x *SimpleMessageEvolvedProto2) Reset() {
   229  	*x = SimpleMessageEvolvedProto2{}
   230  	if protoimpl.UnsafeEnabled {
   231  		mi := &file_messages_proto2_proto_msgTypes[1]
   232  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   233  		ms.StoreMessageInfo(mi)
   234  	}
   235  }
   236  
   237  func (x *SimpleMessageEvolvedProto2) String() string {
   238  	return protoimpl.X.MessageStringOf(x)
   239  }
   240  
   241  func (*SimpleMessageEvolvedProto2) ProtoMessage() {}
   242  
   243  func (x *SimpleMessageEvolvedProto2) ProtoReflect() protoreflect.Message {
   244  	mi := &file_messages_proto2_proto_msgTypes[1]
   245  	if protoimpl.UnsafeEnabled && x != nil {
   246  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   247  		if ms.LoadMessageInfo() == nil {
   248  			ms.StoreMessageInfo(mi)
   249  		}
   250  		return ms
   251  	}
   252  	return mi.MessageOf(x)
   253  }
   254  
   255  // Deprecated: Use SimpleMessageEvolvedProto2.ProtoReflect.Descriptor instead.
   256  func (*SimpleMessageEvolvedProto2) Descriptor() ([]byte, []int) {
   257  	return file_messages_proto2_proto_rawDescGZIP(), []int{1}
   258  }
   259  
   260  func (x *SimpleMessageEvolvedProto2) GetName() string {
   261  	if x != nil && x.Name != nil {
   262  		return *x.Name
   263  	}
   264  	return ""
   265  }
   266  
   267  func (x *SimpleMessageEvolvedProto2) GetValue() int64 {
   268  	if x != nil && x.Value != nil {
   269  		return *x.Value
   270  	}
   271  	return 0
   272  }
   273  
   274  func (x *SimpleMessageEvolvedProto2) GetOther() string {
   275  	if x != nil && x.Other != nil {
   276  		return *x.Other
   277  	}
   278  	return ""
   279  }
   280  
   281  // OutOfOrderDefinitionProto2 is used to ensure we apply ordering to representations.
   282  // It intentionally defines the fields out of order.
   283  type OutOfOrderDefinitionProto2 struct {
   284  	state         protoimpl.MessageState
   285  	sizeCache     protoimpl.SizeCache
   286  	unknownFields protoimpl.UnknownFields
   287  
   288  	S3    *string                                    `protobuf:"bytes,3,opt,name=s3" json:"s3,omitempty"`
   289  	S1    *string                                    `protobuf:"bytes,1,opt,name=s1" json:"s1,omitempty"`
   290  	S2    *string                                    `protobuf:"bytes,2,opt,name=s2" json:"s2,omitempty"`
   291  	Enum2 *OutOfOrderDefinitionProto2_OutOfOrderEnum `protobuf:"varint,5,opt,name=enum2,enum=testdata.OutOfOrderDefinitionProto2_OutOfOrderEnum" json:"enum2,omitempty"`
   292  	Enum1 *OutOfOrderDefinitionProto2_OutOfOrderEnum `protobuf:"varint,4,opt,name=enum1,enum=testdata.OutOfOrderDefinitionProto2_OutOfOrderEnum" json:"enum1,omitempty"`
   293  	Msg7  *SimpleMessageProto2                       `protobuf:"bytes,7,opt,name=msg7" json:"msg7,omitempty"`
   294  	Msg6  *SimpleMessageProto2                       `protobuf:"bytes,6,opt,name=msg6" json:"msg6,omitempty"`
   295  }
   296  
   297  func (x *OutOfOrderDefinitionProto2) Reset() {
   298  	*x = OutOfOrderDefinitionProto2{}
   299  	if protoimpl.UnsafeEnabled {
   300  		mi := &file_messages_proto2_proto_msgTypes[2]
   301  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   302  		ms.StoreMessageInfo(mi)
   303  	}
   304  }
   305  
   306  func (x *OutOfOrderDefinitionProto2) String() string {
   307  	return protoimpl.X.MessageStringOf(x)
   308  }
   309  
   310  func (*OutOfOrderDefinitionProto2) ProtoMessage() {}
   311  
   312  func (x *OutOfOrderDefinitionProto2) ProtoReflect() protoreflect.Message {
   313  	mi := &file_messages_proto2_proto_msgTypes[2]
   314  	if protoimpl.UnsafeEnabled && x != nil {
   315  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   316  		if ms.LoadMessageInfo() == nil {
   317  			ms.StoreMessageInfo(mi)
   318  		}
   319  		return ms
   320  	}
   321  	return mi.MessageOf(x)
   322  }
   323  
   324  // Deprecated: Use OutOfOrderDefinitionProto2.ProtoReflect.Descriptor instead.
   325  func (*OutOfOrderDefinitionProto2) Descriptor() ([]byte, []int) {
   326  	return file_messages_proto2_proto_rawDescGZIP(), []int{2}
   327  }
   328  
   329  func (x *OutOfOrderDefinitionProto2) GetS3() string {
   330  	if x != nil && x.S3 != nil {
   331  		return *x.S3
   332  	}
   333  	return ""
   334  }
   335  
   336  func (x *OutOfOrderDefinitionProto2) GetS1() string {
   337  	if x != nil && x.S1 != nil {
   338  		return *x.S1
   339  	}
   340  	return ""
   341  }
   342  
   343  func (x *OutOfOrderDefinitionProto2) GetS2() string {
   344  	if x != nil && x.S2 != nil {
   345  		return *x.S2
   346  	}
   347  	return ""
   348  }
   349  
   350  func (x *OutOfOrderDefinitionProto2) GetEnum2() OutOfOrderDefinitionProto2_OutOfOrderEnum {
   351  	if x != nil && x.Enum2 != nil {
   352  		return *x.Enum2
   353  	}
   354  	return OutOfOrderDefinitionProto2_E1
   355  }
   356  
   357  func (x *OutOfOrderDefinitionProto2) GetEnum1() OutOfOrderDefinitionProto2_OutOfOrderEnum {
   358  	if x != nil && x.Enum1 != nil {
   359  		return *x.Enum1
   360  	}
   361  	return OutOfOrderDefinitionProto2_E1
   362  }
   363  
   364  func (x *OutOfOrderDefinitionProto2) GetMsg7() *SimpleMessageProto2 {
   365  	if x != nil {
   366  		return x.Msg7
   367  	}
   368  	return nil
   369  }
   370  
   371  func (x *OutOfOrderDefinitionProto2) GetMsg6() *SimpleMessageProto2 {
   372  	if x != nil {
   373  		return x.Msg6
   374  	}
   375  	return nil
   376  }
   377  
   378  type GithubArchiveEntityProto2 struct {
   379  	state         protoimpl.MessageState
   380  	sizeCache     protoimpl.SizeCache
   381  	unknownFields protoimpl.UnknownFields
   382  
   383  	Id         *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
   384  	Login      *string `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"`
   385  	GravatarId *string `protobuf:"bytes,3,opt,name=gravatar_id,json=gravatarId" json:"gravatar_id,omitempty"`
   386  	AvatarUrl  *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
   387  	Url        *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"`
   388  }
   389  
   390  func (x *GithubArchiveEntityProto2) Reset() {
   391  	*x = GithubArchiveEntityProto2{}
   392  	if protoimpl.UnsafeEnabled {
   393  		mi := &file_messages_proto2_proto_msgTypes[3]
   394  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   395  		ms.StoreMessageInfo(mi)
   396  	}
   397  }
   398  
   399  func (x *GithubArchiveEntityProto2) String() string {
   400  	return protoimpl.X.MessageStringOf(x)
   401  }
   402  
   403  func (*GithubArchiveEntityProto2) ProtoMessage() {}
   404  
   405  func (x *GithubArchiveEntityProto2) ProtoReflect() protoreflect.Message {
   406  	mi := &file_messages_proto2_proto_msgTypes[3]
   407  	if protoimpl.UnsafeEnabled && x != nil {
   408  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   409  		if ms.LoadMessageInfo() == nil {
   410  			ms.StoreMessageInfo(mi)
   411  		}
   412  		return ms
   413  	}
   414  	return mi.MessageOf(x)
   415  }
   416  
   417  // Deprecated: Use GithubArchiveEntityProto2.ProtoReflect.Descriptor instead.
   418  func (*GithubArchiveEntityProto2) Descriptor() ([]byte, []int) {
   419  	return file_messages_proto2_proto_rawDescGZIP(), []int{3}
   420  }
   421  
   422  func (x *GithubArchiveEntityProto2) GetId() int64 {
   423  	if x != nil && x.Id != nil {
   424  		return *x.Id
   425  	}
   426  	return 0
   427  }
   428  
   429  func (x *GithubArchiveEntityProto2) GetLogin() string {
   430  	if x != nil && x.Login != nil {
   431  		return *x.Login
   432  	}
   433  	return ""
   434  }
   435  
   436  func (x *GithubArchiveEntityProto2) GetGravatarId() string {
   437  	if x != nil && x.GravatarId != nil {
   438  		return *x.GravatarId
   439  	}
   440  	return ""
   441  }
   442  
   443  func (x *GithubArchiveEntityProto2) GetAvatarUrl() string {
   444  	if x != nil && x.AvatarUrl != nil {
   445  		return *x.AvatarUrl
   446  	}
   447  	return ""
   448  }
   449  
   450  func (x *GithubArchiveEntityProto2) GetUrl() string {
   451  	if x != nil && x.Url != nil {
   452  		return *x.Url
   453  	}
   454  	return ""
   455  }
   456  
   457  type GithubArchiveRepoProto2 struct {
   458  	state         protoimpl.MessageState
   459  	sizeCache     protoimpl.SizeCache
   460  	unknownFields protoimpl.UnknownFields
   461  
   462  	Id   *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
   463  	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
   464  	Url  *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
   465  }
   466  
   467  func (x *GithubArchiveRepoProto2) Reset() {
   468  	*x = GithubArchiveRepoProto2{}
   469  	if protoimpl.UnsafeEnabled {
   470  		mi := &file_messages_proto2_proto_msgTypes[4]
   471  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   472  		ms.StoreMessageInfo(mi)
   473  	}
   474  }
   475  
   476  func (x *GithubArchiveRepoProto2) String() string {
   477  	return protoimpl.X.MessageStringOf(x)
   478  }
   479  
   480  func (*GithubArchiveRepoProto2) ProtoMessage() {}
   481  
   482  func (x *GithubArchiveRepoProto2) ProtoReflect() protoreflect.Message {
   483  	mi := &file_messages_proto2_proto_msgTypes[4]
   484  	if protoimpl.UnsafeEnabled && x != nil {
   485  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   486  		if ms.LoadMessageInfo() == nil {
   487  			ms.StoreMessageInfo(mi)
   488  		}
   489  		return ms
   490  	}
   491  	return mi.MessageOf(x)
   492  }
   493  
   494  // Deprecated: Use GithubArchiveRepoProto2.ProtoReflect.Descriptor instead.
   495  func (*GithubArchiveRepoProto2) Descriptor() ([]byte, []int) {
   496  	return file_messages_proto2_proto_rawDescGZIP(), []int{4}
   497  }
   498  
   499  func (x *GithubArchiveRepoProto2) GetId() int64 {
   500  	if x != nil && x.Id != nil {
   501  		return *x.Id
   502  	}
   503  	return 0
   504  }
   505  
   506  func (x *GithubArchiveRepoProto2) GetName() string {
   507  	if x != nil && x.Name != nil {
   508  		return *x.Name
   509  	}
   510  	return ""
   511  }
   512  
   513  func (x *GithubArchiveRepoProto2) GetUrl() string {
   514  	if x != nil && x.Url != nil {
   515  		return *x.Url
   516  	}
   517  	return ""
   518  }
   519  
   520  // GithubArchiveMessageProto2 is the proto2 version of github archive row.
   521  type GithubArchiveMessageProto2 struct {
   522  	state         protoimpl.MessageState
   523  	sizeCache     protoimpl.SizeCache
   524  	unknownFields protoimpl.UnknownFields
   525  
   526  	Type      *string                    `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
   527  	Public    *bool                      `protobuf:"varint,2,opt,name=public" json:"public,omitempty"`
   528  	Payload   *string                    `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
   529  	Repo      *GithubArchiveRepoProto2   `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"`
   530  	Actor     *GithubArchiveEntityProto2 `protobuf:"bytes,5,opt,name=actor" json:"actor,omitempty"`
   531  	Org       *GithubArchiveEntityProto2 `protobuf:"bytes,6,opt,name=org" json:"org,omitempty"`
   532  	CreatedAt *int64                     `protobuf:"varint,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
   533  	Id        *string                    `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"`
   534  	Other     *string                    `protobuf:"bytes,9,opt,name=other" json:"other,omitempty"`
   535  }
   536  
   537  func (x *GithubArchiveMessageProto2) Reset() {
   538  	*x = GithubArchiveMessageProto2{}
   539  	if protoimpl.UnsafeEnabled {
   540  		mi := &file_messages_proto2_proto_msgTypes[5]
   541  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   542  		ms.StoreMessageInfo(mi)
   543  	}
   544  }
   545  
   546  func (x *GithubArchiveMessageProto2) String() string {
   547  	return protoimpl.X.MessageStringOf(x)
   548  }
   549  
   550  func (*GithubArchiveMessageProto2) ProtoMessage() {}
   551  
   552  func (x *GithubArchiveMessageProto2) ProtoReflect() protoreflect.Message {
   553  	mi := &file_messages_proto2_proto_msgTypes[5]
   554  	if protoimpl.UnsafeEnabled && x != nil {
   555  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   556  		if ms.LoadMessageInfo() == nil {
   557  			ms.StoreMessageInfo(mi)
   558  		}
   559  		return ms
   560  	}
   561  	return mi.MessageOf(x)
   562  }
   563  
   564  // Deprecated: Use GithubArchiveMessageProto2.ProtoReflect.Descriptor instead.
   565  func (*GithubArchiveMessageProto2) Descriptor() ([]byte, []int) {
   566  	return file_messages_proto2_proto_rawDescGZIP(), []int{5}
   567  }
   568  
   569  func (x *GithubArchiveMessageProto2) GetType() string {
   570  	if x != nil && x.Type != nil {
   571  		return *x.Type
   572  	}
   573  	return ""
   574  }
   575  
   576  func (x *GithubArchiveMessageProto2) GetPublic() bool {
   577  	if x != nil && x.Public != nil {
   578  		return *x.Public
   579  	}
   580  	return false
   581  }
   582  
   583  func (x *GithubArchiveMessageProto2) GetPayload() string {
   584  	if x != nil && x.Payload != nil {
   585  		return *x.Payload
   586  	}
   587  	return ""
   588  }
   589  
   590  func (x *GithubArchiveMessageProto2) GetRepo() *GithubArchiveRepoProto2 {
   591  	if x != nil {
   592  		return x.Repo
   593  	}
   594  	return nil
   595  }
   596  
   597  func (x *GithubArchiveMessageProto2) GetActor() *GithubArchiveEntityProto2 {
   598  	if x != nil {
   599  		return x.Actor
   600  	}
   601  	return nil
   602  }
   603  
   604  func (x *GithubArchiveMessageProto2) GetOrg() *GithubArchiveEntityProto2 {
   605  	if x != nil {
   606  		return x.Org
   607  	}
   608  	return nil
   609  }
   610  
   611  func (x *GithubArchiveMessageProto2) GetCreatedAt() int64 {
   612  	if x != nil && x.CreatedAt != nil {
   613  		return *x.CreatedAt
   614  	}
   615  	return 0
   616  }
   617  
   618  func (x *GithubArchiveMessageProto2) GetId() string {
   619  	if x != nil && x.Id != nil {
   620  		return *x.Id
   621  	}
   622  	return ""
   623  }
   624  
   625  func (x *GithubArchiveMessageProto2) GetOther() string {
   626  	if x != nil && x.Other != nil {
   627  		return *x.Other
   628  	}
   629  	return ""
   630  }
   631  
   632  // ExternalEnumMessage demonstrates an externally defined enum
   633  // being present in two different submessages.
   634  type ExternalEnumMessage struct {
   635  	state         protoimpl.MessageState
   636  	sizeCache     protoimpl.SizeCache
   637  	unknownFields protoimpl.UnknownFields
   638  
   639  	MsgA *EnumMsgA `protobuf:"bytes,1,opt,name=msg_a,json=msgA" json:"msg_a,omitempty"`
   640  	MsgB *EnumMsgB `protobuf:"bytes,2,opt,name=msg_b,json=msgB" json:"msg_b,omitempty"`
   641  }
   642  
   643  func (x *ExternalEnumMessage) Reset() {
   644  	*x = ExternalEnumMessage{}
   645  	if protoimpl.UnsafeEnabled {
   646  		mi := &file_messages_proto2_proto_msgTypes[6]
   647  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   648  		ms.StoreMessageInfo(mi)
   649  	}
   650  }
   651  
   652  func (x *ExternalEnumMessage) String() string {
   653  	return protoimpl.X.MessageStringOf(x)
   654  }
   655  
   656  func (*ExternalEnumMessage) ProtoMessage() {}
   657  
   658  func (x *ExternalEnumMessage) ProtoReflect() protoreflect.Message {
   659  	mi := &file_messages_proto2_proto_msgTypes[6]
   660  	if protoimpl.UnsafeEnabled && x != nil {
   661  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   662  		if ms.LoadMessageInfo() == nil {
   663  			ms.StoreMessageInfo(mi)
   664  		}
   665  		return ms
   666  	}
   667  	return mi.MessageOf(x)
   668  }
   669  
   670  // Deprecated: Use ExternalEnumMessage.ProtoReflect.Descriptor instead.
   671  func (*ExternalEnumMessage) Descriptor() ([]byte, []int) {
   672  	return file_messages_proto2_proto_rawDescGZIP(), []int{6}
   673  }
   674  
   675  func (x *ExternalEnumMessage) GetMsgA() *EnumMsgA {
   676  	if x != nil {
   677  		return x.MsgA
   678  	}
   679  	return nil
   680  }
   681  
   682  func (x *ExternalEnumMessage) GetMsgB() *EnumMsgB {
   683  	if x != nil {
   684  		return x.MsgB
   685  	}
   686  	return nil
   687  }
   688  
   689  type EnumMsgA struct {
   690  	state         protoimpl.MessageState
   691  	sizeCache     protoimpl.SizeCache
   692  	unknownFields protoimpl.UnknownFields
   693  
   694  	Foo *string  `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"`
   695  	Bar *ExtEnum `protobuf:"varint,2,opt,name=bar,enum=testdata.ExtEnum" json:"bar,omitempty"`
   696  }
   697  
   698  func (x *EnumMsgA) Reset() {
   699  	*x = EnumMsgA{}
   700  	if protoimpl.UnsafeEnabled {
   701  		mi := &file_messages_proto2_proto_msgTypes[7]
   702  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   703  		ms.StoreMessageInfo(mi)
   704  	}
   705  }
   706  
   707  func (x *EnumMsgA) String() string {
   708  	return protoimpl.X.MessageStringOf(x)
   709  }
   710  
   711  func (*EnumMsgA) ProtoMessage() {}
   712  
   713  func (x *EnumMsgA) ProtoReflect() protoreflect.Message {
   714  	mi := &file_messages_proto2_proto_msgTypes[7]
   715  	if protoimpl.UnsafeEnabled && x != nil {
   716  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   717  		if ms.LoadMessageInfo() == nil {
   718  			ms.StoreMessageInfo(mi)
   719  		}
   720  		return ms
   721  	}
   722  	return mi.MessageOf(x)
   723  }
   724  
   725  // Deprecated: Use EnumMsgA.ProtoReflect.Descriptor instead.
   726  func (*EnumMsgA) Descriptor() ([]byte, []int) {
   727  	return file_messages_proto2_proto_rawDescGZIP(), []int{7}
   728  }
   729  
   730  func (x *EnumMsgA) GetFoo() string {
   731  	if x != nil && x.Foo != nil {
   732  		return *x.Foo
   733  	}
   734  	return ""
   735  }
   736  
   737  func (x *EnumMsgA) GetBar() ExtEnum {
   738  	if x != nil && x.Bar != nil {
   739  		return *x.Bar
   740  	}
   741  	return ExtEnum_UNDEFINED
   742  }
   743  
   744  type EnumMsgB struct {
   745  	state         protoimpl.MessageState
   746  	sizeCache     protoimpl.SizeCache
   747  	unknownFields protoimpl.UnknownFields
   748  
   749  	Baz *ExtEnum `protobuf:"varint,1,opt,name=baz,enum=testdata.ExtEnum" json:"baz,omitempty"`
   750  }
   751  
   752  func (x *EnumMsgB) Reset() {
   753  	*x = EnumMsgB{}
   754  	if protoimpl.UnsafeEnabled {
   755  		mi := &file_messages_proto2_proto_msgTypes[8]
   756  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   757  		ms.StoreMessageInfo(mi)
   758  	}
   759  }
   760  
   761  func (x *EnumMsgB) String() string {
   762  	return protoimpl.X.MessageStringOf(x)
   763  }
   764  
   765  func (*EnumMsgB) ProtoMessage() {}
   766  
   767  func (x *EnumMsgB) ProtoReflect() protoreflect.Message {
   768  	mi := &file_messages_proto2_proto_msgTypes[8]
   769  	if protoimpl.UnsafeEnabled && x != nil {
   770  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   771  		if ms.LoadMessageInfo() == nil {
   772  			ms.StoreMessageInfo(mi)
   773  		}
   774  		return ms
   775  	}
   776  	return mi.MessageOf(x)
   777  }
   778  
   779  // Deprecated: Use EnumMsgB.ProtoReflect.Descriptor instead.
   780  func (*EnumMsgB) Descriptor() ([]byte, []int) {
   781  	return file_messages_proto2_proto_rawDescGZIP(), []int{8}
   782  }
   783  
   784  func (x *EnumMsgB) GetBaz() ExtEnum {
   785  	if x != nil && x.Baz != nil {
   786  		return *x.Baz
   787  	}
   788  	return ExtEnum_UNDEFINED
   789  }
   790  
   791  var File_messages_proto2_proto protoreflect.FileDescriptor
   792  
   793  var file_messages_proto2_proto_rawDesc = []byte{
   794  	0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   795  	0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
   796  	0x61, 0x22, 0x3f, 0x0a, 0x13, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
   797  	0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   798  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
   799  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c,
   800  	0x75, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
   801  	0x61, 0x67, 0x65, 0x45, 0x76, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32,
   802  	0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
   803  	0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
   804  	0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74,
   805  	0x68, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72,
   806  	0x22, 0xf2, 0x02, 0x0a, 0x1a, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44,
   807  	0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12,
   808  	0x0e, 0x0a, 0x02, 0x73, 0x33, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x73, 0x33, 0x12,
   809  	0x0e, 0x0a, 0x02, 0x73, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x73, 0x31, 0x12,
   810  	0x0e, 0x0a, 0x02, 0x73, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x73, 0x32, 0x12,
   811  	0x49, 0x0a, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33,
   812  	0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x4f,
   813  	0x72, 0x64, 0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72,
   814  	0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x45,
   815  	0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x32, 0x12, 0x49, 0x0a, 0x05, 0x65, 0x6e,
   816  	0x75, 0x6d, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x74, 0x65, 0x73, 0x74,
   817  	0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44,
   818  	0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e,
   819  	0x4f, 0x75, 0x74, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05,
   820  	0x65, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x37, 0x18, 0x07, 0x20,
   821  	0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53,
   822  	0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74,
   823  	0x6f, 0x32, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x37, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x36,
   824  	0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
   825  	0x61, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
   826  	0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x36, 0x22, 0x28, 0x0a, 0x0e, 0x4f,
   827  	0x75, 0x74, 0x4f, 0x66, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x06, 0x0a,
   828  	0x02, 0x45, 0x31, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x33, 0x10, 0x03, 0x12, 0x06, 0x0a,
   829  	0x02, 0x45, 0x32, 0x10, 0x02, 0x22, 0x93, 0x01, 0x0a, 0x19, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62,
   830  	0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,
   831  	0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
   832  	0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
   833  	0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x61,
   834  	0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
   835  	0x67, 0x72, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76,
   836  	0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   837  	0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c,
   838  	0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x4f, 0x0a, 0x17, 0x47,
   839  	0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f,
   840  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
   841  	0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
   842  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
   843  	0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0xd0, 0x02, 0x0a,
   844  	0x1a, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65,
   845  	0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x74,
   846  	0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
   847  	0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
   848  	0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,
   849  	0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
   850  	0x64, 0x12, 0x35, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
   851  	0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75,
   852  	0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f, 0x74,
   853  	0x6f, 0x32, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f,
   854  	0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61,
   855  	0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,
   856  	0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x05, 0x61, 0x63,
   857  	0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
   858  	0x32, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x69, 0x74, 0x68,
   859  	0x75, 0x62, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,
   860  	0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72,
   861  	0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
   862  	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
   863  	0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68,
   864  	0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22,
   865  	0x67, 0x0a, 0x13, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x4d,
   866  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x6d, 0x73, 0x67, 0x5f, 0x61, 0x18,
   867  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61,
   868  	0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x73, 0x67, 0x41, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x41, 0x12,
   869  	0x27, 0x0a, 0x05, 0x6d, 0x73, 0x67, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
   870  	0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4d, 0x73,
   871  	0x67, 0x42, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x42, 0x22, 0x41, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d,
   872  	0x4d, 0x73, 0x67, 0x41, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
   873  	0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20,
   874  	0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45,
   875  	0x78, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x03, 0x62, 0x61, 0x72, 0x22, 0x2f, 0x0a, 0x08, 0x45,
   876  	0x6e, 0x75, 0x6d, 0x4d, 0x73, 0x67, 0x42, 0x12, 0x23, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x01,
   877  	0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e,
   878  	0x45, 0x78, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x2a, 0x34, 0x0a, 0x07,
   879  	0x45, 0x78, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46,
   880  	0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x48, 0x49, 0x4e, 0x47, 0x10,
   881  	0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x49, 0x4e, 0x47,
   882  	0x10, 0x02, 0x42, 0x3d, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   883  	0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
   884  	0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67,
   885  	0x65, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
   886  	0x61,
   887  }
   888  
   889  var (
   890  	file_messages_proto2_proto_rawDescOnce sync.Once
   891  	file_messages_proto2_proto_rawDescData = file_messages_proto2_proto_rawDesc
   892  )
   893  
   894  func file_messages_proto2_proto_rawDescGZIP() []byte {
   895  	file_messages_proto2_proto_rawDescOnce.Do(func() {
   896  		file_messages_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto2_proto_rawDescData)
   897  	})
   898  	return file_messages_proto2_proto_rawDescData
   899  }
   900  
   901  var file_messages_proto2_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
   902  var file_messages_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
   903  var file_messages_proto2_proto_goTypes = []interface{}{
   904  	(ExtEnum)(0), // 0: testdata.ExtEnum
   905  	(OutOfOrderDefinitionProto2_OutOfOrderEnum)(0), // 1: testdata.OutOfOrderDefinitionProto2.OutOfOrderEnum
   906  	(*SimpleMessageProto2)(nil),                    // 2: testdata.SimpleMessageProto2
   907  	(*SimpleMessageEvolvedProto2)(nil),             // 3: testdata.SimpleMessageEvolvedProto2
   908  	(*OutOfOrderDefinitionProto2)(nil),             // 4: testdata.OutOfOrderDefinitionProto2
   909  	(*GithubArchiveEntityProto2)(nil),              // 5: testdata.GithubArchiveEntityProto2
   910  	(*GithubArchiveRepoProto2)(nil),                // 6: testdata.GithubArchiveRepoProto2
   911  	(*GithubArchiveMessageProto2)(nil),             // 7: testdata.GithubArchiveMessageProto2
   912  	(*ExternalEnumMessage)(nil),                    // 8: testdata.ExternalEnumMessage
   913  	(*EnumMsgA)(nil),                               // 9: testdata.EnumMsgA
   914  	(*EnumMsgB)(nil),                               // 10: testdata.EnumMsgB
   915  }
   916  var file_messages_proto2_proto_depIdxs = []int32{
   917  	1,  // 0: testdata.OutOfOrderDefinitionProto2.enum2:type_name -> testdata.OutOfOrderDefinitionProto2.OutOfOrderEnum
   918  	1,  // 1: testdata.OutOfOrderDefinitionProto2.enum1:type_name -> testdata.OutOfOrderDefinitionProto2.OutOfOrderEnum
   919  	2,  // 2: testdata.OutOfOrderDefinitionProto2.msg7:type_name -> testdata.SimpleMessageProto2
   920  	2,  // 3: testdata.OutOfOrderDefinitionProto2.msg6:type_name -> testdata.SimpleMessageProto2
   921  	6,  // 4: testdata.GithubArchiveMessageProto2.repo:type_name -> testdata.GithubArchiveRepoProto2
   922  	5,  // 5: testdata.GithubArchiveMessageProto2.actor:type_name -> testdata.GithubArchiveEntityProto2
   923  	5,  // 6: testdata.GithubArchiveMessageProto2.org:type_name -> testdata.GithubArchiveEntityProto2
   924  	9,  // 7: testdata.ExternalEnumMessage.msg_a:type_name -> testdata.EnumMsgA
   925  	10, // 8: testdata.ExternalEnumMessage.msg_b:type_name -> testdata.EnumMsgB
   926  	0,  // 9: testdata.EnumMsgA.bar:type_name -> testdata.ExtEnum
   927  	0,  // 10: testdata.EnumMsgB.baz:type_name -> testdata.ExtEnum
   928  	11, // [11:11] is the sub-list for method output_type
   929  	11, // [11:11] is the sub-list for method input_type
   930  	11, // [11:11] is the sub-list for extension type_name
   931  	11, // [11:11] is the sub-list for extension extendee
   932  	0,  // [0:11] is the sub-list for field type_name
   933  }
   934  
   935  func init() { file_messages_proto2_proto_init() }
   936  func file_messages_proto2_proto_init() {
   937  	if File_messages_proto2_proto != nil {
   938  		return
   939  	}
   940  	if !protoimpl.UnsafeEnabled {
   941  		file_messages_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   942  			switch v := v.(*SimpleMessageProto2); i {
   943  			case 0:
   944  				return &v.state
   945  			case 1:
   946  				return &v.sizeCache
   947  			case 2:
   948  				return &v.unknownFields
   949  			default:
   950  				return nil
   951  			}
   952  		}
   953  		file_messages_proto2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   954  			switch v := v.(*SimpleMessageEvolvedProto2); i {
   955  			case 0:
   956  				return &v.state
   957  			case 1:
   958  				return &v.sizeCache
   959  			case 2:
   960  				return &v.unknownFields
   961  			default:
   962  				return nil
   963  			}
   964  		}
   965  		file_messages_proto2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   966  			switch v := v.(*OutOfOrderDefinitionProto2); i {
   967  			case 0:
   968  				return &v.state
   969  			case 1:
   970  				return &v.sizeCache
   971  			case 2:
   972  				return &v.unknownFields
   973  			default:
   974  				return nil
   975  			}
   976  		}
   977  		file_messages_proto2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   978  			switch v := v.(*GithubArchiveEntityProto2); i {
   979  			case 0:
   980  				return &v.state
   981  			case 1:
   982  				return &v.sizeCache
   983  			case 2:
   984  				return &v.unknownFields
   985  			default:
   986  				return nil
   987  			}
   988  		}
   989  		file_messages_proto2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   990  			switch v := v.(*GithubArchiveRepoProto2); i {
   991  			case 0:
   992  				return &v.state
   993  			case 1:
   994  				return &v.sizeCache
   995  			case 2:
   996  				return &v.unknownFields
   997  			default:
   998  				return nil
   999  			}
  1000  		}
  1001  		file_messages_proto2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1002  			switch v := v.(*GithubArchiveMessageProto2); i {
  1003  			case 0:
  1004  				return &v.state
  1005  			case 1:
  1006  				return &v.sizeCache
  1007  			case 2:
  1008  				return &v.unknownFields
  1009  			default:
  1010  				return nil
  1011  			}
  1012  		}
  1013  		file_messages_proto2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1014  			switch v := v.(*ExternalEnumMessage); i {
  1015  			case 0:
  1016  				return &v.state
  1017  			case 1:
  1018  				return &v.sizeCache
  1019  			case 2:
  1020  				return &v.unknownFields
  1021  			default:
  1022  				return nil
  1023  			}
  1024  		}
  1025  		file_messages_proto2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1026  			switch v := v.(*EnumMsgA); i {
  1027  			case 0:
  1028  				return &v.state
  1029  			case 1:
  1030  				return &v.sizeCache
  1031  			case 2:
  1032  				return &v.unknownFields
  1033  			default:
  1034  				return nil
  1035  			}
  1036  		}
  1037  		file_messages_proto2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1038  			switch v := v.(*EnumMsgB); i {
  1039  			case 0:
  1040  				return &v.state
  1041  			case 1:
  1042  				return &v.sizeCache
  1043  			case 2:
  1044  				return &v.unknownFields
  1045  			default:
  1046  				return nil
  1047  			}
  1048  		}
  1049  	}
  1050  	type x struct{}
  1051  	out := protoimpl.TypeBuilder{
  1052  		File: protoimpl.DescBuilder{
  1053  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1054  			RawDescriptor: file_messages_proto2_proto_rawDesc,
  1055  			NumEnums:      2,
  1056  			NumMessages:   9,
  1057  			NumExtensions: 0,
  1058  			NumServices:   0,
  1059  		},
  1060  		GoTypes:           file_messages_proto2_proto_goTypes,
  1061  		DependencyIndexes: file_messages_proto2_proto_depIdxs,
  1062  		EnumInfos:         file_messages_proto2_proto_enumTypes,
  1063  		MessageInfos:      file_messages_proto2_proto_msgTypes,
  1064  	}.Build()
  1065  	File_messages_proto2_proto = out.File
  1066  	file_messages_proto2_proto_rawDesc = nil
  1067  	file_messages_proto2_proto_goTypes = nil
  1068  	file_messages_proto2_proto_depIdxs = nil
  1069  }
  1070  

View as plain text