github.com/whiteCcinn/protobuf-go@v1.0.9/cmd/protoc-gen-go/testdata/comments/comments.pb.go (about)

     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  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // source: cmd/protoc-gen-go/testdata/comments/comments.proto
     7  
     8  // COMMENT: package goproto.protoc.comments;
     9  
    10  package comments
    11  
    12  import (
    13  	protoreflect "github.com/whiteCcinn/protobuf-go/reflect/protoreflect"
    14  	protoimpl "github.com/whiteCcinn/protobuf-go/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  // COMMENT: Enum1.Leading
    20  type Enum1 int32
    21  
    22  const (
    23  	// COMMENT: FOO.Leading
    24  	Enum1_FOO Enum1 = 0 // COMMENT: FOO.InlineTrailing
    25  	// COMMENT: BAR.Leading
    26  	Enum1_BAR Enum1 = 1
    27  )
    28  
    29  // Enum value maps for Enum1.
    30  var (
    31  	Enum1_name = map[int32]string{
    32  		0: "FOO",
    33  		1: "BAR",
    34  	}
    35  	Enum1_value = map[string]int32{
    36  		"FOO": 0,
    37  		"BAR": 1,
    38  	}
    39  )
    40  
    41  func (x Enum1) Enum() *Enum1 {
    42  	p := new(Enum1)
    43  	*p = x
    44  	return p
    45  }
    46  
    47  func (x Enum1) String() string {
    48  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    49  }
    50  
    51  func (Enum1) Descriptor() protoreflect.EnumDescriptor {
    52  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes[0].Descriptor()
    53  }
    54  
    55  func (Enum1) Type() protoreflect.EnumType {
    56  	return &file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes[0]
    57  }
    58  
    59  func (x Enum1) Number() protoreflect.EnumNumber {
    60  	return protoreflect.EnumNumber(x)
    61  }
    62  
    63  // Deprecated: Do not use.
    64  func (x *Enum1) UnmarshalJSON(b []byte) error {
    65  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    66  	if err != nil {
    67  		return err
    68  	}
    69  	*x = Enum1(num)
    70  	return nil
    71  }
    72  
    73  // Deprecated: Use Enum1.Descriptor instead.
    74  func (Enum1) EnumDescriptor() ([]byte, []int) {
    75  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  // COMMENT: Message1.Leading
    79  type Message1 struct {
    80  	state           protoimpl.MessageState
    81  	sizeCache       protoimpl.SizeCache
    82  	unknownFields   protoimpl.UnknownFields
    83  	extensionFields protoimpl.ExtensionFields
    84  
    85  	// COMMENT: Field1A.Leading
    86  	Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"` // COMMENT: Field1A.Trailing
    87  	// COMMENT: Oneof1A.Leading
    88  	//
    89  	// Types that are assignable to Oneof1A:
    90  	//	*Message1_Oneof1AField1
    91  	Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"`
    92  }
    93  
    94  func (x *Message1) Reset() {
    95  	*x = Message1{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *Message1) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*Message1) ProtoMessage() {}
   108  
   109  func (x *Message1) ProtoReflect() protoreflect.Message {
   110  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use Message1.ProtoReflect.Descriptor instead.
   122  func (*Message1) Descriptor() ([]byte, []int) {
   123  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0}
   124  }
   125  
   126  func (x *Message1) GetField1A() string {
   127  	if x != nil && x.Field1A != nil {
   128  		return *x.Field1A
   129  	}
   130  	return ""
   131  }
   132  
   133  func (m *Message1) GetOneof1A() isMessage1_Oneof1A {
   134  	if m != nil {
   135  		return m.Oneof1A
   136  	}
   137  	return nil
   138  }
   139  
   140  func (x *Message1) GetOneof1AField1() string {
   141  	if x, ok := x.GetOneof1A().(*Message1_Oneof1AField1); ok {
   142  		return x.Oneof1AField1
   143  	}
   144  	return ""
   145  }
   146  
   147  type isMessage1_Oneof1A interface {
   148  	isMessage1_Oneof1A()
   149  }
   150  
   151  type Message1_Oneof1AField1 struct {
   152  	// COMMENT: Oneof1AField1.Leading
   153  	Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"` // COMMENT: Oneof1AField1.Trailing
   154  }
   155  
   156  func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {}
   157  
   158  // COMMENT: Message2
   159  type Message2 struct {
   160  	state         protoimpl.MessageState
   161  	sizeCache     protoimpl.SizeCache
   162  	unknownFields protoimpl.UnknownFields
   163  }
   164  
   165  func (x *Message2) Reset() {
   166  	*x = Message2{}
   167  	if protoimpl.UnsafeEnabled {
   168  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1]
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		ms.StoreMessageInfo(mi)
   171  	}
   172  }
   173  
   174  func (x *Message2) String() string {
   175  	return protoimpl.X.MessageStringOf(x)
   176  }
   177  
   178  func (*Message2) ProtoMessage() {}
   179  
   180  func (x *Message2) ProtoReflect() protoreflect.Message {
   181  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1]
   182  	if protoimpl.UnsafeEnabled && x != nil {
   183  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   184  		if ms.LoadMessageInfo() == nil {
   185  			ms.StoreMessageInfo(mi)
   186  		}
   187  		return ms
   188  	}
   189  	return mi.MessageOf(x)
   190  }
   191  
   192  // Deprecated: Use Message2.ProtoReflect.Descriptor instead.
   193  func (*Message2) Descriptor() ([]byte, []int) {
   194  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1}
   195  }
   196  
   197  // COMMENT: Message1A.Leading
   198  type Message1_Message1A struct {
   199  	state         protoimpl.MessageState
   200  	sizeCache     protoimpl.SizeCache
   201  	unknownFields protoimpl.UnknownFields
   202  }
   203  
   204  func (x *Message1_Message1A) Reset() {
   205  	*x = Message1_Message1A{}
   206  	if protoimpl.UnsafeEnabled {
   207  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2]
   208  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   209  		ms.StoreMessageInfo(mi)
   210  	}
   211  }
   212  
   213  func (x *Message1_Message1A) String() string {
   214  	return protoimpl.X.MessageStringOf(x)
   215  }
   216  
   217  func (*Message1_Message1A) ProtoMessage() {}
   218  
   219  func (x *Message1_Message1A) ProtoReflect() protoreflect.Message {
   220  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2]
   221  	if protoimpl.UnsafeEnabled && x != nil {
   222  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   223  		if ms.LoadMessageInfo() == nil {
   224  			ms.StoreMessageInfo(mi)
   225  		}
   226  		return ms
   227  	}
   228  	return mi.MessageOf(x)
   229  }
   230  
   231  // Deprecated: Use Message1_Message1A.ProtoReflect.Descriptor instead.
   232  func (*Message1_Message1A) Descriptor() ([]byte, []int) {
   233  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0, 0}
   234  }
   235  
   236  // COMMENT: Message1B
   237  type Message1_Message1B struct {
   238  	state         protoimpl.MessageState
   239  	sizeCache     protoimpl.SizeCache
   240  	unknownFields protoimpl.UnknownFields
   241  }
   242  
   243  func (x *Message1_Message1B) Reset() {
   244  	*x = Message1_Message1B{}
   245  	if protoimpl.UnsafeEnabled {
   246  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3]
   247  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   248  		ms.StoreMessageInfo(mi)
   249  	}
   250  }
   251  
   252  func (x *Message1_Message1B) String() string {
   253  	return protoimpl.X.MessageStringOf(x)
   254  }
   255  
   256  func (*Message1_Message1B) ProtoMessage() {}
   257  
   258  func (x *Message1_Message1B) ProtoReflect() protoreflect.Message {
   259  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3]
   260  	if protoimpl.UnsafeEnabled && x != nil {
   261  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   262  		if ms.LoadMessageInfo() == nil {
   263  			ms.StoreMessageInfo(mi)
   264  		}
   265  		return ms
   266  	}
   267  	return mi.MessageOf(x)
   268  }
   269  
   270  // Deprecated: Use Message1_Message1B.ProtoReflect.Descriptor instead.
   271  func (*Message1_Message1B) Descriptor() ([]byte, []int) {
   272  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{0, 1}
   273  }
   274  
   275  // COMMENT: Message2A
   276  type Message2_Message2A struct {
   277  	state         protoimpl.MessageState
   278  	sizeCache     protoimpl.SizeCache
   279  	unknownFields protoimpl.UnknownFields
   280  }
   281  
   282  func (x *Message2_Message2A) Reset() {
   283  	*x = Message2_Message2A{}
   284  	if protoimpl.UnsafeEnabled {
   285  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4]
   286  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   287  		ms.StoreMessageInfo(mi)
   288  	}
   289  }
   290  
   291  func (x *Message2_Message2A) String() string {
   292  	return protoimpl.X.MessageStringOf(x)
   293  }
   294  
   295  func (*Message2_Message2A) ProtoMessage() {}
   296  
   297  func (x *Message2_Message2A) ProtoReflect() protoreflect.Message {
   298  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4]
   299  	if protoimpl.UnsafeEnabled && x != nil {
   300  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   301  		if ms.LoadMessageInfo() == nil {
   302  			ms.StoreMessageInfo(mi)
   303  		}
   304  		return ms
   305  	}
   306  	return mi.MessageOf(x)
   307  }
   308  
   309  // Deprecated: Use Message2_Message2A.ProtoReflect.Descriptor instead.
   310  func (*Message2_Message2A) Descriptor() ([]byte, []int) {
   311  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1, 0}
   312  }
   313  
   314  // COMMENT: Message2B
   315  type Message2_Message2B struct {
   316  	state         protoimpl.MessageState
   317  	sizeCache     protoimpl.SizeCache
   318  	unknownFields protoimpl.UnknownFields
   319  }
   320  
   321  func (x *Message2_Message2B) Reset() {
   322  	*x = Message2_Message2B{}
   323  	if protoimpl.UnsafeEnabled {
   324  		mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5]
   325  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   326  		ms.StoreMessageInfo(mi)
   327  	}
   328  }
   329  
   330  func (x *Message2_Message2B) String() string {
   331  	return protoimpl.X.MessageStringOf(x)
   332  }
   333  
   334  func (*Message2_Message2B) ProtoMessage() {}
   335  
   336  func (x *Message2_Message2B) ProtoReflect() protoreflect.Message {
   337  	mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5]
   338  	if protoimpl.UnsafeEnabled && x != nil {
   339  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   340  		if ms.LoadMessageInfo() == nil {
   341  			ms.StoreMessageInfo(mi)
   342  		}
   343  		return ms
   344  	}
   345  	return mi.MessageOf(x)
   346  }
   347  
   348  // Deprecated: Use Message2_Message2B.ProtoReflect.Descriptor instead.
   349  func (*Message2_Message2B) Descriptor() ([]byte, []int) {
   350  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP(), []int{1, 1}
   351  }
   352  
   353  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes = []protoimpl.ExtensionInfo{
   354  	{
   355  		ExtendedType:  (*Message1)(nil),
   356  		ExtensionType: (*Message1)(nil),
   357  		Field:         100,
   358  		Name:          "goproto.protoc.comments.extension",
   359  		Tag:           "bytes,100,opt,name=extension",
   360  		Filename:      "cmd/protoc-gen-go/testdata/comments/comments.proto",
   361  	},
   362  }
   363  
   364  // Extension fields to Message1.
   365  var (
   366  	// COMMENT: Extension.Leading
   367  	//
   368  	// optional goproto.protoc.comments.Message1 extension = 100;
   369  	E_Extension = &file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes[0] // COMMENT: Extension.Trailing
   370  )
   371  
   372  var File_cmd_protoc_gen_go_testdata_comments_comments_proto protoreflect.FileDescriptor
   373  
   374  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc = []byte{
   375  	0x0a, 0x32, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
   376  	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d,
   377  	0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70,
   378  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72,
   379  	0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x7b, 0x0a,
   380  	0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x18, 0x0a, 0x07, 0x46, 0x69, 0x65,
   381  	0x6c, 0x64, 0x31, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x46, 0x69, 0x65, 0x6c,
   382  	0x64, 0x31, 0x41, 0x12, 0x26, 0x0a, 0x0d, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69,
   383  	0x65, 0x6c, 0x64, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x4f, 0x6e,
   384  	0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x1a, 0x0b, 0x0a, 0x09, 0x4d,
   385  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x41, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73,
   386  	0x61, 0x67, 0x65, 0x31, 0x42, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42,
   387  	0x09, 0x0a, 0x07, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x61, 0x22, 0x24, 0x0a, 0x08, 0x4d, 0x65,
   388  	0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   389  	0x65, 0x32, 0x41, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x42,
   390  	0x2a, 0x19, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f,
   391  	0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x01, 0x3a, 0x62, 0x0a, 0x09, 0x65,
   392  	0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
   393  	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
   394  	0x74, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x64, 0x20, 0x01, 0x28,
   395  	0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   396  	0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73,
   397  	0x61, 0x67, 0x65, 0x31, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42,
   398  	0x40, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
   399  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d,
   400  	0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f,
   401  	0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
   402  	0x73,
   403  }
   404  
   405  var (
   406  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescOnce sync.Once
   407  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData = file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc
   408  )
   409  
   410  func file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP() []byte {
   411  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescOnce.Do(func() {
   412  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData)
   413  	})
   414  	return file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescData
   415  }
   416  
   417  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   418  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
   419  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = []interface{}{
   420  	(Enum1)(0),                 // 0: goproto.protoc.comments.Enum1
   421  	(*Message1)(nil),           // 1: goproto.protoc.comments.Message1
   422  	(*Message2)(nil),           // 2: goproto.protoc.comments.Message2
   423  	(*Message1_Message1A)(nil), // 3: goproto.protoc.comments.Message1.Message1A
   424  	(*Message1_Message1B)(nil), // 4: goproto.protoc.comments.Message1.Message1B
   425  	(*Message2_Message2A)(nil), // 5: goproto.protoc.comments.Message2.Message2A
   426  	(*Message2_Message2B)(nil), // 6: goproto.protoc.comments.Message2.Message2B
   427  }
   428  var file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs = []int32{
   429  	1, // 0: goproto.protoc.comments.extension:extendee -> goproto.protoc.comments.Message1
   430  	1, // 1: goproto.protoc.comments.extension:type_name -> goproto.protoc.comments.Message1
   431  	2, // [2:2] is the sub-list for method output_type
   432  	2, // [2:2] is the sub-list for method input_type
   433  	1, // [1:2] is the sub-list for extension type_name
   434  	0, // [0:1] is the sub-list for extension extendee
   435  	0, // [0:0] is the sub-list for field type_name
   436  }
   437  
   438  func init() { file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() }
   439  func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
   440  	if File_cmd_protoc_gen_go_testdata_comments_comments_proto != nil {
   441  		return
   442  	}
   443  	if !protoimpl.UnsafeEnabled {
   444  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   445  			switch v := v.(*Message1); i {
   446  			case 0:
   447  				return &v.state
   448  			case 1:
   449  				return &v.sizeCache
   450  			case 2:
   451  				return &v.unknownFields
   452  			case 3:
   453  				return &v.extensionFields
   454  			default:
   455  				return nil
   456  			}
   457  		}
   458  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   459  			switch v := v.(*Message2); i {
   460  			case 0:
   461  				return &v.state
   462  			case 1:
   463  				return &v.sizeCache
   464  			case 2:
   465  				return &v.unknownFields
   466  			default:
   467  				return nil
   468  			}
   469  		}
   470  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   471  			switch v := v.(*Message1_Message1A); i {
   472  			case 0:
   473  				return &v.state
   474  			case 1:
   475  				return &v.sizeCache
   476  			case 2:
   477  				return &v.unknownFields
   478  			default:
   479  				return nil
   480  			}
   481  		}
   482  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   483  			switch v := v.(*Message1_Message1B); i {
   484  			case 0:
   485  				return &v.state
   486  			case 1:
   487  				return &v.sizeCache
   488  			case 2:
   489  				return &v.unknownFields
   490  			default:
   491  				return nil
   492  			}
   493  		}
   494  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   495  			switch v := v.(*Message2_Message2A); i {
   496  			case 0:
   497  				return &v.state
   498  			case 1:
   499  				return &v.sizeCache
   500  			case 2:
   501  				return &v.unknownFields
   502  			default:
   503  				return nil
   504  			}
   505  		}
   506  		file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   507  			switch v := v.(*Message2_Message2B); i {
   508  			case 0:
   509  				return &v.state
   510  			case 1:
   511  				return &v.sizeCache
   512  			case 2:
   513  				return &v.unknownFields
   514  			default:
   515  				return nil
   516  			}
   517  		}
   518  	}
   519  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].OneofWrappers = []interface{}{
   520  		(*Message1_Oneof1AField1)(nil),
   521  	}
   522  	type x struct{}
   523  	out := protoimpl.TypeBuilder{
   524  		File: protoimpl.DescBuilder{
   525  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   526  			RawDescriptor: file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc,
   527  			NumEnums:      1,
   528  			NumMessages:   6,
   529  			NumExtensions: 1,
   530  			NumServices:   0,
   531  		},
   532  		GoTypes:           file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes,
   533  		DependencyIndexes: file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs,
   534  		EnumInfos:         file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes,
   535  		MessageInfos:      file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes,
   536  		ExtensionInfos:    file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes,
   537  	}.Build()
   538  	File_cmd_protoc_gen_go_testdata_comments_comments_proto = out.File
   539  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc = nil
   540  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = nil
   541  	file_cmd_protoc_gen_go_testdata_comments_comments_proto_depIdxs = nil
   542  }