1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/audit/audit_log.proto 3 4package audit 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 any "github.com/golang/protobuf/ptypes/any" 12 _struct "github.com/golang/protobuf/ptypes/struct" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 status "google.golang.org/genproto/googleapis/rpc/status" 15) 16 17// Reference imports to suppress errors if they are not otherwise used. 18var _ = proto.Marshal 19var _ = fmt.Errorf 20var _ = math.Inf 21 22// This is a compile-time assertion to ensure that this generated file 23// is compatible with the proto package it is being compiled against. 24// A compilation error at this line likely means your copy of the 25// proto package needs to be updated. 26const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28// Common audit log format for Google Cloud Platform API operations. 29type AuditLog struct { 30 // The name of the API service performing the operation. For example, 31 // `"datastore.googleapis.com"`. 32 ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` 33 // The name of the service method or operation. 34 // For API calls, this should be the name of the API method. 35 // For example, 36 // 37 // "google.datastore.v1.Datastore.RunQuery" 38 // "google.logging.v1.LoggingService.DeleteLog" 39 MethodName string `protobuf:"bytes,8,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` 40 // The resource or collection that is the target of the operation. 41 // The name is a scheme-less URI, not including the API service name. 42 // For example: 43 // 44 // "shelves/SHELF_ID/books" 45 // "shelves/SHELF_ID/books/BOOK_ID" 46 ResourceName string `protobuf:"bytes,11,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 47 // The number of items returned from a List or Query API method, 48 // if applicable. 49 NumResponseItems int64 `protobuf:"varint,12,opt,name=num_response_items,json=numResponseItems,proto3" json:"num_response_items,omitempty"` 50 // The status of the overall operation. 51 Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` 52 // Authentication information. 53 AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo,proto3" json:"authentication_info,omitempty"` 54 // Authorization information. If there are multiple 55 // resources or permissions involved, then there is 56 // one AuthorizationInfo element for each {resource, permission} tuple. 57 AuthorizationInfo []*AuthorizationInfo `protobuf:"bytes,9,rep,name=authorization_info,json=authorizationInfo,proto3" json:"authorization_info,omitempty"` 58 // Metadata about the operation. 59 RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"` 60 // The operation request. This may not include all request parameters, 61 // such as those that are too large, privacy-sensitive, or duplicated 62 // elsewhere in the log record. 63 // It should never include user-generated data, such as file contents. 64 // When the JSON object represented here has a proto equivalent, the proto 65 // name will be indicated in the `@type` property. 66 Request *_struct.Struct `protobuf:"bytes,16,opt,name=request,proto3" json:"request,omitempty"` 67 // The operation response. This may not include all response elements, 68 // such as those that are too large, privacy-sensitive, or duplicated 69 // elsewhere in the log record. 70 // It should never include user-generated data, such as file contents. 71 // When the JSON object represented here has a proto equivalent, the proto 72 // name will be indicated in the `@type` property. 73 Response *_struct.Struct `protobuf:"bytes,17,opt,name=response,proto3" json:"response,omitempty"` 74 // Other service-specific data about the request, response, and other 75 // activities. 76 ServiceData *any.Any `protobuf:"bytes,15,opt,name=service_data,json=serviceData,proto3" json:"service_data,omitempty"` 77 XXX_NoUnkeyedLiteral struct{} `json:"-"` 78 XXX_unrecognized []byte `json:"-"` 79 XXX_sizecache int32 `json:"-"` 80} 81 82func (m *AuditLog) Reset() { *m = AuditLog{} } 83func (m *AuditLog) String() string { return proto.CompactTextString(m) } 84func (*AuditLog) ProtoMessage() {} 85func (*AuditLog) Descriptor() ([]byte, []int) { 86 return fileDescriptor_197799a4334e4cbf, []int{0} 87} 88 89func (m *AuditLog) XXX_Unmarshal(b []byte) error { 90 return xxx_messageInfo_AuditLog.Unmarshal(m, b) 91} 92func (m *AuditLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 93 return xxx_messageInfo_AuditLog.Marshal(b, m, deterministic) 94} 95func (m *AuditLog) XXX_Merge(src proto.Message) { 96 xxx_messageInfo_AuditLog.Merge(m, src) 97} 98func (m *AuditLog) XXX_Size() int { 99 return xxx_messageInfo_AuditLog.Size(m) 100} 101func (m *AuditLog) XXX_DiscardUnknown() { 102 xxx_messageInfo_AuditLog.DiscardUnknown(m) 103} 104 105var xxx_messageInfo_AuditLog proto.InternalMessageInfo 106 107func (m *AuditLog) GetServiceName() string { 108 if m != nil { 109 return m.ServiceName 110 } 111 return "" 112} 113 114func (m *AuditLog) GetMethodName() string { 115 if m != nil { 116 return m.MethodName 117 } 118 return "" 119} 120 121func (m *AuditLog) GetResourceName() string { 122 if m != nil { 123 return m.ResourceName 124 } 125 return "" 126} 127 128func (m *AuditLog) GetNumResponseItems() int64 { 129 if m != nil { 130 return m.NumResponseItems 131 } 132 return 0 133} 134 135func (m *AuditLog) GetStatus() *status.Status { 136 if m != nil { 137 return m.Status 138 } 139 return nil 140} 141 142func (m *AuditLog) GetAuthenticationInfo() *AuthenticationInfo { 143 if m != nil { 144 return m.AuthenticationInfo 145 } 146 return nil 147} 148 149func (m *AuditLog) GetAuthorizationInfo() []*AuthorizationInfo { 150 if m != nil { 151 return m.AuthorizationInfo 152 } 153 return nil 154} 155 156func (m *AuditLog) GetRequestMetadata() *RequestMetadata { 157 if m != nil { 158 return m.RequestMetadata 159 } 160 return nil 161} 162 163func (m *AuditLog) GetRequest() *_struct.Struct { 164 if m != nil { 165 return m.Request 166 } 167 return nil 168} 169 170func (m *AuditLog) GetResponse() *_struct.Struct { 171 if m != nil { 172 return m.Response 173 } 174 return nil 175} 176 177func (m *AuditLog) GetServiceData() *any.Any { 178 if m != nil { 179 return m.ServiceData 180 } 181 return nil 182} 183 184// Authentication information for the operation. 185type AuthenticationInfo struct { 186 // The email address of the authenticated user making the request. 187 PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail,proto3" json:"principal_email,omitempty"` 188 XXX_NoUnkeyedLiteral struct{} `json:"-"` 189 XXX_unrecognized []byte `json:"-"` 190 XXX_sizecache int32 `json:"-"` 191} 192 193func (m *AuthenticationInfo) Reset() { *m = AuthenticationInfo{} } 194func (m *AuthenticationInfo) String() string { return proto.CompactTextString(m) } 195func (*AuthenticationInfo) ProtoMessage() {} 196func (*AuthenticationInfo) Descriptor() ([]byte, []int) { 197 return fileDescriptor_197799a4334e4cbf, []int{1} 198} 199 200func (m *AuthenticationInfo) XXX_Unmarshal(b []byte) error { 201 return xxx_messageInfo_AuthenticationInfo.Unmarshal(m, b) 202} 203func (m *AuthenticationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 204 return xxx_messageInfo_AuthenticationInfo.Marshal(b, m, deterministic) 205} 206func (m *AuthenticationInfo) XXX_Merge(src proto.Message) { 207 xxx_messageInfo_AuthenticationInfo.Merge(m, src) 208} 209func (m *AuthenticationInfo) XXX_Size() int { 210 return xxx_messageInfo_AuthenticationInfo.Size(m) 211} 212func (m *AuthenticationInfo) XXX_DiscardUnknown() { 213 xxx_messageInfo_AuthenticationInfo.DiscardUnknown(m) 214} 215 216var xxx_messageInfo_AuthenticationInfo proto.InternalMessageInfo 217 218func (m *AuthenticationInfo) GetPrincipalEmail() string { 219 if m != nil { 220 return m.PrincipalEmail 221 } 222 return "" 223} 224 225// Authorization information for the operation. 226type AuthorizationInfo struct { 227 // The resource being accessed, as a REST-style string. For example: 228 // 229 // bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID 230 Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` 231 // The required IAM permission. 232 Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` 233 // Whether or not authorization for `resource` and `permission` 234 // was granted. 235 Granted bool `protobuf:"varint,3,opt,name=granted,proto3" json:"granted,omitempty"` 236 XXX_NoUnkeyedLiteral struct{} `json:"-"` 237 XXX_unrecognized []byte `json:"-"` 238 XXX_sizecache int32 `json:"-"` 239} 240 241func (m *AuthorizationInfo) Reset() { *m = AuthorizationInfo{} } 242func (m *AuthorizationInfo) String() string { return proto.CompactTextString(m) } 243func (*AuthorizationInfo) ProtoMessage() {} 244func (*AuthorizationInfo) Descriptor() ([]byte, []int) { 245 return fileDescriptor_197799a4334e4cbf, []int{2} 246} 247 248func (m *AuthorizationInfo) XXX_Unmarshal(b []byte) error { 249 return xxx_messageInfo_AuthorizationInfo.Unmarshal(m, b) 250} 251func (m *AuthorizationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 252 return xxx_messageInfo_AuthorizationInfo.Marshal(b, m, deterministic) 253} 254func (m *AuthorizationInfo) XXX_Merge(src proto.Message) { 255 xxx_messageInfo_AuthorizationInfo.Merge(m, src) 256} 257func (m *AuthorizationInfo) XXX_Size() int { 258 return xxx_messageInfo_AuthorizationInfo.Size(m) 259} 260func (m *AuthorizationInfo) XXX_DiscardUnknown() { 261 xxx_messageInfo_AuthorizationInfo.DiscardUnknown(m) 262} 263 264var xxx_messageInfo_AuthorizationInfo proto.InternalMessageInfo 265 266func (m *AuthorizationInfo) GetResource() string { 267 if m != nil { 268 return m.Resource 269 } 270 return "" 271} 272 273func (m *AuthorizationInfo) GetPermission() string { 274 if m != nil { 275 return m.Permission 276 } 277 return "" 278} 279 280func (m *AuthorizationInfo) GetGranted() bool { 281 if m != nil { 282 return m.Granted 283 } 284 return false 285} 286 287// Metadata about the request. 288type RequestMetadata struct { 289 // The IP address of the caller. 290 CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"` 291 // The user agent of the caller. 292 // This information is not authenticated and should be treated accordingly. 293 // For example: 294 // 295 // + `google-api-python-client/1.4.0`: 296 // The request was made by the Google API client for Python. 297 // + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: 298 // The request was made by the Google Cloud SDK CLI (gcloud). 299 // + `AppEngine-Google; (+http://code.google.com/appengine; appid: 300 // s~my-project`: 301 // The request was made from the `my-project` App Engine app. 302 CallerSuppliedUserAgent string `protobuf:"bytes,2,opt,name=caller_supplied_user_agent,json=callerSuppliedUserAgent,proto3" json:"caller_supplied_user_agent,omitempty"` 303 XXX_NoUnkeyedLiteral struct{} `json:"-"` 304 XXX_unrecognized []byte `json:"-"` 305 XXX_sizecache int32 `json:"-"` 306} 307 308func (m *RequestMetadata) Reset() { *m = RequestMetadata{} } 309func (m *RequestMetadata) String() string { return proto.CompactTextString(m) } 310func (*RequestMetadata) ProtoMessage() {} 311func (*RequestMetadata) Descriptor() ([]byte, []int) { 312 return fileDescriptor_197799a4334e4cbf, []int{3} 313} 314 315func (m *RequestMetadata) XXX_Unmarshal(b []byte) error { 316 return xxx_messageInfo_RequestMetadata.Unmarshal(m, b) 317} 318func (m *RequestMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 return xxx_messageInfo_RequestMetadata.Marshal(b, m, deterministic) 320} 321func (m *RequestMetadata) XXX_Merge(src proto.Message) { 322 xxx_messageInfo_RequestMetadata.Merge(m, src) 323} 324func (m *RequestMetadata) XXX_Size() int { 325 return xxx_messageInfo_RequestMetadata.Size(m) 326} 327func (m *RequestMetadata) XXX_DiscardUnknown() { 328 xxx_messageInfo_RequestMetadata.DiscardUnknown(m) 329} 330 331var xxx_messageInfo_RequestMetadata proto.InternalMessageInfo 332 333func (m *RequestMetadata) GetCallerIp() string { 334 if m != nil { 335 return m.CallerIp 336 } 337 return "" 338} 339 340func (m *RequestMetadata) GetCallerSuppliedUserAgent() string { 341 if m != nil { 342 return m.CallerSuppliedUserAgent 343 } 344 return "" 345} 346 347func init() { 348 proto.RegisterType((*AuditLog)(nil), "google.cloud.audit.AuditLog") 349 proto.RegisterType((*AuthenticationInfo)(nil), "google.cloud.audit.AuthenticationInfo") 350 proto.RegisterType((*AuthorizationInfo)(nil), "google.cloud.audit.AuthorizationInfo") 351 proto.RegisterType((*RequestMetadata)(nil), "google.cloud.audit.RequestMetadata") 352} 353 354func init() { proto.RegisterFile("google/cloud/audit/audit_log.proto", fileDescriptor_197799a4334e4cbf) } 355 356var fileDescriptor_197799a4334e4cbf = []byte{ 357 // 576 bytes of a gzipped FileDescriptorProto 358 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x30, 359 0x14, 0xc5, 0x55, 0x36, 0x6d, 0xad, 0xbb, 0xd1, 0xd6, 0x20, 0x1a, 0xca, 0x04, 0xa5, 0x13, 0x50, 360 0x21, 0x94, 0x88, 0xed, 0x61, 0x0f, 0x13, 0x0f, 0x9d, 0xe0, 0xa1, 0x12, 0x4c, 0x53, 0x0a, 0x42, 361 0xe2, 0x25, 0x72, 0x93, 0xdb, 0xcc, 0x22, 0xb1, 0x8d, 0xff, 0x20, 0x8d, 0xef, 0xcc, 0x77, 0x40, 362 0xbd, 0x71, 0x4a, 0xd7, 0x0e, 0x5e, 0x2c, 0xf9, 0x9c, 0xdf, 0xbd, 0x76, 0xaf, 0x4f, 0x43, 0x46, 363 0xb9, 0x94, 0x79, 0x01, 0x51, 0x5a, 0x48, 0x97, 0x45, 0xcc, 0x65, 0xdc, 0x56, 0x6b, 0x52, 0xc8, 364 0x3c, 0x54, 0x5a, 0x5a, 0x49, 0x69, 0xc5, 0x84, 0xc8, 0x84, 0xe8, 0x0e, 0x8e, 0x7c, 0x1d, 0x53, 365 0x3c, 0x62, 0x42, 0x48, 0xcb, 0x2c, 0x97, 0xc2, 0x54, 0x15, 0x83, 0xc7, 0xde, 0xc5, 0xdd, 0xdc, 366 0x2d, 0x22, 0x26, 0x6e, 0xbc, 0x75, 0xb4, 0x69, 0x19, 0xab, 0x5d, 0x6a, 0xbd, 0xdb, 0xf7, 0xae, 367 0x56, 0x69, 0x64, 0x2c, 0xb3, 0xce, 0x77, 0x1c, 0xfd, 0xde, 0x25, 0xcd, 0xc9, 0xf2, 0xe4, 0x8f, 368 0x32, 0xa7, 0xcf, 0xc9, 0x81, 0x01, 0xfd, 0x93, 0xa7, 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