You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

390 lines
16 KiB

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