You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

250 lines
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/logging/type/http_request.proto
  3. package ltype // import "google.golang.org/genproto/googleapis/logging/type"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import duration "github.com/golang/protobuf/ptypes/duration"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // A common proto for logging HTTP requests. Only contains semantics
  19. // defined by the HTTP specification. Product-specific logging
  20. // information MUST be defined in a separate message.
  21. type HttpRequest struct {
  22. // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
  23. RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
  24. // The scheme (http, https), the host name, the path and the query
  25. // portion of the URL that was requested.
  26. // Example: `"http://example.com/some/info?color=red"`.
  27. RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
  28. // The size of the HTTP request message in bytes, including the request
  29. // headers and the request body.
  30. RequestSize int64 `protobuf:"varint,3,opt,name=request_size,json=requestSize,proto3" json:"request_size,omitempty"`
  31. // The response code indicating the status of response.
  32. // Examples: 200, 404.
  33. Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
  34. // The size of the HTTP response message sent back to the client, in bytes,
  35. // including the response headers and the response body.
  36. ResponseSize int64 `protobuf:"varint,5,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
  37. // The user agent sent by the client. Example:
  38. // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
  39. // CLR 1.0.3705)"`.
  40. UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
  41. // The IP address (IPv4 or IPv6) of the client that issued the HTTP
  42. // request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
  43. RemoteIp string `protobuf:"bytes,7,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
  44. // The IP address (IPv4 or IPv6) of the origin server that the request was
  45. // sent to.
  46. ServerIp string `protobuf:"bytes,13,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
  47. // The referer URL of the request, as defined in
  48. // [HTTP/1.1 Header Field
  49. // Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
  50. Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"`
  51. // The request processing latency on the server, from the time the request was
  52. // received until the response was sent.
  53. Latency *duration.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"`
  54. // Whether or not a cache lookup was attempted.
  55. CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup,proto3" json:"cache_lookup,omitempty"`
  56. // Whether or not an entity was served from cache
  57. // (with or without validation).
  58. CacheHit bool `protobuf:"varint,9,opt,name=cache_hit,json=cacheHit,proto3" json:"cache_hit,omitempty"`
  59. // Whether or not the response was validated with the origin server before
  60. // being served from cache. This field is only meaningful if `cache_hit` is
  61. // True.
  62. CacheValidatedWithOriginServer bool `protobuf:"varint,10,opt,name=cache_validated_with_origin_server,json=cacheValidatedWithOriginServer,proto3" json:"cache_validated_with_origin_server,omitempty"`
  63. // The number of HTTP response bytes inserted into cache. Set only when a
  64. // cache fill was attempted.
  65. CacheFillBytes int64 `protobuf:"varint,12,opt,name=cache_fill_bytes,json=cacheFillBytes,proto3" json:"cache_fill_bytes,omitempty"`
  66. // Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
  67. Protocol string `protobuf:"bytes,15,opt,name=protocol,proto3" json:"protocol,omitempty"`
  68. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  69. XXX_unrecognized []byte `json:"-"`
  70. XXX_sizecache int32 `json:"-"`
  71. }
  72. func (m *HttpRequest) Reset() { *m = HttpRequest{} }
  73. func (m *HttpRequest) String() string { return proto.CompactTextString(m) }
  74. func (*HttpRequest) ProtoMessage() {}
  75. func (*HttpRequest) Descriptor() ([]byte, []int) {
  76. return fileDescriptor_http_request_8d63df88461f411e, []int{0}
  77. }
  78. func (m *HttpRequest) XXX_Unmarshal(b []byte) error {
  79. return xxx_messageInfo_HttpRequest.Unmarshal(m, b)
  80. }
  81. func (m *HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  82. return xxx_messageInfo_HttpRequest.Marshal(b, m, deterministic)
  83. }
  84. func (dst *HttpRequest) XXX_Merge(src proto.Message) {
  85. xxx_messageInfo_HttpRequest.Merge(dst, src)
  86. }
  87. func (m *HttpRequest) XXX_Size() int {
  88. return xxx_messageInfo_HttpRequest.Size(m)
  89. }
  90. func (m *HttpRequest) XXX_DiscardUnknown() {
  91. xxx_messageInfo_HttpRequest.DiscardUnknown(m)
  92. }
  93. var xxx_messageInfo_HttpRequest proto.InternalMessageInfo
  94. func (m *HttpRequest) GetRequestMethod() string {
  95. if m != nil {
  96. return m.RequestMethod
  97. }
  98. return ""
  99. }
  100. func (m *HttpRequest) GetRequestUrl() string {
  101. if m != nil {
  102. return m.RequestUrl
  103. }
  104. return ""
  105. }
  106. func (m *HttpRequest) GetRequestSize() int64 {
  107. if m != nil {
  108. return m.RequestSize
  109. }
  110. return 0
  111. }
  112. func (m *HttpRequest) GetStatus() int32 {
  113. if m != nil {
  114. return m.Status
  115. }
  116. return 0
  117. }
  118. func (m *HttpRequest) GetResponseSize() int64 {
  119. if m != nil {
  120. return m.ResponseSize
  121. }
  122. return 0
  123. }
  124. func (m *HttpRequest) GetUserAgent() string {
  125. if m != nil {
  126. return m.UserAgent
  127. }
  128. return ""
  129. }
  130. func (m *HttpRequest) GetRemoteIp() string {
  131. if m != nil {
  132. return m.RemoteIp
  133. }
  134. return ""
  135. }
  136. func (m *HttpRequest) GetServerIp() string {
  137. if m != nil {
  138. return m.ServerIp
  139. }
  140. return ""
  141. }
  142. func (m *HttpRequest) GetReferer() string {
  143. if m != nil {
  144. return m.Referer
  145. }
  146. return ""
  147. }
  148. func (m *HttpRequest) GetLatency() *duration.Duration {
  149. if m != nil {
  150. return m.Latency
  151. }
  152. return nil
  153. }
  154. func (m *HttpRequest) GetCacheLookup() bool {
  155. if m != nil {
  156. return m.CacheLookup
  157. }
  158. return false
  159. }
  160. func (m *HttpRequest) GetCacheHit() bool {
  161. if m != nil {
  162. return m.CacheHit
  163. }
  164. return false
  165. }
  166. func (m *HttpRequest) GetCacheValidatedWithOriginServer() bool {
  167. if m != nil {
  168. return m.CacheValidatedWithOriginServer
  169. }
  170. return false
  171. }
  172. func (m *HttpRequest) GetCacheFillBytes() int64 {
  173. if m != nil {
  174. return m.CacheFillBytes
  175. }
  176. return 0
  177. }
  178. func (m *HttpRequest) GetProtocol() string {
  179. if m != nil {
  180. return m.Protocol
  181. }
  182. return ""
  183. }
  184. func init() {
  185. proto.RegisterType((*HttpRequest)(nil), "google.logging.type.HttpRequest")
  186. }
  187. func init() {
  188. proto.RegisterFile("google/logging/type/http_request.proto", fileDescriptor_http_request_8d63df88461f411e)
  189. }
  190. var fileDescriptor_http_request_8d63df88461f411e = []byte{
  191. // 511 bytes of a gzipped FileDescriptorProto
  192. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x5b, 0x6b, 0x14, 0x31,
  193. 0x18, 0x86, 0x99, 0x1e, 0xf6, 0x90, 0x3d, 0x58, 0x22, 0x68, 0xba, 0x6a, 0x5d, 0x2b, 0xca, 0x5c,
  194. 0xcd, 0x80, 0xbd, 0x11, 0xbc, 0x72, 0x15, 0x6d, 0xa5, 0x62, 0x99, 0x7a, 0x00, 0x59, 0x18, 0x66,
  195. 0x77, 0xbf, 0x9d, 0x09, 0x66, 0x27, 0x31, 0xc9, 0x54, 0xb6, 0x7f, 0xc6, 0x7b, 0x6f, 0xfc, 0x1f,
  196. 0xfe, 0x2a, 0xc9, 0x97, 0x0c, 0x28, 0xf4, 0x66, 0x21, 0xef, 0xf3, 0xbc, 0x49, 0xf6, 0x9b, 0x90,
  197. 0xa7, 0xa5, 0x94, 0xa5, 0x80, 0x54, 0xc8, 0xb2, 0xe4, 0x75, 0x99, 0xda, 0xad, 0x82, 0xb4, 0xb2,
  198. 0x56, 0xe5, 0x1a, 0xbe, 0x37, 0x60, 0x6c, 0xa2, 0xb4, 0xb4, 0x92, 0xde, 0xf6, 0x5e, 0x12, 0xbc,
  199. 0xc4, 0x79, 0x93, 0xfb, 0xa1, 0x5c, 0x28, 0x9e, 0x16, 0x75, 0x2d, 0x6d, 0x61, 0xb9, 0xac, 0x8d,
  200. 0xaf, 0x4c, 0x8e, 0x02, 0xc5, 0xd5, 0xa2, 0x59, 0xa7, 0xab, 0x46, 0xa3, 0xe0, 0xf9, 0xf1, 0xef,
  201. 0x3d, 0x32, 0x38, 0xb5, 0x56, 0x65, 0xfe, 0x20, 0xfa, 0x84, 0x8c, 0xc3, 0x99, 0xf9, 0x06, 0x6c,
  202. 0x25, 0x57, 0x2c, 0x9a, 0x46, 0x71, 0x3f, 0x1b, 0x85, 0xf4, 0x3d, 0x86, 0xf4, 0x21, 0x19, 0xb4,
  203. 0x5a, 0xa3, 0x05, 0xdb, 0x41, 0x87, 0x84, 0xe8, 0x93, 0x16, 0xf4, 0x11, 0x19, 0xb6, 0x82, 0xe1,
  204. 0xd7, 0xc0, 0x76, 0xa7, 0x51, 0xbc, 0x9b, 0xb5, 0xa5, 0x4b, 0x7e, 0x0d, 0xf4, 0x0e, 0xe9, 0x18,
  205. 0x5b, 0xd8, 0xc6, 0xb0, 0xbd, 0x69, 0x14, 0xef, 0x67, 0x61, 0x45, 0x1f, 0x93, 0x91, 0x06, 0xa3,
  206. 0x64, 0x6d, 0xc0, 0x77, 0xf7, 0xb1, 0x3b, 0x6c, 0x43, 0x2c, 0x3f, 0x20, 0xa4, 0x31, 0xa0, 0xf3,
  207. 0xa2, 0x84, 0xda, 0xb2, 0x0e, 0x9e, 0xdf, 0x77, 0xc9, 0x4b, 0x17, 0xd0, 0x7b, 0xa4, 0xaf, 0x61,
  208. 0x23, 0x2d, 0xe4, 0x5c, 0xb1, 0x2e, 0xd2, 0x9e, 0x0f, 0xce, 0x94, 0x83, 0x06, 0xf4, 0x15, 0x68,
  209. 0x07, 0x47, 0x1e, 0xfa, 0xe0, 0x4c, 0x51, 0x46, 0xba, 0x1a, 0xd6, 0xa0, 0x41, 0xb3, 0x1e, 0xa2,
  210. 0x76, 0x49, 0x4f, 0x48, 0x57, 0x14, 0x16, 0xea, 0xe5, 0x96, 0x8d, 0xa7, 0x51, 0x3c, 0x78, 0x76,
  211. 0x98, 0x84, 0xef, 0xd1, 0x0e, 0x37, 0x79, 0x1d, 0x86, 0x9b, 0xb5, 0xa6, 0x9b, 0xc3, 0xb2, 0x58,
  212. 0x56, 0x90, 0x0b, 0x29, 0xbf, 0x35, 0x8a, 0x0d, 0xa6, 0x51, 0xdc, 0xcb, 0x06, 0x98, 0x9d, 0x63,
  213. 0xe4, 0xae, 0xe3, 0x95, 0x8a, 0x5b, 0xd6, 0x47, 0xde, 0xc3, 0xe0, 0x94, 0x5b, 0xfa, 0x8e, 0x1c,
  214. 0x7b, 0x78, 0x55, 0x08, 0xbe, 0x2a, 0x2c, 0xac, 0xf2, 0x1f, 0xdc, 0x56, 0xb9, 0xd4, 0xbc, 0xe4,
  215. 0x75, 0xee, 0xaf, 0xcd, 0x08, 0xb6, 0x8e, 0xd0, 0xfc, 0xdc, 0x8a, 0x5f, 0xb8, 0xad, 0x3e, 0xa0,
  216. 0x76,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