Debian Codegraph @

securitycenter/apiv1/securitycenterpb/file.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/securitycenter/v1/file.proto
20
21 package securitycenterpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // File information about the related binary/library used by an executable, or
38 // the script used by a script interpreter
39 type File struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Absolute path of the file as a JSON encoded string.
45 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
46 // Size of the file in bytes.
47 Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
48 // SHA256 hash of the first hashed_size bytes of the file encoded as a
49 // hex string. If hashed_size == size, sha256 represents the SHA256 hash
50 // of the entire file.
51 Sha256 string `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"`
52 // The length in bytes of the file prefix that was hashed. If
53 // hashed_size == size, any hashes reported represent the entire
54 // file.
55 HashedSize int64 `protobuf:"varint,4,opt,name=hashed_size,json=hashedSize,proto3" json:"hashed_size,omitempty"`
56 // True when the hash covers only a prefix of the file.
57 PartiallyHashed bool `protobuf:"varint,5,opt,name=partially_hashed,json=partiallyHashed,proto3" json:"partially_hashed,omitempty"`
58 // Prefix of the file contents as a JSON-encoded string.
59 Contents string `protobuf:"bytes,6,opt,name=contents,proto3" json:"contents,omitempty"`
60 // Path of the file in terms of underlying disk/partition identifiers.
61 DiskPath *File_DiskPath `protobuf:"bytes,7,opt,name=disk_path,json=diskPath,proto3" json:"disk_path,omitempty"`
62 }
63
64 func (x *File) Reset() {
65 *x = File{}
66 mi := &file_google_cloud_securitycenter_v1_file_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70
71 func (x *File) String() string {
72 return protoimpl.X.MessageStringOf(x)
73 }
74
75 func (*File) ProtoMessage() {}
76
77 func (x *File) ProtoReflect() protoreflect.Message {
78 mi := &file_google_cloud_securitycenter_v1_file_proto_msgTypes[0]
79 if x != nil {
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 if ms.LoadMessageInfo() == nil {
82 ms.StoreMessageInfo(mi)
83 }
84 return ms
85 }
86 return mi.MessageOf(x)
87 }
88
89 // Deprecated: Use File.ProtoReflect.Descriptor instead.
90 func (*File) Descriptor() ([]byte, []int) {
91 return file_google_cloud_securitycenter_v1_file_proto_rawDescGZIP(), []int{0}
92 }
93
94 func (x *File) GetPath() string {
95 if x != nil {
96 return x.Path
97 }
98 return ""
99 }
100
101 func (x *File) GetSize() int64 {
102 if x != nil {
103 return x.Size
104 }
105 return 0
106 }
107
108 func (x *File) GetSha256() string {
109 if x != nil {
110 return x.Sha256
111 }
112 return ""
113 }
114
115 func (x *File) GetHashedSize() int64 {
116 if x != nil {
117 return x.HashedSize
118 }
119 return 0
120 }
121
122 func (x *File) GetPartiallyHashed() bool {
123 if x != nil {
124 return x.PartiallyHashed
125 }
126 return false
127 }
128
129 func (x *File) GetContents() string {
130 if x != nil {
131 return x.Contents
132 }
133 return ""
134 }
135
136 func (x *File) GetDiskPath() *File_DiskPath {
137 if x != nil {
138 return x.DiskPath
139 }
140 return nil
141 }
142
143 // Path of the file in terms of underlying disk/partition identifiers.
144 type File_DiskPath struct {
145 state protoimpl.MessageState
146 sizeCache protoimpl.SizeCache
147 unknownFields protoimpl.UnknownFields
148
149 // UUID of the partition (format
150 // https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
151 PartitionUuid string `protobuf:"bytes,1,opt,name=partition_uuid,json=partitionUuid,proto3" json:"partition_uuid,omitempty"`
152 // Relative path of the file in the partition as a JSON encoded string.
153 // Example: /home/user1/executable_file.sh
154 RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"`
155 }
156
157 func (x *File_DiskPath) Reset() {
158 *x = File_DiskPath{}
159 mi := &file_google_cloud_securitycenter_v1_file_proto_msgTypes[1]
160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
161 ms.StoreMessageInfo(mi)
162 }
163
164 func (x *File_DiskPath) String() string {
165 return protoimpl.X.MessageStringOf(x)
166 }
167
168 func (*File_DiskPath) ProtoMessage() {}
169
170 func (x *File_DiskPath) ProtoReflect() protoreflect.Message {
171 mi := &file_google_cloud_securitycenter_v1_file_proto_msgTypes[1]
172 if x != nil {
173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174 if ms.LoadMessageInfo() == nil {
175 ms.StoreMessageInfo(mi)
176 }
177 return ms
178 }
179 return mi.MessageOf(x)
180 }
181
182 // Deprecated: Use File_DiskPath.ProtoReflect.Descriptor instead.
183 func (*File_DiskPath) Descriptor() ([]byte, []int) {
184 return file_google_cloud_securitycenter_v1_file_proto_rawDescGZIP(), []int{0, 0}
185 }
186
187 func (x *File_DiskPath) GetPartitionUuid() string {
188 if x != nil {
189 return x.PartitionUuid
190 }
191 return ""
192 }
193
194 func (x *File_DiskPath) GetRelativePath() string {
195 if x != nil {
196 return x.RelativePath
197 }
198 return ""
199 }
200
201 var File_google_cloud_securitycenter_v1_file_proto protoreflect.FileDescriptor
202
203 var file_google_cloud_securitycenter_v1_file_proto_rawDesc = []byte{
204 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
205 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
206 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f,
207 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
208 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0xd2, 0x02, 0x0a, 0x04,
209 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01,
210 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
211 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06,
212 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x68,
213 0x61, 0x32, 0x35, 0x36, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x73,
214 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x68, 0x61, 0x73, 0x68, 0x65,
215 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c,
216 0x6c, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
217 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x48, 0x61, 0x73, 0x68, 0x65, 0x64,
218 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01,
219 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x09,
220 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
221 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
222 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31,
223 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x50, 0x61, 0x74, 0x68, 0x52, 0x08,
224 0x64, 0x69, 0x73, 0x6b, 0x50, 0x61, 0x74, 0x68, 0x1a, 0x56, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x6b,
225 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
226 0x6e, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x61,
227 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x75, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72,
228 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01,
229 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68,
230 0x42, 0xe3, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
231 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
232 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f,
233 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
234 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
235 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73,
236 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b,
237 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
238 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
239 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56,
240 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
241 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c,
242 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
243 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
244 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
245 }
246
247 var (
248 file_google_cloud_securitycenter_v1_file_proto_rawDescOnce sync.Once
249 file_google_cloud_securitycenter_v1_file_proto_rawDescData = file_google_cloud_securitycenter_v1_file_proto_rawDesc
250 )
251
252 func file_google_cloud_securitycenter_v1_file_proto_rawDescGZIP() []byte {
253 file_google_cloud_securitycenter_v1_file_proto_rawDescOnce.Do(func() {
254 file_google_cloud_securitycenter_v1_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_file_proto_rawDescData)
255 })
256 return file_google_cloud_securitycenter_v1_file_proto_rawDescData
257 }
258
259 var file_google_cloud_securitycenter_v1_file_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
260 var file_google_cloud_securitycenter_v1_file_proto_goTypes = []any{
261 (*File)(nil), // 0: google.cloud.securitycenter.v1.File
262 (*File_DiskPath)(nil), // 1: google.cloud.securitycenter.v1.File.DiskPath
263 }
264 var file_google_cloud_securitycenter_v1_file_proto_depIdxs = []int32{
265 1, // 0: google.cloud.securitycenter.v1.File.disk_path:type_name -> google.cloud.securitycenter.v1.File.DiskPath
266 1, // [1:1] is the sub-list for method output_type
267 1, // [1:1] is the sub-list for method input_type
268 1, // [1:1] is the sub-list for extension type_name
269 1, // [1:1] is the sub-list for extension extendee
270 0, // [0:1] is the sub-list for field type_name
271 }
272
273 func init() { file_google_cloud_securitycenter_v1_file_proto_init() }
274 func file_google_cloud_securitycenter_v1_file_proto_init() {
275 if File_google_cloud_securitycenter_v1_file_proto != nil {
276 return
277 }
278 type x struct{}
279 out := protoimpl.TypeBuilder{
280 File: protoimpl.DescBuilder{
281 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
282 RawDescriptor: file_google_cloud_securitycenter_v1_file_proto_rawDesc,
283 NumEnums: 0,
284 NumMessages: 2,
285 NumExtensions: 0,
286 NumServices: 0,
287 },
288 GoTypes: file_google_cloud_securitycenter_v1_file_proto_goTypes,
289 DependencyIndexes: file_google_cloud_securitycenter_v1_file_proto_depIdxs,
290 MessageInfos: file_google_cloud_securitycenter_v1_file_proto_msgTypes,
291 }.Build()
292 File_google_cloud_securitycenter_v1_file_proto = out.File
293 file_google_cloud_securitycenter_v1_file_proto_rawDesc = nil
294 file_google_cloud_securitycenter_v1_file_proto_goTypes = nil
295 file_google_cloud_securitycenter_v1_file_proto_depIdxs = nil
296 }