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