Debian Codegraph @

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