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