Debian Codegraph @

securitycenter/apiv2/securitycenterpb/iam_binding.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/iam_binding.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 // The type of action performed on a Binding in a policy.
38 type IamBinding_Action int32
39
40 const (
41 // Unspecified.
42 IamBinding_ACTION_UNSPECIFIED IamBinding_Action = 0
43 // Addition of a Binding.
44 IamBinding_ADD IamBinding_Action = 1
45 // Removal of a Binding.
46 IamBinding_REMOVE IamBinding_Action = 2
47 )
48
49 // Enum value maps for IamBinding_Action.
50 var (
51 IamBinding_Action_name = map[int32]string{
52 0: "ACTION_UNSPECIFIED",
53 1: "ADD",
54 2: "REMOVE",
55 }
56 IamBinding_Action_value = map[string]int32{
57 "ACTION_UNSPECIFIED": 0,
58 "ADD": 1,
59 "REMOVE": 2,
60 }
61 )
62
63 func (x IamBinding_Action) Enum() *IamBinding_Action {
64 p := new(IamBinding_Action)
65 *p = x
66 return p
67 }
68
69 func (x IamBinding_Action) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (IamBinding_Action) Descriptor() protoreflect.EnumDescriptor {
74 return file_google_cloud_securitycenter_v2_iam_binding_proto_enumTypes[0].Descriptor()
75 }
76
77 func (IamBinding_Action) Type() protoreflect.EnumType {
78 return &file_google_cloud_securitycenter_v2_iam_binding_proto_enumTypes[0]
79 }
80
81 func (x IamBinding_Action) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85 // Deprecated: Use IamBinding_Action.Descriptor instead.
86 func (IamBinding_Action) EnumDescriptor() ([]byte, []int) {
87 return file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescGZIP(), []int{0, 0}
88 }
89
90 // Represents a particular IAM binding, which captures a member's role addition,
91 // removal, or state.
92 type IamBinding struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97 // The action that was performed on a Binding.
98 Action IamBinding_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.cloud.securitycenter.v2.IamBinding_Action" json:"action,omitempty"`
99 // Role that is assigned to "members".
100 // For example, "roles/viewer", "roles/editor", or "roles/owner".
101 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
102 // A single identity requesting access for a Cloud Platform resource, for
103 // example, "[email protected]".
104 Member string `protobuf:"bytes,3,opt,name=member,proto3" json:"member,omitempty"`
105 }
106
107 func (x *IamBinding) Reset() {
108 *x = IamBinding{}
109 mi := &file_google_cloud_securitycenter_v2_iam_binding_proto_msgTypes[0]
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 ms.StoreMessageInfo(mi)
112 }
113
114 func (x *IamBinding) String() string {
115 return protoimpl.X.MessageStringOf(x)
116 }
117
118 func (*IamBinding) ProtoMessage() {}
119
120 func (x *IamBinding) ProtoReflect() protoreflect.Message {
121 mi := &file_google_cloud_securitycenter_v2_iam_binding_proto_msgTypes[0]
122 if x != nil {
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 if ms.LoadMessageInfo() == nil {
125 ms.StoreMessageInfo(mi)
126 }
127 return ms
128 }
129 return mi.MessageOf(x)
130 }
131
132 // Deprecated: Use IamBinding.ProtoReflect.Descriptor instead.
133 func (*IamBinding) Descriptor() ([]byte, []int) {
134 return file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescGZIP(), []int{0}
135 }
136
137 func (x *IamBinding) GetAction() IamBinding_Action {
138 if x != nil {
139 return x.Action
140 }
141 return IamBinding_ACTION_UNSPECIFIED
142 }
143
144 func (x *IamBinding) GetRole() string {
145 if x != nil {
146 return x.Role
147 }
148 return ""
149 }
150
151 func (x *IamBinding) GetMember() string {
152 if x != nil {
153 return x.Member
154 }
155 return ""
156 }
157
158 var File_google_cloud_securitycenter_v2_iam_binding_proto protoreflect.FileDescriptor
159
160 var file_google_cloud_securitycenter_v2_iam_binding_proto_rawDesc = []byte{
161 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
162 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
163 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f,
164 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
165 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
166 0x76, 0x32, 0x22, 0xba, 0x01, 0x0a, 0x0a, 0x49, 0x61, 0x6d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e,
167 0x67, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
168 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
169 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
170 0x76, 0x32, 0x2e, 0x49, 0x61, 0x6d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x63,
171 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04,
172 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65,
173 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
174 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69,
175 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,
176 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44,
177 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x02, 0x42,
178 0xe9, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
179 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
180 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x0f, 0x49, 0x61, 0x6d, 0x42, 0x69, 0x6e, 0x64, 0x69,
181 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64,
182 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73,
183 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70,
184 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
185 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
186 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
187 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e,
188 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
189 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65,
190 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
191 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
192 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
193 0x74, 0x6f, 0x33,
194 }
195
196 var (
197 file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescOnce sync.Once
198 file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescData = file_google_cloud_securitycenter_v2_iam_binding_proto_rawDesc
199 )
200
201 func file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescGZIP() []byte {
202 file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescOnce.Do(func() {
203 file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescData)
204 })
205 return file_google_cloud_securitycenter_v2_iam_binding_proto_rawDescData
206 }
207
208 var file_google_cloud_securitycenter_v2_iam_binding_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
209 var file_google_cloud_securitycenter_v2_iam_binding_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
210 var file_google_cloud_securitycenter_v2_iam_binding_proto_goTypes = []any{
211 (IamBinding_Action)(0), // 0: google.cloud.securitycenter.v2.IamBinding.Action
212 (*IamBinding)(nil), // 1: google.cloud.securitycenter.v2.IamBinding
213 }
214 var file_google_cloud_securitycenter_v2_iam_binding_proto_depIdxs = []int32{
215 0, // 0: google.cloud.securitycenter.v2.IamBinding.action:type_name -> google.cloud.securitycenter.v2.IamBinding.Action
216 1, // [1:1] is the sub-list for method output_type
217 1, // [1:1] is the sub-list for method input_type
218 1, // [1:1] is the sub-list for extension type_name
219 1, // [1:1] is the sub-list for extension extendee
220 0, // [0:1] is the sub-list for field type_name
221 }
222
223 func init() { file_google_cloud_securitycenter_v2_iam_binding_proto_init() }
224 func file_google_cloud_securitycenter_v2_iam_binding_proto_init() {
225 if File_google_cloud_securitycenter_v2_iam_binding_proto != nil {
226 return
227 }
228 type x struct{}
229 out := protoimpl.TypeBuilder{
230 File: protoimpl.DescBuilder{
231 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
232 RawDescriptor: file_google_cloud_securitycenter_v2_iam_binding_proto_rawDesc,
233 NumEnums: 1,
234 NumMessages: 1,
235 NumExtensions: 0,
236 NumServices: 0,
237 },
238 GoTypes: file_google_cloud_securitycenter_v2_iam_binding_proto_goTypes,
239 DependencyIndexes: file_google_cloud_securitycenter_v2_iam_binding_proto_depIdxs,
240 EnumInfos: file_google_cloud_securitycenter_v2_iam_binding_proto_enumTypes,
241 MessageInfos: file_google_cloud_securitycenter_v2_iam_binding_proto_msgTypes,
242 }.Build()
243 File_google_cloud_securitycenter_v2_iam_binding_proto = out.File
244 file_google_cloud_securitycenter_v2_iam_binding_proto_rawDesc = nil
245 file_google_cloud_securitycenter_v2_iam_binding_proto_goTypes = nil
246 file_google_cloud_securitycenter_v2_iam_binding_proto_depIdxs = nil
247 }