Debian Codegraph @

securitycenter/apiv1beta1/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/v1beta1/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 }
63
64 func (x *SecurityMarks) Reset() {
65 *x = SecurityMarks{}
66 mi := &file_google_cloud_securitycenter_v1beta1_security_marks_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70
71 func (x *SecurityMarks) String() string {
72 return protoimpl.X.MessageStringOf(x)
73 }
74
75 func (*SecurityMarks) ProtoMessage() {}
76
77 func (x *SecurityMarks) ProtoReflect() protoreflect.Message {
78 mi := &file_google_cloud_securitycenter_v1beta1_security_marks_proto_msgTypes[0]
79 if x != nil {
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 if ms.LoadMessageInfo() == nil {
82 ms.StoreMessageInfo(mi)
83 }
84 return ms
85 }
86 return mi.MessageOf(x)
87 }
88
89 // Deprecated: Use SecurityMarks.ProtoReflect.Descriptor instead.
90 func (*SecurityMarks) Descriptor() ([]byte, []int) {
91 return file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescGZIP(), []int{0}
92 }
93
94 func (x *SecurityMarks) GetName() string {
95 if x != nil {
96 return x.Name
97 }
98 return ""
99 }
100
101 func (x *SecurityMarks) GetMarks() map[string]string {
102 if x != nil {
103 return x.Marks
104 }
105 return nil
106 }
107
108 var File_google_cloud_securitycenter_v1beta1_security_marks_proto protoreflect.FileDescriptor
109
110 var file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDesc = []byte{
111 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
112 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
113 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6d,
114 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x67, 0x6f, 0x6f, 0x67,
115 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
116 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
117 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,
118 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, 0x02, 0x0a, 0x0d, 0x53,
119 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x12, 0x0a, 0x04,
120 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
121 0x12, 0x53, 0x0a, 0x05, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
122 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
123 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31,
124 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61,
125 0x72, 0x6b, 0x73, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
126 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x45, 0x6e,
127 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
128 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
129 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a,
130 0xbc, 0x01, 0xea, 0x41, 0xb8, 0x01, 0x0a, 0x2b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
131 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
132 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61,
133 0x72, 0x6b, 0x73, 0x12, 0x39, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
134 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
135 0x7d, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x7d,
136 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x4e,
137 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f,
138 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75,
139 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x66, 0x69,
140 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x7d,
141 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x73, 0x42, 0x7c,
142 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
143 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65,
144 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x4f, 0x63, 0x6c, 0x6f,
145 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
146 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f,
147 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72,
148 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75,
149 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
150 0x6f, 0x74, 0x6f, 0x33,
151 }
152
153 var (
154 file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescOnce sync.Once
155 file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescData = file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDesc
156 )
157
158 func file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescGZIP() []byte {
159 file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescOnce.Do(func() {
160 file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescData)
161 })
162 return file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDescData
163 }
164
165 var file_google_cloud_securitycenter_v1beta1_security_marks_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
166 var file_google_cloud_securitycenter_v1beta1_security_marks_proto_goTypes = []any{
167 (*SecurityMarks)(nil), // 0: google.cloud.securitycenter.v1beta1.SecurityMarks
168 nil, // 1: google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry
169 }
170 var file_google_cloud_securitycenter_v1beta1_security_marks_proto_depIdxs = []int32{
171 1, // 0: google.cloud.securitycenter.v1beta1.SecurityMarks.marks:type_name -> google.cloud.securitycenter.v1beta1.SecurityMarks.MarksEntry
172 1, // [1:1] is the sub-list for method output_type
173 1, // [1:1] is the sub-list for method input_type
174 1, // [1:1] is the sub-list for extension type_name
175 1, // [1:1] is the sub-list for extension extendee
176 0, // [0:1] is the sub-list for field type_name
177 }
178
179 func init() { file_google_cloud_securitycenter_v1beta1_security_marks_proto_init() }
180 func file_google_cloud_securitycenter_v1beta1_security_marks_proto_init() {
181 if File_google_cloud_securitycenter_v1beta1_security_marks_proto != nil {
182 return
183 }
184 type x struct{}
185 out := protoimpl.TypeBuilder{
186 File: protoimpl.DescBuilder{
187 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
188 RawDescriptor: file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDesc,
189 NumEnums: 0,
190 NumMessages: 2,
191 NumExtensions: 0,
192 NumServices: 0,
193 },
194 GoTypes: file_google_cloud_securitycenter_v1beta1_security_marks_proto_goTypes,
195 DependencyIndexes: file_google_cloud_securitycenter_v1beta1_security_marks_proto_depIdxs,
196 MessageInfos: file_google_cloud_securitycenter_v1beta1_security_marks_proto_msgTypes,
197 }.Build()
198 File_google_cloud_securitycenter_v1beta1_security_marks_proto = out.File
199 file_google_cloud_securitycenter_v1beta1_security_marks_proto_rawDesc = nil
200 file_google_cloud_securitycenter_v1beta1_security_marks_proto_goTypes = nil
201 file_google_cloud_securitycenter_v1beta1_security_marks_proto_depIdxs = nil
202 }