1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package context
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 structpb "google.golang.org/protobuf/types/known/structpb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type AuditContext struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 AuditLog []byte `protobuf:"bytes,1,opt,name=audit_log,json=auditLog,proto3" json:"audit_log,omitempty"`
47
48
49
50
51 ScrubbedRequest *structpb.Struct `protobuf:"bytes,2,opt,name=scrubbed_request,json=scrubbedRequest,proto3" json:"scrubbed_request,omitempty"`
52
53
54
55
56 ScrubbedResponse *structpb.Struct `protobuf:"bytes,3,opt,name=scrubbed_response,json=scrubbedResponse,proto3" json:"scrubbed_response,omitempty"`
57
58 ScrubbedResponseItemCount int32 `protobuf:"varint,4,opt,name=scrubbed_response_item_count,json=scrubbedResponseItemCount,proto3" json:"scrubbed_response_item_count,omitempty"`
59
60 TargetResource string `protobuf:"bytes,5,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
61 }
62
63 func (x *AuditContext) Reset() {
64 *x = AuditContext{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_rpc_context_audit_context_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *AuditContext) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*AuditContext) ProtoMessage() {}
77
78 func (x *AuditContext) ProtoReflect() protoreflect.Message {
79 mi := &file_google_rpc_context_audit_context_proto_msgTypes[0]
80 if protoimpl.UnsafeEnabled && x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90
91 func (*AuditContext) Descriptor() ([]byte, []int) {
92 return file_google_rpc_context_audit_context_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *AuditContext) GetAuditLog() []byte {
96 if x != nil {
97 return x.AuditLog
98 }
99 return nil
100 }
101
102 func (x *AuditContext) GetScrubbedRequest() *structpb.Struct {
103 if x != nil {
104 return x.ScrubbedRequest
105 }
106 return nil
107 }
108
109 func (x *AuditContext) GetScrubbedResponse() *structpb.Struct {
110 if x != nil {
111 return x.ScrubbedResponse
112 }
113 return nil
114 }
115
116 func (x *AuditContext) GetScrubbedResponseItemCount() int32 {
117 if x != nil {
118 return x.ScrubbedResponseItemCount
119 }
120 return 0
121 }
122
123 func (x *AuditContext) GetTargetResource() string {
124 if x != nil {
125 return x.TargetResource
126 }
127 return ""
128 }
129
130 var File_google_rpc_context_audit_context_proto protoreflect.FileDescriptor
131
132 var file_google_rpc_context_audit_context_proto_rawDesc = []byte{
133 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e,
134 0x74, 0x65, 0x78, 0x74, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
135 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
136 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x1c, 0x67, 0x6f,
137 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74,
138 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x02, 0x0a, 0x0c, 0x41,
139 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61,
140 0x75, 0x64, 0x69, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
141 0x61, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x42, 0x0a, 0x10, 0x73, 0x63, 0x72, 0x75,
142 0x62, 0x62, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01,
143 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
144 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0f, 0x73, 0x63, 0x72,
145 0x75, 0x62, 0x62, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x11,
146 0x73, 0x63, 0x72, 0x75, 0x62, 0x62, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
147 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
148 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
149 0x52, 0x10, 0x73, 0x63, 0x72, 0x75, 0x62, 0x62, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
150 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x1c, 0x73, 0x63, 0x72, 0x75, 0x62, 0x62, 0x65, 0x64, 0x5f, 0x72,
151 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x63, 0x6f, 0x75,
152 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x73, 0x63, 0x72, 0x75, 0x62, 0x62,
153 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f,
154 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65,
155 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61,
156 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x6b, 0x0a, 0x16,
157 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x63,
158 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x42, 0x11, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e,
159 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x6f, 0x6f,
160 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
161 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
162 0x69, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x3b, 0x63,
163 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
164 0x33,
165 }
166
167 var (
168 file_google_rpc_context_audit_context_proto_rawDescOnce sync.Once
169 file_google_rpc_context_audit_context_proto_rawDescData = file_google_rpc_context_audit_context_proto_rawDesc
170 )
171
172 func file_google_rpc_context_audit_context_proto_rawDescGZIP() []byte {
173 file_google_rpc_context_audit_context_proto_rawDescOnce.Do(func() {
174 file_google_rpc_context_audit_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_context_audit_context_proto_rawDescData)
175 })
176 return file_google_rpc_context_audit_context_proto_rawDescData
177 }
178
179 var file_google_rpc_context_audit_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
180 var file_google_rpc_context_audit_context_proto_goTypes = []interface{}{
181 (*AuditContext)(nil),
182 (*structpb.Struct)(nil),
183 }
184 var file_google_rpc_context_audit_context_proto_depIdxs = []int32{
185 1,
186 1,
187 2,
188 2,
189 2,
190 2,
191 0,
192 }
193
194 func init() { file_google_rpc_context_audit_context_proto_init() }
195 func file_google_rpc_context_audit_context_proto_init() {
196 if File_google_rpc_context_audit_context_proto != nil {
197 return
198 }
199 if !protoimpl.UnsafeEnabled {
200 file_google_rpc_context_audit_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
201 switch v := v.(*AuditContext); i {
202 case 0:
203 return &v.state
204 case 1:
205 return &v.sizeCache
206 case 2:
207 return &v.unknownFields
208 default:
209 return nil
210 }
211 }
212 }
213 type x struct{}
214 out := protoimpl.TypeBuilder{
215 File: protoimpl.DescBuilder{
216 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
217 RawDescriptor: file_google_rpc_context_audit_context_proto_rawDesc,
218 NumEnums: 0,
219 NumMessages: 1,
220 NumExtensions: 0,
221 NumServices: 0,
222 },
223 GoTypes: file_google_rpc_context_audit_context_proto_goTypes,
224 DependencyIndexes: file_google_rpc_context_audit_context_proto_depIdxs,
225 MessageInfos: file_google_rpc_context_audit_context_proto_msgTypes,
226 }.Build()
227 File_google_rpc_context_audit_context_proto = out.File
228 file_google_rpc_context_audit_context_proto_rawDesc = nil
229 file_google_rpc_context_audit_context_proto_goTypes = nil
230 file_google_rpc_context_audit_context_proto_depIdxs = nil
231 }
232
View as plain text