1# -*- coding: utf-8 -*-
2
3# Copyright 2025 Google LLC
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Generated by the protocol buffer compiler. DO NOT EDIT!
18# source: google/cloud/audit/audit_log.proto
19# Protobuf Python Version: 4.25.3
20"""Generated protocol buffer code."""
21from google.protobuf import descriptor as _descriptor
22from google.protobuf import descriptor_pool as _descriptor_pool
23from google.protobuf import symbol_database as _symbol_database
24from google.protobuf.internal import builder as _builder
25
26# @@protoc_insertion_point(imports)
27
28_sym_db = _symbol_database.Default()
29
30
31from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
32from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
33from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
34from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
35from google.rpc.context import (
36 attribute_context_pb2 as google_dot_rpc_dot_context_dot_attribute__context__pb2,
37)
38
39DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
40 b'\n"google/cloud/audit/audit_log.proto\x12\x12google.cloud.audit\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a*google/rpc/context/attribute_context.proto\x1a\x17google/rpc/status.proto"\xc6\x05\n\x08\x41uditLog\x12\x14\n\x0cservice_name\x18\x07 \x01(\t\x12\x13\n\x0bmethod_name\x18\x08 \x01(\t\x12\x15\n\rresource_name\x18\x0b \x01(\t\x12?\n\x11resource_location\x18\x14 \x01(\x0b\x32$.google.cloud.audit.ResourceLocation\x12\x38\n\x17resource_original_state\x18\x13 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\x12num_response_items\x18\x0c \x01(\x03\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x13\x61uthentication_info\x18\x03 \x01(\x0b\x32&.google.cloud.audit.AuthenticationInfo\x12\x41\n\x12\x61uthorization_info\x18\t \x03(\x0b\x32%.google.cloud.audit.AuthorizationInfo\x12\x46\n\x15policy_violation_info\x18\x19 \x01(\x0b\x32\'.google.cloud.audit.PolicyViolationInfo\x12=\n\x10request_metadata\x18\x04 \x01(\x0b\x32#.google.cloud.audit.RequestMetadata\x12(\n\x07request\x18\x10 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08response\x18\x11 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12.\n\x0cservice_data\x18\x0f \x01(\x0b\x32\x14.google.protobuf.AnyB\x02\x18\x01"\x99\x02\n\x12\x41uthenticationInfo\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x1a\n\x12\x61uthority_selector\x18\x02 \x01(\t\x12\x36\n\x15third_party_principal\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12 \n\x18service_account_key_name\x18\x05 \x01(\t\x12Y\n\x1fservice_account_delegation_info\x18\x06 \x03(\x0b\x32\x30.google.cloud.audit.ServiceAccountDelegationInfo\x12\x19\n\x11principal_subject\x18\x08 \x01(\t"\xd8\x02\n\x11\x41uthorizationInfo\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\npermission\x18\x02 \x01(\t\x12\x0f\n\x07granted\x18\x03 \x01(\x08\x12J\n\x13resource_attributes\x18\x05 \x01(\x0b\x32-.google.rpc.context.AttributeContext.Resource\x12M\n\x0fpermission_type\x18\x07 \x01(\x0e\x32\x34.google.cloud.audit.AuthorizationInfo.PermissionType"q\n\x0ePermissionType\x12\x1f\n\x1bPERMISSION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nADMIN_READ\x10\x01\x12\x0f\n\x0b\x41\x44MIN_WRITE\x10\x02\x12\r\n\tDATA_READ\x10\x03\x12\x0e\n\nDATA_WRITE\x10\x04"\xf5\x01\n\x0fRequestMetadata\x12\x11\n\tcaller_ip\x18\x01 \x01(\t\x12"\n\x1a\x63\x61ller_supplied_user_agent\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61ller_network\x18\x03 \x01(\t\x12H\n\x12request_attributes\x18\x07 \x01(\x0b\x32,.google.rpc.context.AttributeContext.Request\x12I\n\x16\x64\x65stination_attributes\x18\x08 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer"I\n\x10ResourceLocation\x12\x19\n\x11\x63urrent_locations\x18\x01 \x03(\t\x12\x1a\n\x12original_locations\x18\x02 \x03(\t"\xc3\x03\n\x1cServiceAccountDelegationInfo\x12\x19\n\x11principal_subject\x18\x03 \x01(\t\x12\x65\n\x15\x66irst_party_principal\x18\x01 \x01(\x0b\x32\x44.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipalH\x00\x12\x65\n\x15third_party_principal\x18\x02 \x01(\x0b\x32\x44.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipalH\x00\x1a\x61\n\x13\x46irstPartyPrincipal\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x31\n\x10service_metadata\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x1aJ\n\x13ThirdPartyPrincipal\x12\x33\n\x12third_party_claims\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x0b\n\tAuthority"d\n\x13PolicyViolationInfo\x12M\n\x19org_policy_violation_info\x18\x01 \x01(\x0b\x32*.google.cloud.audit.OrgPolicyViolationInfo"\xb2\x02\n\x16OrgPolicyViolationInfo\x12-\n\x07payload\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x1a\n\rresource_type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12X\n\rresource_tags\x18\x03 \x03(\x0b\x32<.google.cloud.audit.OrgPolicyViolationInfo.ResourceTagsEntryB\x03\xe0\x41\x01\x12>\n\x0eviolation_info\x18\x04 \x03(\x0b\x32!.google.cloud.audit.ViolationInfoB\x03\xe0\x41\x01\x1a\x33\n\x11ResourceTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x97\x02\n\rViolationInfo\x12\x17\n\nconstraint\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rerror_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rchecked_value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\x0bpolicy_type\x18\x04 \x01(\x0e\x32,.google.cloud.audit.ViolationInfo.PolicyTypeB\x03\xe0\x41\x01"m\n\nPolicyType\x12\x1b\n\x17POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x42OOLEAN_CONSTRAINT\x10\x01\x12\x13\n\x0fLIST_CONSTRAINT\x10\x02\x12\x15\n\x11\x43USTOM_CONSTRAINT\x10\x03\x42\x65\n\x16\x63om.google.cloud.auditB\rAuditLogProtoP\x01Z7google.golang.org/genproto/googleapis/cloud/audit;audit\xf8\x01\x01\x62\x06proto3'
41)
42
43_globals = globals()
44_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
45_builder.BuildTopDescriptorsAndMessages(
46 DESCRIPTOR, "google.cloud.audit.audit_log_pb2", _globals
47)
48if _descriptor._USE_C_DESCRIPTORS == False:
49 _globals["DESCRIPTOR"]._options = None
50 _globals[
51 "DESCRIPTOR"
52 ]._serialized_options = b"\n\026com.google.cloud.auditB\rAuditLogProtoP\001Z7google.golang.org/genproto/googleapis/cloud/audit;audit\370\001\001"
53 _globals["_AUDITLOG"].fields_by_name["service_data"]._options = None
54 _globals["_AUDITLOG"].fields_by_name[
55 "service_data"
56 ]._serialized_options = b"\030\001"
57 _globals["_ORGPOLICYVIOLATIONINFO_RESOURCETAGSENTRY"]._options = None
58 _globals["_ORGPOLICYVIOLATIONINFO_RESOURCETAGSENTRY"]._serialized_options = b"8\001"
59 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name["payload"]._options = None
60 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name[
61 "payload"
62 ]._serialized_options = b"\340A\001"
63 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name["resource_type"]._options = None
64 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name[
65 "resource_type"
66 ]._serialized_options = b"\340A\001"
67 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name["resource_tags"]._options = None
68 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name[
69 "resource_tags"
70 ]._serialized_options = b"\340A\001"
71 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name["violation_info"]._options = None
72 _globals["_ORGPOLICYVIOLATIONINFO"].fields_by_name[
73 "violation_info"
74 ]._serialized_options = b"\340A\001"
75 _globals["_VIOLATIONINFO"].fields_by_name["constraint"]._options = None
76 _globals["_VIOLATIONINFO"].fields_by_name[
77 "constraint"
78 ]._serialized_options = b"\340A\001"
79 _globals["_VIOLATIONINFO"].fields_by_name["error_message"]._options = None
80 _globals["_VIOLATIONINFO"].fields_by_name[
81 "error_message"
82 ]._serialized_options = b"\340A\001"
83 _globals["_VIOLATIONINFO"].fields_by_name["checked_value"]._options = None
84 _globals["_VIOLATIONINFO"].fields_by_name[
85 "checked_value"
86 ]._serialized_options = b"\340A\001"
87 _globals["_VIOLATIONINFO"].fields_by_name["policy_type"]._options = None
88 _globals["_VIOLATIONINFO"].fields_by_name[
89 "policy_type"
90 ]._serialized_options = b"\340A\001"
91 _globals["_AUDITLOG"]._serialized_start = 218
92 _globals["_AUDITLOG"]._serialized_end = 928
93 _globals["_AUTHENTICATIONINFO"]._serialized_start = 931
94 _globals["_AUTHENTICATIONINFO"]._serialized_end = 1212
95 _globals["_AUTHORIZATIONINFO"]._serialized_start = 1215
96 _globals["_AUTHORIZATIONINFO"]._serialized_end = 1559
97 _globals["_AUTHORIZATIONINFO_PERMISSIONTYPE"]._serialized_start = 1446
98 _globals["_AUTHORIZATIONINFO_PERMISSIONTYPE"]._serialized_end = 1559
99 _globals["_REQUESTMETADATA"]._serialized_start = 1562
100 _globals["_REQUESTMETADATA"]._serialized_end = 1807
101 _globals["_RESOURCELOCATION"]._serialized_start = 1809
102 _globals["_RESOURCELOCATION"]._serialized_end = 1882
103 _globals["_SERVICEACCOUNTDELEGATIONINFO"]._serialized_start = 1885
104 _globals["_SERVICEACCOUNTDELEGATIONINFO"]._serialized_end = 2336
105 _globals[
106 "_SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL"
107 ]._serialized_start = 2150
108 _globals["_SERVICEACCOUNTDELEGATIONINFO_FIRSTPARTYPRINCIPAL"]._serialized_end = 2247
109 _globals[
110 "_SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL"
111 ]._serialized_start = 2249
112 _globals["_SERVICEACCOUNTDELEGATIONINFO_THIRDPARTYPRINCIPAL"]._serialized_end = 2323
113 _globals["_POLICYVIOLATIONINFO"]._serialized_start = 2338
114 _globals["_POLICYVIOLATIONINFO"]._serialized_end = 2438
115 _globals["_ORGPOLICYVIOLATIONINFO"]._serialized_start = 2441
116 _globals["_ORGPOLICYVIOLATIONINFO"]._serialized_end = 2747
117 _globals["_ORGPOLICYVIOLATIONINFO_RESOURCETAGSENTRY"]._serialized_start = 2696
118 _globals["_ORGPOLICYVIOLATIONINFO_RESOURCETAGSENTRY"]._serialized_end = 2747
119 _globals["_VIOLATIONINFO"]._serialized_start = 2750
120 _globals["_VIOLATIONINFO"]._serialized_end = 3029
121 _globals["_VIOLATIONINFO_POLICYTYPE"]._serialized_start = 2920
122 _globals["_VIOLATIONINFO_POLICYTYPE"]._serialized_end = 3029
123# @@protoc_insertion_point(module_scope)