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/extensions/base/base.proto 7 8package base 9 10import ( 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoiface "google.golang.org/protobuf/runtime/protoiface" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16) 17 18type BaseMessage struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 extensionFields protoimpl.ExtensionFields 23 24 Field *string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"` 25} 26 27func (x *BaseMessage) Reset() { 28 *x = BaseMessage{} 29 if protoimpl.UnsafeEnabled { 30 mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0] 31 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 32 ms.StoreMessageInfo(mi) 33 } 34} 35 36func (x *BaseMessage) String() string { 37 return protoimpl.X.MessageStringOf(x) 38} 39 40func (*BaseMessage) ProtoMessage() {} 41 42func (x *BaseMessage) ProtoReflect() protoreflect.Message { 43 mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0] 44 if protoimpl.UnsafeEnabled && x != nil { 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 if ms.LoadMessageInfo() == nil { 47 ms.StoreMessageInfo(mi) 48 } 49 return ms 50 } 51 return mi.MessageOf(x) 52} 53 54// Deprecated: Use BaseMessage.ProtoReflect.Descriptor instead. 55func (*BaseMessage) Descriptor() ([]byte, []int) { 56 return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP(), []int{0} 57} 58 59var extRange_BaseMessage = []protoiface.ExtensionRangeV1{ 60 {Start: 4, End: 9}, 61 {Start: 16, End: 536870911}, 62} 63 64// Deprecated: Use BaseMessage.ProtoReflect.Descriptor.ExtensionRanges instead. 65func (*BaseMessage) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { 66 return extRange_BaseMessage 67} 68 69func (x *BaseMessage) GetField() string { 70 if x != nil && x.Field != nil { 71 return *x.Field 72 } 73 return "" 74} 75 76type MessageSetWireFormatMessage struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 extensionFields protoimpl.ExtensionFields 81} 82 83func (x *MessageSetWireFormatMessage) Reset() { 84 *x = MessageSetWireFormatMessage{} 85 if protoimpl.UnsafeEnabled { 86 mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1] 87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 88 ms.StoreMessageInfo(mi) 89 } 90} 91 92func (x *MessageSetWireFormatMessage) String() string { 93 return protoimpl.X.MessageStringOf(x) 94} 95 96func (*MessageSetWireFormatMessage) ProtoMessage() {} 97 98func (x *MessageSetWireFormatMessage) ProtoReflect() protoreflect.Message { 99 mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1] 100 if protoimpl.UnsafeEnabled && x != nil { 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 if ms.LoadMessageInfo() == nil { 103 ms.StoreMessageInfo(mi) 104 } 105 return ms 106 } 107 return mi.MessageOf(x) 108} 109 110// Deprecated: Use MessageSetWireFormatMessage.ProtoReflect.Descriptor instead. 111func (*MessageSetWireFormatMessage) Descriptor() ([]byte, []int) { 112 return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP(), []int{1} 113} 114 115var extRange_MessageSetWireFormatMessage = []protoiface.ExtensionRangeV1{ 116 {Start: 100, End: 2147483646}, 117} 118 119// Deprecated: Use MessageSetWireFormatMessage.ProtoReflect.Descriptor.ExtensionRanges instead. 120func (*MessageSetWireFormatMessage) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { 121 return extRange_MessageSetWireFormatMessage 122} 123 124var File_cmd_protoc_gen_go_testdata_extensions_base_base_proto protoreflect.FileDescriptor 125 126var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc = []byte{ 127 0x0a, 0x35, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 128 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x74, 129 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x61, 0x73, 130 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 131 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 132 0x6e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 133 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 134 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x04, 0x08, 0x04, 0x10, 135 0x0a, 0x2a, 0x08, 0x08, 0x10, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x2b, 0x0a, 0x1b, 0x4d, 136 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 137 0x6d, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x08, 0x08, 0x64, 0x10, 0xff, 138 0xff, 0xff, 0xff, 0x07, 0x3a, 0x02, 0x08, 0x01, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 139 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 140 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 141 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 142 0x61, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x62, 0x61, 0x73, 143 0x65, 144} 145 146var ( 147 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescOnce sync.Once 148 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData = file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc 149) 150 151func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP() []byte { 152 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescOnce.Do(func() { 153 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData) 154 }) 155 return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData 156} 157 158var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 159var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = []interface{}{ 160 (*BaseMessage)(nil), // 0: goproto.protoc.extension.base.BaseMessage 161 (*MessageSetWireFormatMessage)(nil), // 1: goproto.protoc.extension.base.MessageSetWireFormatMessage 162} 163var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs = []int32{ 164 0, // [0:0] is the sub-list for method output_type 165 0, // [0:0] is the sub-list for method input_type 166 0, // [0:0] is the sub-list for extension type_name 167 0, // [0:0] is the sub-list for extension extendee 168 0, // [0:0] is the sub-list for field type_name 169} 170 171func init() { file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() } 172func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() { 173 if File_cmd_protoc_gen_go_testdata_extensions_base_base_proto != nil { 174 return 175 } 176 if !protoimpl.UnsafeEnabled { 177 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 178 switch v := v.(*BaseMessage); i { 179 case 0: 180 return &v.state 181 case 1: 182 return &v.sizeCache 183 case 2: 184 return &v.unknownFields 185 case 3: 186 return &v.extensionFields 187 default: 188 return nil 189 } 190 } 191 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 192 switch v := v.(*MessageSetWireFormatMessage); i { 193 case 0: 194 return &v.state 195 case 1: 196 return &v.sizeCache 197 case 2: 198 return &v.unknownFields 199 case 3: 200 return &v.extensionFields 201 default: 202 return nil 203 } 204 } 205 } 206 type x struct{} 207 out := protoimpl.TypeBuilder{ 208 File: protoimpl.DescBuilder{ 209 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 210 RawDescriptor: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc, 211 NumEnums: 0, 212 NumMessages: 2, 213 NumExtensions: 0, 214 NumServices: 0, 215 }, 216 GoTypes: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes, 217 DependencyIndexes: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs, 218 MessageInfos: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes, 219 }.Build() 220 File_cmd_protoc_gen_go_testdata_extensions_base_base_proto = out.File 221 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc = nil 222 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = nil 223 file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs = nil 224} 225