Debian Codegraph @

securitycenter/apiv2/securitycenterpb/ai_model.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/ai_model.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 // The platform on which the model is deployed.
38 type AiModel_DeploymentPlatform int32
39
40 const (
41 // Unspecified deployment platform.
42 AiModel_DEPLOYMENT_PLATFORM_UNSPECIFIED AiModel_DeploymentPlatform = 0
43 // Vertex AI.
44 AiModel_VERTEX_AI AiModel_DeploymentPlatform = 1
45 // Google Kubernetes Engine.
46 AiModel_GKE AiModel_DeploymentPlatform = 2
47 // Google Compute Engine.
48 AiModel_GCE AiModel_DeploymentPlatform = 3
49 // Fine tuned model.
50 AiModel_FINE_TUNED_MODEL AiModel_DeploymentPlatform = 4
51 )
52
53 // Enum value maps for AiModel_DeploymentPlatform.
54 var (
55 AiModel_DeploymentPlatform_name = map[int32]string{
56 0: "DEPLOYMENT_PLATFORM_UNSPECIFIED",
57 1: "VERTEX_AI",
58 2: "GKE",
59 3: "GCE",
60 4: "FINE_TUNED_MODEL",
61 }
62 AiModel_DeploymentPlatform_value = map[string]int32{
63 "DEPLOYMENT_PLATFORM_UNSPECIFIED": 0,
64 "VERTEX_AI": 1,
65 "GKE": 2,
66 "GCE": 3,
67 "FINE_TUNED_MODEL": 4,
68 }
69 )
70
71 func (x AiModel_DeploymentPlatform) Enum() *AiModel_DeploymentPlatform {
72 p := new(AiModel_DeploymentPlatform)
73 *p = x
74 return p
75 }
76
77 func (x AiModel_DeploymentPlatform) String() string {
78 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
79 }
80
81 func (AiModel_DeploymentPlatform) Descriptor() protoreflect.EnumDescriptor {
82 return file_google_cloud_securitycenter_v2_ai_model_proto_enumTypes[0].Descriptor()
83 }
84
85 func (AiModel_DeploymentPlatform) Type() protoreflect.EnumType {
86 return &file_google_cloud_securitycenter_v2_ai_model_proto_enumTypes[0]
87 }
88
89 func (x AiModel_DeploymentPlatform) Number() protoreflect.EnumNumber {
90 return protoreflect.EnumNumber(x)
91 }
92
93 // Deprecated: Use AiModel_DeploymentPlatform.Descriptor instead.
94 func (AiModel_DeploymentPlatform) EnumDescriptor() ([]byte, []int) {
95 return file_google_cloud_securitycenter_v2_ai_model_proto_rawDescGZIP(), []int{0, 0}
96 }
97
98 // Contains information about the AI model associated with the finding.
99 type AiModel struct {
100 state protoimpl.MessageState
101 sizeCache protoimpl.SizeCache
102 unknownFields protoimpl.UnknownFields
103
104 // The name of the AI model, for example, "gemini:1.0.0".
105 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
106 // The domain of the model, for example, “image-classification”.
107 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
108 // The name of the model library, for example, “transformers”.
109 Library string `protobuf:"bytes,3,opt,name=library,proto3" json:"library,omitempty"`
110 // The region in which the model is used, for example, “us-central1”.
111 Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
112 // The publisher of the model, for example, “google” or “nvidia”.
113 Publisher string `protobuf:"bytes,5,opt,name=publisher,proto3" json:"publisher,omitempty"`
114 // The platform on which the model is deployed.
115 DeploymentPlatform AiModel_DeploymentPlatform `protobuf:"varint,6,opt,name=deployment_platform,json=deploymentPlatform,proto3,enum=google.cloud.securitycenter.v2.AiModel_DeploymentPlatform" json:"deployment_platform,omitempty"`
116 // The user defined display name of model. Ex. baseline-classification-model
117 DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
118 }
119
120 func (x *AiModel) Reset() {
121 *x = AiModel{}
122 mi := &file_google_cloud_securitycenter_v2_ai_model_proto_msgTypes[0]
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 ms.StoreMessageInfo(mi)
125 }
126
127 func (x *AiModel) String() string {
128 return protoimpl.X.MessageStringOf(x)
129 }
130
131 func (*AiModel) ProtoMessage() {}
132
133 func (x *AiModel) ProtoReflect() protoreflect.Message {
134 mi := &file_google_cloud_securitycenter_v2_ai_model_proto_msgTypes[0]
135 if x != nil {
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 if ms.LoadMessageInfo() == nil {
138 ms.StoreMessageInfo(mi)
139 }
140 return ms
141 }
142 return mi.MessageOf(x)
143 }
144
145 // Deprecated: Use AiModel.ProtoReflect.Descriptor instead.
146 func (*AiModel) Descriptor() ([]byte, []int) {
147 return file_google_cloud_securitycenter_v2_ai_model_proto_rawDescGZIP(), []int{0}
148 }
149
150 func (x *AiModel) GetName() string {
151 if x != nil {
152 return x.Name
153 }
154 return ""
155 }
156
157 func (x *AiModel) GetDomain() string {
158 if x != nil {
159 return x.Domain
160 }
161 return ""
162 }
163
164 func (x *AiModel) GetLibrary() string {
165 if x != nil {
166 return x.Library
167 }
168 return ""
169 }
170
171 func (x *AiModel) GetLocation() string {
172 if x != nil {
173 return x.Location
174 }
175 return ""
176 }
177
178 func (x *AiModel) GetPublisher() string {
179 if x != nil {
180 return x.Publisher
181 }
182 return ""
183 }
184
185 func (x *AiModel) GetDeploymentPlatform() AiModel_DeploymentPlatform {
186 if x != nil {
187 return x.DeploymentPlatform
188 }
189 return AiModel_DEPLOYMENT_PLATFORM_UNSPECIFIED
190 }
191
192 func (x *AiModel) GetDisplayName() string {
193 if x != nil {
194 return x.DisplayName
195 }
196 return ""
197 }
198
199 var File_google_cloud_securitycenter_v2_ai_model_proto protoreflect.FileDescriptor
200
201 var file_google_cloud_securitycenter_v2_ai_model_proto_rawDesc = []byte{
202 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
203 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
204 0x2f, 0x61, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
205 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
206 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x22,
207 0x8b, 0x03, 0x0a, 0x07, 0x41, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e,
208 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
209 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
210 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x62, 0x72, 0x61,
211 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72,
212 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,
213 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a,
214 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
215 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x6b, 0x0a, 0x13, 0x64,
216 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
217 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
218 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
219 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x69, 0x4d, 0x6f, 0x64, 0x65,
220 0x6c, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x61, 0x74,
221 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x12, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,
222 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70,
223 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
224 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x70, 0x0a, 0x12, 0x44,
225 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
226 0x6d, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f,
227 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
228 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x54, 0x45, 0x58,
229 0x5f, 0x41, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4b, 0x45, 0x10, 0x02, 0x12, 0x07,
230 0x0a, 0x03, 0x47, 0x43, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x49, 0x4e, 0x45, 0x5f,
231 0x54, 0x55, 0x4e, 0x45, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x10, 0x04, 0x42, 0xe6, 0x01,
232 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
233 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
234 0x72, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x41, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x50, 0x72, 0x6f,
235 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
236 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
237 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73,
238 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b,
239 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
240 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
241 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56,
242 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
243 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c,
244 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
245 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
246 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
247 }
248
249 var (
250 file_google_cloud_securitycenter_v2_ai_model_proto_rawDescOnce sync.Once
251 file_google_cloud_securitycenter_v2_ai_model_proto_rawDescData = file_google_cloud_securitycenter_v2_ai_model_proto_rawDesc
252 )
253
254 func file_google_cloud_securitycenter_v2_ai_model_proto_rawDescGZIP() []byte {
255 file_google_cloud_securitycenter_v2_ai_model_proto_rawDescOnce.Do(func() {
256 file_google_cloud_securitycenter_v2_ai_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_ai_model_proto_rawDescData)
257 })
258 return file_google_cloud_securitycenter_v2_ai_model_proto_rawDescData
259 }
260
261 var file_google_cloud_securitycenter_v2_ai_model_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
262 var file_google_cloud_securitycenter_v2_ai_model_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
263 var file_google_cloud_securitycenter_v2_ai_model_proto_goTypes = []any{
264 (AiModel_DeploymentPlatform)(0), // 0: google.cloud.securitycenter.v2.AiModel.DeploymentPlatform
265 (*AiModel)(nil), // 1: google.cloud.securitycenter.v2.AiModel
266 }
267 var file_google_cloud_securitycenter_v2_ai_model_proto_depIdxs = []int32{
268 0, // 0: google.cloud.securitycenter.v2.AiModel.deployment_platform:type_name -> google.cloud.securitycenter.v2.AiModel.DeploymentPlatform
269 1, // [1:1] is the sub-list for method output_type
270 1, // [1:1] is the sub-list for method input_type
271 1, // [1:1] is the sub-list for extension type_name
272 1, // [1:1] is the sub-list for extension extendee
273 0, // [0:1] is the sub-list for field type_name
274 }
275
276 func init() { file_google_cloud_securitycenter_v2_ai_model_proto_init() }
277 func file_google_cloud_securitycenter_v2_ai_model_proto_init() {
278 if File_google_cloud_securitycenter_v2_ai_model_proto != nil {
279 return
280 }
281 type x struct{}
282 out := protoimpl.TypeBuilder{
283 File: protoimpl.DescBuilder{
284 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
285 RawDescriptor: file_google_cloud_securitycenter_v2_ai_model_proto_rawDesc,
286 NumEnums: 1,
287 NumMessages: 1,
288 NumExtensions: 0,
289 NumServices: 0,
290 },
291 GoTypes: file_google_cloud_securitycenter_v2_ai_model_proto_goTypes,
292 DependencyIndexes: file_google_cloud_securitycenter_v2_ai_model_proto_depIdxs,
293 EnumInfos: file_google_cloud_securitycenter_v2_ai_model_proto_enumTypes,
294 MessageInfos: file_google_cloud_securitycenter_v2_ai_model_proto_msgTypes,
295 }.Build()
296 File_google_cloud_securitycenter_v2_ai_model_proto = out.File
297 file_google_cloud_securitycenter_v2_ai_model_proto_rawDesc = nil
298 file_google_cloud_securitycenter_v2_ai_model_proto_goTypes = nil
299 file_google_cloud_securitycenter_v2_ai_model_proto_depIdxs = nil
300 }