Debian Codegraph @

securitycenter/apiv2/securitycenterpb/job.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/job.proto
20
21 package securitycenterpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
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 // JobState represents the state of the job.
39 type JobState int32
40
41 const (
42 // Unspecified represents an unknown state and should not be used.
43 JobState_JOB_STATE_UNSPECIFIED JobState = 0
44 // Job is scheduled and pending for run
45 JobState_PENDING JobState = 1
46 // Job in progress
47 JobState_RUNNING JobState = 2
48 // Job has completed with success
49 JobState_SUCCEEDED JobState = 3
50 // Job has completed but with failure
51 JobState_FAILED JobState = 4
52 )
53
54 // Enum value maps for JobState.
55 var (
56 JobState_name = map[int32]string{
57 0: "JOB_STATE_UNSPECIFIED",
58 1: "PENDING",
59 2: "RUNNING",
60 3: "SUCCEEDED",
61 4: "FAILED",
62 }
63 JobState_value = map[string]int32{
64 "JOB_STATE_UNSPECIFIED": 0,
65 "PENDING": 1,
66 "RUNNING": 2,
67 "SUCCEEDED": 3,
68 "FAILED": 4,
69 }
70 )
71
72 func (x JobState) Enum() *JobState {
73 p := new(JobState)
74 *p = x
75 return p
76 }
77
78 func (x JobState) String() string {
79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80 }
81
82 func (JobState) Descriptor() protoreflect.EnumDescriptor {
83 return file_google_cloud_securitycenter_v2_job_proto_enumTypes[0].Descriptor()
84 }
85
86 func (JobState) Type() protoreflect.EnumType {
87 return &file_google_cloud_securitycenter_v2_job_proto_enumTypes[0]
88 }
89
90 func (x JobState) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92 }
93
94 // Deprecated: Use JobState.Descriptor instead.
95 func (JobState) EnumDescriptor() ([]byte, []int) {
96 return file_google_cloud_securitycenter_v2_job_proto_rawDescGZIP(), []int{0}
97 }
98
99 // Describes a job
100 type Job struct {
101 state protoimpl.MessageState
102 sizeCache protoimpl.SizeCache
103 unknownFields protoimpl.UnknownFields
104
105 // The fully-qualified name for a job.
106 // e.g. `projects/<project_id>/jobs/<job_id>`
107 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
108 // Output only. State of the job, such as `RUNNING` or `PENDING`.
109 State JobState `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.securitycenter.v2.JobState" json:"state,omitempty"`
110 // Optional. If the job did not complete successfully, this field describes
111 // why.
112 ErrorCode int32 `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
113 // Optional. Gives the location where the job ran, such as `US` or
114 // `europe-west1`
115 Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
116 }
117
118 func (x *Job) Reset() {
119 *x = Job{}
120 mi := &file_google_cloud_securitycenter_v2_job_proto_msgTypes[0]
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 ms.StoreMessageInfo(mi)
123 }
124
125 func (x *Job) String() string {
126 return protoimpl.X.MessageStringOf(x)
127 }
128
129 func (*Job) ProtoMessage() {}
130
131 func (x *Job) ProtoReflect() protoreflect.Message {
132 mi := &file_google_cloud_securitycenter_v2_job_proto_msgTypes[0]
133 if x != nil {
134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
135 if ms.LoadMessageInfo() == nil {
136 ms.StoreMessageInfo(mi)
137 }
138 return ms
139 }
140 return mi.MessageOf(x)
141 }
142
143 // Deprecated: Use Job.ProtoReflect.Descriptor instead.
144 func (*Job) Descriptor() ([]byte, []int) {
145 return file_google_cloud_securitycenter_v2_job_proto_rawDescGZIP(), []int{0}
146 }
147
148 func (x *Job) GetName() string {
149 if x != nil {
150 return x.Name
151 }
152 return ""
153 }
154
155 func (x *Job) GetState() JobState {
156 if x != nil {
157 return x.State
158 }
159 return JobState_JOB_STATE_UNSPECIFIED
160 }
161
162 func (x *Job) GetErrorCode() int32 {
163 if x != nil {
164 return x.ErrorCode
165 }
166 return 0
167 }
168
169 func (x *Job) GetLocation() string {
170 if x != nil {
171 return x.Location
172 }
173 return ""
174 }
175
176 var File_google_cloud_securitycenter_v2_job_proto protoreflect.FileDescriptor
177
178 var file_google_cloud_securitycenter_v2_job_proto_rawDesc = []byte{
179 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
180 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
181 0x2f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
182 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
183 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
184 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
185 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x03,
186 0x4a, 0x6f, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
187 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
188 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
189 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
190 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65,
191 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
192 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
193 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c,
194 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c,
195 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x5a, 0x0a, 0x08, 0x4a, 0x6f, 0x62, 0x53, 0x74,
196 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4a, 0x4f, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,
197 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,
198 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52,
199 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43,
200 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45,
201 0x44, 0x10, 0x04, 0x42, 0xe2, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
202 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
203 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x4a, 0x6f, 0x62, 0x50,
204 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
205 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75,
206 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32,
207 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70,
208 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
209 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
210 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
211 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
212 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65,
213 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
214 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
215 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
216 }
217
218 var (
219 file_google_cloud_securitycenter_v2_job_proto_rawDescOnce sync.Once
220 file_google_cloud_securitycenter_v2_job_proto_rawDescData = file_google_cloud_securitycenter_v2_job_proto_rawDesc
221 )
222
223 func file_google_cloud_securitycenter_v2_job_proto_rawDescGZIP() []byte {
224 file_google_cloud_securitycenter_v2_job_proto_rawDescOnce.Do(func() {
225 file_google_cloud_securitycenter_v2_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_job_proto_rawDescData)
226 })
227 return file_google_cloud_securitycenter_v2_job_proto_rawDescData
228 }
229
230 var file_google_cloud_securitycenter_v2_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
231 var file_google_cloud_securitycenter_v2_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
232 var file_google_cloud_securitycenter_v2_job_proto_goTypes = []any{
233 (JobState)(0), // 0: google.cloud.securitycenter.v2.JobState
234 (*Job)(nil), // 1: google.cloud.securitycenter.v2.Job
235 }
236 var file_google_cloud_securitycenter_v2_job_proto_depIdxs = []int32{
237 0, // 0: google.cloud.securitycenter.v2.Job.state:type_name -> google.cloud.securitycenter.v2.JobState
238 1, // [1:1] is the sub-list for method output_type
239 1, // [1:1] is the sub-list for method input_type
240 1, // [1:1] is the sub-list for extension type_name
241 1, // [1:1] is the sub-list for extension extendee
242 0, // [0:1] is the sub-list for field type_name
243 }
244
245 func init() { file_google_cloud_securitycenter_v2_job_proto_init() }
246 func file_google_cloud_securitycenter_v2_job_proto_init() {
247 if File_google_cloud_securitycenter_v2_job_proto != nil {
248 return
249 }
250 type x struct{}
251 out := protoimpl.TypeBuilder{
252 File: protoimpl.DescBuilder{
253 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
254 RawDescriptor: file_google_cloud_securitycenter_v2_job_proto_rawDesc,
255 NumEnums: 1,
256 NumMessages: 1,
257 NumExtensions: 0,
258 NumServices: 0,
259 },
260 GoTypes: file_google_cloud_securitycenter_v2_job_proto_goTypes,
261 DependencyIndexes: file_google_cloud_securitycenter_v2_job_proto_depIdxs,
262 EnumInfos: file_google_cloud_securitycenter_v2_job_proto_enumTypes,
263 MessageInfos: file_google_cloud_securitycenter_v2_job_proto_msgTypes,
264 }.Build()
265 File_google_cloud_securitycenter_v2_job_proto = out.File
266 file_google_cloud_securitycenter_v2_job_proto_rawDesc = nil
267 file_google_cloud_securitycenter_v2_job_proto_goTypes = nil
268 file_google_cloud_securitycenter_v2_job_proto_depIdxs = nil
269 }