1// Protocol Buffers - Google's data interchange format 2// Copyright 2008 Google Inc. All rights reserved. 3// https://developers.google.com/protocol-buffers/ 4// 5// Redistribution and use in source and binary forms, with or without 6// modification, are permitted provided that the following conditions are 7// met: 8// 9// * Redistributions of source code must retain the above copyright 10// notice, this list of conditions and the following disclaimer. 11// * Redistributions in binary form must reproduce the above 12// copyright notice, this list of conditions and the following disclaimer 13// in the documentation and/or other materials provided with the 14// distribution. 15// * Neither the name of Google Inc. nor the names of its 16// contributors may be used to endorse or promote products derived from 17// this software without specific prior written permission. 18// 19// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 31// Code generated by protoc-gen-go. DO NOT EDIT. 32// source: google/protobuf/source_context.proto 33 34package sourcecontextpb 35 36import ( 37 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 38 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 39 reflect "reflect" 40 sync "sync" 41) 42 43// `SourceContext` represents information about the source of a 44// protobuf element, like the file in which it is defined. 45type SourceContext struct { 46 state protoimpl.MessageState 47 sizeCache protoimpl.SizeCache 48 unknownFields protoimpl.UnknownFields 49 50 // The path-qualified name of the .proto file that contained the associated 51 // protobuf element. For example: `"google/protobuf/source_context.proto"`. 52 FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` 53} 54 55func (x *SourceContext) Reset() { 56 *x = SourceContext{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_google_protobuf_source_context_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62} 63 64func (x *SourceContext) String() string { 65 return protoimpl.X.MessageStringOf(x) 66} 67 68func (*SourceContext) ProtoMessage() {} 69 70func (x *SourceContext) ProtoReflect() protoreflect.Message { 71 mi := &file_google_protobuf_source_context_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80} 81 82// Deprecated: Use SourceContext.ProtoReflect.Descriptor instead. 83func (*SourceContext) Descriptor() ([]byte, []int) { 84 return file_google_protobuf_source_context_proto_rawDescGZIP(), []int{0} 85} 86 87func (x *SourceContext) GetFileName() string { 88 if x != nil { 89 return x.FileName 90 } 91 return "" 92} 93 94var File_google_protobuf_source_context_proto protoreflect.FileDescriptor 95 96var file_google_protobuf_source_context_proto_rawDesc = []byte{ 97 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 98 0x66, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 99 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 100 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x6f, 0x75, 0x72, 0x63, 101 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 102 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 103 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x8a, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 104 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x12, 0x53, 105 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 106 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 107 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 108 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x73, 0x6f, 0x75, 0x72, 109 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x50, 110 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 111 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 112 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 113} 114 115var ( 116 file_google_protobuf_source_context_proto_rawDescOnce sync.Once 117 file_google_protobuf_source_context_proto_rawDescData = file_google_protobuf_source_context_proto_rawDesc 118) 119 120func file_google_protobuf_source_context_proto_rawDescGZIP() []byte { 121 file_google_protobuf_source_context_proto_rawDescOnce.Do(func() { 122 file_google_protobuf_source_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_source_context_proto_rawDescData) 123 }) 124 return file_google_protobuf_source_context_proto_rawDescData 125} 126 127var file_google_protobuf_source_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 128var file_google_protobuf_source_context_proto_goTypes = []interface{}{ 129 (*SourceContext)(nil), // 0: google.protobuf.SourceContext 130} 131var file_google_protobuf_source_context_proto_depIdxs = []int32{ 132 0, // [0:0] is the sub-list for method output_type 133 0, // [0:0] is the sub-list for method input_type 134 0, // [0:0] is the sub-list for extension type_name 135 0, // [0:0] is the sub-list for extension extendee 136 0, // [0:0] is the sub-list for field type_name 137} 138 139func init() { file_google_protobuf_source_context_proto_init() } 140func file_google_protobuf_source_context_proto_init() { 141 if File_google_protobuf_source_context_proto != nil { 142 return 143 } 144 if !protoimpl.UnsafeEnabled { 145 file_google_protobuf_source_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 146 switch v := v.(*SourceContext); i { 147 case 0: 148 return &v.state 149 case 1: 150 return &v.sizeCache 151 case 2: 152 return &v.unknownFields 153 default: 154 return nil 155 } 156 } 157 } 158 type x struct{} 159 out := protoimpl.TypeBuilder{ 160 File: protoimpl.DescBuilder{ 161 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 162 RawDescriptor: file_google_protobuf_source_context_proto_rawDesc, 163 NumEnums: 0, 164 NumMessages: 1, 165 NumExtensions: 0, 166 NumServices: 0, 167 }, 168 GoTypes: file_google_protobuf_source_context_proto_goTypes, 169 DependencyIndexes: file_google_protobuf_source_context_proto_depIdxs, 170 MessageInfos: file_google_protobuf_source_context_proto_msgTypes, 171 }.Build() 172 File_google_protobuf_source_context_proto = out.File 173 file_google_protobuf_source_context_proto_rawDesc = nil 174 file_google_protobuf_source_context_proto_goTypes = nil 175 file_google_protobuf_source_context_proto_depIdxs = nil 176} 177