Debian Codegraph @

securitycenter/apiv1/securitycenterpb/security_marks.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/security_marks.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 // User specified security marks that are attached to the parent Security
39 // Command Center resource. Security marks are scoped within a Security Command
40 // Center organization -- they can be modified and viewed by all users who have
41 // proper permissions on the organization.
42 type SecurityMarks struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // The relative resource name of the SecurityMarks. See:
48 // https://cloud.google.com/apis/design/resource_names#relative_resource_name
49 // Examples:
50 // "organizations/{organization_id}/assets/{asset_id}/securityMarks"
51 // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks".
52 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
53 // Mutable user specified security marks belonging to the parent resource.
54 // Constraints are as follows:
55 //
56 // - Keys and values are treated as case insensitive
57 // - Keys must be between 1 - 256 characters (inclusive)
58 // - Keys must be letters, numbers, underscores, or dashes
59 // - Values have leading and trailing whitespace trimmed, remaining
60 // characters must be between 1 - 4096 characters (inclusive)
61 Marks map[string]string `protobuf:"bytes,2,rep,name=marks,proto3" json:"marks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
62 // The canonical name of the marks.
63 // Examples:
64 // "organizations/{organization_id}/assets/{asset_id}/securityMarks"
65 // "folders/{folder_id}/assets/{asset_id}/securityMarks"
66 // "projects/{project_number}/assets/{asset_id}/securityMarks"
67 // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
68 // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
69 // "projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks"
70 CanonicalName string `protobuf:"bytes,3,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"`
71 }
72
73 func (x *SecurityMarks) Reset() {
74 *x = SecurityMarks{}
75 mi := &file_google_cloud_securitycenter_v1_security_marks_proto_msgTypes[0]
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 ms.StoreMessageInfo(mi)
78 }
79
80 func (x *SecurityMarks) String() string {
81 return protoimpl.X.MessageStringOf(x)
82 }
83
84 func (*SecurityMarks) ProtoMessage() {}
85
86 func (x *SecurityMarks) ProtoReflect() protoreflect.Message {
87 mi := &file_google_cloud_securitycenter_v1_security_marks_proto_msgTypes[0]
88 if x != nil {
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 if ms.LoadMessageInfo() == nil {
91 ms.StoreMessageInfo(mi)
92 }
93 return ms
94 }
95 return mi.MessageOf(x)
96 }
97
98 // Deprecated: Use SecurityMarks.ProtoReflect.Descriptor instead.
99 func (*SecurityMarks) Descriptor() ([]byte, []int) {
100 return file_google_cloud_securitycenter_v1_security_marks_proto_rawDescGZIP(), []int{0}
101 }
102
103 func (x *SecurityMarks) GetName() string {
104 if x != nil {
105 return x.Name
106 }
107 return ""
108 }
109
110 func (x *SecurityMarks) GetMarks() map[string]string {
111 if x != nil {
112 return x.Marks
113 }
114 return nil
115 }
116
117 func (x *SecurityMarks) GetCanonicalName() string {
118 if x != nil {
119 return x.CanonicalName
120 }
121 return ""
122 }
123
124 var File_google_cloud_securitycenter_v1_security_marks_proto protoreflect.FileDescriptor
125
126 var file_google_cloud_securitycenter_v1_security_marks_proto_rawDesc = []byte{
127 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
128 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
129 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e,
130 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
131 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
132 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
133 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
134 0x22, 0xfd, 0x04, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72,
135 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
136 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x05, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x18,
137 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
138 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
139 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d,
140 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
141 0x05, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69,
142 0x63, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
143 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x38, 0x0a,
144 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
145 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
146 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
147 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0xa6, 0x03, 0xea, 0x41, 0xa2, 0x03, 0x0a, 0x2b,
148 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x67,
149 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65,
150 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x39, 0x6f, 0x72, 0x67,
151 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61,
152 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73,
153 0x2f, 0x7b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
154 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x4e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
155 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
156 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f,
157 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b,
158 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
159 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x2d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f,
160 0x7b, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x7d, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f,
161 0x7b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
162 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
163 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73,
164 0x2f, 0x7b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
165 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x42, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f,
166 0x7b, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
167 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e,
168 0x67, 0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d, 0x2f, 0x73, 0x65, 0x63,
169 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x44, 0x70, 0x72, 0x6f, 0x6a,
170 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73,
171 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f,
172 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e,
173 0x67, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73,
174 0x42, 0xd8, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
175 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
176 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64,
177 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73,
178 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70,
179 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
180 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
181 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
182 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e,
183 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
184 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
185 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
186 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
187 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
188 0x74, 0x6f, 0x33,
189 }
190
191 var (
192 file_google_cloud_securitycenter_v1_security_marks_proto_rawDescOnce sync.Once
193 file_google_cloud_securitycenter_v1_security_marks_proto_rawDescData = file_google_cloud_securitycenter_v1_security_marks_proto_rawDesc
194 )
195
196 func file_google_cloud_securitycenter_v1_security_marks_proto_rawDescGZIP() []byte {
197 file_google_cloud_securitycenter_v1_security_marks_proto_rawDescOnce.Do(func() {
198 file_google_cloud_securitycenter_v1_security_marks_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_security_marks_proto_rawDescData)
199 })
200 return file_google_cloud_securitycenter_v1_security_marks_proto_rawDescData
201 }
202
203 var file_google_cloud_securitycenter_v1_security_marks_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
204 var file_google_cloud_securitycenter_v1_security_marks_proto_goTypes = []any{
205 (*SecurityMarks)(nil), // 0: google.cloud.securitycenter.v1.SecurityMarks
206 nil, // 1: google.cloud.securitycenter.v1.SecurityMarks.MarksEntry
207 }
208 var file_google_cloud_securitycenter_v1_security_marks_proto_depIdxs = []int32{
209 1, // 0: google.cloud.securitycenter.v1.SecurityMarks.marks:type_name -> google.cloud.securitycenter.v1.SecurityMarks.MarksEntry
210 1, // [1:1] is the sub-list for method output_type
211 1, // [1:1] is the sub-list for method input_type
212 1, // [1:1] is the sub-list for extension type_name
213 1, // [1:1] is the sub-list for extension extendee
214 0, // [0:1] is the sub-list for field type_name
215 }
216
217 func init() { file_google_cloud_securitycenter_v1_security_marks_proto_init() }
218 func file_google_cloud_securitycenter_v1_security_marks_proto_init() {
219 if File_google_cloud_securitycenter_v1_security_marks_proto != nil {
220 return
221 }
222 type x struct{}
223 out := protoimpl.TypeBuilder{
224 File: protoimpl.DescBuilder{
225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
226 RawDescriptor: file_google_cloud_securitycenter_v1_security_marks_proto_rawDesc,
227 NumEnums: 0,
228 NumMessages: 2,
229 NumExtensions: 0,
230 NumServices: 0,
231 },
232 GoTypes: file_google_cloud_securitycenter_v1_security_marks_proto_goTypes,
233 DependencyIndexes: file_google_cloud_securitycenter_v1_security_marks_proto_depIdxs,
234 MessageInfos: file_google_cloud_securitycenter_v1_security_marks_proto_msgTypes,
235 }.Build()
236 File_google_cloud_securitycenter_v1_security_marks_proto = out.File
237 file_google_cloud_securitycenter_v1_security_marks_proto_rawDesc = nil
238 file_google_cloud_securitycenter_v1_security_marks_proto_goTypes = nil
239 file_google_cloud_securitycenter_v1_security_marks_proto_depIdxs = nil
240 }