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 * Channel data is data related to a specific Channel or Subchannel. 9 * </pre> 10 * 11 * Protobuf type {@code grpc.channelz.v1.ChannelData} 12 */ 13 public final class ChannelData extends 14 com.google.protobuf.GeneratedMessageV3 implements 15 // @@protoc_insertion_point(message_implements:grpc.channelz.v1.ChannelData) 16 ChannelDataOrBuilder { 17 private static final long serialVersionUID = 0L; 18 // Use ChannelData.newBuilder() to construct. ChannelData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)19 private ChannelData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 20 super(builder); 21 } ChannelData()22 private ChannelData() { 23 target_ = ""; 24 callsStarted_ = 0L; 25 callsSucceeded_ = 0L; 26 callsFailed_ = 0L; 27 } 28 29 @java.lang.Override 30 public final com.google.protobuf.UnknownFieldSet getUnknownFields()31 getUnknownFields() { 32 return this.unknownFields; 33 } ChannelData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)34 private ChannelData( 35 com.google.protobuf.CodedInputStream input, 36 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 37 throws com.google.protobuf.InvalidProtocolBufferException { 38 this(); 39 if (extensionRegistry == null) { 40 throw new java.lang.NullPointerException(); 41 } 42 int mutable_bitField0_ = 0; 43 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 44 com.google.protobuf.UnknownFieldSet.newBuilder(); 45 try { 46 boolean done = false; 47 while (!done) { 48 int tag = input.readTag(); 49 switch (tag) { 50 case 0: 51 done = true; 52 break; 53 default: { 54 if (!parseUnknownFieldProto3( 55 input, unknownFields, extensionRegistry, tag)) { 56 done = true; 57 } 58 break; 59 } 60 case 10: { 61 io.grpc.channelz.v1.ChannelConnectivityState.Builder subBuilder = null; 62 if (state_ != null) { 63 subBuilder = state_.toBuilder(); 64 } 65 state_ = input.readMessage(io.grpc.channelz.v1.ChannelConnectivityState.parser(), extensionRegistry); 66 if (subBuilder != null) { 67 subBuilder.mergeFrom(state_); 68 state_ = subBuilder.buildPartial(); 69 } 70 71 break; 72 } 73 case 18: { 74 java.lang.String s = input.readStringRequireUtf8(); 75 76 target_ = s; 77 break; 78 } 79 case 26: { 80 io.grpc.channelz.v1.ChannelTrace.Builder subBuilder = null; 81 if (trace_ != null) { 82 subBuilder = trace_.toBuilder(); 83 } 84 trace_ = input.readMessage(io.grpc.channelz.v1.ChannelTrace.parser(), extensionRegistry); 85 if (subBuilder != null) { 86 subBuilder.mergeFrom(trace_); 87 trace_ = subBuilder.buildPartial(); 88 } 89 90 break; 91 } 92 case 32: { 93 94 callsStarted_ = input.readInt64(); 95 break; 96 } 97 case 40: { 98 99 callsSucceeded_ = input.readInt64(); 100 break; 101 } 102 case 48: { 103 104 callsFailed_ = input.readInt64(); 105 break; 106 } 107 case 58: { 108 com.google.protobuf.Timestamp.Builder subBuilder = null; 109 if (lastCallStartedTimestamp_ != null) { 110 subBuilder = lastCallStartedTimestamp_.toBuilder(); 111 } 112 lastCallStartedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); 113 if (subBuilder != null) { 114 subBuilder.mergeFrom(lastCallStartedTimestamp_); 115 lastCallStartedTimestamp_ = subBuilder.buildPartial(); 116 } 117 118 break; 119 } 120 } 121 } 122 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 123 throw e.setUnfinishedMessage(this); 124 } catch (java.io.IOException e) { 125 throw new com.google.protobuf.InvalidProtocolBufferException( 126 e).setUnfinishedMessage(this); 127 } finally { 128 this.unknownFields = unknownFields.build(); 129 makeExtensionsImmutable(); 130 } 131 } 132 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()133 getDescriptor() { 134 return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; 135 } 136 137 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()138 internalGetFieldAccessorTable() { 139 return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_fieldAccessorTable 140 .ensureFieldAccessorsInitialized( 141 io.grpc.channelz.v1.ChannelData.class, io.grpc.channelz.v1.ChannelData.Builder.class); 142 } 143 144 public static final int STATE_FIELD_NUMBER = 1; 145 private io.grpc.channelz.v1.ChannelConnectivityState state_; 146 /** 147 * <pre> 148 * The connectivity state of the channel or subchannel. Implementations 149 * should always set this. 150 * </pre> 151 * 152 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 153 */ hasState()154 public boolean hasState() { 155 return state_ != null; 156 } 157 /** 158 * <pre> 159 * The connectivity state of the channel or subchannel. Implementations 160 * should always set this. 161 * </pre> 162 * 163 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 164 */ getState()165 public io.grpc.channelz.v1.ChannelConnectivityState getState() { 166 return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; 167 } 168 /** 169 * <pre> 170 * The connectivity state of the channel or subchannel. Implementations 171 * should always set this. 172 * </pre> 173 * 174 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 175 */ getStateOrBuilder()176 public io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder getStateOrBuilder() { 177 return getState(); 178 } 179 180 public static final int TARGET_FIELD_NUMBER = 2; 181 private volatile java.lang.Object target_; 182 /** 183 * <pre> 184 * The target this channel originally tried to connect to. May be absent 185 * </pre> 186 * 187 * <code>string target = 2;</code> 188 */ getTarget()189 public java.lang.String getTarget() { 190 java.lang.Object ref = target_; 191 if (ref instanceof java.lang.String) { 192 return (java.lang.String) ref; 193 } else { 194 com.google.protobuf.ByteString bs = 195 (com.google.protobuf.ByteString) ref; 196 java.lang.String s = bs.toStringUtf8(); 197 target_ = s; 198 return s; 199 } 200 } 201 /** 202 * <pre> 203 * The target this channel originally tried to connect to. May be absent 204 * </pre> 205 * 206 * <code>string target = 2;</code> 207 */ 208 public com.google.protobuf.ByteString getTargetBytes()209 getTargetBytes() { 210 java.lang.Object ref = target_; 211 if (ref instanceof java.lang.String) { 212 com.google.protobuf.ByteString b = 213 com.google.protobuf.ByteString.copyFromUtf8( 214 (java.lang.String) ref); 215 target_ = b; 216 return b; 217 } else { 218 return (com.google.protobuf.ByteString) ref; 219 } 220 } 221 222 public static final int TRACE_FIELD_NUMBER = 3; 223 private io.grpc.channelz.v1.ChannelTrace trace_; 224 /** 225 * <pre> 226 * A trace of recent events on the channel. May be absent. 227 * </pre> 228 * 229 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 230 */ hasTrace()231 public boolean hasTrace() { 232 return trace_ != null; 233 } 234 /** 235 * <pre> 236 * A trace of recent events on the channel. May be absent. 237 * </pre> 238 * 239 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 240 */ getTrace()241 public io.grpc.channelz.v1.ChannelTrace getTrace() { 242 return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; 243 } 244 /** 245 * <pre> 246 * A trace of recent events on the channel. May be absent. 247 * </pre> 248 * 249 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 250 */ getTraceOrBuilder()251 public io.grpc.channelz.v1.ChannelTraceOrBuilder getTraceOrBuilder() { 252 return getTrace(); 253 } 254 255 public static final int CALLS_STARTED_FIELD_NUMBER = 4; 256 private long callsStarted_; 257 /** 258 * <pre> 259 * The number of calls started on the channel 260 * </pre> 261 * 262 * <code>int64 calls_started = 4;</code> 263 */ getCallsStarted()264 public long getCallsStarted() { 265 return callsStarted_; 266 } 267 268 public static final int CALLS_SUCCEEDED_FIELD_NUMBER = 5; 269 private long callsSucceeded_; 270 /** 271 * <pre> 272 * The number of calls that have completed with an OK status 273 * </pre> 274 * 275 * <code>int64 calls_succeeded = 5;</code> 276 */ getCallsSucceeded()277 public long getCallsSucceeded() { 278 return callsSucceeded_; 279 } 280 281 public static final int CALLS_FAILED_FIELD_NUMBER = 6; 282 private long callsFailed_; 283 /** 284 * <pre> 285 * The number of calls that have completed with a non-OK status 286 * </pre> 287 * 288 * <code>int64 calls_failed = 6;</code> 289 */ getCallsFailed()290 public long getCallsFailed() { 291 return callsFailed_; 292 } 293 294 public static final int LAST_CALL_STARTED_TIMESTAMP_FIELD_NUMBER = 7; 295 private com.google.protobuf.Timestamp lastCallStartedTimestamp_; 296 /** 297 * <pre> 298 * The last time a call was started on the channel. 299 * </pre> 300 * 301 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 302 */ hasLastCallStartedTimestamp()303 public boolean hasLastCallStartedTimestamp() { 304 return lastCallStartedTimestamp_ != null; 305 } 306 /** 307 * <pre> 308 * The last time a call was started on the channel. 309 * </pre> 310 * 311 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 312 */ getLastCallStartedTimestamp()313 public com.google.protobuf.Timestamp getLastCallStartedTimestamp() { 314 return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; 315 } 316 /** 317 * <pre> 318 * The last time a call was started on the channel. 319 * </pre> 320 * 321 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 322 */ getLastCallStartedTimestampOrBuilder()323 public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder() { 324 return getLastCallStartedTimestamp(); 325 } 326 327 private byte memoizedIsInitialized = -1; isInitialized()328 public final boolean isInitialized() { 329 byte isInitialized = memoizedIsInitialized; 330 if (isInitialized == 1) return true; 331 if (isInitialized == 0) return false; 332 333 memoizedIsInitialized = 1; 334 return true; 335 } 336 writeTo(com.google.protobuf.CodedOutputStream output)337 public void writeTo(com.google.protobuf.CodedOutputStream output) 338 throws java.io.IOException { 339 if (state_ != null) { 340 output.writeMessage(1, getState()); 341 } 342 if (!getTargetBytes().isEmpty()) { 343 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); 344 } 345 if (trace_ != null) { 346 output.writeMessage(3, getTrace()); 347 } 348 if (callsStarted_ != 0L) { 349 output.writeInt64(4, callsStarted_); 350 } 351 if (callsSucceeded_ != 0L) { 352 output.writeInt64(5, callsSucceeded_); 353 } 354 if (callsFailed_ != 0L) { 355 output.writeInt64(6, callsFailed_); 356 } 357 if (lastCallStartedTimestamp_ != null) { 358 output.writeMessage(7, getLastCallStartedTimestamp()); 359 } 360 unknownFields.writeTo(output); 361 } 362 getSerializedSize()363 public int getSerializedSize() { 364 int size = memoizedSize; 365 if (size != -1) return size; 366 367 size = 0; 368 if (state_ != null) { 369 size += com.google.protobuf.CodedOutputStream 370 .computeMessageSize(1, getState()); 371 } 372 if (!getTargetBytes().isEmpty()) { 373 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); 374 } 375 if (trace_ != null) { 376 size += com.google.protobuf.CodedOutputStream 377 .computeMessageSize(3, getTrace()); 378 } 379 if (callsStarted_ != 0L) { 380 size += com.google.protobuf.CodedOutputStream 381 .computeInt64Size(4, callsStarted_); 382 } 383 if (callsSucceeded_ != 0L) { 384 size += com.google.protobuf.CodedOutputStream 385 .computeInt64Size(5, callsSucceeded_); 386 } 387 if (callsFailed_ != 0L) { 388 size += com.google.protobuf.CodedOutputStream 389 .computeInt64Size(6, callsFailed_); 390 } 391 if (lastCallStartedTimestamp_ != null) { 392 size += com.google.protobuf.CodedOutputStream 393 .computeMessageSize(7, getLastCallStartedTimestamp()); 394 } 395 size += unknownFields.getSerializedSize(); 396 memoizedSize = size; 397 return size; 398 } 399 400 @java.lang.Override equals(final java.lang.Object obj)401 public boolean equals(final java.lang.Object obj) { 402 if (obj == this) { 403 return true; 404 } 405 if (!(obj instanceof io.grpc.channelz.v1.ChannelData)) { 406 return super.equals(obj); 407 } 408 io.grpc.channelz.v1.ChannelData other = (io.grpc.channelz.v1.ChannelData) obj; 409 410 boolean result = true; 411 result = result && (hasState() == other.hasState()); 412 if (hasState()) { 413 result = result && getState() 414 .equals(other.getState()); 415 } 416 result = result && getTarget() 417 .equals(other.getTarget()); 418 result = result && (hasTrace() == other.hasTrace()); 419 if (hasTrace()) { 420 result = result && getTrace() 421 .equals(other.getTrace()); 422 } 423 result = result && (getCallsStarted() 424 == other.getCallsStarted()); 425 result = result && (getCallsSucceeded() 426 == other.getCallsSucceeded()); 427 result = result && (getCallsFailed() 428 == other.getCallsFailed()); 429 result = result && (hasLastCallStartedTimestamp() == other.hasLastCallStartedTimestamp()); 430 if (hasLastCallStartedTimestamp()) { 431 result = result && getLastCallStartedTimestamp() 432 .equals(other.getLastCallStartedTimestamp()); 433 } 434 result = result && unknownFields.equals(other.unknownFields); 435 return result; 436 } 437 438 @java.lang.Override hashCode()439 public int hashCode() { 440 if (memoizedHashCode != 0) { 441 return memoizedHashCode; 442 } 443 int hash = 41; 444 hash = (19 * hash) + getDescriptor().hashCode(); 445 if (hasState()) { 446 hash = (37 * hash) + STATE_FIELD_NUMBER; 447 hash = (53 * hash) + getState().hashCode(); 448 } 449 hash = (37 * hash) + TARGET_FIELD_NUMBER; 450 hash = (53 * hash) + getTarget().hashCode(); 451 if (hasTrace()) { 452 hash = (37 * hash) + TRACE_FIELD_NUMBER; 453 hash = (53 * hash) + getTrace().hashCode(); 454 } 455 hash = (37 * hash) + CALLS_STARTED_FIELD_NUMBER; 456 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 457 getCallsStarted()); 458 hash = (37 * hash) + CALLS_SUCCEEDED_FIELD_NUMBER; 459 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 460 getCallsSucceeded()); 461 hash = (37 * hash) + CALLS_FAILED_FIELD_NUMBER; 462 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 463 getCallsFailed()); 464 if (hasLastCallStartedTimestamp()) { 465 hash = (37 * hash) + LAST_CALL_STARTED_TIMESTAMP_FIELD_NUMBER; 466 hash = (53 * hash) + getLastCallStartedTimestamp().hashCode(); 467 } 468 hash = (29 * hash) + unknownFields.hashCode(); 469 memoizedHashCode = hash; 470 return hash; 471 } 472 parseFrom( java.nio.ByteBuffer data)473 public static io.grpc.channelz.v1.ChannelData parseFrom( 474 java.nio.ByteBuffer data) 475 throws com.google.protobuf.InvalidProtocolBufferException { 476 return PARSER.parseFrom(data); 477 } parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)478 public static io.grpc.channelz.v1.ChannelData parseFrom( 479 java.nio.ByteBuffer data, 480 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 481 throws com.google.protobuf.InvalidProtocolBufferException { 482 return PARSER.parseFrom(data, extensionRegistry); 483 } parseFrom( com.google.protobuf.ByteString data)484 public static io.grpc.channelz.v1.ChannelData parseFrom( 485 com.google.protobuf.ByteString data) 486 throws com.google.protobuf.InvalidProtocolBufferException { 487 return PARSER.parseFrom(data); 488 } parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)489 public static io.grpc.channelz.v1.ChannelData parseFrom( 490 com.google.protobuf.ByteString data, 491 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 492 throws com.google.protobuf.InvalidProtocolBufferException { 493 return PARSER.parseFrom(data, extensionRegistry); 494 } parseFrom(byte[] data)495 public static io.grpc.channelz.v1.ChannelData parseFrom(byte[] data) 496 throws com.google.protobuf.InvalidProtocolBufferException { 497 return PARSER.parseFrom(data); 498 } parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)499 public static io.grpc.channelz.v1.ChannelData parseFrom( 500 byte[] data, 501 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 502 throws com.google.protobuf.InvalidProtocolBufferException { 503 return PARSER.parseFrom(data, extensionRegistry); 504 } parseFrom(java.io.InputStream input)505 public static io.grpc.channelz.v1.ChannelData parseFrom(java.io.InputStream input) 506 throws java.io.IOException { 507 return com.google.protobuf.GeneratedMessageV3 508 .parseWithIOException(PARSER, input); 509 } parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)510 public static io.grpc.channelz.v1.ChannelData parseFrom( 511 java.io.InputStream input, 512 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 513 throws java.io.IOException { 514 return com.google.protobuf.GeneratedMessageV3 515 .parseWithIOException(PARSER, input, extensionRegistry); 516 } parseDelimitedFrom(java.io.InputStream input)517 public static io.grpc.channelz.v1.ChannelData parseDelimitedFrom(java.io.InputStream input) 518 throws java.io.IOException { 519 return com.google.protobuf.GeneratedMessageV3 520 .parseDelimitedWithIOException(PARSER, input); 521 } parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)522 public static io.grpc.channelz.v1.ChannelData parseDelimitedFrom( 523 java.io.InputStream input, 524 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 525 throws java.io.IOException { 526 return com.google.protobuf.GeneratedMessageV3 527 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 528 } parseFrom( com.google.protobuf.CodedInputStream input)529 public static io.grpc.channelz.v1.ChannelData parseFrom( 530 com.google.protobuf.CodedInputStream input) 531 throws java.io.IOException { 532 return com.google.protobuf.GeneratedMessageV3 533 .parseWithIOException(PARSER, input); 534 } parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)535 public static io.grpc.channelz.v1.ChannelData parseFrom( 536 com.google.protobuf.CodedInputStream input, 537 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 538 throws java.io.IOException { 539 return com.google.protobuf.GeneratedMessageV3 540 .parseWithIOException(PARSER, input, extensionRegistry); 541 } 542 newBuilderForType()543 public Builder newBuilderForType() { return newBuilder(); } newBuilder()544 public static Builder newBuilder() { 545 return DEFAULT_INSTANCE.toBuilder(); 546 } newBuilder(io.grpc.channelz.v1.ChannelData prototype)547 public static Builder newBuilder(io.grpc.channelz.v1.ChannelData prototype) { 548 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 549 } toBuilder()550 public Builder toBuilder() { 551 return this == DEFAULT_INSTANCE 552 ? new Builder() : new Builder().mergeFrom(this); 553 } 554 555 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)556 protected Builder newBuilderForType( 557 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 558 Builder builder = new Builder(parent); 559 return builder; 560 } 561 /** 562 * <pre> 563 * Channel data is data related to a specific Channel or Subchannel. 564 * </pre> 565 * 566 * Protobuf type {@code grpc.channelz.v1.ChannelData} 567 */ 568 public static final class Builder extends 569 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 570 // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.ChannelData) 571 io.grpc.channelz.v1.ChannelDataOrBuilder { 572 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()573 getDescriptor() { 574 return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; 575 } 576 577 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()578 internalGetFieldAccessorTable() { 579 return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_fieldAccessorTable 580 .ensureFieldAccessorsInitialized( 581 io.grpc.channelz.v1.ChannelData.class, io.grpc.channelz.v1.ChannelData.Builder.class); 582 } 583 584 // Construct using io.grpc.channelz.v1.ChannelData.newBuilder() Builder()585 private Builder() { 586 maybeForceBuilderInitialization(); 587 } 588 Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)589 private Builder( 590 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 591 super(parent); 592 maybeForceBuilderInitialization(); 593 } maybeForceBuilderInitialization()594 private void maybeForceBuilderInitialization() { 595 if (com.google.protobuf.GeneratedMessageV3 596 .alwaysUseFieldBuilders) { 597 } 598 } clear()599 public Builder clear() { 600 super.clear(); 601 if (stateBuilder_ == null) { 602 state_ = null; 603 } else { 604 state_ = null; 605 stateBuilder_ = null; 606 } 607 target_ = ""; 608 609 if (traceBuilder_ == null) { 610 trace_ = null; 611 } else { 612 trace_ = null; 613 traceBuilder_ = null; 614 } 615 callsStarted_ = 0L; 616 617 callsSucceeded_ = 0L; 618 619 callsFailed_ = 0L; 620 621 if (lastCallStartedTimestampBuilder_ == null) { 622 lastCallStartedTimestamp_ = null; 623 } else { 624 lastCallStartedTimestamp_ = null; 625 lastCallStartedTimestampBuilder_ = null; 626 } 627 return this; 628 } 629 630 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()631 getDescriptorForType() { 632 return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; 633 } 634 getDefaultInstanceForType()635 public io.grpc.channelz.v1.ChannelData getDefaultInstanceForType() { 636 return io.grpc.channelz.v1.ChannelData.getDefaultInstance(); 637 } 638 build()639 public io.grpc.channelz.v1.ChannelData build() { 640 io.grpc.channelz.v1.ChannelData result = buildPartial(); 641 if (!result.isInitialized()) { 642 throw newUninitializedMessageException(result); 643 } 644 return result; 645 } 646 buildPartial()647 public io.grpc.channelz.v1.ChannelData buildPartial() { 648 io.grpc.channelz.v1.ChannelData result = new io.grpc.channelz.v1.ChannelData(this); 649 if (stateBuilder_ == null) { 650 result.state_ = state_; 651 } else { 652 result.state_ = stateBuilder_.build(); 653 } 654 result.target_ = target_; 655 if (traceBuilder_ == null) { 656 result.trace_ = trace_; 657 } else { 658 result.trace_ = traceBuilder_.build(); 659 } 660 result.callsStarted_ = callsStarted_; 661 result.callsSucceeded_ = callsSucceeded_; 662 result.callsFailed_ = callsFailed_; 663 if (lastCallStartedTimestampBuilder_ == null) { 664 result.lastCallStartedTimestamp_ = lastCallStartedTimestamp_; 665 } else { 666 result.lastCallStartedTimestamp_ = lastCallStartedTimestampBuilder_.build(); 667 } 668 onBuilt(); 669 return result; 670 } 671 clone()672 public Builder clone() { 673 return (Builder) super.clone(); 674 } setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)675 public Builder setField( 676 com.google.protobuf.Descriptors.FieldDescriptor field, 677 java.lang.Object value) { 678 return (Builder) super.setField(field, value); 679 } clearField( com.google.protobuf.Descriptors.FieldDescriptor field)680 public Builder clearField( 681 com.google.protobuf.Descriptors.FieldDescriptor field) { 682 return (Builder) super.clearField(field); 683 } clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof)684 public Builder clearOneof( 685 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 686 return (Builder) super.clearOneof(oneof); 687 } setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)688 public Builder setRepeatedField( 689 com.google.protobuf.Descriptors.FieldDescriptor field, 690 int index, java.lang.Object value) { 691 return (Builder) super.setRepeatedField(field, index, value); 692 } addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)693 public Builder addRepeatedField( 694 com.google.protobuf.Descriptors.FieldDescriptor field, 695 java.lang.Object value) { 696 return (Builder) super.addRepeatedField(field, value); 697 } mergeFrom(com.google.protobuf.Message other)698 public Builder mergeFrom(com.google.protobuf.Message other) { 699 if (other instanceof io.grpc.channelz.v1.ChannelData) { 700 return mergeFrom((io.grpc.channelz.v1.ChannelData)other); 701 } else { 702 super.mergeFrom(other); 703 return this; 704 } 705 } 706 mergeFrom(io.grpc.channelz.v1.ChannelData other)707 public Builder mergeFrom(io.grpc.channelz.v1.ChannelData other) { 708 if (other == io.grpc.channelz.v1.ChannelData.getDefaultInstance()) return this; 709 if (other.hasState()) { 710 mergeState(other.getState()); 711 } 712 if (!other.getTarget().isEmpty()) { 713 target_ = other.target_; 714 onChanged(); 715 } 716 if (other.hasTrace()) { 717 mergeTrace(other.getTrace()); 718 } 719 if (other.getCallsStarted() != 0L) { 720 setCallsStarted(other.getCallsStarted()); 721 } 722 if (other.getCallsSucceeded() != 0L) { 723 setCallsSucceeded(other.getCallsSucceeded()); 724 } 725 if (other.getCallsFailed() != 0L) { 726 setCallsFailed(other.getCallsFailed()); 727 } 728 if (other.hasLastCallStartedTimestamp()) { 729 mergeLastCallStartedTimestamp(other.getLastCallStartedTimestamp()); 730 } 731 this.mergeUnknownFields(other.unknownFields); 732 onChanged(); 733 return this; 734 } 735 isInitialized()736 public final boolean isInitialized() { 737 return true; 738 } 739 mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)740 public Builder mergeFrom( 741 com.google.protobuf.CodedInputStream input, 742 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 743 throws java.io.IOException { 744 io.grpc.channelz.v1.ChannelData parsedMessage = null; 745 try { 746 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 747 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 748 parsedMessage = (io.grpc.channelz.v1.ChannelData) e.getUnfinishedMessage(); 749 throw e.unwrapIOException(); 750 } finally { 751 if (parsedMessage != null) { 752 mergeFrom(parsedMessage); 753 } 754 } 755 return this; 756 } 757 758 private io.grpc.channelz.v1.ChannelConnectivityState state_ = null; 759 private com.google.protobuf.SingleFieldBuilderV3< 760 io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder> stateBuilder_; 761 /** 762 * <pre> 763 * The connectivity state of the channel or subchannel. Implementations 764 * should always set this. 765 * </pre> 766 * 767 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 768 */ hasState()769 public boolean hasState() { 770 return stateBuilder_ != null || state_ != null; 771 } 772 /** 773 * <pre> 774 * The connectivity state of the channel or subchannel. Implementations 775 * should always set this. 776 * </pre> 777 * 778 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 779 */ getState()780 public io.grpc.channelz.v1.ChannelConnectivityState getState() { 781 if (stateBuilder_ == null) { 782 return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; 783 } else { 784 return stateBuilder_.getMessage(); 785 } 786 } 787 /** 788 * <pre> 789 * The connectivity state of the channel or subchannel. Implementations 790 * should always set this. 791 * </pre> 792 * 793 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 794 */ setState(io.grpc.channelz.v1.ChannelConnectivityState value)795 public Builder setState(io.grpc.channelz.v1.ChannelConnectivityState value) { 796 if (stateBuilder_ == null) { 797 if (value == null) { 798 throw new NullPointerException(); 799 } 800 state_ = value; 801 onChanged(); 802 } else { 803 stateBuilder_.setMessage(value); 804 } 805 806 return this; 807 } 808 /** 809 * <pre> 810 * The connectivity state of the channel or subchannel. Implementations 811 * should always set this. 812 * </pre> 813 * 814 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 815 */ setState( io.grpc.channelz.v1.ChannelConnectivityState.Builder builderForValue)816 public Builder setState( 817 io.grpc.channelz.v1.ChannelConnectivityState.Builder builderForValue) { 818 if (stateBuilder_ == null) { 819 state_ = builderForValue.build(); 820 onChanged(); 821 } else { 822 stateBuilder_.setMessage(builderForValue.build()); 823 } 824 825 return this; 826 } 827 /** 828 * <pre> 829 * The connectivity state of the channel or subchannel. Implementations 830 * should always set this. 831 * </pre> 832 * 833 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 834 */ mergeState(io.grpc.channelz.v1.ChannelConnectivityState value)835 public Builder mergeState(io.grpc.channelz.v1.ChannelConnectivityState value) { 836 if (stateBuilder_ == null) { 837 if (state_ != null) { 838 state_ = 839 io.grpc.channelz.v1.ChannelConnectivityState.newBuilder(state_).mergeFrom(value).buildPartial(); 840 } else { 841 state_ = value; 842 } 843 onChanged(); 844 } else { 845 stateBuilder_.mergeFrom(value); 846 } 847 848 return this; 849 } 850 /** 851 * <pre> 852 * The connectivity state of the channel or subchannel. Implementations 853 * should always set this. 854 * </pre> 855 * 856 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 857 */ clearState()858 public Builder clearState() { 859 if (stateBuilder_ == null) { 860 state_ = null; 861 onChanged(); 862 } else { 863 state_ = null; 864 stateBuilder_ = null; 865 } 866 867 return this; 868 } 869 /** 870 * <pre> 871 * The connectivity state of the channel or subchannel. Implementations 872 * should always set this. 873 * </pre> 874 * 875 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 876 */ getStateBuilder()877 public io.grpc.channelz.v1.ChannelConnectivityState.Builder getStateBuilder() { 878 879 onChanged(); 880 return getStateFieldBuilder().getBuilder(); 881 } 882 /** 883 * <pre> 884 * The connectivity state of the channel or subchannel. Implementations 885 * should always set this. 886 * </pre> 887 * 888 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 889 */ getStateOrBuilder()890 public io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder getStateOrBuilder() { 891 if (stateBuilder_ != null) { 892 return stateBuilder_.getMessageOrBuilder(); 893 } else { 894 return state_ == null ? 895 io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; 896 } 897 } 898 /** 899 * <pre> 900 * The connectivity state of the channel or subchannel. Implementations 901 * should always set this. 902 * </pre> 903 * 904 * <code>.grpc.channelz.v1.ChannelConnectivityState state = 1;</code> 905 */ 906 private com.google.protobuf.SingleFieldBuilderV3< 907 io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder> getStateFieldBuilder()908 getStateFieldBuilder() { 909 if (stateBuilder_ == null) { 910 stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 911 io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder>( 912 getState(), 913 getParentForChildren(), 914 isClean()); 915 state_ = null; 916 } 917 return stateBuilder_; 918 } 919 920 private java.lang.Object target_ = ""; 921 /** 922 * <pre> 923 * The target this channel originally tried to connect to. May be absent 924 * </pre> 925 * 926 * <code>string target = 2;</code> 927 */ getTarget()928 public java.lang.String getTarget() { 929 java.lang.Object ref = target_; 930 if (!(ref instanceof java.lang.String)) { 931 com.google.protobuf.ByteString bs = 932 (com.google.protobuf.ByteString) ref; 933 java.lang.String s = bs.toStringUtf8(); 934 target_ = s; 935 return s; 936 } else { 937 return (java.lang.String) ref; 938 } 939 } 940 /** 941 * <pre> 942 * The target this channel originally tried to connect to. May be absent 943 * </pre> 944 * 945 * <code>string target = 2;</code> 946 */ 947 public com.google.protobuf.ByteString getTargetBytes()948 getTargetBytes() { 949 java.lang.Object ref = target_; 950 if (ref instanceof String) { 951 com.google.protobuf.ByteString b = 952 com.google.protobuf.ByteString.copyFromUtf8( 953 (java.lang.String) ref); 954 target_ = b; 955 return b; 956 } else { 957 return (com.google.protobuf.ByteString) ref; 958 } 959 } 960 /** 961 * <pre> 962 * The target this channel originally tried to connect to. May be absent 963 * </pre> 964 * 965 * <code>string target = 2;</code> 966 */ setTarget( java.lang.String value)967 public Builder setTarget( 968 java.lang.String value) { 969 if (value == null) { 970 throw new NullPointerException(); 971 } 972 973 target_ = value; 974 onChanged(); 975 return this; 976 } 977 /** 978 * <pre> 979 * The target this channel originally tried to connect to. May be absent 980 * </pre> 981 * 982 * <code>string target = 2;</code> 983 */ clearTarget()984 public Builder clearTarget() { 985 986 target_ = getDefaultInstance().getTarget(); 987 onChanged(); 988 return this; 989 } 990 /** 991 * <pre> 992 * The target this channel originally tried to connect to. May be absent 993 * </pre> 994 * 995 * <code>string target = 2;</code> 996 */ setTargetBytes( com.google.protobuf.ByteString value)997 public Builder setTargetBytes( 998 com.google.protobuf.ByteString value) { 999 if (value == null) { 1000 throw new NullPointerException(); 1001 } 1002 checkByteStringIsUtf8(value); 1003 1004 target_ = value; 1005 onChanged(); 1006 return this; 1007 } 1008 1009 private io.grpc.channelz.v1.ChannelTrace trace_ = null; 1010 private com.google.protobuf.SingleFieldBuilderV3< 1011 io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder> traceBuilder_; 1012 /** 1013 * <pre> 1014 * A trace of recent events on the channel. May be absent. 1015 * </pre> 1016 * 1017 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1018 */ hasTrace()1019 public boolean hasTrace() { 1020 return traceBuilder_ != null || trace_ != null; 1021 } 1022 /** 1023 * <pre> 1024 * A trace of recent events on the channel. May be absent. 1025 * </pre> 1026 * 1027 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1028 */ getTrace()1029 public io.grpc.channelz.v1.ChannelTrace getTrace() { 1030 if (traceBuilder_ == null) { 1031 return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; 1032 } else { 1033 return traceBuilder_.getMessage(); 1034 } 1035 } 1036 /** 1037 * <pre> 1038 * A trace of recent events on the channel. May be absent. 1039 * </pre> 1040 * 1041 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1042 */ setTrace(io.grpc.channelz.v1.ChannelTrace value)1043 public Builder setTrace(io.grpc.channelz.v1.ChannelTrace value) { 1044 if (traceBuilder_ == null) { 1045 if (value == null) { 1046 throw new NullPointerException(); 1047 } 1048 trace_ = value; 1049 onChanged(); 1050 } else { 1051 traceBuilder_.setMessage(value); 1052 } 1053 1054 return this; 1055 } 1056 /** 1057 * <pre> 1058 * A trace of recent events on the channel. May be absent. 1059 * </pre> 1060 * 1061 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1062 */ setTrace( io.grpc.channelz.v1.ChannelTrace.Builder builderForValue)1063 public Builder setTrace( 1064 io.grpc.channelz.v1.ChannelTrace.Builder builderForValue) { 1065 if (traceBuilder_ == null) { 1066 trace_ = builderForValue.build(); 1067 onChanged(); 1068 } else { 1069 traceBuilder_.setMessage(builderForValue.build()); 1070 } 1071 1072 return this; 1073 } 1074 /** 1075 * <pre> 1076 * A trace of recent events on the channel. May be absent. 1077 * </pre> 1078 * 1079 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1080 */ mergeTrace(io.grpc.channelz.v1.ChannelTrace value)1081 public Builder mergeTrace(io.grpc.channelz.v1.ChannelTrace value) { 1082 if (traceBuilder_ == null) { 1083 if (trace_ != null) { 1084 trace_ = 1085 io.grpc.channelz.v1.ChannelTrace.newBuilder(trace_).mergeFrom(value).buildPartial(); 1086 } else { 1087 trace_ = value; 1088 } 1089 onChanged(); 1090 } else { 1091 traceBuilder_.mergeFrom(value); 1092 } 1093 1094 return this; 1095 } 1096 /** 1097 * <pre> 1098 * A trace of recent events on the channel. May be absent. 1099 * </pre> 1100 * 1101 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1102 */ clearTrace()1103 public Builder clearTrace() { 1104 if (traceBuilder_ == null) { 1105 trace_ = null; 1106 onChanged(); 1107 } else { 1108 trace_ = null; 1109 traceBuilder_ = null; 1110 } 1111 1112 return this; 1113 } 1114 /** 1115 * <pre> 1116 * A trace of recent events on the channel. May be absent. 1117 * </pre> 1118 * 1119 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1120 */ getTraceBuilder()1121 public io.grpc.channelz.v1.ChannelTrace.Builder getTraceBuilder() { 1122 1123 onChanged(); 1124 return getTraceFieldBuilder().getBuilder(); 1125 } 1126 /** 1127 * <pre> 1128 * A trace of recent events on the channel. May be absent. 1129 * </pre> 1130 * 1131 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1132 */ getTraceOrBuilder()1133 public io.grpc.channelz.v1.ChannelTraceOrBuilder getTraceOrBuilder() { 1134 if (traceBuilder_ != null) { 1135 return traceBuilder_.getMessageOrBuilder(); 1136 } else { 1137 return trace_ == null ? 1138 io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; 1139 } 1140 } 1141 /** 1142 * <pre> 1143 * A trace of recent events on the channel. May be absent. 1144 * </pre> 1145 * 1146 * <code>.grpc.channelz.v1.ChannelTrace trace = 3;</code> 1147 */ 1148 private com.google.protobuf.SingleFieldBuilderV3< 1149 io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder> getTraceFieldBuilder()1150 getTraceFieldBuilder() { 1151 if (traceBuilder_ == null) { 1152 traceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1153 io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder>( 1154 getTrace(), 1155 getParentForChildren(), 1156 isClean()); 1157 trace_ = null; 1158 } 1159 return traceBuilder_; 1160 } 1161 1162 private long callsStarted_ ; 1163 /** 1164 * <pre> 1165 * The number of calls started on the channel 1166 * </pre> 1167 * 1168 * <code>int64 calls_started = 4;</code> 1169 */ getCallsStarted()1170 public long getCallsStarted() { 1171 return callsStarted_; 1172 } 1173 /** 1174 * <pre> 1175 * The number of calls started on the channel 1176 * </pre> 1177 * 1178 * <code>int64 calls_started = 4;</code> 1179 */ setCallsStarted(long value)1180 public Builder setCallsStarted(long value) { 1181 1182 callsStarted_ = value; 1183 onChanged(); 1184 return this; 1185 } 1186 /** 1187 * <pre> 1188 * The number of calls started on the channel 1189 * </pre> 1190 * 1191 * <code>int64 calls_started = 4;</code> 1192 */ clearCallsStarted()1193 public Builder clearCallsStarted() { 1194 1195 callsStarted_ = 0L; 1196 onChanged(); 1197 return this; 1198 } 1199 1200 private long callsSucceeded_ ; 1201 /** 1202 * <pre> 1203 * The number of calls that have completed with an OK status 1204 * </pre> 1205 * 1206 * <code>int64 calls_succeeded = 5;</code> 1207 */ getCallsSucceeded()1208 public long getCallsSucceeded() { 1209 return callsSucceeded_; 1210 } 1211 /** 1212 * <pre> 1213 * The number of calls that have completed with an OK status 1214 * </pre> 1215 * 1216 * <code>int64 calls_succeeded = 5;</code> 1217 */ setCallsSucceeded(long value)1218 public Builder setCallsSucceeded(long value) { 1219 1220 callsSucceeded_ = value; 1221 onChanged(); 1222 return this; 1223 } 1224 /** 1225 * <pre> 1226 * The number of calls that have completed with an OK status 1227 * </pre> 1228 * 1229 * <code>int64 calls_succeeded = 5;</code> 1230 */ clearCallsSucceeded()1231 public Builder clearCallsSucceeded() { 1232 1233 callsSucceeded_ = 0L; 1234 onChanged(); 1235 return this; 1236 } 1237 1238 private long callsFailed_ ; 1239 /** 1240 * <pre> 1241 * The number of calls that have completed with a non-OK status 1242 * </pre> 1243 * 1244 * <code>int64 calls_failed = 6;</code> 1245 */ getCallsFailed()1246 public long getCallsFailed() { 1247 return callsFailed_; 1248 } 1249 /** 1250 * <pre> 1251 * The number of calls that have completed with a non-OK status 1252 * </pre> 1253 * 1254 * <code>int64 calls_failed = 6;</code> 1255 */ setCallsFailed(long value)1256 public Builder setCallsFailed(long value) { 1257 1258 callsFailed_ = value; 1259 onChanged(); 1260 return this; 1261 } 1262 /** 1263 * <pre> 1264 * The number of calls that have completed with a non-OK status 1265 * </pre> 1266 * 1267 * <code>int64 calls_failed = 6;</code> 1268 */ clearCallsFailed()1269 public Builder clearCallsFailed() { 1270 1271 callsFailed_ = 0L; 1272 onChanged(); 1273 return this; 1274 } 1275 1276 private com.google.protobuf.Timestamp lastCallStartedTimestamp_ = null; 1277 private com.google.protobuf.SingleFieldBuilderV3< 1278 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastCallStartedTimestampBuilder_; 1279 /** 1280 * <pre> 1281 * The last time a call was started on the channel. 1282 * </pre> 1283 * 1284 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1285 */ hasLastCallStartedTimestamp()1286 public boolean hasLastCallStartedTimestamp() { 1287 return lastCallStartedTimestampBuilder_ != null || lastCallStartedTimestamp_ != null; 1288 } 1289 /** 1290 * <pre> 1291 * The last time a call was started on the channel. 1292 * </pre> 1293 * 1294 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1295 */ getLastCallStartedTimestamp()1296 public com.google.protobuf.Timestamp getLastCallStartedTimestamp() { 1297 if (lastCallStartedTimestampBuilder_ == null) { 1298 return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; 1299 } else { 1300 return lastCallStartedTimestampBuilder_.getMessage(); 1301 } 1302 } 1303 /** 1304 * <pre> 1305 * The last time a call was started on the channel. 1306 * </pre> 1307 * 1308 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1309 */ setLastCallStartedTimestamp(com.google.protobuf.Timestamp value)1310 public Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp value) { 1311 if (lastCallStartedTimestampBuilder_ == null) { 1312 if (value == null) { 1313 throw new NullPointerException(); 1314 } 1315 lastCallStartedTimestamp_ = value; 1316 onChanged(); 1317 } else { 1318 lastCallStartedTimestampBuilder_.setMessage(value); 1319 } 1320 1321 return this; 1322 } 1323 /** 1324 * <pre> 1325 * The last time a call was started on the channel. 1326 * </pre> 1327 * 1328 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1329 */ setLastCallStartedTimestamp( com.google.protobuf.Timestamp.Builder builderForValue)1330 public Builder setLastCallStartedTimestamp( 1331 com.google.protobuf.Timestamp.Builder builderForValue) { 1332 if (lastCallStartedTimestampBuilder_ == null) { 1333 lastCallStartedTimestamp_ = builderForValue.build(); 1334 onChanged(); 1335 } else { 1336 lastCallStartedTimestampBuilder_.setMessage(builderForValue.build()); 1337 } 1338 1339 return this; 1340 } 1341 /** 1342 * <pre> 1343 * The last time a call was started on the channel. 1344 * </pre> 1345 * 1346 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1347 */ mergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value)1348 public Builder mergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value) { 1349 if (lastCallStartedTimestampBuilder_ == null) { 1350 if (lastCallStartedTimestamp_ != null) { 1351 lastCallStartedTimestamp_ = 1352 com.google.protobuf.Timestamp.newBuilder(lastCallStartedTimestamp_).mergeFrom(value).buildPartial(); 1353 } else { 1354 lastCallStartedTimestamp_ = value; 1355 } 1356 onChanged(); 1357 } else { 1358 lastCallStartedTimestampBuilder_.mergeFrom(value); 1359 } 1360 1361 return this; 1362 } 1363 /** 1364 * <pre> 1365 * The last time a call was started on the channel. 1366 * </pre> 1367 * 1368 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1369 */ clearLastCallStartedTimestamp()1370 public Builder clearLastCallStartedTimestamp() { 1371 if (lastCallStartedTimestampBuilder_ == null) { 1372 lastCallStartedTimestamp_ = null; 1373 onChanged(); 1374 } else { 1375 lastCallStartedTimestamp_ = null; 1376 lastCallStartedTimestampBuilder_ = null; 1377 } 1378 1379 return this; 1380 } 1381 /** 1382 * <pre> 1383 * The last time a call was started on the channel. 1384 * </pre> 1385 * 1386 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1387 */ getLastCallStartedTimestampBuilder()1388 public com.google.protobuf.Timestamp.Builder getLastCallStartedTimestampBuilder() { 1389 1390 onChanged(); 1391 return getLastCallStartedTimestampFieldBuilder().getBuilder(); 1392 } 1393 /** 1394 * <pre> 1395 * The last time a call was started on the channel. 1396 * </pre> 1397 * 1398 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1399 */ getLastCallStartedTimestampOrBuilder()1400 public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder() { 1401 if (lastCallStartedTimestampBuilder_ != null) { 1402 return lastCallStartedTimestampBuilder_.getMessageOrBuilder(); 1403 } else { 1404 return lastCallStartedTimestamp_ == null ? 1405 com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; 1406 } 1407 } 1408 /** 1409 * <pre> 1410 * The last time a call was started on the channel. 1411 * </pre> 1412 * 1413 * <code>.google.protobuf.Timestamp last_call_started_timestamp = 7;</code> 1414 */ 1415 private com.google.protobuf.SingleFieldBuilderV3< 1416 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastCallStartedTimestampFieldBuilder()1417 getLastCallStartedTimestampFieldBuilder() { 1418 if (lastCallStartedTimestampBuilder_ == null) { 1419 lastCallStartedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1420 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( 1421 getLastCallStartedTimestamp(), 1422 getParentForChildren(), 1423 isClean()); 1424 lastCallStartedTimestamp_ = null; 1425 } 1426 return lastCallStartedTimestampBuilder_; 1427 } setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1428 public final Builder setUnknownFields( 1429 final com.google.protobuf.UnknownFieldSet unknownFields) { 1430 return super.setUnknownFieldsProto3(unknownFields); 1431 } 1432 mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1433 public final Builder mergeUnknownFields( 1434 final com.google.protobuf.UnknownFieldSet unknownFields) { 1435 return super.mergeUnknownFields(unknownFields); 1436 } 1437 1438 1439 // @@protoc_insertion_point(builder_scope:grpc.channelz.v1.ChannelData) 1440 } 1441 1442 // @@protoc_insertion_point(class_scope:grpc.channelz.v1.ChannelData) 1443 private static final io.grpc.channelz.v1.ChannelData DEFAULT_INSTANCE; 1444 static { 1445 DEFAULT_INSTANCE = new io.grpc.channelz.v1.ChannelData(); 1446 } 1447 getDefaultInstance()1448 public static io.grpc.channelz.v1.ChannelData getDefaultInstance() { 1449 return DEFAULT_INSTANCE; 1450 } 1451 1452 private static final com.google.protobuf.Parser<ChannelData> 1453 PARSER = new com.google.protobuf.AbstractParser<ChannelData>() { 1454 public ChannelData parsePartialFrom( 1455 com.google.protobuf.CodedInputStream input, 1456 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1457 throws com.google.protobuf.InvalidProtocolBufferException { 1458 return new ChannelData(input, extensionRegistry); 1459 } 1460 }; 1461 parser()1462 public static com.google.protobuf.Parser<ChannelData> parser() { 1463 return PARSER; 1464 } 1465 1466 @java.lang.Override getParserForType()1467 public com.google.protobuf.Parser<ChannelData> getParserForType() { 1468 return PARSER; 1469 } 1470 getDefaultInstanceForType()1471 public io.grpc.channelz.v1.ChannelData getDefaultInstanceForType() { 1472 return DEFAULT_INSTANCE; 1473 } 1474 1475 } 1476 1477