Debian Codegraph @

securitycenter/apiv1/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/v1/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_v1_run_asset_discovery_response_proto_enumTypes[0].Descriptor()
81 }
82
83 func (RunAssetDiscoveryResponse_State) Type() protoreflect.EnumType {
84 return &file_google_cloud_securitycenter_v1_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_v1_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.v1.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_v1_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_v1_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_v1_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_v1_run_asset_discovery_response_proto protoreflect.FileDescriptor
153
154 var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDesc = []byte{
155 0x0a, 0x41, 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 0x2f, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f,
158 0x76, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72,
159 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
160 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
161 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
162 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
163 0x6f, 0x74, 0x6f, 0x22, 0xf8, 0x01, 0x0a, 0x19, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74,
164 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
165 0x65, 0x12, 0x55, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
166 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
167 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76,
168 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76,
169 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74,
170 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61,
171 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
172 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
173 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
174 0x4d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54,
175 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
176 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0e,
177 0x0a, 0x0a, 0x53, 0x55, 0x50, 0x45, 0x52, 0x53, 0x45, 0x44, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0e,
178 0x0a, 0x0a, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0xd8,
179 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
180 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
181 0x65, 0x72, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
182 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63,
183 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76,
184 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
185 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
186 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
187 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65,
188 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c,
189 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
190 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
191 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43,
192 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
193 0x33,
194 }
195
196 var (
197 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescOnce sync.Once
198 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescData = file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDesc
199 )
200
201 func file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescGZIP() []byte {
202 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescOnce.Do(func() {
203 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescData)
204 })
205 return file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDescData
206 }
207
208 var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
209 var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
210 var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_goTypes = []any{
211 (RunAssetDiscoveryResponse_State)(0), // 0: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State
212 (*RunAssetDiscoveryResponse)(nil), // 1: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse
213 (*durationpb.Duration)(nil), // 2: google.protobuf.Duration
214 }
215 var file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_depIdxs = []int32{
216 0, // 0: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.state:type_name -> google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State
217 2, // 1: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.duration:type_name -> google.protobuf.Duration
218 2, // [2:2] is the sub-list for method output_type
219 2, // [2:2] is the sub-list for method input_type
220 2, // [2:2] is the sub-list for extension type_name
221 2, // [2:2] is the sub-list for extension extendee
222 0, // [0:2] is the sub-list for field type_name
223 }
224
225 func init() { file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_init() }
226 func file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_init() {
227 if File_google_cloud_securitycenter_v1_run_asset_discovery_response_proto != nil {
228 return
229 }
230 type x struct{}
231 out := protoimpl.TypeBuilder{
232 File: protoimpl.DescBuilder{
233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
234 RawDescriptor: file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDesc,
235 NumEnums: 1,
236 NumMessages: 1,
237 NumExtensions: 0,
238 NumServices: 0,
239 },
240 GoTypes: file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_goTypes,
241 DependencyIndexes: file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_depIdxs,
242 EnumInfos: file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_enumTypes,
243 MessageInfos: file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_msgTypes,
244 }.Build()
245 File_google_cloud_securitycenter_v1_run_asset_discovery_response_proto = out.File
246 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_rawDesc = nil
247 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_goTypes = nil
248 file_google_cloud_securitycenter_v1_run_asset_discovery_response_proto_depIdxs = nil
249 }