Debian Codegraph @

googleapis/logging/type/http_request.pb.go

raw
1 // Copyright 2022 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/logging/type/http_request.proto
20
21 package ltype
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 durationpb "google.golang.org/protobuf/types/known/durationpb"
30 )
31
32 const (
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 // A common proto for logging HTTP requests. Only contains semantics
40 // defined by the HTTP specification. Product-specific logging
41 // information MUST be defined in a separate message.
42 type HttpRequest struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
48 RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
49 // The scheme (http, https), the host name, the path and the query
50 // portion of the URL that was requested.
51 // Example: `"http://example.com/some/info?color=red"`.
52 RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
53 // The size of the HTTP request message in bytes, including the request
54 // headers and the request body.
55 RequestSize int64 `protobuf:"varint,3,opt,name=request_size,json=requestSize,proto3" json:"request_size,omitempty"`
56 // The response code indicating the status of response.
57 // Examples: 200, 404.
58 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
59 // The size of the HTTP response message sent back to the client, in bytes,
60 // including the response headers and the response body.
61 ResponseSize int64 `protobuf:"varint,5,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
62 // The user agent sent by the client. Example:
63 // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
64 // CLR 1.0.3705)"`.
65 UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
66 // The IP address (IPv4 or IPv6) of the client that issued the HTTP
67 // request. This field can include port information. Examples:
68 // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
69 RemoteIp string `protobuf:"bytes,7,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
70 // The IP address (IPv4 or IPv6) of the origin server that the request was
71 // sent to. This field can include port information. Examples:
72 // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
73 ServerIp string `protobuf:"bytes,13,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
74 // The referer URL of the request, as defined in
75 // [HTTP/1.1 Header Field
76 // Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
77 Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"`
78 // The request processing latency on the server, from the time the request was
79 // received until the response was sent.
80 Latency *durationpb.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"`
81 // Whether or not a cache lookup was attempted.
82 CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup,proto3" json:"cache_lookup,omitempty"`
83 // Whether or not an entity was served from cache
84 // (with or without validation).
85 CacheHit bool `protobuf:"varint,9,opt,name=cache_hit,json=cacheHit,proto3" json:"cache_hit,omitempty"`
86 // Whether or not the response was validated with the origin server before
87 // being served from cache. This field is only meaningful if `cache_hit` is
88 // True.
89 CacheValidatedWithOriginServer bool `protobuf:"varint,10,opt,name=cache_validated_with_origin_server,json=cacheValidatedWithOriginServer,proto3" json:"cache_validated_with_origin_server,omitempty"`
90 // The number of HTTP response bytes inserted into cache. Set only when a
91 // cache fill was attempted.
92 CacheFillBytes int64 `protobuf:"varint,12,opt,name=cache_fill_bytes,json=cacheFillBytes,proto3" json:"cache_fill_bytes,omitempty"`
93 // Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
94 Protocol string `protobuf:"bytes,15,opt,name=protocol,proto3" json:"protocol,omitempty"`
95 }
96
97 func (x *HttpRequest) Reset() {
98 *x = HttpRequest{}
99 if protoimpl.UnsafeEnabled {
100 mi := &file_google_logging_type_http_request_proto_msgTypes[0]
101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
102 ms.StoreMessageInfo(mi)
103 }
104 }
105
106 func (x *HttpRequest) String() string {
107 return protoimpl.X.MessageStringOf(x)
108 }
109
110 func (*HttpRequest) ProtoMessage() {}
111
112 func (x *HttpRequest) ProtoReflect() protoreflect.Message {
113 mi := &file_google_logging_type_http_request_proto_msgTypes[0]
114 if protoimpl.UnsafeEnabled && x != nil {
115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
116 if ms.LoadMessageInfo() == nil {
117 ms.StoreMessageInfo(mi)
118 }
119 return ms
120 }
121 return mi.MessageOf(x)
122 }
123
124 // Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.
125 func (*HttpRequest) Descriptor() ([]byte, []int) {
126 return file_google_logging_type_http_request_proto_rawDescGZIP(), []int{0}
127 }
128
129 func (x *HttpRequest) GetRequestMethod() string {
130 if x != nil {
131 return x.RequestMethod
132 }
133 return ""
134 }
135
136 func (x *HttpRequest) GetRequestUrl() string {
137 if x != nil {
138 return x.RequestUrl
139 }
140 return ""
141 }
142
143 func (x *HttpRequest) GetRequestSize() int64 {
144 if x != nil {
145 return x.RequestSize
146 }
147 return 0
148 }
149
150 func (x *HttpRequest) GetStatus() int32 {
151 if x != nil {
152 return x.Status
153 }
154 return 0
155 }
156
157 func (x *HttpRequest) GetResponseSize() int64 {
158 if x != nil {
159 return x.ResponseSize
160 }
161 return 0
162 }
163
164 func (x *HttpRequest) GetUserAgent() string {
165 if x != nil {
166 return x.UserAgent
167 }
168 return ""
169 }
170
171 func (x *HttpRequest) GetRemoteIp() string {
172 if x != nil {
173 return x.RemoteIp
174 }
175 return ""
176 }
177
178 func (x *HttpRequest) GetServerIp() string {
179 if x != nil {
180 return x.ServerIp
181 }
182 return ""
183 }
184
185 func (x *HttpRequest) GetReferer() string {
186 if x != nil {
187 return x.Referer
188 }
189 return ""
190 }
191
192 func (x *HttpRequest) GetLatency() *durationpb.Duration {
193 if x != nil {
194 return x.Latency
195 }
196 return nil
197 }
198
199 func (x *HttpRequest) GetCacheLookup() bool {
200 if x != nil {
201 return x.CacheLookup
202 }
203 return false
204 }
205
206 func (x *HttpRequest) GetCacheHit() bool {
207 if x != nil {
208 return x.CacheHit
209 }
210 return false
211 }
212
213 func (x *HttpRequest) GetCacheValidatedWithOriginServer() bool {
214 if x != nil {
215 return x.CacheValidatedWithOriginServer
216 }
217 return false
218 }
219
220 func (x *HttpRequest) GetCacheFillBytes() int64 {
221 if x != nil {
222 return x.CacheFillBytes
223 }
224 return 0
225 }
226
227 func (x *HttpRequest) GetProtocol() string {
228 if x != nil {
229 return x.Protocol
230 }
231 return ""
232 }
233
234 var File_google_logging_type_http_request_proto protoreflect.FileDescriptor
235
236 var file_google_logging_type_http_request_proto_rawDesc = []byte{
237 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
238 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
239 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
240 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x1e, 0x67,
241 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64,
242 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x04,
243 0x0a, 0x0b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a,
244 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18,
245 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65,
246 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f,
247 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65,
248 0x73, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
249 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x71,
250 0x75, 0x65, 0x73, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
251 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
252 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x69, 0x7a,
253 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
254 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67,
255 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41,
256 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69,
257 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x49,
258 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x70, 0x18, 0x0d,
259 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x70, 0x12, 0x18,
260 0x0a, 0x07, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
261 0x07, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x6c, 0x61, 0x74, 0x65,
262 0x6e, 0x63, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
263 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
264 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x21, 0x0a,
265 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20,
266 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
267 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x69, 0x74, 0x18, 0x09, 0x20,
268 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, 0x48, 0x69, 0x74, 0x12, 0x4a, 0x0a,
269 0x22, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64,
270 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x72,
271 0x76, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x63, 0x61, 0x63, 0x68, 0x65,
272 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x72, 0x69,
273 0x67, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x61, 0x63,
274 0x68, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0c, 0x20,
275 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x42, 0x79,
276 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
277 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42,
278 0xbe, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c,
279 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x10, 0x48, 0x74, 0x74,
280 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
281 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
282 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
283 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x74,
284 0x79, 0x70, 0x65, 0x3b, 0x6c, 0x74, 0x79, 0x70, 0x65, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67,
285 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
286 0x2e, 0x54, 0x79, 0x70, 0x65, 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
287 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5c, 0x54, 0x79, 0x70,
288 0x65, 0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
289 0x64, 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65,
290 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
291 }
292
293 var (
294 file_google_logging_type_http_request_proto_rawDescOnce sync.Once
295 file_google_logging_type_http_request_proto_rawDescData = file_google_logging_type_http_request_proto_rawDesc
296 )
297
298 func file_google_logging_type_http_request_proto_rawDescGZIP() []byte {
299 file_google_logging_type_http_request_proto_rawDescOnce.Do(func() {
300 file_google_logging_type_http_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_logging_type_http_request_proto_rawDescData)
301 })
302 return file_google_logging_type_http_request_proto_rawDescData
303 }
304
305 var file_google_logging_type_http_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
306 var file_google_logging_type_http_request_proto_goTypes = []interface{}{
307 (*HttpRequest)(nil), // 0: google.logging.type.HttpRequest
308 (*durationpb.Duration)(nil), // 1: google.protobuf.Duration
309 }
310 var file_google_logging_type_http_request_proto_depIdxs = []int32{
311 1, // 0: google.logging.type.HttpRequest.latency:type_name -> google.protobuf.Duration
312 1, // [1:1] is the sub-list for method output_type
313 1, // [1:1] is the sub-list for method input_type
314 1, // [1:1] is the sub-list for extension type_name
315 1, // [1:1] is the sub-list for extension extendee
316 0, // [0:1] is the sub-list for field type_name
317 }
318
319 func init() { file_google_logging_type_http_request_proto_init() }
320 func file_google_logging_type_http_request_proto_init() {
321 if File_google_logging_type_http_request_proto != nil {
322 return
323 }
324 if !protoimpl.UnsafeEnabled {
325 file_google_logging_type_http_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
326 switch v := v.(*HttpRequest); i {
327 case 0:
328 return &v.state
329 case 1:
330 return &v.sizeCache
331 case 2:
332 return &v.unknownFields
333 default:
334 return nil
335 }
336 }
337 }
338 type x struct{}
339 out := protoimpl.TypeBuilder{
340 File: protoimpl.DescBuilder{
341 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
342 RawDescriptor: file_google_logging_type_http_request_proto_rawDesc,
343 NumEnums: 0,
344 NumMessages: 1,
345 NumExtensions: 0,
346 NumServices: 0,
347 },
348 GoTypes: file_google_logging_type_http_request_proto_goTypes,
349 DependencyIndexes: file_google_logging_type_http_request_proto_depIdxs,
350 MessageInfos: file_google_logging_type_http_request_proto_msgTypes,
351 }.Build()
352 File_google_logging_type_http_request_proto = out.File
353 file_google_logging_type_http_request_proto_rawDesc = nil
354 file_google_logging_type_http_request_proto_goTypes = nil
355 file_google_logging_type_http_request_proto_depIdxs = nil
356 }