...

Source file src/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go

Documentation: google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1

     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/imports/test_b_1/m2.proto
     7  
     8  package beta
     9  
    10  import (
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  type M2 struct {
    18  	state         protoimpl.MessageState
    19  	sizeCache     protoimpl.SizeCache
    20  	unknownFields protoimpl.UnknownFields
    21  }
    22  
    23  func (x *M2) Reset() {
    24  	*x = M2{}
    25  	if protoimpl.UnsafeEnabled {
    26  		mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0]
    27  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    28  		ms.StoreMessageInfo(mi)
    29  	}
    30  }
    31  
    32  func (x *M2) String() string {
    33  	return protoimpl.X.MessageStringOf(x)
    34  }
    35  
    36  func (*M2) ProtoMessage() {}
    37  
    38  func (x *M2) ProtoReflect() protoreflect.Message {
    39  	mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0]
    40  	if protoimpl.UnsafeEnabled && x != nil {
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		if ms.LoadMessageInfo() == nil {
    43  			ms.StoreMessageInfo(mi)
    44  		}
    45  		return ms
    46  	}
    47  	return mi.MessageOf(x)
    48  }
    49  
    50  // Deprecated: Use M2.ProtoReflect.Descriptor instead.
    51  func (*M2) Descriptor() ([]byte, []int) {
    52  	return file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescGZIP(), []int{0}
    53  }
    54  
    55  var File_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto protoreflect.FileDescriptor
    56  
    57  var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc = []byte{
    58  	0x0a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
    59  	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
    60  	0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x5f, 0x31, 0x2f, 0x6d, 0x32,
    61  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x62, 0x2e, 0x70,
    62  	0x61, 0x72, 0x74, 0x32, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x32, 0x42, 0x4d, 0x5a, 0x4b, 0x67, 0x6f,
    63  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
    64  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f,
    65  	0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64,
    66  	0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
    67  	0x5f, 0x62, 0x5f, 0x31, 0x3b, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    68  	0x33,
    69  }
    70  
    71  var (
    72  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescOnce sync.Once
    73  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescData = file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc
    74  )
    75  
    76  func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescGZIP() []byte {
    77  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescOnce.Do(func() {
    78  		file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescData)
    79  	})
    80  	return file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescData
    81  }
    82  
    83  var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
    84  var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_goTypes = []interface{}{
    85  	(*M2)(nil), // 0: test.b.part2.M2
    86  }
    87  var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_depIdxs = []int32{
    88  	0, // [0:0] is the sub-list for method output_type
    89  	0, // [0:0] is the sub-list for method input_type
    90  	0, // [0:0] is the sub-list for extension type_name
    91  	0, // [0:0] is the sub-list for extension extendee
    92  	0, // [0:0] is the sub-list for field type_name
    93  }
    94  
    95  func init() { file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_init() }
    96  func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_init() {
    97  	if File_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto != nil {
    98  		return
    99  	}
   100  	if !protoimpl.UnsafeEnabled {
   101  		file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   102  			switch v := v.(*M2); i {
   103  			case 0:
   104  				return &v.state
   105  			case 1:
   106  				return &v.sizeCache
   107  			case 2:
   108  				return &v.unknownFields
   109  			default:
   110  				return nil
   111  			}
   112  		}
   113  	}
   114  	type x struct{}
   115  	out := protoimpl.TypeBuilder{
   116  		File: protoimpl.DescBuilder{
   117  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   118  			RawDescriptor: file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc,
   119  			NumEnums:      0,
   120  			NumMessages:   1,
   121  			NumExtensions: 0,
   122  			NumServices:   0,
   123  		},
   124  		GoTypes:           file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_goTypes,
   125  		DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_depIdxs,
   126  		MessageInfos:      file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes,
   127  	}.Build()
   128  	File_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto = out.File
   129  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc = nil
   130  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_goTypes = nil
   131  	file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_depIdxs = nil
   132  }
   133  

View as plain text