• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/logging/type/http_request.proto
18 
19 package com.google.logging.type;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A common proto for logging HTTP requests. Only contains semantics
26  * defined by the HTTP specification. Product-specific logging
27  * information MUST be defined in a separate message.
28  * </pre>
29  *
30  * Protobuf type {@code google.logging.type.HttpRequest}
31  */
32 public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:google.logging.type.HttpRequest)
35     HttpRequestOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use HttpRequest.newBuilder() to construct.
HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
HttpRequest()42   private HttpRequest() {
43     requestMethod_ = "";
44     requestUrl_ = "";
45     userAgent_ = "";
46     remoteIp_ = "";
47     serverIp_ = "";
48     referer_ = "";
49     protocol_ = "";
50   }
51 
52   @java.lang.Override
53   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)54   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
55     return new HttpRequest();
56   }
57 
58   @java.lang.Override
getUnknownFields()59   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
60     return this.unknownFields;
61   }
62 
getDescriptor()63   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
64     return com.google.logging.type.HttpRequestProto
65         .internal_static_google_logging_type_HttpRequest_descriptor;
66   }
67 
68   @java.lang.Override
69   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()70       internalGetFieldAccessorTable() {
71     return com.google.logging.type.HttpRequestProto
72         .internal_static_google_logging_type_HttpRequest_fieldAccessorTable
73         .ensureFieldAccessorsInitialized(
74             com.google.logging.type.HttpRequest.class,
75             com.google.logging.type.HttpRequest.Builder.class);
76   }
77 
78   public static final int REQUEST_METHOD_FIELD_NUMBER = 1;
79 
80   @SuppressWarnings("serial")
81   private volatile java.lang.Object requestMethod_ = "";
82   /**
83    *
84    *
85    * <pre>
86    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
87    * </pre>
88    *
89    * <code>string request_method = 1;</code>
90    *
91    * @return The requestMethod.
92    */
93   @java.lang.Override
getRequestMethod()94   public java.lang.String getRequestMethod() {
95     java.lang.Object ref = requestMethod_;
96     if (ref instanceof java.lang.String) {
97       return (java.lang.String) ref;
98     } else {
99       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
100       java.lang.String s = bs.toStringUtf8();
101       requestMethod_ = s;
102       return s;
103     }
104   }
105   /**
106    *
107    *
108    * <pre>
109    * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
110    * </pre>
111    *
112    * <code>string request_method = 1;</code>
113    *
114    * @return The bytes for requestMethod.
115    */
116   @java.lang.Override
getRequestMethodBytes()117   public com.google.protobuf.ByteString getRequestMethodBytes() {
118     java.lang.Object ref = requestMethod_;
119     if (ref instanceof java.lang.String) {
120       com.google.protobuf.ByteString b =
121           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
122       requestMethod_ = b;
123       return b;
124     } else {
125       return (com.google.protobuf.ByteString) ref;
126     }
127   }
128 
129   public static final int REQUEST_URL_FIELD_NUMBER = 2;
130 
131   @SuppressWarnings("serial")
132   private volatile java.lang.Object requestUrl_ = "";
133   /**
134    *
135    *
136    * <pre>
137    * The scheme (http, https), the host name, the path and the query
138    * portion of the URL that was requested.
139    * Example: `"http://example.com/some/info?color=red"`.
140    * </pre>
141    *
142    * <code>string request_url = 2;</code>
143    *
144    * @return The requestUrl.
145    */
146   @java.lang.Override
getRequestUrl()147   public java.lang.String getRequestUrl() {
148     java.lang.Object ref = requestUrl_;
149     if (ref instanceof java.lang.String) {
150       return (java.lang.String) ref;
151     } else {
152       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
153       java.lang.String s = bs.toStringUtf8();
154       requestUrl_ = s;
155       return s;
156     }
157   }
158   /**
159    *
160    *
161    * <pre>
162    * The scheme (http, https), the host name, the path and the query
163    * portion of the URL that was requested.
164    * Example: `"http://example.com/some/info?color=red"`.
165    * </pre>
166    *
167    * <code>string request_url = 2;</code>
168    *
169    * @return The bytes for requestUrl.
170    */
171   @java.lang.Override
getRequestUrlBytes()172   public com.google.protobuf.ByteString getRequestUrlBytes() {
173     java.lang.Object ref = requestUrl_;
174     if (ref instanceof java.lang.String) {
175       com.google.protobuf.ByteString b =
176           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
177       requestUrl_ = b;
178       return b;
179     } else {
180       return (com.google.protobuf.ByteString) ref;
181     }
182   }
183 
184   public static final int REQUEST_SIZE_FIELD_NUMBER = 3;
185   private long requestSize_ = 0L;
186   /**
187    *
188    *
189    * <pre>
190    * The size of the HTTP request message in bytes, including the request
191    * headers and the request body.
192    * </pre>
193    *
194    * <code>int64 request_size = 3;</code>
195    *
196    * @return The requestSize.
197    */
198   @java.lang.Override
getRequestSize()199   public long getRequestSize() {
200     return requestSize_;
201   }
202 
203   public static final int STATUS_FIELD_NUMBER = 4;
204   private int status_ = 0;
205   /**
206    *
207    *
208    * <pre>
209    * The response code indicating the status of response.
210    * Examples: 200, 404.
211    * </pre>
212    *
213    * <code>int32 status = 4;</code>
214    *
215    * @return The status.
216    */
217   @java.lang.Override
getStatus()218   public int getStatus() {
219     return status_;
220   }
221 
222   public static final int RESPONSE_SIZE_FIELD_NUMBER = 5;
223   private long responseSize_ = 0L;
224   /**
225    *
226    *
227    * <pre>
228    * The size of the HTTP response message sent back to the client, in bytes,
229    * including the response headers and the response body.
230    * </pre>
231    *
232    * <code>int64 response_size = 5;</code>
233    *
234    * @return The responseSize.
235    */
236   @java.lang.Override
getResponseSize()237   public long getResponseSize() {
238     return responseSize_;
239   }
240 
241   public static final int USER_AGENT_FIELD_NUMBER = 6;
242 
243   @SuppressWarnings("serial")
244   private volatile java.lang.Object userAgent_ = "";
245   /**
246    *
247    *
248    * <pre>
249    * The user agent sent by the client. Example:
250    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
251    * CLR 1.0.3705)"`.
252    * </pre>
253    *
254    * <code>string user_agent = 6;</code>
255    *
256    * @return The userAgent.
257    */
258   @java.lang.Override
getUserAgent()259   public java.lang.String getUserAgent() {
260     java.lang.Object ref = userAgent_;
261     if (ref instanceof java.lang.String) {
262       return (java.lang.String) ref;
263     } else {
264       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
265       java.lang.String s = bs.toStringUtf8();
266       userAgent_ = s;
267       return s;
268     }
269   }
270   /**
271    *
272    *
273    * <pre>
274    * The user agent sent by the client. Example:
275    * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
276    * CLR 1.0.3705)"`.
277    * </pre>
278    *
279    * <code>string user_agent = 6;</code>
280    *
281    * @return The bytes for userAgent.
282    */
283   @java.lang.Override
getUserAgentBytes()284   public com.google.protobuf.ByteString getUserAgentBytes() {
285     java.lang.Object ref = userAgent_;
286     if (ref instanceof java.lang.String) {
287       com.google.protobuf.ByteString b =
288           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
289       userAgent_ = b;
290       return b;
291     } else {
292       return (com.google.protobuf.ByteString) ref;
293     }
294   }
295 
296   public static final int REMOTE_IP_FIELD_NUMBER = 7;
297 
298   @SuppressWarnings("serial")
299   private volatile java.lang.Object remoteIp_ = "";
300   /**
301    *
302    *
303    * <pre>
304    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
305    * request. This field can include port information. Examples:
306    * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
307    * </pre>
308    *
309    * <code>string remote_ip = 7;</code>
310    *
311    * @return The remoteIp.
312    */
313   @java.lang.Override
getRemoteIp()314   public java.lang.String getRemoteIp() {
315     java.lang.Object ref = remoteIp_;
316     if (ref instanceof java.lang.String) {
317       return (java.lang.String) ref;
318     } else {
319       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
320       java.lang.String s = bs.toStringUtf8();
321       remoteIp_ = s;
322       return s;
323     }
324   }
325   /**
326    *
327    *
328    * <pre>
329    * The IP address (IPv4 or IPv6) of the client that issued the HTTP
330    * request. This field can include port information. Examples:
331    * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
332    * </pre>
333    *
334    * <code>string remote_ip = 7;</code>
335    *
336    * @return The bytes for remoteIp.
337    */
338   @java.lang.Override
getRemoteIpBytes()339   public com.google.protobuf.ByteString getRemoteIpBytes() {
340     java.lang.Object ref = remoteIp_;
341     if (ref instanceof java.lang.String) {
342       com.google.protobuf.ByteString b =
343           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
344       remoteIp_ = b;
345       return b;
346     } else {
347       return (com.google.protobuf.ByteString) ref;
348     }
349   }
350 
351   public static final int SERVER_IP_FIELD_NUMBER = 13;
352 
353   @SuppressWarnings("serial")
354   private volatile java.lang.Object serverIp_ = "";
355   /**
356    *
357    *
358    * <pre>
359    * The IP address (IPv4 or IPv6) of the origin server that the request was
360    * sent to. This field can include port information. Examples:
361    * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
362    * </pre>
363    *
364    * <code>string server_ip = 13;</code>
365    *
366    * @return The serverIp.
367    */
368   @java.lang.Override
getServerIp()369   public java.lang.String getServerIp() {
370     java.lang.Object ref = serverIp_;
371     if (ref instanceof java.lang.String) {
372       return (java.lang.String) ref;
373     } else {
374       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
375       java.lang.String s = bs.toStringUtf8();
376       serverIp_ = s;
377       return s;
378     }
379   }
380   /**
381    *
382    *
383    * <pre>
384    * The IP address (IPv4 or IPv6) of the origin server that the request was
385    * sent to. This field can include port information. Examples:
386    * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
387    * </pre>
388    *
389    * <code>string server_ip = 13;</code>
390    *
391    * @return The bytes for serverIp.
392    */
393   @java.lang.Override
getServerIpBytes()394   public com.google.protobuf.ByteString getServerIpBytes() {
395     java.lang.Object ref = serverIp_;
396     if (ref instanceof java.lang.String) {
397       com.google.protobuf.ByteString b =
398           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
399       serverIp_ = b;
400       return b;
401     } else {
402       return (com.google.protobuf.ByteString) ref;
403     }
404   }
405 
406   public static final int REFERER_FIELD_NUMBER = 8;
407 
408   @SuppressWarnings("serial")
409   private volatile java.lang.Object referer_ = "";
410   /**
411    *
412    *
413    * <pre>
414    * The referer URL of the request, as defined in
415    * [HTTP/1.1 Header Field
416    * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
417    * </pre>
418    *
419    * <code>string referer = 8;</code>
420    *
421    * @return The referer.
422    */
423   @java.lang.Override
getReferer()424   public java.lang.String getReferer() {
425     java.lang.Object ref = referer_;
426     if (ref instanceof java.lang.String) {
427       return (java.lang.String) ref;
428     } else {
429       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
430       java.lang.String s = bs.toStringUtf8();
431       referer_ = s;
432       return s;
433     }
434   }
435   /**
436    *
437    *
438    * <pre>
439    * The referer URL of the request, as defined in
440    * [HTTP/1.1 Header Field
441    * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
442    * </pre>
443    *
444    * <code>string referer = 8;</code>
445    *
446    * @return The bytes for referer.
447    */
448   @java.lang.Override
getRefererBytes()449   public com.google.protobuf.ByteString getRefererBytes() {
450     java.lang.Object ref = referer_;
451     if (ref instanceof java.lang.String) {
452       com.google.protobuf.ByteString b =
453           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
454       referer_ = b;
455       return b;
456     } else {
457       return (com.google.protobuf.ByteString) ref;
458     }
459   }
460 
461   public static final int LATENCY_FIELD_NUMBER = 14;
462   private com.google.protobuf.Duration latency_;
463   /**
464    *
465    *
466    * <pre>
467    * The request processing latency on the server, from the time the request was
468    * received until the response was sent.
469    * </pre>
470    *
471    * <code>.google.protobuf.Duration latency = 14;</code>
472    *
473    * @return Whether the latency field is set.
474    */
475   @java.lang.Override
hasLatency()476   public boolean hasLatency() {
477     return latency_ != null;
478   }
479   /**
480    *
481    *
482    * <pre>
483    * The request processing latency on the server, from the time the request was
484    * received until the response was sent.
485    * </pre>
486    *
487    * <code>.google.protobuf.Duration latency = 14;</code>
488    *
489    * @return The latency.
490    */
491   @java.lang.Override
getLatency()492   public com.google.protobuf.Duration getLatency() {
493     return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
494   }
495   /**
496    *
497    *
498    * <pre>
499    * The request processing latency on the server, from the time the request was
500    * received until the response was sent.
501    * </pre>
502    *
503    * <code>.google.protobuf.Duration latency = 14;</code>
504    */
505   @java.lang.Override
getLatencyOrBuilder()506   public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
507     return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
508   }
509 
510   public static final int CACHE_LOOKUP_FIELD_NUMBER = 11;
511   private boolean cacheLookup_ = false;
512   /**
513    *
514    *
515    * <pre>
516    * Whether or not a cache lookup was attempted.
517    * </pre>
518    *
519    * <code>bool cache_lookup = 11;</code>
520    *
521    * @return The cacheLookup.
522    */
523   @java.lang.Override
getCacheLookup()524   public boolean getCacheLookup() {
525     return cacheLookup_;
526   }
527 
528   public static final int CACHE_HIT_FIELD_NUMBER = 9;
529   private boolean cacheHit_ = false;
530   /**
531    *
532    *
533    * <pre>
534    * Whether or not an entity was served from cache
535    * (with or without validation).
536    * </pre>
537    *
538    * <code>bool cache_hit = 9;</code>
539    *
540    * @return The cacheHit.
541    */
542   @java.lang.Override
getCacheHit()543   public boolean getCacheHit() {
544     return cacheHit_;
545   }
546 
547   public static final int CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER = 10;
548   private boolean cacheValidatedWithOriginServer_ = false;
549   /**
550    *
551    *
552    * <pre>
553    * Whether or not the response was validated with the origin server before
554    * being served from cache. This field is only meaningful if `cache_hit` is
555    * True.
556    * </pre>
557    *
558    * <code>bool cache_validated_with_origin_server = 10;</code>
559    *
560    * @return The cacheValidatedWithOriginServer.
561    */
562   @java.lang.Override
getCacheValidatedWithOriginServer()563   public boolean getCacheValidatedWithOriginServer() {
564     return cacheValidatedWithOriginServer_;
565   }
566 
567   public static final int CACHE_FILL_BYTES_FIELD_NUMBER = 12;
568   private long cacheFillBytes_ = 0L;
569   /**
570    *
571    *
572    * <pre>
573    * The number of HTTP response bytes inserted into cache. Set only when a
574    * cache fill was attempted.
575    * </pre>
576    *
577    * <code>int64 cache_fill_bytes = 12;</code>
578    *
579    * @return The cacheFillBytes.
580    */
581   @java.lang.Override
getCacheFillBytes()582   public long getCacheFillBytes() {
583     return cacheFillBytes_;
584   }
585 
586   public static final int PROTOCOL_FIELD_NUMBER = 15;
587 
588   @SuppressWarnings("serial")
589   private volatile java.lang.Object protocol_ = "";
590   /**
591    *
592    *
593    * <pre>
594    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
595    * </pre>
596    *
597    * <code>string protocol = 15;</code>
598    *
599    * @return The protocol.
600    */
601   @java.lang.Override
getProtocol()602   public java.lang.String getProtocol() {
603     java.lang.Object ref = protocol_;
604     if (ref instanceof java.lang.String) {
605       return (java.lang.String) ref;
606     } else {
607       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
608       java.lang.String s = bs.toStringUtf8();
609       protocol_ = s;
610       return s;
611     }
612   }
613   /**
614    *
615    *
616    * <pre>
617    * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
618    * </pre>
619    *
620    * <code>string protocol = 15;</code>
621    *
622    * @return The bytes for protocol.
623    */
624   @java.lang.Override
getProtocolBytes()625   public com.google.protobuf.ByteString getProtocolBytes() {
626     java.lang.Object ref = protocol_;
627     if (ref instanceof java.lang.String) {
628       com.google.protobuf.ByteString b =
629           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
630       protocol_ = b;
631       return b;
632     } else {
633       return (com.google.protobuf.ByteString) ref;
634     }
635   }
636 
637   private byte memoizedIsInitialized = -1;
638 
639   @java.lang.Override
isInitialized()640   public final boolean isInitialized() {
641     byte isInitialized = memoizedIsInitialized;
642     if (isInitialized == 1) return true;
643     if (isInitialized == 0) return false;
644 
645     memoizedIsInitialized = 1;
646     return true;
647   }
648 
649   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)650   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
651     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestMethod_)) {
652       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestMethod_);
653     }
654     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestUrl_)) {
655       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestUrl_);
656     }
657     if (requestSize_ != 0L) {
658       output.writeInt64(3, requestSize_);
659     }
660     if (status_ != 0) {
661       output.writeInt32(4, status_);
662     }
663     if (responseSize_ != 0L) {
664       output.writeInt64(5, responseSize_);
665     }
666     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) {
667       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, userAgent_);
668     }
669     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteIp_)) {
670       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, remoteIp_);
671     }
672     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referer_)) {
673       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, referer_);
674     }
675     if (cacheHit_ != false) {
676       output.writeBool(9, cacheHit_);
677     }
678     if (cacheValidatedWithOriginServer_ != false) {
679       output.writeBool(10, cacheValidatedWithOriginServer_);
680     }
681     if (cacheLookup_ != false) {
682       output.writeBool(11, cacheLookup_);
683     }
684     if (cacheFillBytes_ != 0L) {
685       output.writeInt64(12, cacheFillBytes_);
686     }
687     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverIp_)) {
688       com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serverIp_);
689     }
690     if (latency_ != null) {
691       output.writeMessage(14, getLatency());
692     }
693     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
694       com.google.protobuf.GeneratedMessageV3.writeString(output, 15, protocol_);
695     }
696     getUnknownFields().writeTo(output);
697   }
698 
699   @java.lang.Override
getSerializedSize()700   public int getSerializedSize() {
701     int size = memoizedSize;
702     if (size != -1) return size;
703 
704     size = 0;
705     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestMethod_)) {
706       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestMethod_);
707     }
708     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestUrl_)) {
709       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestUrl_);
710     }
711     if (requestSize_ != 0L) {
712       size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, requestSize_);
713     }
714     if (status_ != 0) {
715       size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, status_);
716     }
717     if (responseSize_ != 0L) {
718       size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, responseSize_);
719     }
720     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) {
721       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, userAgent_);
722     }
723     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteIp_)) {
724       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, remoteIp_);
725     }
726     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referer_)) {
727       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, referer_);
728     }
729     if (cacheHit_ != false) {
730       size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, cacheHit_);
731     }
732     if (cacheValidatedWithOriginServer_ != false) {
733       size +=
734           com.google.protobuf.CodedOutputStream.computeBoolSize(
735               10, cacheValidatedWithOriginServer_);
736     }
737     if (cacheLookup_ != false) {
738       size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, cacheLookup_);
739     }
740     if (cacheFillBytes_ != 0L) {
741       size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, cacheFillBytes_);
742     }
743     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverIp_)) {
744       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serverIp_);
745     }
746     if (latency_ != null) {
747       size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLatency());
748     }
749     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
750       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, protocol_);
751     }
752     size += getUnknownFields().getSerializedSize();
753     memoizedSize = size;
754     return size;
755   }
756 
757   @java.lang.Override
equals(final java.lang.Object obj)758   public boolean equals(final java.lang.Object obj) {
759     if (obj == this) {
760       return true;
761     }
762     if (!(obj instanceof com.google.logging.type.HttpRequest)) {
763       return super.equals(obj);
764     }
765     com.google.logging.type.HttpRequest other = (com.google.logging.type.HttpRequest) obj;
766 
767     if (!getRequestMethod().equals(other.getRequestMethod())) return false;
768     if (!getRequestUrl().equals(other.getRequestUrl())) return false;
769     if (getRequestSize() != other.getRequestSize()) return false;
770     if (getStatus() != other.getStatus()) return false;
771     if (getResponseSize() != other.getResponseSize()) return false;
772     if (!getUserAgent().equals(other.getUserAgent())) return false;
773     if (!getRemoteIp().equals(other.getRemoteIp())) return false;
774     if (!getServerIp().equals(other.getServerIp())) return false;
775     if (!getReferer().equals(other.getReferer())) return false;
776     if (hasLatency() != other.hasLatency()) return false;
777     if (hasLatency()) {
778       if (!getLatency().equals(other.getLatency())) return false;
779     }
780     if (getCacheLookup() != other.getCacheLookup()) return false;
781     if (getCacheHit() != other.getCacheHit()) return false;
782     if (getCacheValidatedWithOriginServer() != other.getCacheValidatedWithOriginServer())
783       return false;
784     if (getCacheFillBytes() != other.getCacheFillBytes()) return false;
785     if (!getProtocol().equals(other.getProtocol())) return false;
786     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
787     return true;
788   }
789 
790   @java.lang.Override
hashCode()791   public int hashCode() {
792     if (memoizedHashCode != 0) {
793       return memoizedHashCode;
794     }
795     int hash = 41;
796     hash = (19 * hash) + getDescriptor().hashCode();
797     hash = (37 * hash) + REQUEST_METHOD_FIELD_NUMBER;
798     hash = (53 * hash) + getRequestMethod().hashCode();
799     hash = (37 * hash) + REQUEST_URL_FIELD_NUMBER;
800     hash = (53 * hash) + getRequestUrl().hashCode();
801     hash = (37 * hash) + REQUEST_SIZE_FIELD_NUMBER;
802     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestSize());
803     hash = (37 * hash) + STATUS_FIELD_NUMBER;
804     hash = (53 * hash) + getStatus();
805     hash = (37 * hash) + RESPONSE_SIZE_FIELD_NUMBER;
806     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResponseSize());
807     hash = (37 * hash) + USER_AGENT_FIELD_NUMBER;
808     hash = (53 * hash) + getUserAgent().hashCode();
809     hash = (37 * hash) + REMOTE_IP_FIELD_NUMBER;
810     hash = (53 * hash) + getRemoteIp().hashCode();
811     hash = (37 * hash) + SERVER_IP_FIELD_NUMBER;
812     hash = (53 * hash) + getServerIp().hashCode();
813     hash = (37 * hash) + REFERER_FIELD_NUMBER;
814     hash = (53 * hash) + getReferer().hashCode();
815     if (hasLatency()) {
816       hash = (37 * hash) + LATENCY_FIELD_NUMBER;
817       hash = (53 * hash) + getLatency().hashCode();
818     }
819     hash = (37 * hash) + CACHE_LOOKUP_FIELD_NUMBER;
820     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheLookup());
821     hash = (37 * hash) + CACHE_HIT_FIELD_NUMBER;
822     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheHit());
823     hash = (37 * hash) + CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER;
824     hash =
825         (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheValidatedWithOriginServer());
826     hash = (37 * hash) + CACHE_FILL_BYTES_FIELD_NUMBER;
827     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCacheFillBytes());
828     hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
829     hash = (53 * hash) + getProtocol().hashCode();
830     hash = (29 * hash) + getUnknownFields().hashCode();
831     memoizedHashCode = hash;
832     return hash;
833   }
834 
parseFrom(java.nio.ByteBuffer data)835   public static com.google.logging.type.HttpRequest parseFrom(java.nio.ByteBuffer data)
836       throws com.google.protobuf.InvalidProtocolBufferException {
837     return PARSER.parseFrom(data);
838   }
839 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)840   public static com.google.logging.type.HttpRequest parseFrom(
841       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
842       throws com.google.protobuf.InvalidProtocolBufferException {
843     return PARSER.parseFrom(data, extensionRegistry);
844   }
845 
parseFrom(com.google.protobuf.ByteString data)846   public static com.google.logging.type.HttpRequest parseFrom(com.google.protobuf.ByteString data)
847       throws com.google.protobuf.InvalidProtocolBufferException {
848     return PARSER.parseFrom(data);
849   }
850 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)851   public static com.google.logging.type.HttpRequest parseFrom(
852       com.google.protobuf.ByteString data,
853       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
854       throws com.google.protobuf.InvalidProtocolBufferException {
855     return PARSER.parseFrom(data, extensionRegistry);
856   }
857 
parseFrom(byte[] data)858   public static com.google.logging.type.HttpRequest parseFrom(byte[] data)
859       throws com.google.protobuf.InvalidProtocolBufferException {
860     return PARSER.parseFrom(data);
861   }
862 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)863   public static com.google.logging.type.HttpRequest parseFrom(
864       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
865       throws com.google.protobuf.InvalidProtocolBufferException {
866     return PARSER.parseFrom(data, extensionRegistry);
867   }
868 
parseFrom(java.io.InputStream input)869   public static com.google.logging.type.HttpRequest parseFrom(java.io.InputStream input)
870       throws java.io.IOException {
871     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
872   }
873 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)874   public static com.google.logging.type.HttpRequest parseFrom(
875       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
876       throws java.io.IOException {
877     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
878         PARSER, input, extensionRegistry);
879   }
880 
parseDelimitedFrom(java.io.InputStream input)881   public static com.google.logging.type.HttpRequest parseDelimitedFrom(java.io.InputStream input)
882       throws java.io.IOException {
883     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
884   }
885 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)886   public static com.google.logging.type.HttpRequest parseDelimitedFrom(
887       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
888       throws java.io.IOException {
889     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
890         PARSER, input, extensionRegistry);
891   }
892 
parseFrom( com.google.protobuf.CodedInputStream input)893   public static com.google.logging.type.HttpRequest parseFrom(
894       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
895     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
896   }
897 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)898   public static com.google.logging.type.HttpRequest parseFrom(
899       com.google.protobuf.CodedInputStream input,
900       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
901       throws java.io.IOException {
902     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
903         PARSER, input, extensionRegistry);
904   }
905 
906   @java.lang.Override
newBuilderForType()907   public Builder newBuilderForType() {
908     return newBuilder();
909   }
910 
newBuilder()911   public static Builder newBuilder() {
912     return DEFAULT_INSTANCE.toBuilder();
913   }
914 
newBuilder(com.google.logging.type.HttpRequest prototype)915   public static Builder newBuilder(com.google.logging.type.HttpRequest prototype) {
916     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
917   }
918 
919   @java.lang.Override
toBuilder()920   public Builder toBuilder() {
921     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
922   }
923 
924   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)925   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
926     Builder builder = new Builder(parent);
927     return builder;
928   }
929   /**
930    *
931    *
932    * <pre>
933    * A common proto for logging HTTP requests. Only contains semantics
934    * defined by the HTTP specification. Product-specific logging
935    * information MUST be defined in a separate message.
936    * </pre>
937    *
938    * Protobuf type {@code google.logging.type.HttpRequest}
939    */
940   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
941       implements
942       // @@protoc_insertion_point(builder_implements:google.logging.type.HttpRequest)
943       com.google.logging.type.HttpRequestOrBuilder {
getDescriptor()944     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
945       return com.google.logging.type.HttpRequestProto
946           .internal_static_google_logging_type_HttpRequest_descriptor;
947     }
948 
949     @java.lang.Override
950     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()951         internalGetFieldAccessorTable() {
952       return com.google.logging.type.HttpRequestProto
953           .internal_static_google_logging_type_HttpRequest_fieldAccessorTable
954           .ensureFieldAccessorsInitialized(
955               com.google.logging.type.HttpRequest.class,
956               com.google.logging.type.HttpRequest.Builder.class);
957     }
958 
959     // Construct using com.google.logging.type.HttpRequest.newBuilder()
Builder()960     private Builder() {}
961 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)962     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
963       super(parent);
964     }
965 
966     @java.lang.Override
clear()967     public Builder clear() {
968       super.clear();
969       bitField0_ = 0;
970       requestMethod_ = "";
971       requestUrl_ = "";
972       requestSize_ = 0L;
973       status_ = 0;
974       responseSize_ = 0L;
975       userAgent_ = "";
976       remoteIp_ = "";
977       serverIp_ = "";
978       referer_ = "";
979       latency_ = null;
980       if (latencyBuilder_ != null) {
981         latencyBuilder_.dispose();
982         latencyBuilder_ = null;
983       }
984       cacheLookup_ = false;
985       cacheHit_ = false;
986       cacheValidatedWithOriginServer_ = false;
987       cacheFillBytes_ = 0L;
988       protocol_ = "";
989       return this;
990     }
991 
992     @java.lang.Override
getDescriptorForType()993     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
994       return com.google.logging.type.HttpRequestProto
995           .internal_static_google_logging_type_HttpRequest_descriptor;
996     }
997 
998     @java.lang.Override
getDefaultInstanceForType()999     public com.google.logging.type.HttpRequest getDefaultInstanceForType() {
1000       return com.google.logging.type.HttpRequest.getDefaultInstance();
1001     }
1002 
1003     @java.lang.Override
build()1004     public com.google.logging.type.HttpRequest build() {
1005       com.google.logging.type.HttpRequest result = buildPartial();
1006       if (!result.isInitialized()) {
1007         throw newUninitializedMessageException(result);
1008       }
1009       return result;
1010     }
1011 
1012     @java.lang.Override
buildPartial()1013     public com.google.logging.type.HttpRequest buildPartial() {
1014       com.google.logging.type.HttpRequest result = new com.google.logging.type.HttpRequest(this);
1015       if (bitField0_ != 0) {
1016         buildPartial0(result);
1017       }
1018       onBuilt();
1019       return result;
1020     }
1021 
buildPartial0(com.google.logging.type.HttpRequest result)1022     private void buildPartial0(com.google.logging.type.HttpRequest result) {
1023       int from_bitField0_ = bitField0_;
1024       if (((from_bitField0_ & 0x00000001) != 0)) {
1025         result.requestMethod_ = requestMethod_;
1026       }
1027       if (((from_bitField0_ & 0x00000002) != 0)) {
1028         result.requestUrl_ = requestUrl_;
1029       }
1030       if (((from_bitField0_ & 0x00000004) != 0)) {
1031         result.requestSize_ = requestSize_;
1032       }
1033       if (((from_bitField0_ & 0x00000008) != 0)) {
1034         result.status_ = status_;
1035       }
1036       if (((from_bitField0_ & 0x00000010) != 0)) {
1037         result.responseSize_ = responseSize_;
1038       }
1039       if (((from_bitField0_ & 0x00000020) != 0)) {
1040         result.userAgent_ = userAgent_;
1041       }
1042       if (((from_bitField0_ & 0x00000040) != 0)) {
1043         result.remoteIp_ = remoteIp_;
1044       }
1045       if (((from_bitField0_ & 0x00000080) != 0)) {
1046         result.serverIp_ = serverIp_;
1047       }
1048       if (((from_bitField0_ & 0x00000100) != 0)) {
1049         result.referer_ = referer_;
1050       }
1051       if (((from_bitField0_ & 0x00000200) != 0)) {
1052         result.latency_ = latencyBuilder_ == null ? latency_ : latencyBuilder_.build();
1053       }
1054       if (((from_bitField0_ & 0x00000400) != 0)) {
1055         result.cacheLookup_ = cacheLookup_;
1056       }
1057       if (((from_bitField0_ & 0x00000800) != 0)) {
1058         result.cacheHit_ = cacheHit_;
1059       }
1060       if (((from_bitField0_ & 0x00001000) != 0)) {
1061         result.cacheValidatedWithOriginServer_ = cacheValidatedWithOriginServer_;
1062       }
1063       if (((from_bitField0_ & 0x00002000) != 0)) {
1064         result.cacheFillBytes_ = cacheFillBytes_;
1065       }
1066       if (((from_bitField0_ & 0x00004000) != 0)) {
1067         result.protocol_ = protocol_;
1068       }
1069     }
1070 
1071     @java.lang.Override
clone()1072     public Builder clone() {
1073       return super.clone();
1074     }
1075 
1076     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1077     public Builder setField(
1078         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1079       return super.setField(field, value);
1080     }
1081 
1082     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1083     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1084       return super.clearField(field);
1085     }
1086 
1087     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1088     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1089       return super.clearOneof(oneof);
1090     }
1091 
1092     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1093     public Builder setRepeatedField(
1094         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1095       return super.setRepeatedField(field, index, value);
1096     }
1097 
1098     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1099     public Builder addRepeatedField(
1100         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1101       return super.addRepeatedField(field, value);
1102     }
1103 
1104     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1105     public Builder mergeFrom(com.google.protobuf.Message other) {
1106       if (other instanceof com.google.logging.type.HttpRequest) {
1107         return mergeFrom((com.google.logging.type.HttpRequest) other);
1108       } else {
1109         super.mergeFrom(other);
1110         return this;
1111       }
1112     }
1113 
mergeFrom(com.google.logging.type.HttpRequest other)1114     public Builder mergeFrom(com.google.logging.type.HttpRequest other) {
1115       if (other == com.google.logging.type.HttpRequest.getDefaultInstance()) return this;
1116       if (!other.getRequestMethod().isEmpty()) {
1117         requestMethod_ = other.requestMethod_;
1118         bitField0_ |= 0x00000001;
1119         onChanged();
1120       }
1121       if (!other.getRequestUrl().isEmpty()) {
1122         requestUrl_ = other.requestUrl_;
1123         bitField0_ |= 0x00000002;
1124         onChanged();
1125       }
1126       if (other.getRequestSize() != 0L) {
1127         setRequestSize(other.getRequestSize());
1128       }
1129       if (other.getStatus() != 0) {
1130         setStatus(other.getStatus());
1131       }
1132       if (other.getResponseSize() != 0L) {
1133         setResponseSize(other.getResponseSize());
1134       }
1135       if (!other.getUserAgent().isEmpty()) {
1136         userAgent_ = other.userAgent_;
1137         bitField0_ |= 0x00000020;
1138         onChanged();
1139       }
1140       if (!other.getRemoteIp().isEmpty()) {
1141         remoteIp_ = other.remoteIp_;
1142         bitField0_ |= 0x00000040;
1143         onChanged();
1144       }
1145       if (!other.getServerIp().isEmpty()) {
1146         serverIp_ = other.serverIp_;
1147         bitField0_ |= 0x00000080;
1148         onChanged();
1149       }
1150       if (!other.getReferer().isEmpty()) {
1151         referer_ = other.referer_;
1152         bitField0_ |= 0x00000100;
1153         onChanged();
1154       }
1155       if (other.hasLatency()) {
1156         mergeLatency(other.getLatency());
1157       }
1158       if (other.getCacheLookup() != false) {
1159         setCacheLookup(other.getCacheLookup());
1160       }
1161       if (other.getCacheHit() != false) {
1162         setCacheHit(other.getCacheHit());
1163       }
1164       if (other.getCacheValidatedWithOriginServer() != false) {
1165         setCacheValidatedWithOriginServer(other.getCacheValidatedWithOriginServer());
1166       }
1167       if (other.getCacheFillBytes() != 0L) {
1168         setCacheFillBytes(other.getCacheFillBytes());
1169       }
1170       if (!other.getProtocol().isEmpty()) {
1171         protocol_ = other.protocol_;
1172         bitField0_ |= 0x00004000;
1173         onChanged();
1174       }
1175       this.mergeUnknownFields(other.getUnknownFields());
1176       onChanged();
1177       return this;
1178     }
1179 
1180     @java.lang.Override
isInitialized()1181     public final boolean isInitialized() {
1182       return true;
1183     }
1184 
1185     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1186     public Builder mergeFrom(
1187         com.google.protobuf.CodedInputStream input,
1188         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1189         throws java.io.IOException {
1190       if (extensionRegistry == null) {
1191         throw new java.lang.NullPointerException();
1192       }
1193       try {
1194         boolean done = false;
1195         while (!done) {
1196           int tag = input.readTag();
1197           switch (tag) {
1198             case 0:
1199               done = true;
1200               break;
1201             case 10:
1202               {
1203                 requestMethod_ = input.readStringRequireUtf8();
1204                 bitField0_ |= 0x00000001;
1205                 break;
1206               } // case 10
1207             case 18:
1208               {
1209                 requestUrl_ = input.readStringRequireUtf8();
1210                 bitField0_ |= 0x00000002;
1211                 break;
1212               } // case 18
1213             case 24:
1214               {
1215                 requestSize_ = input.readInt64();
1216                 bitField0_ |= 0x00000004;
1217                 break;
1218               } // case 24
1219             case 32:
1220               {
1221                 status_ = input.readInt32();
1222                 bitField0_ |= 0x00000008;
1223                 break;
1224               } // case 32
1225             case 40:
1226               {
1227                 responseSize_ = input.readInt64();
1228                 bitField0_ |= 0x00000010;
1229                 break;
1230               } // case 40
1231             case 50:
1232               {
1233                 userAgent_ = input.readStringRequireUtf8();
1234                 bitField0_ |= 0x00000020;
1235                 break;
1236               } // case 50
1237             case 58:
1238               {
1239                 remoteIp_ = input.readStringRequireUtf8();
1240                 bitField0_ |= 0x00000040;
1241                 break;
1242               } // case 58
1243             case 66:
1244               {
1245                 referer_ = input.readStringRequireUtf8();
1246                 bitField0_ |= 0x00000100;
1247                 break;
1248               } // case 66
1249             case 72:
1250               {
1251                 cacheHit_ = input.readBool();
1252                 bitField0_ |= 0x00000800;
1253                 break;
1254               } // case 72
1255             case 80:
1256               {
1257                 cacheValidatedWithOriginServer_ = input.readBool();
1258                 bitField0_ |= 0x00001000;
1259                 break;
1260               } // case 80
1261             case 88:
1262               {
1263                 cacheLookup_ = input.readBool();
1264                 bitField0_ |= 0x00000400;
1265                 break;
1266               } // case 88
1267             case 96:
1268               {
1269                 cacheFillBytes_ = input.readInt64();
1270                 bitField0_ |= 0x00002000;
1271                 break;
1272               } // case 96
1273             case 106:
1274               {
1275                 serverIp_ = input.readStringRequireUtf8();
1276                 bitField0_ |= 0x00000080;
1277                 break;
1278               } // case 106
1279             case 114:
1280               {
1281                 input.readMessage(getLatencyFieldBuilder().getBuilder(), extensionRegistry);
1282                 bitField0_ |= 0x00000200;
1283                 break;
1284               } // case 114
1285             case 122:
1286               {
1287                 protocol_ = input.readStringRequireUtf8();
1288                 bitField0_ |= 0x00004000;
1289                 break;
1290               } // case 122
1291             default:
1292               {
1293                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1294                   done = true; // was an endgroup tag
1295                 }
1296                 break;
1297               } // default:
1298           } // switch (tag)
1299         } // while (!done)
1300       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1301         throw e.unwrapIOException();
1302       } finally {
1303         onChanged();
1304       } // finally
1305       return this;
1306     }
1307 
1308     private int bitField0_;
1309 
1310     private java.lang.Object requestMethod_ = "";
1311     /**
1312      *
1313      *
1314      * <pre>
1315      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1316      * </pre>
1317      *
1318      * <code>string request_method = 1;</code>
1319      *
1320      * @return The requestMethod.
1321      */
getRequestMethod()1322     public java.lang.String getRequestMethod() {
1323       java.lang.Object ref = requestMethod_;
1324       if (!(ref instanceof java.lang.String)) {
1325         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1326         java.lang.String s = bs.toStringUtf8();
1327         requestMethod_ = s;
1328         return s;
1329       } else {
1330         return (java.lang.String) ref;
1331       }
1332     }
1333     /**
1334      *
1335      *
1336      * <pre>
1337      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1338      * </pre>
1339      *
1340      * <code>string request_method = 1;</code>
1341      *
1342      * @return The bytes for requestMethod.
1343      */
getRequestMethodBytes()1344     public com.google.protobuf.ByteString getRequestMethodBytes() {
1345       java.lang.Object ref = requestMethod_;
1346       if (ref instanceof String) {
1347         com.google.protobuf.ByteString b =
1348             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1349         requestMethod_ = b;
1350         return b;
1351       } else {
1352         return (com.google.protobuf.ByteString) ref;
1353       }
1354     }
1355     /**
1356      *
1357      *
1358      * <pre>
1359      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1360      * </pre>
1361      *
1362      * <code>string request_method = 1;</code>
1363      *
1364      * @param value The requestMethod to set.
1365      * @return This builder for chaining.
1366      */
setRequestMethod(java.lang.String value)1367     public Builder setRequestMethod(java.lang.String value) {
1368       if (value == null) {
1369         throw new NullPointerException();
1370       }
1371       requestMethod_ = value;
1372       bitField0_ |= 0x00000001;
1373       onChanged();
1374       return this;
1375     }
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1381      * </pre>
1382      *
1383      * <code>string request_method = 1;</code>
1384      *
1385      * @return This builder for chaining.
1386      */
clearRequestMethod()1387     public Builder clearRequestMethod() {
1388       requestMethod_ = getDefaultInstance().getRequestMethod();
1389       bitField0_ = (bitField0_ & ~0x00000001);
1390       onChanged();
1391       return this;
1392     }
1393     /**
1394      *
1395      *
1396      * <pre>
1397      * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1398      * </pre>
1399      *
1400      * <code>string request_method = 1;</code>
1401      *
1402      * @param value The bytes for requestMethod to set.
1403      * @return This builder for chaining.
1404      */
setRequestMethodBytes(com.google.protobuf.ByteString value)1405     public Builder setRequestMethodBytes(com.google.protobuf.ByteString value) {
1406       if (value == null) {
1407         throw new NullPointerException();
1408       }
1409       checkByteStringIsUtf8(value);
1410       requestMethod_ = value;
1411       bitField0_ |= 0x00000001;
1412       onChanged();
1413       return this;
1414     }
1415 
1416     private java.lang.Object requestUrl_ = "";
1417     /**
1418      *
1419      *
1420      * <pre>
1421      * The scheme (http, https), the host name, the path and the query
1422      * portion of the URL that was requested.
1423      * Example: `"http://example.com/some/info?color=red"`.
1424      * </pre>
1425      *
1426      * <code>string request_url = 2;</code>
1427      *
1428      * @return The requestUrl.
1429      */
getRequestUrl()1430     public java.lang.String getRequestUrl() {
1431       java.lang.Object ref = requestUrl_;
1432       if (!(ref instanceof java.lang.String)) {
1433         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1434         java.lang.String s = bs.toStringUtf8();
1435         requestUrl_ = s;
1436         return s;
1437       } else {
1438         return (java.lang.String) ref;
1439       }
1440     }
1441     /**
1442      *
1443      *
1444      * <pre>
1445      * The scheme (http, https), the host name, the path and the query
1446      * portion of the URL that was requested.
1447      * Example: `"http://example.com/some/info?color=red"`.
1448      * </pre>
1449      *
1450      * <code>string request_url = 2;</code>
1451      *
1452      * @return The bytes for requestUrl.
1453      */
getRequestUrlBytes()1454     public com.google.protobuf.ByteString getRequestUrlBytes() {
1455       java.lang.Object ref = requestUrl_;
1456       if (ref instanceof String) {
1457         com.google.protobuf.ByteString b =
1458             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1459         requestUrl_ = b;
1460         return b;
1461       } else {
1462         return (com.google.protobuf.ByteString) ref;
1463       }
1464     }
1465     /**
1466      *
1467      *
1468      * <pre>
1469      * The scheme (http, https), the host name, the path and the query
1470      * portion of the URL that was requested.
1471      * Example: `"http://example.com/some/info?color=red"`.
1472      * </pre>
1473      *
1474      * <code>string request_url = 2;</code>
1475      *
1476      * @param value The requestUrl to set.
1477      * @return This builder for chaining.
1478      */
setRequestUrl(java.lang.String value)1479     public Builder setRequestUrl(java.lang.String value) {
1480       if (value == null) {
1481         throw new NullPointerException();
1482       }
1483       requestUrl_ = value;
1484       bitField0_ |= 0x00000002;
1485       onChanged();
1486       return this;
1487     }
1488     /**
1489      *
1490      *
1491      * <pre>
1492      * The scheme (http, https), the host name, the path and the query
1493      * portion of the URL that was requested.
1494      * Example: `"http://example.com/some/info?color=red"`.
1495      * </pre>
1496      *
1497      * <code>string request_url = 2;</code>
1498      *
1499      * @return This builder for chaining.
1500      */
clearRequestUrl()1501     public Builder clearRequestUrl() {
1502       requestUrl_ = getDefaultInstance().getRequestUrl();
1503       bitField0_ = (bitField0_ & ~0x00000002);
1504       onChanged();
1505       return this;
1506     }
1507     /**
1508      *
1509      *
1510      * <pre>
1511      * The scheme (http, https), the host name, the path and the query
1512      * portion of the URL that was requested.
1513      * Example: `"http://example.com/some/info?color=red"`.
1514      * </pre>
1515      *
1516      * <code>string request_url = 2;</code>
1517      *
1518      * @param value The bytes for requestUrl to set.
1519      * @return This builder for chaining.
1520      */
setRequestUrlBytes(com.google.protobuf.ByteString value)1521     public Builder setRequestUrlBytes(com.google.protobuf.ByteString value) {
1522       if (value == null) {
1523         throw new NullPointerException();
1524       }
1525       checkByteStringIsUtf8(value);
1526       requestUrl_ = value;
1527       bitField0_ |= 0x00000002;
1528       onChanged();
1529       return this;
1530     }
1531 
1532     private long requestSize_;
1533     /**
1534      *
1535      *
1536      * <pre>
1537      * The size of the HTTP request message in bytes, including the request
1538      * headers and the request body.
1539      * </pre>
1540      *
1541      * <code>int64 request_size = 3;</code>
1542      *
1543      * @return The requestSize.
1544      */
1545     @java.lang.Override
getRequestSize()1546     public long getRequestSize() {
1547       return requestSize_;
1548     }
1549     /**
1550      *
1551      *
1552      * <pre>
1553      * The size of the HTTP request message in bytes, including the request
1554      * headers and the request body.
1555      * </pre>
1556      *
1557      * <code>int64 request_size = 3;</code>
1558      *
1559      * @param value The requestSize to set.
1560      * @return This builder for chaining.
1561      */
setRequestSize(long value)1562     public Builder setRequestSize(long value) {
1563 
1564       requestSize_ = value;
1565       bitField0_ |= 0x00000004;
1566       onChanged();
1567       return this;
1568     }
1569     /**
1570      *
1571      *
1572      * <pre>
1573      * The size of the HTTP request message in bytes, including the request
1574      * headers and the request body.
1575      * </pre>
1576      *
1577      * <code>int64 request_size = 3;</code>
1578      *
1579      * @return This builder for chaining.
1580      */
clearRequestSize()1581     public Builder clearRequestSize() {
1582       bitField0_ = (bitField0_ & ~0x00000004);
1583       requestSize_ = 0L;
1584       onChanged();
1585       return this;
1586     }
1587 
1588     private int status_;
1589     /**
1590      *
1591      *
1592      * <pre>
1593      * The response code indicating the status of response.
1594      * Examples: 200, 404.
1595      * </pre>
1596      *
1597      * <code>int32 status = 4;</code>
1598      *
1599      * @return The status.
1600      */
1601     @java.lang.Override
getStatus()1602     public int getStatus() {
1603       return status_;
1604     }
1605     /**
1606      *
1607      *
1608      * <pre>
1609      * The response code indicating the status of response.
1610      * Examples: 200, 404.
1611      * </pre>
1612      *
1613      * <code>int32 status = 4;</code>
1614      *
1615      * @param value The status to set.
1616      * @return This builder for chaining.
1617      */
setStatus(int value)1618     public Builder setStatus(int value) {
1619 
1620       status_ = value;
1621       bitField0_ |= 0x00000008;
1622       onChanged();
1623       return this;
1624     }
1625     /**
1626      *
1627      *
1628      * <pre>
1629      * The response code indicating the status of response.
1630      * Examples: 200, 404.
1631      * </pre>
1632      *
1633      * <code>int32 status = 4;</code>
1634      *
1635      * @return This builder for chaining.
1636      */
clearStatus()1637     public Builder clearStatus() {
1638       bitField0_ = (bitField0_ & ~0x00000008);
1639       status_ = 0;
1640       onChanged();
1641       return this;
1642     }
1643 
1644     private long responseSize_;
1645     /**
1646      *
1647      *
1648      * <pre>
1649      * The size of the HTTP response message sent back to the client, in bytes,
1650      * including the response headers and the response body.
1651      * </pre>
1652      *
1653      * <code>int64 response_size = 5;</code>
1654      *
1655      * @return The responseSize.
1656      */
1657     @java.lang.Override
getResponseSize()1658     public long getResponseSize() {
1659       return responseSize_;
1660     }
1661     /**
1662      *
1663      *
1664      * <pre>
1665      * The size of the HTTP response message sent back to the client, in bytes,
1666      * including the response headers and the response body.
1667      * </pre>
1668      *
1669      * <code>int64 response_size = 5;</code>
1670      *
1671      * @param value The responseSize to set.
1672      * @return This builder for chaining.
1673      */
setResponseSize(long value)1674     public Builder setResponseSize(long value) {
1675 
1676       responseSize_ = value;
1677       bitField0_ |= 0x00000010;
1678       onChanged();
1679       return this;
1680     }
1681     /**
1682      *
1683      *
1684      * <pre>
1685      * The size of the HTTP response message sent back to the client, in bytes,
1686      * including the response headers and the response body.
1687      * </pre>
1688      *
1689      * <code>int64 response_size = 5;</code>
1690      *
1691      * @return This builder for chaining.
1692      */
clearResponseSize()1693     public Builder clearResponseSize() {
1694       bitField0_ = (bitField0_ & ~0x00000010);
1695       responseSize_ = 0L;
1696       onChanged();
1697       return this;
1698     }
1699 
1700     private java.lang.Object userAgent_ = "";
1701     /**
1702      *
1703      *
1704      * <pre>
1705      * The user agent sent by the client. Example:
1706      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1707      * CLR 1.0.3705)"`.
1708      * </pre>
1709      *
1710      * <code>string user_agent = 6;</code>
1711      *
1712      * @return The userAgent.
1713      */
getUserAgent()1714     public java.lang.String getUserAgent() {
1715       java.lang.Object ref = userAgent_;
1716       if (!(ref instanceof java.lang.String)) {
1717         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1718         java.lang.String s = bs.toStringUtf8();
1719         userAgent_ = s;
1720         return s;
1721       } else {
1722         return (java.lang.String) ref;
1723       }
1724     }
1725     /**
1726      *
1727      *
1728      * <pre>
1729      * The user agent sent by the client. Example:
1730      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1731      * CLR 1.0.3705)"`.
1732      * </pre>
1733      *
1734      * <code>string user_agent = 6;</code>
1735      *
1736      * @return The bytes for userAgent.
1737      */
getUserAgentBytes()1738     public com.google.protobuf.ByteString getUserAgentBytes() {
1739       java.lang.Object ref = userAgent_;
1740       if (ref instanceof String) {
1741         com.google.protobuf.ByteString b =
1742             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1743         userAgent_ = b;
1744         return b;
1745       } else {
1746         return (com.google.protobuf.ByteString) ref;
1747       }
1748     }
1749     /**
1750      *
1751      *
1752      * <pre>
1753      * The user agent sent by the client. Example:
1754      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1755      * CLR 1.0.3705)"`.
1756      * </pre>
1757      *
1758      * <code>string user_agent = 6;</code>
1759      *
1760      * @param value The userAgent to set.
1761      * @return This builder for chaining.
1762      */
setUserAgent(java.lang.String value)1763     public Builder setUserAgent(java.lang.String value) {
1764       if (value == null) {
1765         throw new NullPointerException();
1766       }
1767       userAgent_ = value;
1768       bitField0_ |= 0x00000020;
1769       onChanged();
1770       return this;
1771     }
1772     /**
1773      *
1774      *
1775      * <pre>
1776      * The user agent sent by the client. Example:
1777      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1778      * CLR 1.0.3705)"`.
1779      * </pre>
1780      *
1781      * <code>string user_agent = 6;</code>
1782      *
1783      * @return This builder for chaining.
1784      */
clearUserAgent()1785     public Builder clearUserAgent() {
1786       userAgent_ = getDefaultInstance().getUserAgent();
1787       bitField0_ = (bitField0_ & ~0x00000020);
1788       onChanged();
1789       return this;
1790     }
1791     /**
1792      *
1793      *
1794      * <pre>
1795      * The user agent sent by the client. Example:
1796      * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1797      * CLR 1.0.3705)"`.
1798      * </pre>
1799      *
1800      * <code>string user_agent = 6;</code>
1801      *
1802      * @param value The bytes for userAgent to set.
1803      * @return This builder for chaining.
1804      */
setUserAgentBytes(com.google.protobuf.ByteString value)1805     public Builder setUserAgentBytes(com.google.protobuf.ByteString value) {
1806       if (value == null) {
1807         throw new NullPointerException();
1808       }
1809       checkByteStringIsUtf8(value);
1810       userAgent_ = value;
1811       bitField0_ |= 0x00000020;
1812       onChanged();
1813       return this;
1814     }
1815 
1816     private java.lang.Object remoteIp_ = "";
1817     /**
1818      *
1819      *
1820      * <pre>
1821      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
1822      * request. This field can include port information. Examples:
1823      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1824      * </pre>
1825      *
1826      * <code>string remote_ip = 7;</code>
1827      *
1828      * @return The remoteIp.
1829      */
getRemoteIp()1830     public java.lang.String getRemoteIp() {
1831       java.lang.Object ref = remoteIp_;
1832       if (!(ref instanceof java.lang.String)) {
1833         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1834         java.lang.String s = bs.toStringUtf8();
1835         remoteIp_ = s;
1836         return s;
1837       } else {
1838         return (java.lang.String) ref;
1839       }
1840     }
1841     /**
1842      *
1843      *
1844      * <pre>
1845      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
1846      * request. This field can include port information. Examples:
1847      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1848      * </pre>
1849      *
1850      * <code>string remote_ip = 7;</code>
1851      *
1852      * @return The bytes for remoteIp.
1853      */
getRemoteIpBytes()1854     public com.google.protobuf.ByteString getRemoteIpBytes() {
1855       java.lang.Object ref = remoteIp_;
1856       if (ref instanceof String) {
1857         com.google.protobuf.ByteString b =
1858             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1859         remoteIp_ = b;
1860         return b;
1861       } else {
1862         return (com.google.protobuf.ByteString) ref;
1863       }
1864     }
1865     /**
1866      *
1867      *
1868      * <pre>
1869      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
1870      * request. This field can include port information. Examples:
1871      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1872      * </pre>
1873      *
1874      * <code>string remote_ip = 7;</code>
1875      *
1876      * @param value The remoteIp to set.
1877      * @return This builder for chaining.
1878      */
setRemoteIp(java.lang.String value)1879     public Builder setRemoteIp(java.lang.String value) {
1880       if (value == null) {
1881         throw new NullPointerException();
1882       }
1883       remoteIp_ = value;
1884       bitField0_ |= 0x00000040;
1885       onChanged();
1886       return this;
1887     }
1888     /**
1889      *
1890      *
1891      * <pre>
1892      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
1893      * request. This field can include port information. Examples:
1894      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1895      * </pre>
1896      *
1897      * <code>string remote_ip = 7;</code>
1898      *
1899      * @return This builder for chaining.
1900      */
clearRemoteIp()1901     public Builder clearRemoteIp() {
1902       remoteIp_ = getDefaultInstance().getRemoteIp();
1903       bitField0_ = (bitField0_ & ~0x00000040);
1904       onChanged();
1905       return this;
1906     }
1907     /**
1908      *
1909      *
1910      * <pre>
1911      * The IP address (IPv4 or IPv6) of the client that issued the HTTP
1912      * request. This field can include port information. Examples:
1913      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1914      * </pre>
1915      *
1916      * <code>string remote_ip = 7;</code>
1917      *
1918      * @param value The bytes for remoteIp to set.
1919      * @return This builder for chaining.
1920      */
setRemoteIpBytes(com.google.protobuf.ByteString value)1921     public Builder setRemoteIpBytes(com.google.protobuf.ByteString value) {
1922       if (value == null) {
1923         throw new NullPointerException();
1924       }
1925       checkByteStringIsUtf8(value);
1926       remoteIp_ = value;
1927       bitField0_ |= 0x00000040;
1928       onChanged();
1929       return this;
1930     }
1931 
1932     private java.lang.Object serverIp_ = "";
1933     /**
1934      *
1935      *
1936      * <pre>
1937      * The IP address (IPv4 or IPv6) of the origin server that the request was
1938      * sent to. This field can include port information. Examples:
1939      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1940      * </pre>
1941      *
1942      * <code>string server_ip = 13;</code>
1943      *
1944      * @return The serverIp.
1945      */
getServerIp()1946     public java.lang.String getServerIp() {
1947       java.lang.Object ref = serverIp_;
1948       if (!(ref instanceof java.lang.String)) {
1949         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1950         java.lang.String s = bs.toStringUtf8();
1951         serverIp_ = s;
1952         return s;
1953       } else {
1954         return (java.lang.String) ref;
1955       }
1956     }
1957     /**
1958      *
1959      *
1960      * <pre>
1961      * The IP address (IPv4 or IPv6) of the origin server that the request was
1962      * sent to. This field can include port information. Examples:
1963      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1964      * </pre>
1965      *
1966      * <code>string server_ip = 13;</code>
1967      *
1968      * @return The bytes for serverIp.
1969      */
getServerIpBytes()1970     public com.google.protobuf.ByteString getServerIpBytes() {
1971       java.lang.Object ref = serverIp_;
1972       if (ref instanceof String) {
1973         com.google.protobuf.ByteString b =
1974             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1975         serverIp_ = b;
1976         return b;
1977       } else {
1978         return (com.google.protobuf.ByteString) ref;
1979       }
1980     }
1981     /**
1982      *
1983      *
1984      * <pre>
1985      * The IP address (IPv4 or IPv6) of the origin server that the request was
1986      * sent to. This field can include port information. Examples:
1987      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
1988      * </pre>
1989      *
1990      * <code>string server_ip = 13;</code>
1991      *
1992      * @param value The serverIp to set.
1993      * @return This builder for chaining.
1994      */
setServerIp(java.lang.String value)1995     public Builder setServerIp(java.lang.String value) {
1996       if (value == null) {
1997         throw new NullPointerException();
1998       }
1999       serverIp_ = value;
2000       bitField0_ |= 0x00000080;
2001       onChanged();
2002       return this;
2003     }
2004     /**
2005      *
2006      *
2007      * <pre>
2008      * The IP address (IPv4 or IPv6) of the origin server that the request was
2009      * sent to. This field can include port information. Examples:
2010      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
2011      * </pre>
2012      *
2013      * <code>string server_ip = 13;</code>
2014      *
2015      * @return This builder for chaining.
2016      */
clearServerIp()2017     public Builder clearServerIp() {
2018       serverIp_ = getDefaultInstance().getServerIp();
2019       bitField0_ = (bitField0_ & ~0x00000080);
2020       onChanged();
2021       return this;
2022     }
2023     /**
2024      *
2025      *
2026      * <pre>
2027      * The IP address (IPv4 or IPv6) of the origin server that the request was
2028      * sent to. This field can include port information. Examples:
2029      * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
2030      * </pre>
2031      *
2032      * <code>string server_ip = 13;</code>
2033      *
2034      * @param value The bytes for serverIp to set.
2035      * @return This builder for chaining.
2036      */
setServerIpBytes(com.google.protobuf.ByteString value)2037     public Builder setServerIpBytes(com.google.protobuf.ByteString value) {
2038       if (value == null) {
2039         throw new NullPointerException();
2040       }
2041       checkByteStringIsUtf8(value);
2042       serverIp_ = value;
2043       bitField0_ |= 0x00000080;
2044       onChanged();
2045       return this;
2046     }
2047 
2048     private java.lang.Object referer_ = "";
2049     /**
2050      *
2051      *
2052      * <pre>
2053      * The referer URL of the request, as defined in
2054      * [HTTP/1.1 Header Field
2055      * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
2056      * </pre>
2057      *
2058      * <code>string referer = 8;</code>
2059      *
2060      * @return The referer.
2061      */
getReferer()2062     public java.lang.String getReferer() {
2063       java.lang.Object ref = referer_;
2064       if (!(ref instanceof java.lang.String)) {
2065         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2066         java.lang.String s = bs.toStringUtf8();
2067         referer_ = s;
2068         return s;
2069       } else {
2070         return (java.lang.String) ref;
2071       }
2072     }
2073     /**
2074      *
2075      *
2076      * <pre>
2077      * The referer URL of the request, as defined in
2078      * [HTTP/1.1 Header Field
2079      * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
2080      * </pre>
2081      *
2082      * <code>string referer = 8;</code>
2083      *
2084      * @return The bytes for referer.
2085      */
getRefererBytes()2086     public com.google.protobuf.ByteString getRefererBytes() {
2087       java.lang.Object ref = referer_;
2088       if (ref instanceof String) {
2089         com.google.protobuf.ByteString b =
2090             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2091         referer_ = b;
2092         return b;
2093       } else {
2094         return (com.google.protobuf.ByteString) ref;
2095       }
2096     }
2097     /**
2098      *
2099      *
2100      * <pre>
2101      * The referer URL of the request, as defined in
2102      * [HTTP/1.1 Header Field
2103      * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
2104      * </pre>
2105      *
2106      * <code>string referer = 8;</code>
2107      *
2108      * @param value The referer to set.
2109      * @return This builder for chaining.
2110      */
setReferer(java.lang.String value)2111     public Builder setReferer(java.lang.String value) {
2112       if (value == null) {
2113         throw new NullPointerException();
2114       }
2115       referer_ = value;
2116       bitField0_ |= 0x00000100;
2117       onChanged();
2118       return this;
2119     }
2120     /**
2121      *
2122      *
2123      * <pre>
2124      * The referer URL of the request, as defined in
2125      * [HTTP/1.1 Header Field
2126      * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
2127      * </pre>
2128      *
2129      * <code>string referer = 8;</code>
2130      *
2131      * @return This builder for chaining.
2132      */
clearReferer()2133     public Builder clearReferer() {
2134       referer_ = getDefaultInstance().getReferer();
2135       bitField0_ = (bitField0_ & ~0x00000100);
2136       onChanged();
2137       return this;
2138     }
2139     /**
2140      *
2141      *
2142      * <pre>
2143      * The referer URL of the request, as defined in
2144      * [HTTP/1.1 Header Field
2145      * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).
2146      * </pre>
2147      *
2148      * <code>string referer = 8;</code>
2149      *
2150      * @param value The bytes for referer to set.
2151      * @return This builder for chaining.
2152      */
setRefererBytes(com.google.protobuf.ByteString value)2153     public Builder setRefererBytes(com.google.protobuf.ByteString value) {
2154       if (value == null) {
2155         throw new NullPointerException();
2156       }
2157       checkByteStringIsUtf8(value);
2158       referer_ = value;
2159       bitField0_ |= 0x00000100;
2160       onChanged();
2161       return this;
2162     }
2163 
2164     private com.google.protobuf.Duration latency_;
2165     private com.google.protobuf.SingleFieldBuilderV3<
2166             com.google.protobuf.Duration,
2167             com.google.protobuf.Duration.Builder,
2168             com.google.protobuf.DurationOrBuilder>
2169         latencyBuilder_;
2170     /**
2171      *
2172      *
2173      * <pre>
2174      * The request processing latency on the server, from the time the request was
2175      * received until the response was sent.
2176      * </pre>
2177      *
2178      * <code>.google.protobuf.Duration latency = 14;</code>
2179      *
2180      * @return Whether the latency field is set.
2181      */
hasLatency()2182     public boolean hasLatency() {
2183       return ((bitField0_ & 0x00000200) != 0);
2184     }
2185     /**
2186      *
2187      *
2188      * <pre>
2189      * The request processing latency on the server, from the time the request was
2190      * received until the response was sent.
2191      * </pre>
2192      *
2193      * <code>.google.protobuf.Duration latency = 14;</code>
2194      *
2195      * @return The latency.
2196      */
getLatency()2197     public com.google.protobuf.Duration getLatency() {
2198       if (latencyBuilder_ == null) {
2199         return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
2200       } else {
2201         return latencyBuilder_.getMessage();
2202       }
2203     }
2204     /**
2205      *
2206      *
2207      * <pre>
2208      * The request processing latency on the server, from the time the request was
2209      * received until the response was sent.
2210      * </pre>
2211      *
2212      * <code>.google.protobuf.Duration latency = 14;</code>
2213      */
setLatency(com.google.protobuf.Duration value)2214     public Builder setLatency(com.google.protobuf.Duration value) {
2215       if (latencyBuilder_ == null) {
2216         if (value == null) {
2217           throw new NullPointerException();
2218         }
2219         latency_ = value;
2220       } else {
2221         latencyBuilder_.setMessage(value);
2222       }
2223       bitField0_ |= 0x00000200;
2224       onChanged();
2225       return this;
2226     }
2227     /**
2228      *
2229      *
2230      * <pre>
2231      * The request processing latency on the server, from the time the request was
2232      * received until the response was sent.
2233      * </pre>
2234      *
2235      * <code>.google.protobuf.Duration latency = 14;</code>
2236      */
setLatency(com.google.protobuf.Duration.Builder builderForValue)2237     public Builder setLatency(com.google.protobuf.Duration.Builder builderForValue) {
2238       if (latencyBuilder_ == null) {
2239         latency_ = builderForValue.build();
2240       } else {
2241         latencyBuilder_.setMessage(builderForValue.build());
2242       }
2243       bitField0_ |= 0x00000200;
2244       onChanged();
2245       return this;
2246     }
2247     /**
2248      *
2249      *
2250      * <pre>
2251      * The request processing latency on the server, from the time the request was
2252      * received until the response was sent.
2253      * </pre>
2254      *
2255      * <code>.google.protobuf.Duration latency = 14;</code>
2256      */
mergeLatency(com.google.protobuf.Duration value)2257     public Builder mergeLatency(com.google.protobuf.Duration value) {
2258       if (latencyBuilder_ == null) {
2259         if (((bitField0_ & 0x00000200) != 0)
2260             && latency_ != null
2261             && latency_ != com.google.protobuf.Duration.getDefaultInstance()) {
2262           getLatencyBuilder().mergeFrom(value);
2263         } else {
2264           latency_ = value;
2265         }
2266       } else {
2267         latencyBuilder_.mergeFrom(value);
2268       }
2269       bitField0_ |= 0x00000200;
2270       onChanged();
2271       return this;
2272     }
2273     /**
2274      *
2275      *
2276      * <pre>
2277      * The request processing latency on the server, from the time the request was
2278      * received until the response was sent.
2279      * </pre>
2280      *
2281      * <code>.google.protobuf.Duration latency = 14;</code>
2282      */
clearLatency()2283     public Builder clearLatency() {
2284       bitField0_ = (bitField0_ & ~0x00000200);
2285       latency_ = null;
2286       if (latencyBuilder_ != null) {
2287         latencyBuilder_.dispose();
2288         latencyBuilder_ = null;
2289       }
2290       onChanged();
2291       return this;
2292     }
2293     /**
2294      *
2295      *
2296      * <pre>
2297      * The request processing latency on the server, from the time the request was
2298      * received until the response was sent.
2299      * </pre>
2300      *
2301      * <code>.google.protobuf.Duration latency = 14;</code>
2302      */
getLatencyBuilder()2303     public com.google.protobuf.Duration.Builder getLatencyBuilder() {
2304       bitField0_ |= 0x00000200;
2305       onChanged();
2306       return getLatencyFieldBuilder().getBuilder();
2307     }
2308     /**
2309      *
2310      *
2311      * <pre>
2312      * The request processing latency on the server, from the time the request was
2313      * received until the response was sent.
2314      * </pre>
2315      *
2316      * <code>.google.protobuf.Duration latency = 14;</code>
2317      */
getLatencyOrBuilder()2318     public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
2319       if (latencyBuilder_ != null) {
2320         return latencyBuilder_.getMessageOrBuilder();
2321       } else {
2322         return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
2323       }
2324     }
2325     /**
2326      *
2327      *
2328      * <pre>
2329      * The request processing latency on the server, from the time the request was
2330      * received until the response was sent.
2331      * </pre>
2332      *
2333      * <code>.google.protobuf.Duration latency = 14;</code>
2334      */
2335     private com.google.protobuf.SingleFieldBuilderV3<
2336             com.google.protobuf.Duration,
2337             com.google.protobuf.Duration.Builder,
2338             com.google.protobuf.DurationOrBuilder>
getLatencyFieldBuilder()2339         getLatencyFieldBuilder() {
2340       if (latencyBuilder_ == null) {
2341         latencyBuilder_ =
2342             new com.google.protobuf.SingleFieldBuilderV3<
2343                 com.google.protobuf.Duration,
2344                 com.google.protobuf.Duration.Builder,
2345                 com.google.protobuf.DurationOrBuilder>(
2346                 getLatency(), getParentForChildren(), isClean());
2347         latency_ = null;
2348       }
2349       return latencyBuilder_;
2350     }
2351 
2352     private boolean cacheLookup_;
2353     /**
2354      *
2355      *
2356      * <pre>
2357      * Whether or not a cache lookup was attempted.
2358      * </pre>
2359      *
2360      * <code>bool cache_lookup = 11;</code>
2361      *
2362      * @return The cacheLookup.
2363      */
2364     @java.lang.Override
getCacheLookup()2365     public boolean getCacheLookup() {
2366       return cacheLookup_;
2367     }
2368     /**
2369      *
2370      *
2371      * <pre>
2372      * Whether or not a cache lookup was attempted.
2373      * </pre>
2374      *
2375      * <code>bool cache_lookup = 11;</code>
2376      *
2377      * @param value The cacheLookup to set.
2378      * @return This builder for chaining.
2379      */
setCacheLookup(boolean value)2380     public Builder setCacheLookup(boolean value) {
2381 
2382       cacheLookup_ = value;
2383       bitField0_ |= 0x00000400;
2384       onChanged();
2385       return this;
2386     }
2387     /**
2388      *
2389      *
2390      * <pre>
2391      * Whether or not a cache lookup was attempted.
2392      * </pre>
2393      *
2394      * <code>bool cache_lookup = 11;</code>
2395      *
2396      * @return This builder for chaining.
2397      */
clearCacheLookup()2398     public Builder clearCacheLookup() {
2399       bitField0_ = (bitField0_ & ~0x00000400);
2400       cacheLookup_ = false;
2401       onChanged();
2402       return this;
2403     }
2404 
2405     private boolean cacheHit_;
2406     /**
2407      *
2408      *
2409      * <pre>
2410      * Whether or not an entity was served from cache
2411      * (with or without validation).
2412      * </pre>
2413      *
2414      * <code>bool cache_hit = 9;</code>
2415      *
2416      * @return The cacheHit.
2417      */
2418     @java.lang.Override
getCacheHit()2419     public boolean getCacheHit() {
2420       return cacheHit_;
2421     }
2422     /**
2423      *
2424      *
2425      * <pre>
2426      * Whether or not an entity was served from cache
2427      * (with or without validation).
2428      * </pre>
2429      *
2430      * <code>bool cache_hit = 9;</code>
2431      *
2432      * @param value The cacheHit to set.
2433      * @return This builder for chaining.
2434      */
setCacheHit(boolean value)2435     public Builder setCacheHit(boolean value) {
2436 
2437       cacheHit_ = value;
2438       bitField0_ |= 0x00000800;
2439       onChanged();
2440       return this;
2441     }
2442     /**
2443      *
2444      *
2445      * <pre>
2446      * Whether or not an entity was served from cache
2447      * (with or without validation).
2448      * </pre>
2449      *
2450      * <code>bool cache_hit = 9;</code>
2451      *
2452      * @return This builder for chaining.
2453      */
clearCacheHit()2454     public Builder clearCacheHit() {
2455       bitField0_ = (bitField0_ & ~0x00000800);
2456       cacheHit_ = false;
2457       onChanged();
2458       return this;
2459     }
2460 
2461     private boolean cacheValidatedWithOriginServer_;
2462     /**
2463      *
2464      *
2465      * <pre>
2466      * Whether or not the response was validated with the origin server before
2467      * being served from cache. This field is only meaningful if `cache_hit` is
2468      * True.
2469      * </pre>
2470      *
2471      * <code>bool cache_validated_with_origin_server = 10;</code>
2472      *
2473      * @return The cacheValidatedWithOriginServer.
2474      */
2475     @java.lang.Override
getCacheValidatedWithOriginServer()2476     public boolean getCacheValidatedWithOriginServer() {
2477       return cacheValidatedWithOriginServer_;
2478     }
2479     /**
2480      *
2481      *
2482      * <pre>
2483      * Whether or not the response was validated with the origin server before
2484      * being served from cache. This field is only meaningful if `cache_hit` is
2485      * True.
2486      * </pre>
2487      *
2488      * <code>bool cache_validated_with_origin_server = 10;</code>
2489      *
2490      * @param value The cacheValidatedWithOriginServer to set.
2491      * @return This builder for chaining.
2492      */
setCacheValidatedWithOriginServer(boolean value)2493     public Builder setCacheValidatedWithOriginServer(boolean value) {
2494 
2495       cacheValidatedWithOriginServer_ = value;
2496       bitField0_ |= 0x00001000;
2497       onChanged();
2498       return this;
2499     }
2500     /**
2501      *
2502      *
2503      * <pre>
2504      * Whether or not the response was validated with the origin server before
2505      * being served from cache. This field is only meaningful if `cache_hit` is
2506      * True.
2507      * </pre>
2508      *
2509      * <code>bool cache_validated_with_origin_server = 10;</code>
2510      *
2511      * @return This builder for chaining.
2512      */
clearCacheValidatedWithOriginServer()2513     public Builder clearCacheValidatedWithOriginServer() {
2514       bitField0_ = (bitField0_ & ~0x00001000);
2515       cacheValidatedWithOriginServer_ = false;
2516       onChanged();
2517       return this;
2518     }
2519 
2520     private long cacheFillBytes_;
2521     /**
2522      *
2523      *
2524      * <pre>
2525      * The number of HTTP response bytes inserted into cache. Set only when a
2526      * cache fill was attempted.
2527      * </pre>
2528      *
2529      * <code>int64 cache_fill_bytes = 12;</code>
2530      *
2531      * @return The cacheFillBytes.
2532      */
2533     @java.lang.Override
getCacheFillBytes()2534     public long getCacheFillBytes() {
2535       return cacheFillBytes_;
2536     }
2537     /**
2538      *
2539      *
2540      * <pre>
2541      * The number of HTTP response bytes inserted into cache. Set only when a
2542      * cache fill was attempted.
2543      * </pre>
2544      *
2545      * <code>int64 cache_fill_bytes = 12;</code>
2546      *
2547      * @param value The cacheFillBytes to set.
2548      * @return This builder for chaining.
2549      */
setCacheFillBytes(long value)2550     public Builder setCacheFillBytes(long value) {
2551 
2552       cacheFillBytes_ = value;
2553       bitField0_ |= 0x00002000;
2554       onChanged();
2555       return this;
2556     }
2557     /**
2558      *
2559      *
2560      * <pre>
2561      * The number of HTTP response bytes inserted into cache. Set only when a
2562      * cache fill was attempted.
2563      * </pre>
2564      *
2565      * <code>int64 cache_fill_bytes = 12;</code>
2566      *
2567      * @return This builder for chaining.
2568      */
clearCacheFillBytes()2569     public Builder clearCacheFillBytes() {
2570       bitField0_ = (bitField0_ & ~0x00002000);
2571       cacheFillBytes_ = 0L;
2572       onChanged();
2573       return this;
2574     }
2575 
2576     private java.lang.Object protocol_ = "";
2577     /**
2578      *
2579      *
2580      * <pre>
2581      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2582      * </pre>
2583      *
2584      * <code>string protocol = 15;</code>
2585      *
2586      * @return The protocol.
2587      */
getProtocol()2588     public java.lang.String getProtocol() {
2589       java.lang.Object ref = protocol_;
2590       if (!(ref instanceof java.lang.String)) {
2591         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2592         java.lang.String s = bs.toStringUtf8();
2593         protocol_ = s;
2594         return s;
2595       } else {
2596         return (java.lang.String) ref;
2597       }
2598     }
2599     /**
2600      *
2601      *
2602      * <pre>
2603      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2604      * </pre>
2605      *
2606      * <code>string protocol = 15;</code>
2607      *
2608      * @return The bytes for protocol.
2609      */
getProtocolBytes()2610     public com.google.protobuf.ByteString getProtocolBytes() {
2611       java.lang.Object ref = protocol_;
2612       if (ref instanceof String) {
2613         com.google.protobuf.ByteString b =
2614             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2615         protocol_ = b;
2616         return b;
2617       } else {
2618         return (com.google.protobuf.ByteString) ref;
2619       }
2620     }
2621     /**
2622      *
2623      *
2624      * <pre>
2625      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2626      * </pre>
2627      *
2628      * <code>string protocol = 15;</code>
2629      *
2630      * @param value The protocol to set.
2631      * @return This builder for chaining.
2632      */
setProtocol(java.lang.String value)2633     public Builder setProtocol(java.lang.String value) {
2634       if (value == null) {
2635         throw new NullPointerException();
2636       }
2637       protocol_ = value;
2638       bitField0_ |= 0x00004000;
2639       onChanged();
2640       return this;
2641     }
2642     /**
2643      *
2644      *
2645      * <pre>
2646      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2647      * </pre>
2648      *
2649      * <code>string protocol = 15;</code>
2650      *
2651      * @return This builder for chaining.
2652      */
clearProtocol()2653     public Builder clearProtocol() {
2654       protocol_ = getDefaultInstance().getProtocol();
2655       bitField0_ = (bitField0_ & ~0x00004000);
2656       onChanged();
2657       return this;
2658     }
2659     /**
2660      *
2661      *
2662      * <pre>
2663      * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2664      * </pre>
2665      *
2666      * <code>string protocol = 15;</code>
2667      *
2668      * @param value The bytes for protocol to set.
2669      * @return This builder for chaining.
2670      */
setProtocolBytes(com.google.protobuf.ByteString value)2671     public Builder setProtocolBytes(com.google.protobuf.ByteString value) {
2672       if (value == null) {
2673         throw new NullPointerException();
2674       }
2675       checkByteStringIsUtf8(value);
2676       protocol_ = value;
2677       bitField0_ |= 0x00004000;
2678       onChanged();
2679       return this;
2680     }
2681 
2682     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2683     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2684       return super.setUnknownFields(unknownFields);
2685     }
2686 
2687     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2688     public final Builder mergeUnknownFields(
2689         final com.google.protobuf.UnknownFieldSet unknownFields) {
2690       return super.mergeUnknownFields(unknownFields);
2691     }
2692 
2693     // @@protoc_insertion_point(builder_scope:google.logging.type.HttpRequest)
2694   }
2695 
2696   // @@protoc_insertion_point(class_scope:google.logging.type.HttpRequest)
2697   private static final com.google.logging.type.HttpRequest DEFAULT_INSTANCE;
2698 
2699   static {
2700     DEFAULT_INSTANCE = new com.google.logging.type.HttpRequest();
2701   }
2702 
getDefaultInstance()2703   public static com.google.logging.type.HttpRequest getDefaultInstance() {
2704     return DEFAULT_INSTANCE;
2705   }
2706 
2707   private static final com.google.protobuf.Parser<HttpRequest> PARSER =
2708       new com.google.protobuf.AbstractParser<HttpRequest>() {
2709         @java.lang.Override
2710         public HttpRequest parsePartialFrom(
2711             com.google.protobuf.CodedInputStream input,
2712             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2713             throws com.google.protobuf.InvalidProtocolBufferException {
2714           Builder builder = newBuilder();
2715           try {
2716             builder.mergeFrom(input, extensionRegistry);
2717           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2718             throw e.setUnfinishedMessage(builder.buildPartial());
2719           } catch (com.google.protobuf.UninitializedMessageException e) {
2720             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2721           } catch (java.io.IOException e) {
2722             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2723                 .setUnfinishedMessage(builder.buildPartial());
2724           }
2725           return builder.buildPartial();
2726         }
2727       };
2728 
parser()2729   public static com.google.protobuf.Parser<HttpRequest> parser() {
2730     return PARSER;
2731   }
2732 
2733   @java.lang.Override
getParserForType()2734   public com.google.protobuf.Parser<HttpRequest> getParserForType() {
2735     return PARSER;
2736   }
2737 
2738   @java.lang.Override
getDefaultInstanceForType()2739   public com.google.logging.type.HttpRequest getDefaultInstanceForType() {
2740     return DEFAULT_INSTANCE;
2741   }
2742 }
2743