...

Source file src/cloud.google.com/go/iam/admin/apiv1/adminpb/audit_data.pb.go

Documentation: cloud.google.com/go/iam/admin/apiv1/adminpb

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

View as plain text