1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/logging/type/http_request.proto
5 Package ltype is a generated protocol buffer package.
7 It is generated from these files:
8 google/logging/type/http_request.proto
9 google/logging/type/log_severity.proto
11 It has these top-level messages:
16 import proto "github.com/golang/protobuf/proto"
19 import _ "google.golang.org/genproto/googleapis/api/annotations"
20 import google_protobuf1 "github.com/golang/protobuf/ptypes/duration"
22 // Reference imports to suppress errors if they are not otherwise used.
27 // This is a compile-time assertion to ensure that this generated file
28 // is compatible with the proto package it is being compiled against.
29 // A compilation error at this line likely means your copy of the
30 // proto package needs to be updated.
31 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
33 // A common proto for logging HTTP requests. Only contains semantics
34 // defined by the HTTP specification. Product-specific logging
35 // information MUST be defined in a separate message.
36 type HttpRequest struct {
37 // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
38 RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod" json:"request_method,omitempty"`
39 // The scheme (http, https), the host name, the path and the query
40 // portion of the URL that was requested.
41 // Example: `"http://example.com/some/info?color=red"`.
42 RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl" json:"request_url,omitempty"`
43 // The size of the HTTP request message in bytes, including the request
44 // headers and the request body.
45 RequestSize int64 `protobuf:"varint,3,opt,name=request_size,json=requestSize" json:"request_size,omitempty"`
46 // The response code indicating the status of response.
47 // Examples: 200, 404.
48 Status int32 `protobuf:"varint,4,opt,name=status" json:"status,omitempty"`
49 // The size of the HTTP response message sent back to the client, in bytes,
50 // including the response headers and the response body.
51 ResponseSize int64 `protobuf:"varint,5,opt,name=response_size,json=responseSize" json:"response_size,omitempty"`
52 // The user agent sent by the client. Example:
53 // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
54 UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent" json:"user_agent,omitempty"`
55 // The IP address (IPv4 or IPv6) of the client that issued the HTTP
56 // request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
57 RemoteIp string `protobuf:"bytes,7,opt,name=remote_ip,json=remoteIp" json:"remote_ip,omitempty"`
58 // The IP address (IPv4 or IPv6) of the origin server that the request was
60 ServerIp string `protobuf:"bytes,13,opt,name=server_ip,json=serverIp" json:"server_ip,omitempty"`
61 // The referer URL of the request, as defined in
62 // [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
63 Referer string `protobuf:"bytes,8,opt,name=referer" json:"referer,omitempty"`
64 // The request processing latency on the server, from the time the request was
65 // received until the response was sent.
66 Latency *google_protobuf1.Duration `protobuf:"bytes,14,opt,name=latency" json:"latency,omitempty"`
67 // Whether or not a cache lookup was attempted.
68 CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup" json:"cache_lookup,omitempty"`
69 // Whether or not an entity was served from cache
70 // (with or without validation).
71 CacheHit bool `protobuf:"varint,9,opt,name=cache_hit,json=cacheHit" json:"cache_hit,omitempty"`
72 // Whether or not the response was validated with the origin server before
73 // being served from cache. This field is only meaningful if `cache_hit` is
75 CacheValidatedWithOriginServer bool `protobuf:"varint,10,opt,name=cache_validated_with_origin_server,json=cacheValidatedWithOriginServer" json:"cache_validated_with_origin_server,omitempty"`
76 // The number of HTTP response bytes inserted into cache. Set only when a
77 // cache fill was attempted.
78 CacheFillBytes int64 `protobuf:"varint,12,opt,name=cache_fill_bytes,json=cacheFillBytes" json:"cache_fill_bytes,omitempty"`
81 func (m *HttpRequest) Reset() { *m = HttpRequest{} }
82 func (m *HttpRequest) String() string { return proto.CompactTextString(m) }
83 func (*HttpRequest) ProtoMessage() {}
84 func (*HttpRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
86 func (m *HttpRequest) GetRequestMethod() string {
88 return m.RequestMethod
93 func (m *HttpRequest) GetRequestUrl() string {
100 func (m *HttpRequest) GetRequestSize() int64 {
107 func (m *HttpRequest) GetStatus() int32 {
114 func (m *HttpRequest) GetResponseSize() int64 {
116 return m.ResponseSize
121 func (m *HttpRequest) GetUserAgent() string {
128 func (m *HttpRequest) GetRemoteIp() string {
135 func (m *HttpRequest) GetServerIp() string {
142 func (m *HttpRequest) GetReferer() string {
149 func (m *HttpRequest) GetLatency() *google_protobuf1.Duration {
156 func (m *HttpRequest) GetCacheLookup() bool {
163 func (m *HttpRequest) GetCacheHit() bool {
170 func (m *HttpRequest) GetCacheValidatedWithOriginServer() bool {
172 return m.CacheValidatedWithOriginServer
177 func (m *HttpRequest) GetCacheFillBytes() int64 {
179 return m.CacheFillBytes
185 proto.RegisterType((*HttpRequest)(nil), "google.logging.type.HttpRequest")
188 func init() { proto.RegisterFile("google/logging/type/http_request.proto", fileDescriptor0) }
190 var fileDescriptor0 = []byte{
191 // 488 bytes of a gzipped FileDescriptorProto
192 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x5b, 0x6b, 0x14, 0x31,
193 0x14, 0xc7, 0x99, 0x5e, 0xf6, 0x92, 0xbd, 0x50, 0x22, 0x68, 0x5a, 0xb5, 0xae, 0x15, 0x65, 0x9e,
194 0x66, 0xc0, 0xbe, 0x08, 0x3e, 0xb9, 0x8a, 0xb6, 0x52, 0xb1, 0x4c, 0xbd, 0x80, 0x2f, 0x43, 0x76,
195 0xf7, 0x6c, 0x26, 0x98, 0x9d, 0xc4, 0x24, 0x53, 0xd9, 0xbe, 0xfa, 0x11, 0xfc, 0x16, 0x7e, 0x4a,
196 0x99, 0x93, 0x0c, 0x28, 0xf4, 0x65, 0x21, 0xbf, 0xff, 0xef, 0x3f, 0x67, 0xf6, 0x4c, 0xc8, 0x33,
197 0xa1, 0xb5, 0x50, 0x90, 0x2b, 0x2d, 0x84, 0xac, 0x45, 0xee, 0xb7, 0x06, 0xf2, 0xca, 0x7b, 0x53,
198 0x5a, 0xf8, 0xd1, 0x80, 0xf3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