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, 0x95, 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, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
107	0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
108	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
109	0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x3b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63,
110	0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47,
111	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57,
112	0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70,
113	0x72, 0x6f, 0x74, 0x6f, 0x33,
114}
115
116var (
117	file_google_protobuf_source_context_proto_rawDescOnce sync.Once
118	file_google_protobuf_source_context_proto_rawDescData = file_google_protobuf_source_context_proto_rawDesc
119)
120
121func file_google_protobuf_source_context_proto_rawDescGZIP() []byte {
122	file_google_protobuf_source_context_proto_rawDescOnce.Do(func() {
123		file_google_protobuf_source_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_source_context_proto_rawDescData)
124	})
125	return file_google_protobuf_source_context_proto_rawDescData
126}
127
128var file_google_protobuf_source_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
129var file_google_protobuf_source_context_proto_goTypes = []interface{}{
130	(*SourceContext)(nil), // 0: google.protobuf.SourceContext
131}
132var file_google_protobuf_source_context_proto_depIdxs = []int32{
133	0, // [0:0] is the sub-list for method output_type
134	0, // [0:0] is the sub-list for method input_type
135	0, // [0:0] is the sub-list for extension type_name
136	0, // [0:0] is the sub-list for extension extendee
137	0, // [0:0] is the sub-list for field type_name
138}
139
140func init() { file_google_protobuf_source_context_proto_init() }
141func file_google_protobuf_source_context_proto_init() {
142	if File_google_protobuf_source_context_proto != nil {
143		return
144	}
145	if !protoimpl.UnsafeEnabled {
146		file_google_protobuf_source_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
147			switch v := v.(*SourceContext); i {
148			case 0:
149				return &v.state
150			case 1:
151				return &v.sizeCache
152			case 2:
153				return &v.unknownFields
154			default:
155				return nil
156			}
157		}
158	}
159	type x struct{}
160	out := protoimpl.TypeBuilder{
161		File: protoimpl.DescBuilder{
162			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
163			RawDescriptor: file_google_protobuf_source_context_proto_rawDesc,
164			NumEnums:      0,
165			NumMessages:   1,
166			NumExtensions: 0,
167			NumServices:   0,
168		},
169		GoTypes:           file_google_protobuf_source_context_proto_goTypes,
170		DependencyIndexes: file_google_protobuf_source_context_proto_depIdxs,
171		MessageInfos:      file_google_protobuf_source_context_proto_msgTypes,
172	}.Build()
173	File_google_protobuf_source_context_proto = out.File
174	file_google_protobuf_source_context_proto_rawDesc = nil
175	file_google_protobuf_source_context_proto_goTypes = nil
176	file_google_protobuf_source_context_proto_depIdxs = nil
177}
178