1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/logging/type/http_request.proto
3
4/*
5Package ltype is a generated protocol buffer package.
6
7It is generated from these files:
8	google/logging/type/http_request.proto
9	google/logging/type/log_severity.proto
10
11It has these top-level messages:
12	HttpRequest
13*/
14package ltype
15
16import proto "github.com/golang/protobuf/proto"
17import fmt "fmt"
18import math "math"
19import _ "google.golang.org/genproto/googleapis/api/annotations"
20import google_protobuf1 "github.com/golang/protobuf/ptypes/duration"
21
22// Reference imports to suppress errors if they are not otherwise used.
23var _ = proto.Marshal
24var _ = fmt.Errorf
25var _ = math.Inf
26
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.
31const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
32
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.
36type 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
59	// sent to.
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
74	// True.
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"`
79	// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
80	Protocol string `protobuf:"bytes,15,opt,name=protocol" json:"protocol,omitempty"`
81}
82
83func (m *HttpRequest) Reset()                    { *m = HttpRequest{} }
84func (m *HttpRequest) String() string            { return proto.CompactTextString(m) }
85func (*HttpRequest) ProtoMessage()               {}
86func (*HttpRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
87
88func (m *HttpRequest) GetRequestMethod() string {
89	if m != nil {
90		return m.RequestMethod
91	}
92	return ""
93}
94
95func (m *HttpRequest) GetRequestUrl() string {
96	if m != nil {
97		return m.RequestUrl
98	}
99	return ""
100}
101
102func (m *HttpRequest) GetRequestSize() int64 {
103	if m != nil {
104		return m.RequestSize
105	}
106	return 0
107}
108
109func (m *HttpRequest) GetStatus() int32 {
110	if m != nil {
111		return m.Status
112	}
113	return 0
114}
115
116func (m *HttpRequest) GetResponseSize() int64 {
117	if m != nil {
118		return m.ResponseSize
119	}
120	return 0
121}
122
123func (m *HttpRequest) GetUserAgent() string {
124	if m != nil {
125		return m.UserAgent
126	}
127	return ""
128}
129
130func (m *HttpRequest) GetRemoteIp() string {
131	if m != nil {
132		return m.RemoteIp
133	}
134	return ""
135}
136
137func (m *HttpRequest) GetServerIp() string {
138	if m != nil {
139		return m.ServerIp
140	}
141	return ""
142}
143
144func (m *HttpRequest) GetReferer() string {
145	if m != nil {
146		return m.Referer
147	}
148	return ""
149}
150
151func (m *HttpRequest) GetLatency() *google_protobuf1.Duration {
152	if m != nil {
153		return m.Latency
154	}
155	return nil
156}
157
158func (m *HttpRequest) GetCacheLookup() bool {
159	if m != nil {
160		return m.CacheLookup
161	}
162	return false
163}
164
165func (m *HttpRequest) GetCacheHit() bool {
166	if m != nil {
167		return m.CacheHit
168	}
169	return false
170}
171
172func (m *HttpRequest) GetCacheValidatedWithOriginServer() bool {
173	if m != nil {
174		return m.CacheValidatedWithOriginServer
175	}
176	return false
177}
178
179func (m *HttpRequest) GetCacheFillBytes() int64 {
180	if m != nil {
181		return m.CacheFillBytes
182	}
183	return 0
184}
185
186func (m *HttpRequest) GetProtocol() string {
187	if m != nil {
188		return m.Protocol
189	}
190	return ""
191}
192
193func init() {
194	proto.RegisterType((*HttpRequest)(nil), "google.logging.type.HttpRequest")
195}
196
197func init() { proto.RegisterFile("google/logging/type/http_request.proto", fileDescriptor0) }
198
199var fileDescriptor0 = []byte{
200	// 511 bytes of a gzipped FileDescriptorProto
201	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x5b, 0x6b, 0x14, 0x31,
202	0x18, 0x86, 0x99, 0x1e, 0xf6, 0x90, 0x3d, 0x58, 0x22, 0x68, 0xba, 0x6a, 0x5d, 0x2b, 0xca, 0x5c,
203	0xcd, 0x80, 0xbd, 0x11, 0xbc, 0x72, 0x15, 0x6d, 0xa5, 0x62, 0x99, 0x7a, 0x00, 0x59, 0x18, 0x66,
204	0x77, 0xbf, 0x9d, 0x09, 0x66, 0x27, 0x31, 0xc9, 0x54, 0xb6, 0x7f, 0xc6, 0x7b, 0x6f, 0xfc, 0x1f,
205	0xfe, 0x2a, 0xc9, 0x97, 0x0c, 0x28, 0xf4, 0x66, 0x21, 0xef, 0xf3, 0xbc, 0x49, 0xf6, 0x9b, 0x90,
206	0xa7, 0xa5, 0x94, 0xa5, 0x80, 0x54, 0xc8, 0xb2, 0xe4, 0x75, 0x99, 0xda, 0xad, 0x82, 0xb4, 0xb2,
207	0x56, 0xe5, 0x1a, 0xbe, 0x37, 0x60, 0x6c, 0xa2, 0xb4, 0xb4, 0x92, 0xde, 0xf6, 0x5e, 0x12, 0xbc,
208	0xc4, 0x79, 0x93, 0xfb, 0xa1, 0x5c, 0x28, 0x9e, 0x16, 0x75, 0x2d, 0x6d, 0x61, 0xb9, 0xac, 0x8d,
209	0xaf, 0x4c, 0x8e, 0x02, 0xc5, 0xd5, 0xa2, 0x59, 0xa7, 0xab, 0x46, 0xa3, 0xe0, 0xf9, 0xf1, 0xef,
210	0x3d, 0x32, 0x38, 0xb5, 0x56, 0x65, 0xfe, 0x20, 0xfa, 0x84, 0x8c, 0xc3, 0x99, 0xf9, 0x06, 0x6c,
211	0x25, 0x57, 0x2c,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