...

Source file src/google.golang.org/protobuf/internal/testprotos/registry/test.pb.go

Documentation: google.golang.org/protobuf/internal/testprotos/registry

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Different proto type definitions for testing the Types registry.
     6  
     7  // Code generated by protoc-gen-go. DO NOT EDIT.
     8  // source: internal/testprotos/registry/test.proto
     9  
    10  package registry
    11  
    12  import (
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  type Enum1 int32
    20  
    21  const (
    22  	Enum1_ONE Enum1 = 1
    23  )
    24  
    25  // Enum value maps for Enum1.
    26  var (
    27  	Enum1_name = map[int32]string{
    28  		1: "ONE",
    29  	}
    30  	Enum1_value = map[string]int32{
    31  		"ONE": 1,
    32  	}
    33  )
    34  
    35  func (x Enum1) Enum() *Enum1 {
    36  	p := new(Enum1)
    37  	*p = x
    38  	return p
    39  }
    40  
    41  func (x Enum1) String() string {
    42  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    43  }
    44  
    45  func (Enum1) Descriptor() protoreflect.EnumDescriptor {
    46  	return file_internal_testprotos_registry_test_proto_enumTypes[0].Descriptor()
    47  }
    48  
    49  func (Enum1) Type() protoreflect.EnumType {
    50  	return &file_internal_testprotos_registry_test_proto_enumTypes[0]
    51  }
    52  
    53  func (x Enum1) Number() protoreflect.EnumNumber {
    54  	return protoreflect.EnumNumber(x)
    55  }
    56  
    57  // Deprecated: Do not use.
    58  func (x *Enum1) UnmarshalJSON(b []byte) error {
    59  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    60  	if err != nil {
    61  		return err
    62  	}
    63  	*x = Enum1(num)
    64  	return nil
    65  }
    66  
    67  // Deprecated: Use Enum1.Descriptor instead.
    68  func (Enum1) EnumDescriptor() ([]byte, []int) {
    69  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{0}
    70  }
    71  
    72  type Enum2 int32
    73  
    74  const (
    75  	Enum2_UNO Enum2 = 1
    76  )
    77  
    78  // Enum value maps for Enum2.
    79  var (
    80  	Enum2_name = map[int32]string{
    81  		1: "UNO",
    82  	}
    83  	Enum2_value = map[string]int32{
    84  		"UNO": 1,
    85  	}
    86  )
    87  
    88  func (x Enum2) Enum() *Enum2 {
    89  	p := new(Enum2)
    90  	*p = x
    91  	return p
    92  }
    93  
    94  func (x Enum2) String() string {
    95  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    96  }
    97  
    98  func (Enum2) Descriptor() protoreflect.EnumDescriptor {
    99  	return file_internal_testprotos_registry_test_proto_enumTypes[1].Descriptor()
   100  }
   101  
   102  func (Enum2) Type() protoreflect.EnumType {
   103  	return &file_internal_testprotos_registry_test_proto_enumTypes[1]
   104  }
   105  
   106  func (x Enum2) Number() protoreflect.EnumNumber {
   107  	return protoreflect.EnumNumber(x)
   108  }
   109  
   110  // Deprecated: Do not use.
   111  func (x *Enum2) UnmarshalJSON(b []byte) error {
   112  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   113  	if err != nil {
   114  		return err
   115  	}
   116  	*x = Enum2(num)
   117  	return nil
   118  }
   119  
   120  // Deprecated: Use Enum2.Descriptor instead.
   121  func (Enum2) EnumDescriptor() ([]byte, []int) {
   122  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{1}
   123  }
   124  
   125  type Enum3 int32
   126  
   127  const (
   128  	Enum3_YI Enum3 = 1
   129  )
   130  
   131  // Enum value maps for Enum3.
   132  var (
   133  	Enum3_name = map[int32]string{
   134  		1: "YI",
   135  	}
   136  	Enum3_value = map[string]int32{
   137  		"YI": 1,
   138  	}
   139  )
   140  
   141  func (x Enum3) Enum() *Enum3 {
   142  	p := new(Enum3)
   143  	*p = x
   144  	return p
   145  }
   146  
   147  func (x Enum3) String() string {
   148  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   149  }
   150  
   151  func (Enum3) Descriptor() protoreflect.EnumDescriptor {
   152  	return file_internal_testprotos_registry_test_proto_enumTypes[2].Descriptor()
   153  }
   154  
   155  func (Enum3) Type() protoreflect.EnumType {
   156  	return &file_internal_testprotos_registry_test_proto_enumTypes[2]
   157  }
   158  
   159  func (x Enum3) Number() protoreflect.EnumNumber {
   160  	return protoreflect.EnumNumber(x)
   161  }
   162  
   163  // Deprecated: Do not use.
   164  func (x *Enum3) UnmarshalJSON(b []byte) error {
   165  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   166  	if err != nil {
   167  		return err
   168  	}
   169  	*x = Enum3(num)
   170  	return nil
   171  }
   172  
   173  // Deprecated: Use Enum3.Descriptor instead.
   174  func (Enum3) EnumDescriptor() ([]byte, []int) {
   175  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{2}
   176  }
   177  
   178  type Message1 struct {
   179  	state           protoimpl.MessageState
   180  	sizeCache       protoimpl.SizeCache
   181  	unknownFields   protoimpl.UnknownFields
   182  	extensionFields protoimpl.ExtensionFields
   183  }
   184  
   185  func (x *Message1) Reset() {
   186  	*x = Message1{}
   187  	if protoimpl.UnsafeEnabled {
   188  		mi := &file_internal_testprotos_registry_test_proto_msgTypes[0]
   189  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   190  		ms.StoreMessageInfo(mi)
   191  	}
   192  }
   193  
   194  func (x *Message1) String() string {
   195  	return protoimpl.X.MessageStringOf(x)
   196  }
   197  
   198  func (*Message1) ProtoMessage() {}
   199  
   200  func (x *Message1) ProtoReflect() protoreflect.Message {
   201  	mi := &file_internal_testprotos_registry_test_proto_msgTypes[0]
   202  	if protoimpl.UnsafeEnabled && x != nil {
   203  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   204  		if ms.LoadMessageInfo() == nil {
   205  			ms.StoreMessageInfo(mi)
   206  		}
   207  		return ms
   208  	}
   209  	return mi.MessageOf(x)
   210  }
   211  
   212  // Deprecated: Use Message1.ProtoReflect.Descriptor instead.
   213  func (*Message1) Descriptor() ([]byte, []int) {
   214  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{0}
   215  }
   216  
   217  type Message2 struct {
   218  	state         protoimpl.MessageState
   219  	sizeCache     protoimpl.SizeCache
   220  	unknownFields protoimpl.UnknownFields
   221  }
   222  
   223  func (x *Message2) Reset() {
   224  	*x = Message2{}
   225  	if protoimpl.UnsafeEnabled {
   226  		mi := &file_internal_testprotos_registry_test_proto_msgTypes[1]
   227  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   228  		ms.StoreMessageInfo(mi)
   229  	}
   230  }
   231  
   232  func (x *Message2) String() string {
   233  	return protoimpl.X.MessageStringOf(x)
   234  }
   235  
   236  func (*Message2) ProtoMessage() {}
   237  
   238  func (x *Message2) ProtoReflect() protoreflect.Message {
   239  	mi := &file_internal_testprotos_registry_test_proto_msgTypes[1]
   240  	if protoimpl.UnsafeEnabled && x != nil {
   241  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   242  		if ms.LoadMessageInfo() == nil {
   243  			ms.StoreMessageInfo(mi)
   244  		}
   245  		return ms
   246  	}
   247  	return mi.MessageOf(x)
   248  }
   249  
   250  // Deprecated: Use Message2.ProtoReflect.Descriptor instead.
   251  func (*Message2) Descriptor() ([]byte, []int) {
   252  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{1}
   253  }
   254  
   255  type Message3 struct {
   256  	state         protoimpl.MessageState
   257  	sizeCache     protoimpl.SizeCache
   258  	unknownFields protoimpl.UnknownFields
   259  }
   260  
   261  func (x *Message3) Reset() {
   262  	*x = Message3{}
   263  	if protoimpl.UnsafeEnabled {
   264  		mi := &file_internal_testprotos_registry_test_proto_msgTypes[2]
   265  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   266  		ms.StoreMessageInfo(mi)
   267  	}
   268  }
   269  
   270  func (x *Message3) String() string {
   271  	return protoimpl.X.MessageStringOf(x)
   272  }
   273  
   274  func (*Message3) ProtoMessage() {}
   275  
   276  func (x *Message3) ProtoReflect() protoreflect.Message {
   277  	mi := &file_internal_testprotos_registry_test_proto_msgTypes[2]
   278  	if protoimpl.UnsafeEnabled && x != nil {
   279  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   280  		if ms.LoadMessageInfo() == nil {
   281  			ms.StoreMessageInfo(mi)
   282  		}
   283  		return ms
   284  	}
   285  	return mi.MessageOf(x)
   286  }
   287  
   288  // Deprecated: Use Message3.ProtoReflect.Descriptor instead.
   289  func (*Message3) Descriptor() ([]byte, []int) {
   290  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{2}
   291  }
   292  
   293  type Message4 struct {
   294  	state         protoimpl.MessageState
   295  	sizeCache     protoimpl.SizeCache
   296  	unknownFields protoimpl.UnknownFields
   297  
   298  	BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
   299  }
   300  
   301  func (x *Message4) Reset() {
   302  	*x = Message4{}
   303  	if protoimpl.UnsafeEnabled {
   304  		mi := &file_internal_testprotos_registry_test_proto_msgTypes[3]
   305  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   306  		ms.StoreMessageInfo(mi)
   307  	}
   308  }
   309  
   310  func (x *Message4) String() string {
   311  	return protoimpl.X.MessageStringOf(x)
   312  }
   313  
   314  func (*Message4) ProtoMessage() {}
   315  
   316  func (x *Message4) ProtoReflect() protoreflect.Message {
   317  	mi := &file_internal_testprotos_registry_test_proto_msgTypes[3]
   318  	if protoimpl.UnsafeEnabled && x != nil {
   319  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   320  		if ms.LoadMessageInfo() == nil {
   321  			ms.StoreMessageInfo(mi)
   322  		}
   323  		return ms
   324  	}
   325  	return mi.MessageOf(x)
   326  }
   327  
   328  // Deprecated: Use Message4.ProtoReflect.Descriptor instead.
   329  func (*Message4) Descriptor() ([]byte, []int) {
   330  	return file_internal_testprotos_registry_test_proto_rawDescGZIP(), []int{3}
   331  }
   332  
   333  func (x *Message4) GetBoolField() bool {
   334  	if x != nil && x.BoolField != nil {
   335  		return *x.BoolField
   336  	}
   337  	return false
   338  }
   339  
   340  var file_internal_testprotos_registry_test_proto_extTypes = []protoimpl.ExtensionInfo{
   341  	{
   342  		ExtendedType:  (*Message1)(nil),
   343  		ExtensionType: (*string)(nil),
   344  		Field:         11,
   345  		Name:          "testprotos.string_field",
   346  		Tag:           "bytes,11,opt,name=string_field",
   347  		Filename:      "internal/testprotos/registry/test.proto",
   348  	},
   349  	{
   350  		ExtendedType:  (*Message1)(nil),
   351  		ExtensionType: (*Enum1)(nil),
   352  		Field:         12,
   353  		Name:          "testprotos.enum_field",
   354  		Tag:           "varint,12,opt,name=enum_field,enum=testprotos.Enum1",
   355  		Filename:      "internal/testprotos/registry/test.proto",
   356  	},
   357  	{
   358  		ExtendedType:  (*Message1)(nil),
   359  		ExtensionType: (*Message2)(nil),
   360  		Field:         13,
   361  		Name:          "testprotos.message_field",
   362  		Tag:           "bytes,13,opt,name=message_field",
   363  		Filename:      "internal/testprotos/registry/test.proto",
   364  	},
   365  	{
   366  		ExtendedType:  (*Message1)(nil),
   367  		ExtensionType: (*Message2)(nil),
   368  		Field:         21,
   369  		Name:          "testprotos.Message4.message_field",
   370  		Tag:           "bytes,21,opt,name=message_field",
   371  		Filename:      "internal/testprotos/registry/test.proto",
   372  	},
   373  	{
   374  		ExtendedType:  (*Message1)(nil),
   375  		ExtensionType: (*Enum1)(nil),
   376  		Field:         22,
   377  		Name:          "testprotos.Message4.enum_field",
   378  		Tag:           "varint,22,opt,name=enum_field,enum=testprotos.Enum1",
   379  		Filename:      "internal/testprotos/registry/test.proto",
   380  	},
   381  	{
   382  		ExtendedType:  (*Message1)(nil),
   383  		ExtensionType: (*string)(nil),
   384  		Field:         23,
   385  		Name:          "testprotos.Message4.string_field",
   386  		Tag:           "bytes,23,opt,name=string_field",
   387  		Filename:      "internal/testprotos/registry/test.proto",
   388  	},
   389  }
   390  
   391  // Extension fields to Message1.
   392  var (
   393  	// optional string string_field = 11;
   394  	E_StringField = &file_internal_testprotos_registry_test_proto_extTypes[0]
   395  	// optional testprotos.Enum1 enum_field = 12;
   396  	E_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[1]
   397  	// optional testprotos.Message2 message_field = 13;
   398  	E_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[2]
   399  	// optional testprotos.Message2 message_field = 21;
   400  	E_Message4_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[3]
   401  	// optional testprotos.Enum1 enum_field = 22;
   402  	E_Message4_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[4]
   403  	// optional string string_field = 23;
   404  	E_Message4_StringField = &file_internal_testprotos_registry_test_proto_extTypes[5]
   405  )
   406  
   407  var File_internal_testprotos_registry_test_proto protoreflect.FileDescriptor
   408  
   409  var file_internal_testprotos_registry_test_proto_rawDesc = []byte{
   410  	0x0a, 0x27, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
   411  	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x74,
   412  	0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70,
   413  	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
   414  	0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, 0x0a, 0x08, 0x4d,
   415  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61,
   416  	0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x34,
   417  	0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1e,
   418  	0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32,
   419  	0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
   420  	0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65,
   421  	0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
   422  	0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   423  	0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64,
   424  	0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14,
   425  	0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73,
   426  	0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73,
   427  	0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65,
   428  	0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69,
   429  	0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70,
   430  	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x17,
   431  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c,
   432  	0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e,
   433  	0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, 0x07, 0x0a, 0x03,
   434  	0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x33, 0x12, 0x06,
   435  	0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
   436  	0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
   437  	0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0b, 0x20, 0x01,
   438  	0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a,
   439  	0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e,
   440  	0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
   441  	0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74,
   442  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, 0x09, 0x65, 0x6e,
   443  	0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61,
   444  	0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70,
   445  	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0d,
   446  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   447  	0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73,
   448  	0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67,
   449  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72,
   450  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
   451  	0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73,
   452  	0x74, 0x72, 0x79,
   453  }
   454  
   455  var (
   456  	file_internal_testprotos_registry_test_proto_rawDescOnce sync.Once
   457  	file_internal_testprotos_registry_test_proto_rawDescData = file_internal_testprotos_registry_test_proto_rawDesc
   458  )
   459  
   460  func file_internal_testprotos_registry_test_proto_rawDescGZIP() []byte {
   461  	file_internal_testprotos_registry_test_proto_rawDescOnce.Do(func() {
   462  		file_internal_testprotos_registry_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_registry_test_proto_rawDescData)
   463  	})
   464  	return file_internal_testprotos_registry_test_proto_rawDescData
   465  }
   466  
   467  var file_internal_testprotos_registry_test_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
   468  var file_internal_testprotos_registry_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   469  var file_internal_testprotos_registry_test_proto_goTypes = []interface{}{
   470  	(Enum1)(0),       // 0: testprotos.Enum1
   471  	(Enum2)(0),       // 1: testprotos.Enum2
   472  	(Enum3)(0),       // 2: testprotos.Enum3
   473  	(*Message1)(nil), // 3: testprotos.Message1
   474  	(*Message2)(nil), // 4: testprotos.Message2
   475  	(*Message3)(nil), // 5: testprotos.Message3
   476  	(*Message4)(nil), // 6: testprotos.Message4
   477  }
   478  var file_internal_testprotos_registry_test_proto_depIdxs = []int32{
   479  	3,  // 0: testprotos.string_field:extendee -> testprotos.Message1
   480  	3,  // 1: testprotos.enum_field:extendee -> testprotos.Message1
   481  	3,  // 2: testprotos.message_field:extendee -> testprotos.Message1
   482  	3,  // 3: testprotos.Message4.message_field:extendee -> testprotos.Message1
   483  	3,  // 4: testprotos.Message4.enum_field:extendee -> testprotos.Message1
   484  	3,  // 5: testprotos.Message4.string_field:extendee -> testprotos.Message1
   485  	0,  // 6: testprotos.enum_field:type_name -> testprotos.Enum1
   486  	4,  // 7: testprotos.message_field:type_name -> testprotos.Message2
   487  	4,  // 8: testprotos.Message4.message_field:type_name -> testprotos.Message2
   488  	0,  // 9: testprotos.Message4.enum_field:type_name -> testprotos.Enum1
   489  	10, // [10:10] is the sub-list for method output_type
   490  	10, // [10:10] is the sub-list for method input_type
   491  	6,  // [6:10] is the sub-list for extension type_name
   492  	0,  // [0:6] is the sub-list for extension extendee
   493  	0,  // [0:0] is the sub-list for field type_name
   494  }
   495  
   496  func init() { file_internal_testprotos_registry_test_proto_init() }
   497  func file_internal_testprotos_registry_test_proto_init() {
   498  	if File_internal_testprotos_registry_test_proto != nil {
   499  		return
   500  	}
   501  	if !protoimpl.UnsafeEnabled {
   502  		file_internal_testprotos_registry_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   503  			switch v := v.(*Message1); i {
   504  			case 0:
   505  				return &v.state
   506  			case 1:
   507  				return &v.sizeCache
   508  			case 2:
   509  				return &v.unknownFields
   510  			case 3:
   511  				return &v.extensionFields
   512  			default:
   513  				return nil
   514  			}
   515  		}
   516  		file_internal_testprotos_registry_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   517  			switch v := v.(*Message2); i {
   518  			case 0:
   519  				return &v.state
   520  			case 1:
   521  				return &v.sizeCache
   522  			case 2:
   523  				return &v.unknownFields
   524  			default:
   525  				return nil
   526  			}
   527  		}
   528  		file_internal_testprotos_registry_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   529  			switch v := v.(*Message3); i {
   530  			case 0:
   531  				return &v.state
   532  			case 1:
   533  				return &v.sizeCache
   534  			case 2:
   535  				return &v.unknownFields
   536  			default:
   537  				return nil
   538  			}
   539  		}
   540  		file_internal_testprotos_registry_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   541  			switch v := v.(*Message4); i {
   542  			case 0:
   543  				return &v.state
   544  			case 1:
   545  				return &v.sizeCache
   546  			case 2:
   547  				return &v.unknownFields
   548  			default:
   549  				return nil
   550  			}
   551  		}
   552  	}
   553  	type x struct{}
   554  	out := protoimpl.TypeBuilder{
   555  		File: protoimpl.DescBuilder{
   556  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   557  			RawDescriptor: file_internal_testprotos_registry_test_proto_rawDesc,
   558  			NumEnums:      3,
   559  			NumMessages:   4,
   560  			NumExtensions: 6,
   561  			NumServices:   0,
   562  		},
   563  		GoTypes:           file_internal_testprotos_registry_test_proto_goTypes,
   564  		DependencyIndexes: file_internal_testprotos_registry_test_proto_depIdxs,
   565  		EnumInfos:         file_internal_testprotos_registry_test_proto_enumTypes,
   566  		MessageInfos:      file_internal_testprotos_registry_test_proto_msgTypes,
   567  		ExtensionInfos:    file_internal_testprotos_registry_test_proto_extTypes,
   568  	}.Build()
   569  	File_internal_testprotos_registry_test_proto = out.File
   570  	file_internal_testprotos_registry_test_proto_rawDesc = nil
   571  	file_internal_testprotos_registry_test_proto_goTypes = nil
   572  	file_internal_testprotos_registry_test_proto_depIdxs = nil
   573  }
   574  

View as plain text