1// Copyright 2021 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.25.0-devel 18// protoc v3.13.0 19// source: google/iam/admin/v1/audit_data.proto 20 21package admin 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31) 32 33const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38) 39 40// This is a compile-time assertion that a sufficiently up-to-date version 41// of the legacy proto package is being used. 42const _ = proto.ProtoPackageIsVersion4 43 44// Audit log information specific to Cloud IAM admin APIs. This message is 45// serialized as an `Any` type in the `ServiceData` message of an 46// `AuditLog` message. 47type AuditData struct { 48 state protoimpl.MessageState 49 sizeCache protoimpl.SizeCache 50 unknownFields protoimpl.UnknownFields 51 52 // The permission_delta when when creating or updating a Role. 53 PermissionDelta *AuditData_PermissionDelta `protobuf:"bytes,1,opt,name=permission_delta,json=permissionDelta,proto3" json:"permission_delta,omitempty"` 54} 55 56func (x *AuditData) Reset() { 57 *x = AuditData{} 58 if protoimpl.UnsafeEnabled { 59 mi := &file_google_iam_admin_v1_audit_data_proto_msgTypes[0] 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 ms.StoreMessageInfo(mi) 62 } 63} 64 65func (x *AuditData) String() string { 66 return protoimpl.X.MessageStringOf(x) 67} 68 69func (*AuditData) ProtoMessage() {} 70 71func (x *AuditData) ProtoReflect() protoreflect.Message { 72 mi := &file_google_iam_admin_v1_audit_data_proto_msgTypes[0] 73 if protoimpl.UnsafeEnabled && x != nil { 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 if ms.LoadMessageInfo() == nil { 76 ms.StoreMessageInfo(mi) 77 } 78 return ms 79 } 80 return mi.MessageOf(x) 81} 82 83// Deprecated: Use AuditData.ProtoReflect.Descriptor instead. 84func (*AuditData) Descriptor() ([]byte, []int) { 85 return file_google_iam_admin_v1_audit_data_proto_rawDescGZIP(), []int{0} 86} 87 88func (x *AuditData) GetPermissionDelta() *AuditData_PermissionDelta { 89 if x != nil { 90 return x.PermissionDelta 91 } 92 return nil 93} 94 95// A PermissionDelta message to record the added_permissions and 96// removed_permissions inside a role. 97type AuditData_PermissionDelta struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 // Added permissions. 103 AddedPermissions []string `protobuf:"bytes,1,rep,name=added_permissions,json=addedPermissions,proto3" json:"added_permissions,omitempty"` 104 // Removed permissions. 105 RemovedPermissions []string `protobuf:"bytes,2,rep,name=removed_permissions,json=removedPermissions,proto3" json:"removed_permissions,omitempty"` 106} 107 108func (x *AuditData_PermissionDelta) Reset() { 109 *x = AuditData_PermissionDelta{} 110 if protoimpl.UnsafeEnabled { 111 mi := &file_google_iam_admin_v1_audit_data_proto_msgTypes[1] 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 ms.StoreMessageInfo(mi) 114 } 115} 116 117func (x *AuditData_PermissionDelta) String() string { 118 return protoimpl.X.MessageStringOf(x) 119} 120 121func (*AuditData_PermissionDelta) ProtoMessage() {} 122 123func (x *AuditData_PermissionDelta) ProtoReflect() protoreflect.Message { 124 mi := &file_google_iam_admin_v1_audit_data_proto_msgTypes[1] 125 if protoimpl.UnsafeEnabled && x != nil { 126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 127 if ms.LoadMessageInfo() == nil { 128 ms.StoreMessageInfo(mi) 129 } 130 return ms 131 } 132 return mi.MessageOf(x) 133} 134 135// Deprecated: Use AuditData_PermissionDelta.ProtoReflect.Descriptor instead. 136func (*AuditData_PermissionDelta) Descriptor() ([]byte, []int) { 137 return file_google_iam_admin_v1_audit_data_proto_rawDescGZIP(), []int{0, 0} 138} 139 140func (x *AuditData_PermissionDelta) GetAddedPermissions() []string { 141 if x != nil { 142 return x.AddedPermissions 143 } 144 return nil 145} 146 147func (x *AuditData_PermissionDelta) GetRemovedPermissions() []string { 148 if x != nil { 149 return x.RemovedPermissions 150 } 151 return nil 152} 153 154var File_google_iam_admin_v1_audit_data_proto protoreflect.FileDescriptor 155 156var file_google_iam_admin_v1_audit_data_proto_rawDesc = []byte{ 157 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x64, 0x6d, 158 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 159 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 160 0x61, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 161 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 162 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x01, 0x0a, 0x09, 0x41, 0x75, 163 0x64, 0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x59, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, 164 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 165 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x61, 166 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x44, 0x61, 0x74, 167 0x61, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x74, 168 0x61, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 169 0x74, 0x61, 0x1a, 0x6f, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 170 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x70, 171 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 172 0x52, 0x10, 0x61, 0x64, 0x64, 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 173 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x70, 0x65, 174 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 175 0x12, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 176 0x6f, 0x6e, 0x73, 0x42, 0x65, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 177 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0e, 178 0x41, 0x75, 0x64, 0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 179 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 180 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 181 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x64, 0x6d, 0x69, 182 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 183 0x6f, 0x33, 184} 185 186var ( 187 file_google_iam_admin_v1_audit_data_proto_rawDescOnce sync.Once 188 file_google_iam_admin_v1_audit_data_proto_rawDescData = file_google_iam_admin_v1_audit_data_proto_rawDesc 189) 190 191func file_google_iam_admin_v1_audit_data_proto_rawDescGZIP() []byte { 192 file_google_iam_admin_v1_audit_data_proto_rawDescOnce.Do(func() { 193 file_google_iam_admin_v1_audit_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_admin_v1_audit_data_proto_rawDescData) 194 }) 195 return file_google_iam_admin_v1_audit_data_proto_rawDescData 196} 197 198var file_google_iam_admin_v1_audit_data_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 199var file_google_iam_admin_v1_audit_data_proto_goTypes = []interface{}{ 200 (*AuditData)(nil), // 0: google.iam.admin.v1.AuditData 201 (*AuditData_PermissionDelta)(nil), // 1: google.iam.admin.v1.AuditData.PermissionDelta 202} 203var file_google_iam_admin_v1_audit_data_proto_depIdxs = []int32{ 204 1, // 0: google.iam.admin.v1.AuditData.permission_delta:type_name -> google.iam.admin.v1.AuditData.PermissionDelta 205 1, // [1:1] is the sub-list for method output_type 206 1, // [1:1] is the sub-list for method input_type 207 1, // [1:1] is the sub-list for extension type_name 208 1, // [1:1] is the sub-list for extension extendee 209 0, // [0:1] is the sub-list for field type_name 210} 211 212func init() { file_google_iam_admin_v1_audit_data_proto_init() } 213func file_google_iam_admin_v1_audit_data_proto_init() { 214 if File_google_iam_admin_v1_audit_data_proto != nil { 215 return 216 } 217 if !protoimpl.UnsafeEnabled { 218 file_google_iam_admin_v1_audit_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 219 switch v := v.(*AuditData); i { 220 case 0: 221 return &v.state 222 case 1: 223 return &v.sizeCache 224 case 2: 225 return &v.unknownFields 226 default: 227 return nil 228 } 229 } 230 file_google_iam_admin_v1_audit_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 231 switch v := v.(*AuditData_PermissionDelta); i { 232 case 0: 233 return &v.state 234 case 1: 235 return &v.sizeCache 236 case 2: 237 return &v.unknownFields 238 default: 239 return nil 240 } 241 } 242 } 243 type x struct{} 244 out := protoimpl.TypeBuilder{ 245 File: protoimpl.DescBuilder{ 246 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 247 RawDescriptor: file_google_iam_admin_v1_audit_data_proto_rawDesc, 248 NumEnums: 0, 249 NumMessages: 2, 250 NumExtensions: 0, 251 NumServices: 0, 252 }, 253 GoTypes: file_google_iam_admin_v1_audit_data_proto_goTypes, 254 DependencyIndexes: file_google_iam_admin_v1_audit_data_proto_depIdxs, 255 MessageInfos: file_google_iam_admin_v1_audit_data_proto_msgTypes, 256 }.Build() 257 File_google_iam_admin_v1_audit_data_proto = out.File 258 file_google_iam_admin_v1_audit_data_proto_rawDesc = nil 259 file_google_iam_admin_v1_audit_data_proto_goTypes = nil 260 file_google_iam_admin_v1_audit_data_proto_depIdxs = nil 261} 262