1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.23.0
18// 	protoc        v3.13.0
19// source: google/devtools/resultstore/v2/file_set.proto
20
21package resultstore
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	_ "google.golang.org/genproto/googleapis/api/annotations"
29	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40// This is a compile-time assertion that a sufficiently up-to-date version
41// of the legacy proto package is being used.
42const _ = proto.ProtoPackageIsVersion4
43
44// This resource represents a set of Files and other (nested) FileSets.
45// A FileSet is a node in the graph, and the file_sets field represents the
46// outgoing edges. A resource may reference various nodes in the graph to
47// represent the transitive closure of all files from those nodes.
48// The FileSets must form a directed acyclic graph. The Upload API is unable to
49// enforce that the graph is acyclic at write time, and if cycles are written,
50// it may cause issues at read time.
51//
52// A FileSet may be referenced by other resources in conjunction with Files.
53//
54// Clients should prefer using Files directly under resources. Clients should
55// not use FileSets unless their usecase requires a directed acyclic graph of
56// Files.
57type FileSet struct {
58	state         protoimpl.MessageState
59	sizeCache     protoimpl.SizeCache
60	unknownFields protoimpl.UnknownFields
61
62	// The format of this FileSet resource name must be:
63	// invocations/${INVOCATION_ID}/fileSets/${url_encode(FILE_SET_ID)}
64	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
65	// The resource ID components that identify the file set. They must match the
66	// resource name after proper encoding.
67	Id *FileSet_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
68	// List of names of other file sets that are referenced from this one.
69	// Each name must point to a file set under the same invocation. The name
70	// format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID}
71	FileSets []string `protobuf:"bytes,3,rep,name=file_sets,json=fileSets,proto3" json:"file_sets,omitempty"`
72	// Files that are contained within this file set.
73	// The uid field in the file should be unique for the Invocation.
74	Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"`
75}
76
77func (x *FileSet) Reset() {
78	*x = FileSet{}
79	if protoimpl.UnsafeEnabled {
80		mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0]
81		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82		ms.StoreMessageInfo(mi)
83	}
84}
85
86func (x *FileSet) String() string {
87	return protoimpl.X.MessageStringOf(x)
88}
89
90func (*FileSet) ProtoMessage() {}
91
92func (x *FileSet) ProtoReflect() protoreflect.Message {
93	mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0]
94	if protoimpl.UnsafeEnabled && x != nil {
95		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
96		if ms.LoadMessageInfo() == nil {
97			ms.StoreMessageInfo(mi)
98		}
99		return ms
100	}
101	return mi.MessageOf(x)
102}
103
104// Deprecated: Use FileSet.ProtoReflect.Descriptor instead.
105func (*FileSet) Descriptor() ([]byte, []int) {
106	return file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP(), []int{0}
107}
108
109func (x *FileSet) GetName() string {
110	if x != nil {
111		return x.Name
112	}
113	return ""
114}
115
116func (x *FileSet) GetId() *FileSet_Id {
117	if x != nil {
118		return x.Id
119	}
120	return nil
121}
122
123func (x *FileSet) GetFileSets() []string {
124	if x != nil {
125		return x.FileSets
126	}
127	return nil
128}
129
130func (x *FileSet) GetFiles() []*File {
131	if x != nil {
132		return x.Files
133	}
134	return nil
135}
136
137// The resource ID components that identify the FileSet.
138type FileSet_Id struct {
139	state         protoimpl.MessageState
140	sizeCache     protoimpl.SizeCache
141	unknownFields protoimpl.UnknownFields
142
143	// The Invocation ID.
144	InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
145	// The FileSet ID.
146	FileSetId string `protobuf:"bytes,2,opt,name=file_set_id,json=fileSetId,proto3" json:"file_set_id,omitempty"`
147}
148
149func (x *FileSet_Id) Reset() {
150	*x = FileSet_Id{}
151	if protoimpl.UnsafeEnabled {
152		mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1]
153		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154		ms.StoreMessageInfo(mi)
155	}
156}
157
158func (x *FileSet_Id) String() string {
159	return protoimpl.X.MessageStringOf(x)
160}
161
162func (*FileSet_Id) ProtoMessage() {}
163
164func (x *FileSet_Id) ProtoReflect() protoreflect.Message {
165	mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1]
166	if protoimpl.UnsafeEnabled && x != nil {
167		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
168		if ms.LoadMessageInfo() == nil {
169			ms.StoreMessageInfo(mi)
170		}
171		return ms
172	}
173	return mi.MessageOf(x)
174}
175
176// Deprecated: Use FileSet_Id.ProtoReflect.Descriptor instead.
177func (*FileSet_Id) Descriptor() ([]byte, []int) {
178	return file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP(), []int{0, 0}
179}
180
181func (x *FileSet_Id) GetInvocationId() string {
182	if x != nil {
183		return x.InvocationId
184	}
185	return ""
186}
187
188func (x *FileSet_Id) GetFileSetId() string {
189	if x != nil {
190		return x.FileSetId
191	}
192	return ""
193}
194
195var File_google_devtools_resultstore_v2_file_set_proto protoreflect.FileDescriptor
196
197var file_google_devtools_resultstore_v2_file_set_proto_rawDesc = []byte{
198	0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
199	0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32,
200	0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
201	0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
202	0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x1a,
203	0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,
204	0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67,
205	0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75,
206	0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e,
207	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x07, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65,
208	0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
209	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
210	0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
211	0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
212	0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x52, 0x02, 0x69,
213	0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x73, 0x18, 0x03,
214	0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 0x3a,
215	0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
216	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e,
217	0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46,
218	0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x1a, 0x49, 0x0a, 0x02, 0x49, 0x64,
219	0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
220	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
221	0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65,
222	0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65,
223	0x53, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x55, 0xea, 0x41, 0x52, 0x0a, 0x22, 0x72, 0x65, 0x73, 0x75,
224	0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
225	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x2c,
226	0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x76,
227	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74,
228	0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x7d, 0x42, 0x7f, 0x0a, 0x22,
229	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
230	0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
231	0x76, 0x32, 0x42, 0x0c, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
232	0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
233	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
234	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
235	0x6c, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76,
236	0x32, 0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70,
237	0x72, 0x6f, 0x74, 0x6f, 0x33,
238}
239
240var (
241	file_google_devtools_resultstore_v2_file_set_proto_rawDescOnce sync.Once
242	file_google_devtools_resultstore_v2_file_set_proto_rawDescData = file_google_devtools_resultstore_v2_file_set_proto_rawDesc
243)
244
245func file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP() []byte {
246	file_google_devtools_resultstore_v2_file_set_proto_rawDescOnce.Do(func() {
247		file_google_devtools_resultstore_v2_file_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_resultstore_v2_file_set_proto_rawDescData)
248	})
249	return file_google_devtools_resultstore_v2_file_set_proto_rawDescData
250}
251
252var file_google_devtools_resultstore_v2_file_set_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
253var file_google_devtools_resultstore_v2_file_set_proto_goTypes = []interface{}{
254	(*FileSet)(nil),    // 0: google.devtools.resultstore.v2.FileSet
255	(*FileSet_Id)(nil), // 1: google.devtools.resultstore.v2.FileSet.Id
256	(*File)(nil),       // 2: google.devtools.resultstore.v2.File
257}
258var file_google_devtools_resultstore_v2_file_set_proto_depIdxs = []int32{
259	1, // 0: google.devtools.resultstore.v2.FileSet.id:type_name -> google.devtools.resultstore.v2.FileSet.Id
260	2, // 1: google.devtools.resultstore.v2.FileSet.files:type_name -> google.devtools.resultstore.v2.File
261	2, // [2:2] is the sub-list for method output_type
262	2, // [2:2] is the sub-list for method input_type
263	2, // [2:2] is the sub-list for extension type_name
264	2, // [2:2] is the sub-list for extension extendee
265	0, // [0:2] is the sub-list for field type_name
266}
267
268func init() { file_google_devtools_resultstore_v2_file_set_proto_init() }
269func file_google_devtools_resultstore_v2_file_set_proto_init() {
270	if File_google_devtools_resultstore_v2_file_set_proto != nil {
271		return
272	}
273	file_google_devtools_resultstore_v2_file_proto_init()
274	if !protoimpl.UnsafeEnabled {
275		file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
276			switch v := v.(*FileSet); i {
277			case 0:
278				return &v.state
279			case 1:
280				return &v.sizeCache
281			case 2:
282				return &v.unknownFields
283			default:
284				return nil
285			}
286		}
287		file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
288			switch v := v.(*FileSet_Id); i {
289			case 0:
290				return &v.state
291			case 1:
292				return &v.sizeCache
293			case 2:
294				return &v.unknownFields
295			default:
296				return nil
297			}
298		}
299	}
300	type x struct{}
301	out := protoimpl.TypeBuilder{
302		File: protoimpl.DescBuilder{
303			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
304			RawDescriptor: file_google_devtools_resultstore_v2_file_set_proto_rawDesc,
305			NumEnums:      0,
306			NumMessages:   2,
307			NumExtensions: 0,
308			NumServices:   0,
309		},
310		GoTypes:           file_google_devtools_resultstore_v2_file_set_proto_goTypes,
311		DependencyIndexes: file_google_devtools_resultstore_v2_file_set_proto_depIdxs,
312		MessageInfos:      file_google_devtools_resultstore_v2_file_set_proto_msgTypes,
313	}.Build()
314	File_google_devtools_resultstore_v2_file_set_proto = out.File
315	file_google_devtools_resultstore_v2_file_set_proto_rawDesc = nil
316	file_google_devtools_resultstore_v2_file_set_proto_goTypes = nil
317	file_google_devtools_resultstore_v2_file_set_proto_depIdxs = nil
318}
319