Debian Codegraph @

securitycenter/apiv2/securitycenterpb/group_membership.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/group_membership.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 // Possible types of groups.
38 type GroupMembership_GroupType int32
39
40 const (
41 // Default value.
42 GroupMembership_GROUP_TYPE_UNSPECIFIED GroupMembership_GroupType = 0
43 // Group represents a toxic combination.
44 GroupMembership_GROUP_TYPE_TOXIC_COMBINATION GroupMembership_GroupType = 1
45 // Group represents a chokepoint.
46 GroupMembership_GROUP_TYPE_CHOKEPOINT GroupMembership_GroupType = 3
47 )
48
49 // Enum value maps for GroupMembership_GroupType.
50 var (
51 GroupMembership_GroupType_name = map[int32]string{
52 0: "GROUP_TYPE_UNSPECIFIED",
53 1: "GROUP_TYPE_TOXIC_COMBINATION",
54 3: "GROUP_TYPE_CHOKEPOINT",
55 }
56 GroupMembership_GroupType_value = map[string]int32{
57 "GROUP_TYPE_UNSPECIFIED": 0,
58 "GROUP_TYPE_TOXIC_COMBINATION": 1,
59 "GROUP_TYPE_CHOKEPOINT": 3,
60 }
61 )
62
63 func (x GroupMembership_GroupType) Enum() *GroupMembership_GroupType {
64 p := new(GroupMembership_GroupType)
65 *p = x
66 return p
67 }
68
69 func (x GroupMembership_GroupType) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (GroupMembership_GroupType) Descriptor() protoreflect.EnumDescriptor {
74 return file_google_cloud_securitycenter_v2_group_membership_proto_enumTypes[0].Descriptor()
75 }
76
77 func (GroupMembership_GroupType) Type() protoreflect.EnumType {
78 return &file_google_cloud_securitycenter_v2_group_membership_proto_enumTypes[0]
79 }
80
81 func (x GroupMembership_GroupType) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85 // Deprecated: Use GroupMembership_GroupType.Descriptor instead.
86 func (GroupMembership_GroupType) EnumDescriptor() ([]byte, []int) {
87 return file_google_cloud_securitycenter_v2_group_membership_proto_rawDescGZIP(), []int{0, 0}
88 }
89
90 // Contains details about groups of which this finding is a member. A group is a
91 // collection of findings that are related in some way.
92 type GroupMembership struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97 // Type of group.
98 GroupType GroupMembership_GroupType `protobuf:"varint,1,opt,name=group_type,json=groupType,proto3,enum=google.cloud.securitycenter.v2.GroupMembership_GroupType" json:"group_type,omitempty"`
99 // ID of the group.
100 GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
101 }
102
103 func (x *GroupMembership) Reset() {
104 *x = GroupMembership{}
105 mi := &file_google_cloud_securitycenter_v2_group_membership_proto_msgTypes[0]
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 ms.StoreMessageInfo(mi)
108 }
109
110 func (x *GroupMembership) String() string {
111 return protoimpl.X.MessageStringOf(x)
112 }
113
114 func (*GroupMembership) ProtoMessage() {}
115
116 func (x *GroupMembership) ProtoReflect() protoreflect.Message {
117 mi := &file_google_cloud_securitycenter_v2_group_membership_proto_msgTypes[0]
118 if x != nil {
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 if ms.LoadMessageInfo() == nil {
121 ms.StoreMessageInfo(mi)
122 }
123 return ms
124 }
125 return mi.MessageOf(x)
126 }
127
128 // Deprecated: Use GroupMembership.ProtoReflect.Descriptor instead.
129 func (*GroupMembership) Descriptor() ([]byte, []int) {
130 return file_google_cloud_securitycenter_v2_group_membership_proto_rawDescGZIP(), []int{0}
131 }
132
133 func (x *GroupMembership) GetGroupType() GroupMembership_GroupType {
134 if x != nil {
135 return x.GroupType
136 }
137 return GroupMembership_GROUP_TYPE_UNSPECIFIED
138 }
139
140 func (x *GroupMembership) GetGroupId() string {
141 if x != nil {
142 return x.GroupId
143 }
144 return ""
145 }
146
147 var File_google_cloud_securitycenter_v2_group_membership_proto protoreflect.FileDescriptor
148
149 var file_google_cloud_securitycenter_v2_group_membership_proto_rawDesc = []byte{
150 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
151 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
152 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69,
153 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
154 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
155 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x22, 0xec, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x6f, 0x75,
156 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x58, 0x0a, 0x0a, 0x67,
157 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
158 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
159 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32,
160 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70,
161 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75,
162 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,
163 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
164 0x22, 0x64, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a,
165 0x16, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
166 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x52, 0x4f,
167 0x55, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, 0x58, 0x49, 0x43, 0x5f, 0x43, 0x4f,
168 0x4d, 0x42, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x47,
169 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x4f, 0x4b, 0x45, 0x50,
170 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x42, 0xee, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
171 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75,
172 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x14, 0x47,
173 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x50, 0x72,
174 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f,
175 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72,
176 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f,
177 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
178 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70,
179 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
180 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
181 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
182 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
183 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
184 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e,
185 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
186 }
187
188 var (
189 file_google_cloud_securitycenter_v2_group_membership_proto_rawDescOnce sync.Once
190 file_google_cloud_securitycenter_v2_group_membership_proto_rawDescData = file_google_cloud_securitycenter_v2_group_membership_proto_rawDesc
191 )
192
193 func file_google_cloud_securitycenter_v2_group_membership_proto_rawDescGZIP() []byte {
194 file_google_cloud_securitycenter_v2_group_membership_proto_rawDescOnce.Do(func() {
195 file_google_cloud_securitycenter_v2_group_membership_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_group_membership_proto_rawDescData)
196 })
197 return file_google_cloud_securitycenter_v2_group_membership_proto_rawDescData
198 }
199
200 var file_google_cloud_securitycenter_v2_group_membership_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
201 var file_google_cloud_securitycenter_v2_group_membership_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
202 var file_google_cloud_securitycenter_v2_group_membership_proto_goTypes = []any{
203 (GroupMembership_GroupType)(0), // 0: google.cloud.securitycenter.v2.GroupMembership.GroupType
204 (*GroupMembership)(nil), // 1: google.cloud.securitycenter.v2.GroupMembership
205 }
206 var file_google_cloud_securitycenter_v2_group_membership_proto_depIdxs = []int32{
207 0, // 0: google.cloud.securitycenter.v2.GroupMembership.group_type:type_name -> google.cloud.securitycenter.v2.GroupMembership.GroupType
208 1, // [1:1] is the sub-list for method output_type
209 1, // [1:1] is the sub-list for method input_type
210 1, // [1:1] is the sub-list for extension type_name
211 1, // [1:1] is the sub-list for extension extendee
212 0, // [0:1] is the sub-list for field type_name
213 }
214
215 func init() { file_google_cloud_securitycenter_v2_group_membership_proto_init() }
216 func file_google_cloud_securitycenter_v2_group_membership_proto_init() {
217 if File_google_cloud_securitycenter_v2_group_membership_proto != nil {
218 return
219 }
220 type x struct{}
221 out := protoimpl.TypeBuilder{
222 File: protoimpl.DescBuilder{
223 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
224 RawDescriptor: file_google_cloud_securitycenter_v2_group_membership_proto_rawDesc,
225 NumEnums: 1,
226 NumMessages: 1,
227 NumExtensions: 0,
228 NumServices: 0,
229 },
230 GoTypes: file_google_cloud_securitycenter_v2_group_membership_proto_goTypes,
231 DependencyIndexes: file_google_cloud_securitycenter_v2_group_membership_proto_depIdxs,
232 EnumInfos: file_google_cloud_securitycenter_v2_group_membership_proto_enumTypes,
233 MessageInfos: file_google_cloud_securitycenter_v2_group_membership_proto_msgTypes,
234 }.Build()
235 File_google_cloud_securitycenter_v2_group_membership_proto = out.File
236 file_google_cloud_securitycenter_v2_group_membership_proto_rawDesc = nil
237 file_google_cloud_securitycenter_v2_group_membership_proto_goTypes = nil
238 file_google_cloud_securitycenter_v2_group_membership_proto_depIdxs = nil
239 }