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