Debian Codegraph @

securitycenter/apiv1/securitycenterpb/source.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/source.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 // Security Command Center finding source. A finding source
39 // is an entity or a mechanism that can produce a finding. A source is like a
40 // container of findings that come from the same scanner, logger, monitor, and
41 // other tools.
42 type Source struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // The relative resource name of this source. See:
48 // https://cloud.google.com/apis/design/resource_names#relative_resource_name
49 // Example:
50 // "organizations/{organization_id}/sources/{source_id}"
51 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
52 // The source's display name.
53 // A source's display name must be unique amongst its siblings, for example,
54 // two sources with the same parent can't share the same display name.
55 // The display name must have a length between 1 and 64 characters
56 // (inclusive).
57 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
58 // The description of the source (max of 1024 characters).
59 // Example:
60 // "Web Security Scanner is a web security scanner for common
61 // vulnerabilities in App Engine applications. It can automatically
62 // scan and detect four common vulnerabilities, including cross-site-scripting
63 // (XSS), Flash injection, mixed content (HTTP in HTTPS), and
64 // outdated or insecure libraries."
65 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
66 // The canonical name of the finding source. It's either
67 // "organizations/{organization_id}/sources/{source_id}",
68 // "folders/{folder_id}/sources/{source_id}", or
69 // "projects/{project_number}/sources/{source_id}",
70 // depending on the closest CRM ancestor of the resource associated with the
71 // finding.
72 CanonicalName string `protobuf:"bytes,14,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"`
73 }
74
75 func (x *Source) Reset() {
76 *x = Source{}
77 mi := &file_google_cloud_securitycenter_v1_source_proto_msgTypes[0]
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 ms.StoreMessageInfo(mi)
80 }
81
82 func (x *Source) String() string {
83 return protoimpl.X.MessageStringOf(x)
84 }
85
86 func (*Source) ProtoMessage() {}
87
88 func (x *Source) ProtoReflect() protoreflect.Message {
89 mi := &file_google_cloud_securitycenter_v1_source_proto_msgTypes[0]
90 if x != nil {
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 if ms.LoadMessageInfo() == nil {
93 ms.StoreMessageInfo(mi)
94 }
95 return ms
96 }
97 return mi.MessageOf(x)
98 }
99
100 // Deprecated: Use Source.ProtoReflect.Descriptor instead.
101 func (*Source) Descriptor() ([]byte, []int) {
102 return file_google_cloud_securitycenter_v1_source_proto_rawDescGZIP(), []int{0}
103 }
104
105 func (x *Source) GetName() string {
106 if x != nil {
107 return x.Name
108 }
109 return ""
110 }
111
112 func (x *Source) GetDisplayName() string {
113 if x != nil {
114 return x.DisplayName
115 }
116 return ""
117 }
118
119 func (x *Source) GetDescription() string {
120 if x != nil {
121 return x.Description
122 }
123 return ""
124 }
125
126 func (x *Source) GetCanonicalName() string {
127 if x != nil {
128 return x.CanonicalName
129 }
130 return ""
131 }
132
133 var File_google_cloud_securitycenter_v1_source_proto protoreflect.FileDescriptor
134
135 var file_google_cloud_securitycenter_v1_source_proto_rawDesc = []byte{
136 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
137 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
138 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67,
139 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75,
140 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67,
141 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
142 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x02, 0x0a, 0x06, 0x53, 0x6f, 0x75,
143 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
144 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c,
145 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
146 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
147 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
148 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e,
149 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e,
150 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4e,
151 0x61, 0x6d, 0x65, 0x3a, 0xa1, 0x01, 0xea, 0x41, 0x9d, 0x01, 0x0a, 0x24, 0x73, 0x65, 0x63, 0x75,
152 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
153 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
154 0x12, 0x2d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
155 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73,
156 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x12,
157 0x21, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72,
158 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63,
159 0x65, 0x7d, 0x12, 0x23, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72,
160 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b,
161 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x42, 0xd8, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
162 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63,
163 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x50, 0x01,
164 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
165 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
166 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72,
167 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75,
168 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47,
169 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75,
170 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e,
171 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63,
172 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02,
173 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
174 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a,
175 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
176 }
177
178 var (
179 file_google_cloud_securitycenter_v1_source_proto_rawDescOnce sync.Once
180 file_google_cloud_securitycenter_v1_source_proto_rawDescData = file_google_cloud_securitycenter_v1_source_proto_rawDesc
181 )
182
183 func file_google_cloud_securitycenter_v1_source_proto_rawDescGZIP() []byte {
184 file_google_cloud_securitycenter_v1_source_proto_rawDescOnce.Do(func() {
185 file_google_cloud_securitycenter_v1_source_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_source_proto_rawDescData)
186 })
187 return file_google_cloud_securitycenter_v1_source_proto_rawDescData
188 }
189
190 var file_google_cloud_securitycenter_v1_source_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
191 var file_google_cloud_securitycenter_v1_source_proto_goTypes = []any{
192 (*Source)(nil), // 0: google.cloud.securitycenter.v1.Source
193 }
194 var file_google_cloud_securitycenter_v1_source_proto_depIdxs = []int32{
195 0, // [0:0] is the sub-list for method output_type
196 0, // [0:0] is the sub-list for method input_type
197 0, // [0:0] is the sub-list for extension type_name
198 0, // [0:0] is the sub-list for extension extendee
199 0, // [0:0] is the sub-list for field type_name
200 }
201
202 func init() { file_google_cloud_securitycenter_v1_source_proto_init() }
203 func file_google_cloud_securitycenter_v1_source_proto_init() {
204 if File_google_cloud_securitycenter_v1_source_proto != nil {
205 return
206 }
207 type x struct{}
208 out := protoimpl.TypeBuilder{
209 File: protoimpl.DescBuilder{
210 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
211 RawDescriptor: file_google_cloud_securitycenter_v1_source_proto_rawDesc,
212 NumEnums: 0,
213 NumMessages: 1,
214 NumExtensions: 0,
215 NumServices: 0,
216 },
217 GoTypes: file_google_cloud_securitycenter_v1_source_proto_goTypes,
218 DependencyIndexes: file_google_cloud_securitycenter_v1_source_proto_depIdxs,
219 MessageInfos: file_google_cloud_securitycenter_v1_source_proto_msgTypes,
220 }.Build()
221 File_google_cloud_securitycenter_v1_source_proto = out.File
222 file_google_cloud_securitycenter_v1_source_proto_rawDesc = nil
223 file_google_cloud_securitycenter_v1_source_proto_goTypes = nil
224 file_google_cloud_securitycenter_v1_source_proto_depIdxs = nil
225 }