1*1c12ee1eSDan Willemsen// Copyright 2018 The Go Authors. All rights reserved. 2*1c12ee1eSDan Willemsen// Use of this source code is governed by a BSD-style 3*1c12ee1eSDan Willemsen// license that can be found in the LICENSE file. 4*1c12ee1eSDan Willemsen 5*1c12ee1eSDan Willemsen// Code generated by protoc-gen-go. DO NOT EDIT. 6*1c12ee1eSDan Willemsen// source: cmd/protoc-gen-go/testdata/annotations/annotations.proto 7*1c12ee1eSDan Willemsen 8*1c12ee1eSDan Willemsenpackage annotations 9*1c12ee1eSDan Willemsen 10*1c12ee1eSDan Willemsenimport ( 11*1c12ee1eSDan Willemsen protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12*1c12ee1eSDan Willemsen protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13*1c12ee1eSDan Willemsen reflect "reflect" 14*1c12ee1eSDan Willemsen sync "sync" 15*1c12ee1eSDan Willemsen) 16*1c12ee1eSDan Willemsen 17*1c12ee1eSDan Willemsentype AnnotationsTestEnum int32 18*1c12ee1eSDan Willemsen 19*1c12ee1eSDan Willemsenconst ( 20*1c12ee1eSDan Willemsen AnnotationsTestEnum_ANNOTATIONS_TEST_ENUM_VALUE AnnotationsTestEnum = 0 21*1c12ee1eSDan Willemsen) 22*1c12ee1eSDan Willemsen 23*1c12ee1eSDan Willemsen// Enum value maps for AnnotationsTestEnum. 24*1c12ee1eSDan Willemsenvar ( 25*1c12ee1eSDan Willemsen AnnotationsTestEnum_name = map[int32]string{ 26*1c12ee1eSDan Willemsen 0: "ANNOTATIONS_TEST_ENUM_VALUE", 27*1c12ee1eSDan Willemsen } 28*1c12ee1eSDan Willemsen AnnotationsTestEnum_value = map[string]int32{ 29*1c12ee1eSDan Willemsen "ANNOTATIONS_TEST_ENUM_VALUE": 0, 30*1c12ee1eSDan Willemsen } 31*1c12ee1eSDan Willemsen) 32*1c12ee1eSDan Willemsen 33*1c12ee1eSDan Willemsenfunc (x AnnotationsTestEnum) Enum() *AnnotationsTestEnum { 34*1c12ee1eSDan Willemsen p := new(AnnotationsTestEnum) 35*1c12ee1eSDan Willemsen *p = x 36*1c12ee1eSDan Willemsen return p 37*1c12ee1eSDan Willemsen} 38*1c12ee1eSDan Willemsen 39*1c12ee1eSDan Willemsenfunc (x AnnotationsTestEnum) String() string { 40*1c12ee1eSDan Willemsen return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 41*1c12ee1eSDan Willemsen} 42*1c12ee1eSDan Willemsen 43*1c12ee1eSDan Willemsenfunc (AnnotationsTestEnum) Descriptor() protoreflect.EnumDescriptor { 44*1c12ee1eSDan Willemsen return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes[0].Descriptor() 45*1c12ee1eSDan Willemsen} 46*1c12ee1eSDan Willemsen 47*1c12ee1eSDan Willemsenfunc (AnnotationsTestEnum) Type() protoreflect.EnumType { 48*1c12ee1eSDan Willemsen return &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes[0] 49*1c12ee1eSDan Willemsen} 50*1c12ee1eSDan Willemsen 51*1c12ee1eSDan Willemsenfunc (x AnnotationsTestEnum) Number() protoreflect.EnumNumber { 52*1c12ee1eSDan Willemsen return protoreflect.EnumNumber(x) 53*1c12ee1eSDan Willemsen} 54*1c12ee1eSDan Willemsen 55*1c12ee1eSDan Willemsen// Deprecated: Do not use. 56*1c12ee1eSDan Willemsenfunc (x *AnnotationsTestEnum) UnmarshalJSON(b []byte) error { 57*1c12ee1eSDan Willemsen num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 58*1c12ee1eSDan Willemsen if err != nil { 59*1c12ee1eSDan Willemsen return err 60*1c12ee1eSDan Willemsen } 61*1c12ee1eSDan Willemsen *x = AnnotationsTestEnum(num) 62*1c12ee1eSDan Willemsen return nil 63*1c12ee1eSDan Willemsen} 64*1c12ee1eSDan Willemsen 65*1c12ee1eSDan Willemsen// Deprecated: Use AnnotationsTestEnum.Descriptor instead. 66*1c12ee1eSDan Willemsenfunc (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) { 67*1c12ee1eSDan Willemsen return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP(), []int{0} 68*1c12ee1eSDan Willemsen} 69*1c12ee1eSDan Willemsen 70*1c12ee1eSDan Willemsentype AnnotationsTestMessage struct { 71*1c12ee1eSDan Willemsen state protoimpl.MessageState 72*1c12ee1eSDan Willemsen sizeCache protoimpl.SizeCache 73*1c12ee1eSDan Willemsen unknownFields protoimpl.UnknownFields 74*1c12ee1eSDan Willemsen 75*1c12ee1eSDan Willemsen AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"` 76*1c12ee1eSDan Willemsen} 77*1c12ee1eSDan Willemsen 78*1c12ee1eSDan Willemsenfunc (x *AnnotationsTestMessage) Reset() { 79*1c12ee1eSDan Willemsen *x = AnnotationsTestMessage{} 80*1c12ee1eSDan Willemsen if protoimpl.UnsafeEnabled { 81*1c12ee1eSDan Willemsen mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0] 82*1c12ee1eSDan Willemsen ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83*1c12ee1eSDan Willemsen ms.StoreMessageInfo(mi) 84*1c12ee1eSDan Willemsen } 85*1c12ee1eSDan Willemsen} 86*1c12ee1eSDan Willemsen 87*1c12ee1eSDan Willemsenfunc (x *AnnotationsTestMessage) String() string { 88*1c12ee1eSDan Willemsen return protoimpl.X.MessageStringOf(x) 89*1c12ee1eSDan Willemsen} 90*1c12ee1eSDan Willemsen 91*1c12ee1eSDan Willemsenfunc (*AnnotationsTestMessage) ProtoMessage() {} 92*1c12ee1eSDan Willemsen 93*1c12ee1eSDan Willemsenfunc (x *AnnotationsTestMessage) ProtoReflect() protoreflect.Message { 94*1c12ee1eSDan Willemsen mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0] 95*1c12ee1eSDan Willemsen if protoimpl.UnsafeEnabled && x != nil { 96*1c12ee1eSDan Willemsen ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97*1c12ee1eSDan Willemsen if ms.LoadMessageInfo() == nil { 98*1c12ee1eSDan Willemsen ms.StoreMessageInfo(mi) 99*1c12ee1eSDan Willemsen } 100*1c12ee1eSDan Willemsen return ms 101*1c12ee1eSDan Willemsen } 102*1c12ee1eSDan Willemsen return mi.MessageOf(x) 103*1c12ee1eSDan Willemsen} 104*1c12ee1eSDan Willemsen 105*1c12ee1eSDan Willemsen// Deprecated: Use AnnotationsTestMessage.ProtoReflect.Descriptor instead. 106*1c12ee1eSDan Willemsenfunc (*AnnotationsTestMessage) Descriptor() ([]byte, []int) { 107*1c12ee1eSDan Willemsen return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP(), []int{0} 108*1c12ee1eSDan Willemsen} 109*1c12ee1eSDan Willemsen 110*1c12ee1eSDan Willemsenfunc (x *AnnotationsTestMessage) GetAnnotationsTestField() string { 111*1c12ee1eSDan Willemsen if x != nil && x.AnnotationsTestField != nil { 112*1c12ee1eSDan Willemsen return *x.AnnotationsTestField 113*1c12ee1eSDan Willemsen } 114*1c12ee1eSDan Willemsen return "" 115*1c12ee1eSDan Willemsen} 116*1c12ee1eSDan Willemsen 117*1c12ee1eSDan Willemsenvar File_cmd_protoc_gen_go_testdata_annotations_annotations_proto protoreflect.FileDescriptor 118*1c12ee1eSDan Willemsen 119*1c12ee1eSDan Willemsenvar file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc = []byte{ 120*1c12ee1eSDan Willemsen 0x0a, 0x38, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 121*1c12ee1eSDan Willemsen 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 122*1c12ee1eSDan Willemsen 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 123*1c12ee1eSDan Willemsen 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x70, 0x72, 124*1c12ee1eSDan Willemsen 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 125*1c12ee1eSDan Willemsen 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4c, 0x0a, 0x16, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 126*1c12ee1eSDan Willemsen 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 127*1c12ee1eSDan Willemsen 0x12, 0x32, 0x0a, 0x14, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 128*1c12ee1eSDan Willemsen 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 129*1c12ee1eSDan Willemsen 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x46, 130*1c12ee1eSDan Willemsen 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x36, 0x0a, 0x13, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 131*1c12ee1eSDan Willemsen 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 132*1c12ee1eSDan Willemsen 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 133*1c12ee1eSDan Willemsen 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x42, 0x43, 0x5a, 0x41, 134*1c12ee1eSDan Willemsen 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 135*1c12ee1eSDan Willemsen 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 136*1c12ee1eSDan Willemsen 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 137*1c12ee1eSDan Willemsen 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 138*1c12ee1eSDan Willemsen 0x73, 139*1c12ee1eSDan Willemsen} 140*1c12ee1eSDan Willemsen 141*1c12ee1eSDan Willemsenvar ( 142*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescOnce sync.Once 143*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData = file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc 144*1c12ee1eSDan Willemsen) 145*1c12ee1eSDan Willemsen 146*1c12ee1eSDan Willemsenfunc file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP() []byte { 147*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescOnce.Do(func() { 148*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData) 149*1c12ee1eSDan Willemsen }) 150*1c12ee1eSDan Willemsen return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData 151*1c12ee1eSDan Willemsen} 152*1c12ee1eSDan Willemsen 153*1c12ee1eSDan Willemsenvar file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 154*1c12ee1eSDan Willemsenvar file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 155*1c12ee1eSDan Willemsenvar file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = []interface{}{ 156*1c12ee1eSDan Willemsen (AnnotationsTestEnum)(0), // 0: goproto.protoc.annotations.AnnotationsTestEnum 157*1c12ee1eSDan Willemsen (*AnnotationsTestMessage)(nil), // 1: goproto.protoc.annotations.AnnotationsTestMessage 158*1c12ee1eSDan Willemsen} 159*1c12ee1eSDan Willemsenvar file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs = []int32{ 160*1c12ee1eSDan Willemsen 0, // [0:0] is the sub-list for method output_type 161*1c12ee1eSDan Willemsen 0, // [0:0] is the sub-list for method input_type 162*1c12ee1eSDan Willemsen 0, // [0:0] is the sub-list for extension type_name 163*1c12ee1eSDan Willemsen 0, // [0:0] is the sub-list for extension extendee 164*1c12ee1eSDan Willemsen 0, // [0:0] is the sub-list for field type_name 165*1c12ee1eSDan Willemsen} 166*1c12ee1eSDan Willemsen 167*1c12ee1eSDan Willemsenfunc init() { file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() } 168*1c12ee1eSDan Willemsenfunc file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() { 169*1c12ee1eSDan Willemsen if File_cmd_protoc_gen_go_testdata_annotations_annotations_proto != nil { 170*1c12ee1eSDan Willemsen return 171*1c12ee1eSDan Willemsen } 172*1c12ee1eSDan Willemsen if !protoimpl.UnsafeEnabled { 173*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 174*1c12ee1eSDan Willemsen switch v := v.(*AnnotationsTestMessage); i { 175*1c12ee1eSDan Willemsen case 0: 176*1c12ee1eSDan Willemsen return &v.state 177*1c12ee1eSDan Willemsen case 1: 178*1c12ee1eSDan Willemsen return &v.sizeCache 179*1c12ee1eSDan Willemsen case 2: 180*1c12ee1eSDan Willemsen return &v.unknownFields 181*1c12ee1eSDan Willemsen default: 182*1c12ee1eSDan Willemsen return nil 183*1c12ee1eSDan Willemsen } 184*1c12ee1eSDan Willemsen } 185*1c12ee1eSDan Willemsen } 186*1c12ee1eSDan Willemsen type x struct{} 187*1c12ee1eSDan Willemsen out := protoimpl.TypeBuilder{ 188*1c12ee1eSDan Willemsen File: protoimpl.DescBuilder{ 189*1c12ee1eSDan Willemsen GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 190*1c12ee1eSDan Willemsen RawDescriptor: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc, 191*1c12ee1eSDan Willemsen NumEnums: 1, 192*1c12ee1eSDan Willemsen NumMessages: 1, 193*1c12ee1eSDan Willemsen NumExtensions: 0, 194*1c12ee1eSDan Willemsen NumServices: 0, 195*1c12ee1eSDan Willemsen }, 196*1c12ee1eSDan Willemsen GoTypes: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes, 197*1c12ee1eSDan Willemsen DependencyIndexes: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs, 198*1c12ee1eSDan Willemsen EnumInfos: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes, 199*1c12ee1eSDan Willemsen MessageInfos: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes, 200*1c12ee1eSDan Willemsen }.Build() 201*1c12ee1eSDan Willemsen File_cmd_protoc_gen_go_testdata_annotations_annotations_proto = out.File 202*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc = nil 203*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = nil 204*1c12ee1eSDan Willemsen file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs = nil 205*1c12ee1eSDan Willemsen} 206