1//
2// Copyright (C) 2024 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//   http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16// Code generated by protoc-gen-go. DO NOT EDIT.
17// versions:
18// 	protoc-gen-go v1.33.0
19// 	protoc        v3.21.12
20// source: internal_state.proto
21
22package find_input_delta_proto_internal
23
24import (
25	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27	reflect "reflect"
28	sync "sync"
29)
30
31const (
32	// Verify that this generated code is sufficiently up-to-date.
33	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34	// Verify that runtime/protoimpl is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36)
37
38// The state of all inputs.
39type PartialCompileInputs struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	// The status of each file.
45	InputFiles []*PartialCompileInput `protobuf:"bytes,1,rep,name=input_files,json=inputFiles" json:"input_files,omitempty"`
46}
47
48func (x *PartialCompileInputs) Reset() {
49	*x = PartialCompileInputs{}
50	if protoimpl.UnsafeEnabled {
51		mi := &file_internal_state_proto_msgTypes[0]
52		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53		ms.StoreMessageInfo(mi)
54	}
55}
56
57func (x *PartialCompileInputs) String() string {
58	return protoimpl.X.MessageStringOf(x)
59}
60
61func (*PartialCompileInputs) ProtoMessage() {}
62
63func (x *PartialCompileInputs) ProtoReflect() protoreflect.Message {
64	mi := &file_internal_state_proto_msgTypes[0]
65	if protoimpl.UnsafeEnabled && x != nil {
66		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67		if ms.LoadMessageInfo() == nil {
68			ms.StoreMessageInfo(mi)
69		}
70		return ms
71	}
72	return mi.MessageOf(x)
73}
74
75// Deprecated: Use PartialCompileInputs.ProtoReflect.Descriptor instead.
76func (*PartialCompileInputs) Descriptor() ([]byte, []int) {
77	return file_internal_state_proto_rawDescGZIP(), []int{0}
78}
79
80func (x *PartialCompileInputs) GetInputFiles() []*PartialCompileInput {
81	if x != nil {
82		return x.InputFiles
83	}
84	return nil
85}
86
87// The state of one input.
88type PartialCompileInput struct {
89	state         protoimpl.MessageState
90	sizeCache     protoimpl.SizeCache
91	unknownFields protoimpl.UnknownFields
92
93	// The name of the file.
94	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
95	// The timestamp of the file in (Unix) nanoseconds.
96	MtimeNsec *int64 `protobuf:"varint,2,opt,name=mtime_nsec,json=mtimeNsec" json:"mtime_nsec,omitempty"`
97	// The hash of the file.  For crc32 hashes, this will be 8 hex digits.
98	Hash *string `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"`
99	// Contents of the file, if the file was inspected (such as jar files, etc).
100	Contents []*PartialCompileInput `protobuf:"bytes,4,rep,name=contents" json:"contents,omitempty"`
101}
102
103func (x *PartialCompileInput) Reset() {
104	*x = PartialCompileInput{}
105	if protoimpl.UnsafeEnabled {
106		mi := &file_internal_state_proto_msgTypes[1]
107		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108		ms.StoreMessageInfo(mi)
109	}
110}
111
112func (x *PartialCompileInput) String() string {
113	return protoimpl.X.MessageStringOf(x)
114}
115
116func (*PartialCompileInput) ProtoMessage() {}
117
118func (x *PartialCompileInput) ProtoReflect() protoreflect.Message {
119	mi := &file_internal_state_proto_msgTypes[1]
120	if protoimpl.UnsafeEnabled && x != nil {
121		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122		if ms.LoadMessageInfo() == nil {
123			ms.StoreMessageInfo(mi)
124		}
125		return ms
126	}
127	return mi.MessageOf(x)
128}
129
130// Deprecated: Use PartialCompileInput.ProtoReflect.Descriptor instead.
131func (*PartialCompileInput) Descriptor() ([]byte, []int) {
132	return file_internal_state_proto_rawDescGZIP(), []int{1}
133}
134
135func (x *PartialCompileInput) GetName() string {
136	if x != nil && x.Name != nil {
137		return *x.Name
138	}
139	return ""
140}
141
142func (x *PartialCompileInput) GetMtimeNsec() int64 {
143	if x != nil && x.MtimeNsec != nil {
144		return *x.MtimeNsec
145	}
146	return 0
147}
148
149func (x *PartialCompileInput) GetHash() string {
150	if x != nil && x.Hash != nil {
151		return *x.Hash
152	}
153	return ""
154}
155
156func (x *PartialCompileInput) GetContents() []*PartialCompileInput {
157	if x != nil {
158		return x.Contents
159	}
160	return nil
161}
162
163var File_internal_state_proto protoreflect.FileDescriptor
164
165var file_internal_state_proto_rawDesc = []byte{
166	0x0a, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65,
167	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2e,
168	0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61,
169	0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22,
170	0x75, 0x0a, 0x14, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
171	0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x5d, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74,
172	0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x61,
173	0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75,
174	0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x69, 0x6e,
175	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f,
176	0x6d, 0x70, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x0a, 0x69, 0x6e, 0x70, 0x75,
177	0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x74, 0x69,
178	0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x12,
179	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
180	0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x65, 0x63,
181	0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x73, 0x65,
182	0x63, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
183	0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x58, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
184	0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69,
185	0x64, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c,
186	0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
187	0x6c, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
188	0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x42,
189	0x40, 0x5a, 0x3e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67,
190	0x2f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x74,
191	0x61, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x65, 0x6c,
192	0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
193	0x6c,
194}
195
196var (
197	file_internal_state_proto_rawDescOnce sync.Once
198	file_internal_state_proto_rawDescData = file_internal_state_proto_rawDesc
199)
200
201func file_internal_state_proto_rawDescGZIP() []byte {
202	file_internal_state_proto_rawDescOnce.Do(func() {
203		file_internal_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_state_proto_rawDescData)
204	})
205	return file_internal_state_proto_rawDescData
206}
207
208var file_internal_state_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
209var file_internal_state_proto_goTypes = []interface{}{
210	(*PartialCompileInputs)(nil), // 0: android.find_input_delta_proto_internal.PartialCompileInputs
211	(*PartialCompileInput)(nil),  // 1: android.find_input_delta_proto_internal.PartialCompileInput
212}
213var file_internal_state_proto_depIdxs = []int32{
214	1, // 0: android.find_input_delta_proto_internal.PartialCompileInputs.input_files:type_name -> android.find_input_delta_proto_internal.PartialCompileInput
215	1, // 1: android.find_input_delta_proto_internal.PartialCompileInput.contents:type_name -> android.find_input_delta_proto_internal.PartialCompileInput
216	2, // [2:2] is the sub-list for method output_type
217	2, // [2:2] is the sub-list for method input_type
218	2, // [2:2] is the sub-list for extension type_name
219	2, // [2:2] is the sub-list for extension extendee
220	0, // [0:2] is the sub-list for field type_name
221}
222
223func init() { file_internal_state_proto_init() }
224func file_internal_state_proto_init() {
225	if File_internal_state_proto != nil {
226		return
227	}
228	if !protoimpl.UnsafeEnabled {
229		file_internal_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
230			switch v := v.(*PartialCompileInputs); i {
231			case 0:
232				return &v.state
233			case 1:
234				return &v.sizeCache
235			case 2:
236				return &v.unknownFields
237			default:
238				return nil
239			}
240		}
241		file_internal_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
242			switch v := v.(*PartialCompileInput); i {
243			case 0:
244				return &v.state
245			case 1:
246				return &v.sizeCache
247			case 2:
248				return &v.unknownFields
249			default:
250				return nil
251			}
252		}
253	}
254	type x struct{}
255	out := protoimpl.TypeBuilder{
256		File: protoimpl.DescBuilder{
257			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
258			RawDescriptor: file_internal_state_proto_rawDesc,
259			NumEnums:      0,
260			NumMessages:   2,
261			NumExtensions: 0,
262			NumServices:   0,
263		},
264		GoTypes:           file_internal_state_proto_goTypes,
265		DependencyIndexes: file_internal_state_proto_depIdxs,
266		MessageInfos:      file_internal_state_proto_msgTypes,
267	}.Build()
268	File_internal_state_proto = out.File
269	file_internal_state_proto_rawDesc = nil
270	file_internal_state_proto_goTypes = nil
271	file_internal_state_proto_depIdxs = nil
272}
273