Debian Codegraph @

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