1// you may not use this file except in compliance with the License.
2// You may obtain a copy of the License at
3//
4//   http://www.apache.org/licenses/LICENSE-2.0
5//
6// Unless required by applicable law or agreed to in writing, software
7// distributed under the License is distributed on an "AS IS" BASIS,
8// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9// See the License for the specific language governing permissions and
10// limitations under the License.
11
12// Code generated by protoc-gen-go. DO NOT EDIT.
13// versions:
14// 	protoc-gen-go v1.30.0
15// 	protoc        v3.21.12
16// source: code_metadata_internal.proto
17
18package code_metadata_internal_proto
19
20import (
21	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
22	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
23	reflect "reflect"
24	sync "sync"
25)
26
27const (
28	// Verify that this generated code is sufficiently up-to-date.
29	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
30	// Verify that runtime/protoimpl is sufficiently up-to-date.
31	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
32)
33
34type CodeMetadataInternal struct {
35	state         protoimpl.MessageState
36	sizeCache     protoimpl.SizeCache
37	unknownFields protoimpl.UnknownFields
38
39	// List of all code targets and their metadata.
40	TargetOwnershipList []*CodeMetadataInternal_TargetOwnership `protobuf:"bytes,1,rep,name=target_ownership_list,json=targetOwnershipList" json:"target_ownership_list,omitempty"`
41}
42
43func (x *CodeMetadataInternal) Reset() {
44	*x = CodeMetadataInternal{}
45	if protoimpl.UnsafeEnabled {
46		mi := &file_code_metadata_internal_proto_msgTypes[0]
47		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
48		ms.StoreMessageInfo(mi)
49	}
50}
51
52func (x *CodeMetadataInternal) String() string {
53	return protoimpl.X.MessageStringOf(x)
54}
55
56func (*CodeMetadataInternal) ProtoMessage() {}
57
58func (x *CodeMetadataInternal) ProtoReflect() protoreflect.Message {
59	mi := &file_code_metadata_internal_proto_msgTypes[0]
60	if protoimpl.UnsafeEnabled && x != nil {
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		if ms.LoadMessageInfo() == nil {
63			ms.StoreMessageInfo(mi)
64		}
65		return ms
66	}
67	return mi.MessageOf(x)
68}
69
70// Deprecated: Use CodeMetadataInternal.ProtoReflect.Descriptor instead.
71func (*CodeMetadataInternal) Descriptor() ([]byte, []int) {
72	return file_code_metadata_internal_proto_rawDescGZIP(), []int{0}
73}
74
75func (x *CodeMetadataInternal) GetTargetOwnershipList() []*CodeMetadataInternal_TargetOwnership {
76	if x != nil {
77		return x.TargetOwnershipList
78	}
79	return nil
80}
81
82type CodeMetadataInternal_TargetOwnership struct {
83	state         protoimpl.MessageState
84	sizeCache     protoimpl.SizeCache
85	unknownFields protoimpl.UnknownFields
86
87	// REQUIRED: Name of the build target
88	TargetName *string `protobuf:"bytes,1,opt,name=target_name,json=targetName" json:"target_name,omitempty"`
89	// REQUIRED: Code location of the target.
90	// To be used to support legacy/backup systems that use OWNERS file and is
91	// also required for our dashboard to support per code location basis UI
92	Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
93	// REQUIRED: Team ID of the team that owns this target.
94	TrendyTeamId *string `protobuf:"bytes,3,opt,name=trendy_team_id,json=trendyTeamId" json:"trendy_team_id,omitempty"`
95	// OPTIONAL: The src files of the target.
96	// To be used to determine ownership of a file for ownership
97	SourceFiles []string `protobuf:"bytes,4,rep,name=source_files,json=sourceFiles" json:"source_files,omitempty"`
98	// OPTIONAL: Specify if multiple ownerships of the source files are allowed.
99	MultiOwnership *bool `protobuf:"varint,5,opt,name=multi_ownership,json=multiOwnership" json:"multi_ownership,omitempty"`
100}
101
102func (x *CodeMetadataInternal_TargetOwnership) Reset() {
103	*x = CodeMetadataInternal_TargetOwnership{}
104	if protoimpl.UnsafeEnabled {
105		mi := &file_code_metadata_internal_proto_msgTypes[1]
106		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107		ms.StoreMessageInfo(mi)
108	}
109}
110
111func (x *CodeMetadataInternal_TargetOwnership) String() string {
112	return protoimpl.X.MessageStringOf(x)
113}
114
115func (*CodeMetadataInternal_TargetOwnership) ProtoMessage() {}
116
117func (x *CodeMetadataInternal_TargetOwnership) ProtoReflect() protoreflect.Message {
118	mi := &file_code_metadata_internal_proto_msgTypes[1]
119	if protoimpl.UnsafeEnabled && x != nil {
120		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121		if ms.LoadMessageInfo() == nil {
122			ms.StoreMessageInfo(mi)
123		}
124		return ms
125	}
126	return mi.MessageOf(x)
127}
128
129// Deprecated: Use CodeMetadataInternal_TargetOwnership.ProtoReflect.Descriptor instead.
130func (*CodeMetadataInternal_TargetOwnership) Descriptor() ([]byte, []int) {
131	return file_code_metadata_internal_proto_rawDescGZIP(), []int{0, 0}
132}
133
134func (x *CodeMetadataInternal_TargetOwnership) GetTargetName() string {
135	if x != nil && x.TargetName != nil {
136		return *x.TargetName
137	}
138	return ""
139}
140
141func (x *CodeMetadataInternal_TargetOwnership) GetPath() string {
142	if x != nil && x.Path != nil {
143		return *x.Path
144	}
145	return ""
146}
147
148func (x *CodeMetadataInternal_TargetOwnership) GetTrendyTeamId() string {
149	if x != nil && x.TrendyTeamId != nil {
150		return *x.TrendyTeamId
151	}
152	return ""
153}
154
155func (x *CodeMetadataInternal_TargetOwnership) GetSourceFiles() []string {
156	if x != nil {
157		return x.SourceFiles
158	}
159	return nil
160}
161
162func (x *CodeMetadataInternal_TargetOwnership) GetMultiOwnership() bool {
163	if x != nil && x.MultiOwnership != nil {
164		return *x.MultiOwnership
165	}
166	return false
167}
168
169var File_code_metadata_internal_proto protoreflect.FileDescriptor
170
171var file_code_metadata_internal_proto_rawDesc = []byte{
172	0x0a, 0x1c, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f,
173	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c,
174	0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x6e,
175	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a,
176	0x14, 0x43, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x74,
177	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x76, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f,
178	0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01,
179	0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61,
180	0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72,
181	0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
182	0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4f,
183	0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
184	0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0xb8, 0x01,
185	0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69,
186	0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
187	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61,
188	0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
189	0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x79,
190	0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
191	0x74, 0x72, 0x65, 0x6e, 0x64, 0x79, 0x54, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c,
192	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,
193	0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12,
194	0x27, 0x0a, 0x0f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68,
195	0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4f,
196	0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x34, 0x5a, 0x32, 0x61, 0x6e, 0x64, 0x72,
197	0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e,
198	0x67, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f,
199	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
200}
201
202var (
203	file_code_metadata_internal_proto_rawDescOnce sync.Once
204	file_code_metadata_internal_proto_rawDescData = file_code_metadata_internal_proto_rawDesc
205)
206
207func file_code_metadata_internal_proto_rawDescGZIP() []byte {
208	file_code_metadata_internal_proto_rawDescOnce.Do(func() {
209		file_code_metadata_internal_proto_rawDescData = protoimpl.X.CompressGZIP(file_code_metadata_internal_proto_rawDescData)
210	})
211	return file_code_metadata_internal_proto_rawDescData
212}
213
214var file_code_metadata_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
215var file_code_metadata_internal_proto_goTypes = []interface{}{
216	(*CodeMetadataInternal)(nil),                 // 0: code_metadata_internal_proto.CodeMetadataInternal
217	(*CodeMetadataInternal_TargetOwnership)(nil), // 1: code_metadata_internal_proto.CodeMetadataInternal.TargetOwnership
218}
219var file_code_metadata_internal_proto_depIdxs = []int32{
220	1, // 0: code_metadata_internal_proto.CodeMetadataInternal.target_ownership_list:type_name -> code_metadata_internal_proto.CodeMetadataInternal.TargetOwnership
221	1, // [1:1] is the sub-list for method output_type
222	1, // [1:1] is the sub-list for method input_type
223	1, // [1:1] is the sub-list for extension type_name
224	1, // [1:1] is the sub-list for extension extendee
225	0, // [0:1] is the sub-list for field type_name
226}
227
228func init() { file_code_metadata_internal_proto_init() }
229func file_code_metadata_internal_proto_init() {
230	if File_code_metadata_internal_proto != nil {
231		return
232	}
233	if !protoimpl.UnsafeEnabled {
234		file_code_metadata_internal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
235			switch v := v.(*CodeMetadataInternal); i {
236			case 0:
237				return &v.state
238			case 1:
239				return &v.sizeCache
240			case 2:
241				return &v.unknownFields
242			default:
243				return nil
244			}
245		}
246		file_code_metadata_internal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
247			switch v := v.(*CodeMetadataInternal_TargetOwnership); i {
248			case 0:
249				return &v.state
250			case 1:
251				return &v.sizeCache
252			case 2:
253				return &v.unknownFields
254			default:
255				return nil
256			}
257		}
258	}
259	type x struct{}
260	out := protoimpl.TypeBuilder{
261		File: protoimpl.DescBuilder{
262			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
263			RawDescriptor: file_code_metadata_internal_proto_rawDesc,
264			NumEnums:      0,
265			NumMessages:   2,
266			NumExtensions: 0,
267			NumServices:   0,
268		},
269		GoTypes:           file_code_metadata_internal_proto_goTypes,
270		DependencyIndexes: file_code_metadata_internal_proto_depIdxs,
271		MessageInfos:      file_code_metadata_internal_proto_msgTypes,
272	}.Build()
273	File_code_metadata_internal_proto = out.File
274	file_code_metadata_internal_proto_rawDesc = nil
275	file_code_metadata_internal_proto_goTypes = nil
276	file_code_metadata_internal_proto_depIdxs = nil
277}
278