Debian Codegraph @

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