Debian Codegraph @

securitycenter/apiv2/securitycenterpb/process.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/v2/process.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 // Represents an operating system process.
38 type Process struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // The process name, as displayed in utilities like `top` and `ps`. This name
44 // can be accessed through `/proc/[pid]/comm` and changed with
45 // `prctl(PR_SET_NAME)`.
46 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
47 // File information for the process executable.
48 Binary *File `protobuf:"bytes,2,opt,name=binary,proto3" json:"binary,omitempty"`
49 // File information for libraries loaded by the process.
50 Libraries []*File `protobuf:"bytes,3,rep,name=libraries,proto3" json:"libraries,omitempty"`
51 // When the process represents the invocation of a script, `binary` provides
52 // information about the interpreter, while `script` provides information
53 // about the script file provided to the interpreter.
54 Script *File `protobuf:"bytes,4,opt,name=script,proto3" json:"script,omitempty"`
55 // Process arguments as JSON encoded strings.
56 Args []string `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"`
57 // True if `args` is incomplete.
58 ArgumentsTruncated bool `protobuf:"varint,6,opt,name=arguments_truncated,json=argumentsTruncated,proto3" json:"arguments_truncated,omitempty"`
59 // Process environment variables.
60 EnvVariables []*EnvironmentVariable `protobuf:"bytes,7,rep,name=env_variables,json=envVariables,proto3" json:"env_variables,omitempty"`
61 // True if `env_variables` is incomplete.
62 EnvVariablesTruncated bool `protobuf:"varint,8,opt,name=env_variables_truncated,json=envVariablesTruncated,proto3" json:"env_variables_truncated,omitempty"`
63 // The process ID.
64 Pid int64 `protobuf:"varint,9,opt,name=pid,proto3" json:"pid,omitempty"`
65 // The parent process ID.
66 ParentPid int64 `protobuf:"varint,10,opt,name=parent_pid,json=parentPid,proto3" json:"parent_pid,omitempty"`
67 // The ID of the user that executed the process. E.g. If this is the root user
68 // this will always be 0.
69 UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
70 }
71
72 func (x *Process) Reset() {
73 *x = Process{}
74 mi := &file_google_cloud_securitycenter_v2_process_proto_msgTypes[0]
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 ms.StoreMessageInfo(mi)
77 }
78
79 func (x *Process) String() string {
80 return protoimpl.X.MessageStringOf(x)
81 }
82
83 func (*Process) ProtoMessage() {}
84
85 func (x *Process) ProtoReflect() protoreflect.Message {
86 mi := &file_google_cloud_securitycenter_v2_process_proto_msgTypes[0]
87 if x != nil {
88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
89 if ms.LoadMessageInfo() == nil {
90 ms.StoreMessageInfo(mi)
91 }
92 return ms
93 }
94 return mi.MessageOf(x)
95 }
96
97 // Deprecated: Use Process.ProtoReflect.Descriptor instead.
98 func (*Process) Descriptor() ([]byte, []int) {
99 return file_google_cloud_securitycenter_v2_process_proto_rawDescGZIP(), []int{0}
100 }
101
102 func (x *Process) GetName() string {
103 if x != nil {
104 return x.Name
105 }
106 return ""
107 }
108
109 func (x *Process) GetBinary() *File {
110 if x != nil {
111 return x.Binary
112 }
113 return nil
114 }
115
116 func (x *Process) GetLibraries() []*File {
117 if x != nil {
118 return x.Libraries
119 }
120 return nil
121 }
122
123 func (x *Process) GetScript() *File {
124 if x != nil {
125 return x.Script
126 }
127 return nil
128 }
129
130 func (x *Process) GetArgs() []string {
131 if x != nil {
132 return x.Args
133 }
134 return nil
135 }
136
137 func (x *Process) GetArgumentsTruncated() bool {
138 if x != nil {
139 return x.ArgumentsTruncated
140 }
141 return false
142 }
143
144 func (x *Process) GetEnvVariables() []*EnvironmentVariable {
145 if x != nil {
146 return x.EnvVariables
147 }
148 return nil
149 }
150
151 func (x *Process) GetEnvVariablesTruncated() bool {
152 if x != nil {
153 return x.EnvVariablesTruncated
154 }
155 return false
156 }
157
158 func (x *Process) GetPid() int64 {
159 if x != nil {
160 return x.Pid
161 }
162 return 0
163 }
164
165 func (x *Process) GetParentPid() int64 {
166 if x != nil {
167 return x.ParentPid
168 }
169 return 0
170 }
171
172 func (x *Process) GetUserId() int64 {
173 if x != nil {
174 return x.UserId
175 }
176 return 0
177 }
178
179 // A name-value pair representing an environment variable used in an operating
180 // system process.
181 type EnvironmentVariable struct {
182 state protoimpl.MessageState
183 sizeCache protoimpl.SizeCache
184 unknownFields protoimpl.UnknownFields
185
186 // Environment variable name as a JSON encoded string.
187 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
188 // Environment variable value as a JSON encoded string.
189 Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
190 }
191
192 func (x *EnvironmentVariable) Reset() {
193 *x = EnvironmentVariable{}
194 mi := &file_google_cloud_securitycenter_v2_process_proto_msgTypes[1]
195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196 ms.StoreMessageInfo(mi)
197 }
198
199 func (x *EnvironmentVariable) String() string {
200 return protoimpl.X.MessageStringOf(x)
201 }
202
203 func (*EnvironmentVariable) ProtoMessage() {}
204
205 func (x *EnvironmentVariable) ProtoReflect() protoreflect.Message {
206 mi := &file_google_cloud_securitycenter_v2_process_proto_msgTypes[1]
207 if x != nil {
208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
209 if ms.LoadMessageInfo() == nil {
210 ms.StoreMessageInfo(mi)
211 }
212 return ms
213 }
214 return mi.MessageOf(x)
215 }
216
217 // Deprecated: Use EnvironmentVariable.ProtoReflect.Descriptor instead.
218 func (*EnvironmentVariable) Descriptor() ([]byte, []int) {
219 return file_google_cloud_securitycenter_v2_process_proto_rawDescGZIP(), []int{1}
220 }
221
222 func (x *EnvironmentVariable) GetName() string {
223 if x != nil {
224 return x.Name
225 }
226 return ""
227 }
228
229 func (x *EnvironmentVariable) GetVal() string {
230 if x != nil {
231 return x.Val
232 }
233 return ""
234 }
235
236 var File_google_cloud_securitycenter_v2_process_proto protoreflect.FileDescriptor
237
238 var file_google_cloud_securitycenter_v2_process_proto_rawDesc = []byte{
239 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
240 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
241 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e,
242 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63,
243 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x29,
244 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63,
245 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x66,
246 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x03, 0x0a, 0x07, 0x50, 0x72,
247 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
248 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x62, 0x69, 0x6e,
249 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
250 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
251 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52,
252 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x42, 0x0a, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61,
253 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f,
254 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
255 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, 0x65,
256 0x52, 0x09, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x73,
257 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f,
258 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
259 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c,
260 0x65, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67,
261 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2f, 0x0a,
262 0x13, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63,
263 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x61, 0x72, 0x67, 0x75,
264 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58,
265 0x0a, 0x0d, 0x65, 0x6e, 0x76, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18,
266 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
267 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
268 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
269 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x0c, 0x65, 0x6e, 0x76, 0x56,
270 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x76, 0x5f,
271 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
272 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x76, 0x56, 0x61,
273 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64,
274 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x70,
275 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x69, 0x64,
276 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x69,
277 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01,
278 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x45, 0x6e,
279 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c,
280 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
281 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01,
282 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x42, 0xe6, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
283 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63,
284 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x0c,
285 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a,
286 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
287 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
288 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
289 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
290 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
291 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69,
292 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f,
293 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72,
294 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47,
295 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65,
296 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32,
297 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
298 }
299
300 var (
301 file_google_cloud_securitycenter_v2_process_proto_rawDescOnce sync.Once
302 file_google_cloud_securitycenter_v2_process_proto_rawDescData = file_google_cloud_securitycenter_v2_process_proto_rawDesc
303 )
304
305 func file_google_cloud_securitycenter_v2_process_proto_rawDescGZIP() []byte {
306 file_google_cloud_securitycenter_v2_process_proto_rawDescOnce.Do(func() {
307 file_google_cloud_securitycenter_v2_process_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_process_proto_rawDescData)
308 })
309 return file_google_cloud_securitycenter_v2_process_proto_rawDescData
310 }
311
312 var file_google_cloud_securitycenter_v2_process_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
313 var file_google_cloud_securitycenter_v2_process_proto_goTypes = []any{
314 (*Process)(nil), // 0: google.cloud.securitycenter.v2.Process
315 (*EnvironmentVariable)(nil), // 1: google.cloud.securitycenter.v2.EnvironmentVariable
316 (*File)(nil), // 2: google.cloud.securitycenter.v2.File
317 }
318 var file_google_cloud_securitycenter_v2_process_proto_depIdxs = []int32{
319 2, // 0: google.cloud.securitycenter.v2.Process.binary:type_name -> google.cloud.securitycenter.v2.File
320 2, // 1: google.cloud.securitycenter.v2.Process.libraries:type_name -> google.cloud.securitycenter.v2.File
321 2, // 2: google.cloud.securitycenter.v2.Process.script:type_name -> google.cloud.securitycenter.v2.File
322 1, // 3: google.cloud.securitycenter.v2.Process.env_variables:type_name -> google.cloud.securitycenter.v2.EnvironmentVariable
323 4, // [4:4] is the sub-list for method output_type
324 4, // [4:4] is the sub-list for method input_type
325 4, // [4:4] is the sub-list for extension type_name
326 4, // [4:4] is the sub-list for extension extendee
327 0, // [0:4] is the sub-list for field type_name
328 }
329
330 func init() { file_google_cloud_securitycenter_v2_process_proto_init() }
331 func file_google_cloud_securitycenter_v2_process_proto_init() {
332 if File_google_cloud_securitycenter_v2_process_proto != nil {
333 return
334 }
335 file_google_cloud_securitycenter_v2_file_proto_init()
336 type x struct{}
337 out := protoimpl.TypeBuilder{
338 File: protoimpl.DescBuilder{
339 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
340 RawDescriptor: file_google_cloud_securitycenter_v2_process_proto_rawDesc,
341 NumEnums: 0,
342 NumMessages: 2,
343 NumExtensions: 0,
344 NumServices: 0,
345 },
346 GoTypes: file_google_cloud_securitycenter_v2_process_proto_goTypes,
347 DependencyIndexes: file_google_cloud_securitycenter_v2_process_proto_depIdxs,
348 MessageInfos: file_google_cloud_securitycenter_v2_process_proto_msgTypes,
349 }.Build()
350 File_google_cloud_securitycenter_v2_process_proto = out.File
351 file_google_cloud_securitycenter_v2_process_proto_rawDesc = nil
352 file_google_cloud_securitycenter_v2_process_proto_goTypes = nil
353 file_google_cloud_securitycenter_v2_process_proto_depIdxs = nil
354 }