Debian Codegraph @

securitycenter/apiv1p1beta1/securitycenterpb/run_asset_discovery_response.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/v1p1beta1/run_asset_discovery_response.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 durationpb "google.golang.org/protobuf/types/known/durationpb"
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 // The state of an asset discovery run.
39 type RunAssetDiscoveryResponse_State int32
40
41 const (
42 // Asset discovery run state was unspecified.
43 RunAssetDiscoveryResponse_STATE_UNSPECIFIED RunAssetDiscoveryResponse_State = 0
44 // Asset discovery run completed successfully.
45 RunAssetDiscoveryResponse_COMPLETED RunAssetDiscoveryResponse_State = 1
46 // Asset discovery run was cancelled with tasks still pending, as another
47 // run for the same organization was started with a higher priority.
48 RunAssetDiscoveryResponse_SUPERSEDED RunAssetDiscoveryResponse_State = 2
49 // Asset discovery run was killed and terminated.
50 RunAssetDiscoveryResponse_TERMINATED RunAssetDiscoveryResponse_State = 3
51 )
52
53 // Enum value maps for RunAssetDiscoveryResponse_State.
54 var (
55 RunAssetDiscoveryResponse_State_name = map[int32]string{
56 0: "STATE_UNSPECIFIED",
57 1: "COMPLETED",
58 2: "SUPERSEDED",
59 3: "TERMINATED",
60 }
61 RunAssetDiscoveryResponse_State_value = map[string]int32{
62 "STATE_UNSPECIFIED": 0,
63 "COMPLETED": 1,
64 "SUPERSEDED": 2,
65 "TERMINATED": 3,
66 }
67 )
68
69 func (x RunAssetDiscoveryResponse_State) Enum() *RunAssetDiscoveryResponse_State {
70 p := new(RunAssetDiscoveryResponse_State)
71 *p = x
72 return p
73 }
74
75 func (x RunAssetDiscoveryResponse_State) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (RunAssetDiscoveryResponse_State) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_enumTypes[0].Descriptor()
81 }
82
83 func (RunAssetDiscoveryResponse_State) Type() protoreflect.EnumType {
84 return &file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_enumTypes[0]
85 }
86
87 func (x RunAssetDiscoveryResponse_State) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91 // Deprecated: Use RunAssetDiscoveryResponse_State.Descriptor instead.
92 func (RunAssetDiscoveryResponse_State) EnumDescriptor() ([]byte, []int) {
93 return file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescGZIP(), []int{0, 0}
94 }
95
96 // Response of asset discovery run
97 type RunAssetDiscoveryResponse struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // The state of an asset discovery run.
103 State RunAssetDiscoveryResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse_State" json:"state,omitempty"`
104 // The duration between asset discovery run start and end
105 Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
106 }
107
108 func (x *RunAssetDiscoveryResponse) Reset() {
109 *x = RunAssetDiscoveryResponse{}
110 mi := &file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_msgTypes[0]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114
115 func (x *RunAssetDiscoveryResponse) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*RunAssetDiscoveryResponse) ProtoMessage() {}
120
121 func (x *RunAssetDiscoveryResponse) ProtoReflect() protoreflect.Message {
122 mi := &file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_msgTypes[0]
123 if x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133 // Deprecated: Use RunAssetDiscoveryResponse.ProtoReflect.Descriptor instead.
134 func (*RunAssetDiscoveryResponse) Descriptor() ([]byte, []int) {
135 return file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescGZIP(), []int{0}
136 }
137
138 func (x *RunAssetDiscoveryResponse) GetState() RunAssetDiscoveryResponse_State {
139 if x != nil {
140 return x.State
141 }
142 return RunAssetDiscoveryResponse_STATE_UNSPECIFIED
143 }
144
145 func (x *RunAssetDiscoveryResponse) GetDuration() *durationpb.Duration {
146 if x != nil {
147 return x.Duration
148 }
149 return nil
150 }
151
152 var File_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto protoreflect.FileDescriptor
153
154 var file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDesc = []byte{
155 0x0a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
156 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
157 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x65,
158 0x74, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70,
159 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67,
160 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
161 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
162 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
163 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
164 0x6f, 0x22, 0xff, 0x01, 0x0a, 0x19, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x69,
165 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
166 0x5c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46,
167 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
168 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70,
169 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44,
170 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
171 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a,
172 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
173 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
174 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61,
175 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a,
176 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
177 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45,
178 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 0x50, 0x45, 0x52, 0x53, 0x45, 0x44, 0x45,
179 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45,
180 0x44, 0x10, 0x03, 0x42, 0xfb, 0x01, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
181 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
182 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
183 0x31, 0x50, 0x01, 0x5a, 0x51, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
184 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
185 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, 0x31, 0x62,
186 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
187 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
188 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
189 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
190 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x50, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
191 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65,
192 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x70,
193 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
194 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
195 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
196 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
197 }
198
199 var (
200 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescOnce sync.Once
201 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescData = file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDesc
202 )
203
204 func file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescGZIP() []byte {
205 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescOnce.Do(func() {
206 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescData)
207 })
208 return file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDescData
209 }
210
211 var file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
212 var file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
213 var file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_goTypes = []any{
214 (RunAssetDiscoveryResponse_State)(0), // 0: google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State
215 (*RunAssetDiscoveryResponse)(nil), // 1: google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse
216 (*durationpb.Duration)(nil), // 2: google.protobuf.Duration
217 }
218 var file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_depIdxs = []int32{
219 0, // 0: google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.state:type_name -> google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State
220 2, // 1: google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.duration:type_name -> google.protobuf.Duration
221 2, // [2:2] is the sub-list for method output_type
222 2, // [2:2] is the sub-list for method input_type
223 2, // [2:2] is the sub-list for extension type_name
224 2, // [2:2] is the sub-list for extension extendee
225 0, // [0:2] is the sub-list for field type_name
226 }
227
228 func init() { file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_init() }
229 func file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_init() {
230 if File_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto != nil {
231 return
232 }
233 type x struct{}
234 out := protoimpl.TypeBuilder{
235 File: protoimpl.DescBuilder{
236 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
237 RawDescriptor: file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDesc,
238 NumEnums: 1,
239 NumMessages: 1,
240 NumExtensions: 0,
241 NumServices: 0,
242 },
243 GoTypes: file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_goTypes,
244 DependencyIndexes: file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_depIdxs,
245 EnumInfos: file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_enumTypes,
246 MessageInfos: file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_msgTypes,
247 }.Build()
248 File_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto = out.File
249 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_rawDesc = nil
250 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_goTypes = nil
251 file_google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response_proto_depIdxs = nil
252 }