001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: TraceAdmin.proto 003 004package org.apache.hadoop.tracing; 005 006public final class TraceAdminPB { 007 private TraceAdminPB() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistry registry) { 010 } 011 public interface ListSpanReceiversRequestProtoOrBuilder 012 extends com.google.protobuf.MessageOrBuilder { 013 } 014 /** 015 * Protobuf type {@code hadoop.common.ListSpanReceiversRequestProto} 016 */ 017 public static final class ListSpanReceiversRequestProto extends 018 com.google.protobuf.GeneratedMessage 019 implements ListSpanReceiversRequestProtoOrBuilder { 020 // Use ListSpanReceiversRequestProto.newBuilder() to construct. 021 private ListSpanReceiversRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 022 super(builder); 023 this.unknownFields = builder.getUnknownFields(); 024 } 025 private ListSpanReceiversRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 026 027 private static final ListSpanReceiversRequestProto defaultInstance; 028 public static ListSpanReceiversRequestProto getDefaultInstance() { 029 return defaultInstance; 030 } 031 032 public ListSpanReceiversRequestProto getDefaultInstanceForType() { 033 return defaultInstance; 034 } 035 036 private final com.google.protobuf.UnknownFieldSet unknownFields; 037 @java.lang.Override 038 public final com.google.protobuf.UnknownFieldSet 039 getUnknownFields() { 040 return this.unknownFields; 041 } 042 private ListSpanReceiversRequestProto( 043 com.google.protobuf.CodedInputStream input, 044 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 045 throws com.google.protobuf.InvalidProtocolBufferException { 046 initFields(); 047 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 048 com.google.protobuf.UnknownFieldSet.newBuilder(); 049 try { 050 boolean done = false; 051 while (!done) { 052 int tag = input.readTag(); 053 switch (tag) { 054 case 0: 055 done = true; 056 break; 057 default: { 058 if (!parseUnknownField(input, unknownFields, 059 extensionRegistry, tag)) { 060 done = true; 061 } 062 break; 063 } 064 } 065 } 066 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 067 throw e.setUnfinishedMessage(this); 068 } catch (java.io.IOException e) { 069 throw new com.google.protobuf.InvalidProtocolBufferException( 070 e.getMessage()).setUnfinishedMessage(this); 071 } finally { 072 this.unknownFields = unknownFields.build(); 073 makeExtensionsImmutable(); 074 } 075 } 076 public static final com.google.protobuf.Descriptors.Descriptor 077 getDescriptor() { 078 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor; 079 } 080 081 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 082 internalGetFieldAccessorTable() { 083 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversRequestProto_fieldAccessorTable 084 .ensureFieldAccessorsInitialized( 085 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.Builder.class); 086 } 087 088 public static com.google.protobuf.Parser<ListSpanReceiversRequestProto> PARSER = 089 new com.google.protobuf.AbstractParser<ListSpanReceiversRequestProto>() { 090 public ListSpanReceiversRequestProto parsePartialFrom( 091 com.google.protobuf.CodedInputStream input, 092 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 093 throws com.google.protobuf.InvalidProtocolBufferException { 094 return new ListSpanReceiversRequestProto(input, extensionRegistry); 095 } 096 }; 097 098 @java.lang.Override 099 public com.google.protobuf.Parser<ListSpanReceiversRequestProto> getParserForType() { 100 return PARSER; 101 } 102 103 private void initFields() { 104 } 105 private byte memoizedIsInitialized = -1; 106 public final boolean isInitialized() { 107 byte isInitialized = memoizedIsInitialized; 108 if (isInitialized != -1) return isInitialized == 1; 109 110 memoizedIsInitialized = 1; 111 return true; 112 } 113 114 public void writeTo(com.google.protobuf.CodedOutputStream output) 115 throws java.io.IOException { 116 getSerializedSize(); 117 getUnknownFields().writeTo(output); 118 } 119 120 private int memoizedSerializedSize = -1; 121 public int getSerializedSize() { 122 int size = memoizedSerializedSize; 123 if (size != -1) return size; 124 125 size = 0; 126 size += getUnknownFields().getSerializedSize(); 127 memoizedSerializedSize = size; 128 return size; 129 } 130 131 private static final long serialVersionUID = 0L; 132 @java.lang.Override 133 protected java.lang.Object writeReplace() 134 throws java.io.ObjectStreamException { 135 return super.writeReplace(); 136 } 137 138 @java.lang.Override 139 public boolean equals(final java.lang.Object obj) { 140 if (obj == this) { 141 return true; 142 } 143 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto)) { 144 return super.equals(obj); 145 } 146 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto other = (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto) obj; 147 148 boolean result = true; 149 result = result && 150 getUnknownFields().equals(other.getUnknownFields()); 151 return result; 152 } 153 154 private int memoizedHashCode = 0; 155 @java.lang.Override 156 public int hashCode() { 157 if (memoizedHashCode != 0) { 158 return memoizedHashCode; 159 } 160 int hash = 41; 161 hash = (19 * hash) + getDescriptorForType().hashCode(); 162 hash = (29 * hash) + getUnknownFields().hashCode(); 163 memoizedHashCode = hash; 164 return hash; 165 } 166 167 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 168 com.google.protobuf.ByteString data) 169 throws com.google.protobuf.InvalidProtocolBufferException { 170 return PARSER.parseFrom(data); 171 } 172 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 173 com.google.protobuf.ByteString data, 174 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 175 throws com.google.protobuf.InvalidProtocolBufferException { 176 return PARSER.parseFrom(data, extensionRegistry); 177 } 178 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom(byte[] data) 179 throws com.google.protobuf.InvalidProtocolBufferException { 180 return PARSER.parseFrom(data); 181 } 182 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 183 byte[] data, 184 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 185 throws com.google.protobuf.InvalidProtocolBufferException { 186 return PARSER.parseFrom(data, extensionRegistry); 187 } 188 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom(java.io.InputStream input) 189 throws java.io.IOException { 190 return PARSER.parseFrom(input); 191 } 192 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 193 java.io.InputStream input, 194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 195 throws java.io.IOException { 196 return PARSER.parseFrom(input, extensionRegistry); 197 } 198 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseDelimitedFrom(java.io.InputStream input) 199 throws java.io.IOException { 200 return PARSER.parseDelimitedFrom(input); 201 } 202 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseDelimitedFrom( 203 java.io.InputStream input, 204 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 205 throws java.io.IOException { 206 return PARSER.parseDelimitedFrom(input, extensionRegistry); 207 } 208 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 209 com.google.protobuf.CodedInputStream input) 210 throws java.io.IOException { 211 return PARSER.parseFrom(input); 212 } 213 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parseFrom( 214 com.google.protobuf.CodedInputStream input, 215 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 216 throws java.io.IOException { 217 return PARSER.parseFrom(input, extensionRegistry); 218 } 219 220 public static Builder newBuilder() { return Builder.create(); } 221 public Builder newBuilderForType() { return newBuilder(); } 222 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto prototype) { 223 return newBuilder().mergeFrom(prototype); 224 } 225 public Builder toBuilder() { return newBuilder(this); } 226 227 @java.lang.Override 228 protected Builder newBuilderForType( 229 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 230 Builder builder = new Builder(parent); 231 return builder; 232 } 233 /** 234 * Protobuf type {@code hadoop.common.ListSpanReceiversRequestProto} 235 */ 236 public static final class Builder extends 237 com.google.protobuf.GeneratedMessage.Builder<Builder> 238 implements org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProtoOrBuilder { 239 public static final com.google.protobuf.Descriptors.Descriptor 240 getDescriptor() { 241 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor; 242 } 243 244 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 245 internalGetFieldAccessorTable() { 246 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversRequestProto_fieldAccessorTable 247 .ensureFieldAccessorsInitialized( 248 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.Builder.class); 249 } 250 251 // Construct using org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.newBuilder() 252 private Builder() { 253 maybeForceBuilderInitialization(); 254 } 255 256 private Builder( 257 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 258 super(parent); 259 maybeForceBuilderInitialization(); 260 } 261 private void maybeForceBuilderInitialization() { 262 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 263 } 264 } 265 private static Builder create() { 266 return new Builder(); 267 } 268 269 public Builder clear() { 270 super.clear(); 271 return this; 272 } 273 274 public Builder clone() { 275 return create().mergeFrom(buildPartial()); 276 } 277 278 public com.google.protobuf.Descriptors.Descriptor 279 getDescriptorForType() { 280 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor; 281 } 282 283 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto getDefaultInstanceForType() { 284 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.getDefaultInstance(); 285 } 286 287 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto build() { 288 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto result = buildPartial(); 289 if (!result.isInitialized()) { 290 throw newUninitializedMessageException(result); 291 } 292 return result; 293 } 294 295 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto buildPartial() { 296 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto result = new org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto(this); 297 onBuilt(); 298 return result; 299 } 300 301 public Builder mergeFrom(com.google.protobuf.Message other) { 302 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto) { 303 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto)other); 304 } else { 305 super.mergeFrom(other); 306 return this; 307 } 308 } 309 310 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto other) { 311 if (other == org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.getDefaultInstance()) return this; 312 this.mergeUnknownFields(other.getUnknownFields()); 313 return this; 314 } 315 316 public final boolean isInitialized() { 317 return true; 318 } 319 320 public Builder mergeFrom( 321 com.google.protobuf.CodedInputStream input, 322 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 323 throws java.io.IOException { 324 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto parsedMessage = null; 325 try { 326 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 327 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 328 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto) e.getUnfinishedMessage(); 329 throw e; 330 } finally { 331 if (parsedMessage != null) { 332 mergeFrom(parsedMessage); 333 } 334 } 335 return this; 336 } 337 338 // @@protoc_insertion_point(builder_scope:hadoop.common.ListSpanReceiversRequestProto) 339 } 340 341 static { 342 defaultInstance = new ListSpanReceiversRequestProto(true); 343 defaultInstance.initFields(); 344 } 345 346 // @@protoc_insertion_point(class_scope:hadoop.common.ListSpanReceiversRequestProto) 347 } 348 349 public interface SpanReceiverListInfoOrBuilder 350 extends com.google.protobuf.MessageOrBuilder { 351 352 // required int64 id = 1; 353 /** 354 * <code>required int64 id = 1;</code> 355 */ 356 boolean hasId(); 357 /** 358 * <code>required int64 id = 1;</code> 359 */ 360 long getId(); 361 362 // required string className = 2; 363 /** 364 * <code>required string className = 2;</code> 365 */ 366 boolean hasClassName(); 367 /** 368 * <code>required string className = 2;</code> 369 */ 370 java.lang.String getClassName(); 371 /** 372 * <code>required string className = 2;</code> 373 */ 374 com.google.protobuf.ByteString 375 getClassNameBytes(); 376 } 377 /** 378 * Protobuf type {@code hadoop.common.SpanReceiverListInfo} 379 */ 380 public static final class SpanReceiverListInfo extends 381 com.google.protobuf.GeneratedMessage 382 implements SpanReceiverListInfoOrBuilder { 383 // Use SpanReceiverListInfo.newBuilder() to construct. 384 private SpanReceiverListInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 385 super(builder); 386 this.unknownFields = builder.getUnknownFields(); 387 } 388 private SpanReceiverListInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 389 390 private static final SpanReceiverListInfo defaultInstance; 391 public static SpanReceiverListInfo getDefaultInstance() { 392 return defaultInstance; 393 } 394 395 public SpanReceiverListInfo getDefaultInstanceForType() { 396 return defaultInstance; 397 } 398 399 private final com.google.protobuf.UnknownFieldSet unknownFields; 400 @java.lang.Override 401 public final com.google.protobuf.UnknownFieldSet 402 getUnknownFields() { 403 return this.unknownFields; 404 } 405 private SpanReceiverListInfo( 406 com.google.protobuf.CodedInputStream input, 407 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 408 throws com.google.protobuf.InvalidProtocolBufferException { 409 initFields(); 410 int mutable_bitField0_ = 0; 411 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 412 com.google.protobuf.UnknownFieldSet.newBuilder(); 413 try { 414 boolean done = false; 415 while (!done) { 416 int tag = input.readTag(); 417 switch (tag) { 418 case 0: 419 done = true; 420 break; 421 default: { 422 if (!parseUnknownField(input, unknownFields, 423 extensionRegistry, tag)) { 424 done = true; 425 } 426 break; 427 } 428 case 8: { 429 bitField0_ |= 0x00000001; 430 id_ = input.readInt64(); 431 break; 432 } 433 case 18: { 434 bitField0_ |= 0x00000002; 435 className_ = input.readBytes(); 436 break; 437 } 438 } 439 } 440 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 441 throw e.setUnfinishedMessage(this); 442 } catch (java.io.IOException e) { 443 throw new com.google.protobuf.InvalidProtocolBufferException( 444 e.getMessage()).setUnfinishedMessage(this); 445 } finally { 446 this.unknownFields = unknownFields.build(); 447 makeExtensionsImmutable(); 448 } 449 } 450 public static final com.google.protobuf.Descriptors.Descriptor 451 getDescriptor() { 452 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_SpanReceiverListInfo_descriptor; 453 } 454 455 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 456 internalGetFieldAccessorTable() { 457 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_SpanReceiverListInfo_fieldAccessorTable 458 .ensureFieldAccessorsInitialized( 459 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.class, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder.class); 460 } 461 462 public static com.google.protobuf.Parser<SpanReceiverListInfo> PARSER = 463 new com.google.protobuf.AbstractParser<SpanReceiverListInfo>() { 464 public SpanReceiverListInfo parsePartialFrom( 465 com.google.protobuf.CodedInputStream input, 466 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 467 throws com.google.protobuf.InvalidProtocolBufferException { 468 return new SpanReceiverListInfo(input, extensionRegistry); 469 } 470 }; 471 472 @java.lang.Override 473 public com.google.protobuf.Parser<SpanReceiverListInfo> getParserForType() { 474 return PARSER; 475 } 476 477 private int bitField0_; 478 // required int64 id = 1; 479 public static final int ID_FIELD_NUMBER = 1; 480 private long id_; 481 /** 482 * <code>required int64 id = 1;</code> 483 */ 484 public boolean hasId() { 485 return ((bitField0_ & 0x00000001) == 0x00000001); 486 } 487 /** 488 * <code>required int64 id = 1;</code> 489 */ 490 public long getId() { 491 return id_; 492 } 493 494 // required string className = 2; 495 public static final int CLASSNAME_FIELD_NUMBER = 2; 496 private java.lang.Object className_; 497 /** 498 * <code>required string className = 2;</code> 499 */ 500 public boolean hasClassName() { 501 return ((bitField0_ & 0x00000002) == 0x00000002); 502 } 503 /** 504 * <code>required string className = 2;</code> 505 */ 506 public java.lang.String getClassName() { 507 java.lang.Object ref = className_; 508 if (ref instanceof java.lang.String) { 509 return (java.lang.String) ref; 510 } else { 511 com.google.protobuf.ByteString bs = 512 (com.google.protobuf.ByteString) ref; 513 java.lang.String s = bs.toStringUtf8(); 514 if (bs.isValidUtf8()) { 515 className_ = s; 516 } 517 return s; 518 } 519 } 520 /** 521 * <code>required string className = 2;</code> 522 */ 523 public com.google.protobuf.ByteString 524 getClassNameBytes() { 525 java.lang.Object ref = className_; 526 if (ref instanceof java.lang.String) { 527 com.google.protobuf.ByteString b = 528 com.google.protobuf.ByteString.copyFromUtf8( 529 (java.lang.String) ref); 530 className_ = b; 531 return b; 532 } else { 533 return (com.google.protobuf.ByteString) ref; 534 } 535 } 536 537 private void initFields() { 538 id_ = 0L; 539 className_ = ""; 540 } 541 private byte memoizedIsInitialized = -1; 542 public final boolean isInitialized() { 543 byte isInitialized = memoizedIsInitialized; 544 if (isInitialized != -1) return isInitialized == 1; 545 546 if (!hasId()) { 547 memoizedIsInitialized = 0; 548 return false; 549 } 550 if (!hasClassName()) { 551 memoizedIsInitialized = 0; 552 return false; 553 } 554 memoizedIsInitialized = 1; 555 return true; 556 } 557 558 public void writeTo(com.google.protobuf.CodedOutputStream output) 559 throws java.io.IOException { 560 getSerializedSize(); 561 if (((bitField0_ & 0x00000001) == 0x00000001)) { 562 output.writeInt64(1, id_); 563 } 564 if (((bitField0_ & 0x00000002) == 0x00000002)) { 565 output.writeBytes(2, getClassNameBytes()); 566 } 567 getUnknownFields().writeTo(output); 568 } 569 570 private int memoizedSerializedSize = -1; 571 public int getSerializedSize() { 572 int size = memoizedSerializedSize; 573 if (size != -1) return size; 574 575 size = 0; 576 if (((bitField0_ & 0x00000001) == 0x00000001)) { 577 size += com.google.protobuf.CodedOutputStream 578 .computeInt64Size(1, id_); 579 } 580 if (((bitField0_ & 0x00000002) == 0x00000002)) { 581 size += com.google.protobuf.CodedOutputStream 582 .computeBytesSize(2, getClassNameBytes()); 583 } 584 size += getUnknownFields().getSerializedSize(); 585 memoizedSerializedSize = size; 586 return size; 587 } 588 589 private static final long serialVersionUID = 0L; 590 @java.lang.Override 591 protected java.lang.Object writeReplace() 592 throws java.io.ObjectStreamException { 593 return super.writeReplace(); 594 } 595 596 @java.lang.Override 597 public boolean equals(final java.lang.Object obj) { 598 if (obj == this) { 599 return true; 600 } 601 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo)) { 602 return super.equals(obj); 603 } 604 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo other = (org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo) obj; 605 606 boolean result = true; 607 result = result && (hasId() == other.hasId()); 608 if (hasId()) { 609 result = result && (getId() 610 == other.getId()); 611 } 612 result = result && (hasClassName() == other.hasClassName()); 613 if (hasClassName()) { 614 result = result && getClassName() 615 .equals(other.getClassName()); 616 } 617 result = result && 618 getUnknownFields().equals(other.getUnknownFields()); 619 return result; 620 } 621 622 private int memoizedHashCode = 0; 623 @java.lang.Override 624 public int hashCode() { 625 if (memoizedHashCode != 0) { 626 return memoizedHashCode; 627 } 628 int hash = 41; 629 hash = (19 * hash) + getDescriptorForType().hashCode(); 630 if (hasId()) { 631 hash = (37 * hash) + ID_FIELD_NUMBER; 632 hash = (53 * hash) + hashLong(getId()); 633 } 634 if (hasClassName()) { 635 hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; 636 hash = (53 * hash) + getClassName().hashCode(); 637 } 638 hash = (29 * hash) + getUnknownFields().hashCode(); 639 memoizedHashCode = hash; 640 return hash; 641 } 642 643 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 644 com.google.protobuf.ByteString data) 645 throws com.google.protobuf.InvalidProtocolBufferException { 646 return PARSER.parseFrom(data); 647 } 648 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 649 com.google.protobuf.ByteString data, 650 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 651 throws com.google.protobuf.InvalidProtocolBufferException { 652 return PARSER.parseFrom(data, extensionRegistry); 653 } 654 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom(byte[] data) 655 throws com.google.protobuf.InvalidProtocolBufferException { 656 return PARSER.parseFrom(data); 657 } 658 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 659 byte[] data, 660 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 661 throws com.google.protobuf.InvalidProtocolBufferException { 662 return PARSER.parseFrom(data, extensionRegistry); 663 } 664 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom(java.io.InputStream input) 665 throws java.io.IOException { 666 return PARSER.parseFrom(input); 667 } 668 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 669 java.io.InputStream input, 670 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 671 throws java.io.IOException { 672 return PARSER.parseFrom(input, extensionRegistry); 673 } 674 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseDelimitedFrom(java.io.InputStream input) 675 throws java.io.IOException { 676 return PARSER.parseDelimitedFrom(input); 677 } 678 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseDelimitedFrom( 679 java.io.InputStream input, 680 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 681 throws java.io.IOException { 682 return PARSER.parseDelimitedFrom(input, extensionRegistry); 683 } 684 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 685 com.google.protobuf.CodedInputStream input) 686 throws java.io.IOException { 687 return PARSER.parseFrom(input); 688 } 689 public static org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parseFrom( 690 com.google.protobuf.CodedInputStream input, 691 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 692 throws java.io.IOException { 693 return PARSER.parseFrom(input, extensionRegistry); 694 } 695 696 public static Builder newBuilder() { return Builder.create(); } 697 public Builder newBuilderForType() { return newBuilder(); } 698 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo prototype) { 699 return newBuilder().mergeFrom(prototype); 700 } 701 public Builder toBuilder() { return newBuilder(this); } 702 703 @java.lang.Override 704 protected Builder newBuilderForType( 705 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 706 Builder builder = new Builder(parent); 707 return builder; 708 } 709 /** 710 * Protobuf type {@code hadoop.common.SpanReceiverListInfo} 711 */ 712 public static final class Builder extends 713 com.google.protobuf.GeneratedMessage.Builder<Builder> 714 implements org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder { 715 public static final com.google.protobuf.Descriptors.Descriptor 716 getDescriptor() { 717 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_SpanReceiverListInfo_descriptor; 718 } 719 720 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 721 internalGetFieldAccessorTable() { 722 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_SpanReceiverListInfo_fieldAccessorTable 723 .ensureFieldAccessorsInitialized( 724 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.class, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder.class); 725 } 726 727 // Construct using org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.newBuilder() 728 private Builder() { 729 maybeForceBuilderInitialization(); 730 } 731 732 private Builder( 733 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 734 super(parent); 735 maybeForceBuilderInitialization(); 736 } 737 private void maybeForceBuilderInitialization() { 738 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 739 } 740 } 741 private static Builder create() { 742 return new Builder(); 743 } 744 745 public Builder clear() { 746 super.clear(); 747 id_ = 0L; 748 bitField0_ = (bitField0_ & ~0x00000001); 749 className_ = ""; 750 bitField0_ = (bitField0_ & ~0x00000002); 751 return this; 752 } 753 754 public Builder clone() { 755 return create().mergeFrom(buildPartial()); 756 } 757 758 public com.google.protobuf.Descriptors.Descriptor 759 getDescriptorForType() { 760 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_SpanReceiverListInfo_descriptor; 761 } 762 763 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo getDefaultInstanceForType() { 764 return org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.getDefaultInstance(); 765 } 766 767 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo build() { 768 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo result = buildPartial(); 769 if (!result.isInitialized()) { 770 throw newUninitializedMessageException(result); 771 } 772 return result; 773 } 774 775 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo buildPartial() { 776 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo result = new org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo(this); 777 int from_bitField0_ = bitField0_; 778 int to_bitField0_ = 0; 779 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 780 to_bitField0_ |= 0x00000001; 781 } 782 result.id_ = id_; 783 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 784 to_bitField0_ |= 0x00000002; 785 } 786 result.className_ = className_; 787 result.bitField0_ = to_bitField0_; 788 onBuilt(); 789 return result; 790 } 791 792 public Builder mergeFrom(com.google.protobuf.Message other) { 793 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo) { 794 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo)other); 795 } else { 796 super.mergeFrom(other); 797 return this; 798 } 799 } 800 801 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo other) { 802 if (other == org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.getDefaultInstance()) return this; 803 if (other.hasId()) { 804 setId(other.getId()); 805 } 806 if (other.hasClassName()) { 807 bitField0_ |= 0x00000002; 808 className_ = other.className_; 809 onChanged(); 810 } 811 this.mergeUnknownFields(other.getUnknownFields()); 812 return this; 813 } 814 815 public final boolean isInitialized() { 816 if (!hasId()) { 817 818 return false; 819 } 820 if (!hasClassName()) { 821 822 return false; 823 } 824 return true; 825 } 826 827 public Builder mergeFrom( 828 com.google.protobuf.CodedInputStream input, 829 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 830 throws java.io.IOException { 831 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo parsedMessage = null; 832 try { 833 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 834 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 835 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo) e.getUnfinishedMessage(); 836 throw e; 837 } finally { 838 if (parsedMessage != null) { 839 mergeFrom(parsedMessage); 840 } 841 } 842 return this; 843 } 844 private int bitField0_; 845 846 // required int64 id = 1; 847 private long id_ ; 848 /** 849 * <code>required int64 id = 1;</code> 850 */ 851 public boolean hasId() { 852 return ((bitField0_ & 0x00000001) == 0x00000001); 853 } 854 /** 855 * <code>required int64 id = 1;</code> 856 */ 857 public long getId() { 858 return id_; 859 } 860 /** 861 * <code>required int64 id = 1;</code> 862 */ 863 public Builder setId(long value) { 864 bitField0_ |= 0x00000001; 865 id_ = value; 866 onChanged(); 867 return this; 868 } 869 /** 870 * <code>required int64 id = 1;</code> 871 */ 872 public Builder clearId() { 873 bitField0_ = (bitField0_ & ~0x00000001); 874 id_ = 0L; 875 onChanged(); 876 return this; 877 } 878 879 // required string className = 2; 880 private java.lang.Object className_ = ""; 881 /** 882 * <code>required string className = 2;</code> 883 */ 884 public boolean hasClassName() { 885 return ((bitField0_ & 0x00000002) == 0x00000002); 886 } 887 /** 888 * <code>required string className = 2;</code> 889 */ 890 public java.lang.String getClassName() { 891 java.lang.Object ref = className_; 892 if (!(ref instanceof java.lang.String)) { 893 java.lang.String s = ((com.google.protobuf.ByteString) ref) 894 .toStringUtf8(); 895 className_ = s; 896 return s; 897 } else { 898 return (java.lang.String) ref; 899 } 900 } 901 /** 902 * <code>required string className = 2;</code> 903 */ 904 public com.google.protobuf.ByteString 905 getClassNameBytes() { 906 java.lang.Object ref = className_; 907 if (ref instanceof String) { 908 com.google.protobuf.ByteString b = 909 com.google.protobuf.ByteString.copyFromUtf8( 910 (java.lang.String) ref); 911 className_ = b; 912 return b; 913 } else { 914 return (com.google.protobuf.ByteString) ref; 915 } 916 } 917 /** 918 * <code>required string className = 2;</code> 919 */ 920 public Builder setClassName( 921 java.lang.String value) { 922 if (value == null) { 923 throw new NullPointerException(); 924 } 925 bitField0_ |= 0x00000002; 926 className_ = value; 927 onChanged(); 928 return this; 929 } 930 /** 931 * <code>required string className = 2;</code> 932 */ 933 public Builder clearClassName() { 934 bitField0_ = (bitField0_ & ~0x00000002); 935 className_ = getDefaultInstance().getClassName(); 936 onChanged(); 937 return this; 938 } 939 /** 940 * <code>required string className = 2;</code> 941 */ 942 public Builder setClassNameBytes( 943 com.google.protobuf.ByteString value) { 944 if (value == null) { 945 throw new NullPointerException(); 946 } 947 bitField0_ |= 0x00000002; 948 className_ = value; 949 onChanged(); 950 return this; 951 } 952 953 // @@protoc_insertion_point(builder_scope:hadoop.common.SpanReceiverListInfo) 954 } 955 956 static { 957 defaultInstance = new SpanReceiverListInfo(true); 958 defaultInstance.initFields(); 959 } 960 961 // @@protoc_insertion_point(class_scope:hadoop.common.SpanReceiverListInfo) 962 } 963 964 public interface ListSpanReceiversResponseProtoOrBuilder 965 extends com.google.protobuf.MessageOrBuilder { 966 967 // repeated .hadoop.common.SpanReceiverListInfo descriptions = 1; 968 /** 969 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 970 */ 971 java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> 972 getDescriptionsList(); 973 /** 974 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 975 */ 976 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo getDescriptions(int index); 977 /** 978 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 979 */ 980 int getDescriptionsCount(); 981 /** 982 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 983 */ 984 java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder> 985 getDescriptionsOrBuilderList(); 986 /** 987 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 988 */ 989 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder getDescriptionsOrBuilder( 990 int index); 991 } 992 /** 993 * Protobuf type {@code hadoop.common.ListSpanReceiversResponseProto} 994 */ 995 public static final class ListSpanReceiversResponseProto extends 996 com.google.protobuf.GeneratedMessage 997 implements ListSpanReceiversResponseProtoOrBuilder { 998 // Use ListSpanReceiversResponseProto.newBuilder() to construct. 999 private ListSpanReceiversResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 1000 super(builder); 1001 this.unknownFields = builder.getUnknownFields(); 1002 } 1003 private ListSpanReceiversResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 1004 1005 private static final ListSpanReceiversResponseProto defaultInstance; 1006 public static ListSpanReceiversResponseProto getDefaultInstance() { 1007 return defaultInstance; 1008 } 1009 1010 public ListSpanReceiversResponseProto getDefaultInstanceForType() { 1011 return defaultInstance; 1012 } 1013 1014 private final com.google.protobuf.UnknownFieldSet unknownFields; 1015 @java.lang.Override 1016 public final com.google.protobuf.UnknownFieldSet 1017 getUnknownFields() { 1018 return this.unknownFields; 1019 } 1020 private ListSpanReceiversResponseProto( 1021 com.google.protobuf.CodedInputStream input, 1022 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1023 throws com.google.protobuf.InvalidProtocolBufferException { 1024 initFields(); 1025 int mutable_bitField0_ = 0; 1026 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1027 com.google.protobuf.UnknownFieldSet.newBuilder(); 1028 try { 1029 boolean done = false; 1030 while (!done) { 1031 int tag = input.readTag(); 1032 switch (tag) { 1033 case 0: 1034 done = true; 1035 break; 1036 default: { 1037 if (!parseUnknownField(input, unknownFields, 1038 extensionRegistry, tag)) { 1039 done = true; 1040 } 1041 break; 1042 } 1043 case 10: { 1044 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 1045 descriptions_ = new java.util.ArrayList<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo>(); 1046 mutable_bitField0_ |= 0x00000001; 1047 } 1048 descriptions_.add(input.readMessage(org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.PARSER, extensionRegistry)); 1049 break; 1050 } 1051 } 1052 } 1053 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1054 throw e.setUnfinishedMessage(this); 1055 } catch (java.io.IOException e) { 1056 throw new com.google.protobuf.InvalidProtocolBufferException( 1057 e.getMessage()).setUnfinishedMessage(this); 1058 } finally { 1059 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 1060 descriptions_ = java.util.Collections.unmodifiableList(descriptions_); 1061 } 1062 this.unknownFields = unknownFields.build(); 1063 makeExtensionsImmutable(); 1064 } 1065 } 1066 public static final com.google.protobuf.Descriptors.Descriptor 1067 getDescriptor() { 1068 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor; 1069 } 1070 1071 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1072 internalGetFieldAccessorTable() { 1073 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversResponseProto_fieldAccessorTable 1074 .ensureFieldAccessorsInitialized( 1075 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.Builder.class); 1076 } 1077 1078 public static com.google.protobuf.Parser<ListSpanReceiversResponseProto> PARSER = 1079 new com.google.protobuf.AbstractParser<ListSpanReceiversResponseProto>() { 1080 public ListSpanReceiversResponseProto parsePartialFrom( 1081 com.google.protobuf.CodedInputStream input, 1082 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1083 throws com.google.protobuf.InvalidProtocolBufferException { 1084 return new ListSpanReceiversResponseProto(input, extensionRegistry); 1085 } 1086 }; 1087 1088 @java.lang.Override 1089 public com.google.protobuf.Parser<ListSpanReceiversResponseProto> getParserForType() { 1090 return PARSER; 1091 } 1092 1093 // repeated .hadoop.common.SpanReceiverListInfo descriptions = 1; 1094 public static final int DESCRIPTIONS_FIELD_NUMBER = 1; 1095 private java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> descriptions_; 1096 /** 1097 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1098 */ 1099 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> getDescriptionsList() { 1100 return descriptions_; 1101 } 1102 /** 1103 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1104 */ 1105 public java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder> 1106 getDescriptionsOrBuilderList() { 1107 return descriptions_; 1108 } 1109 /** 1110 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1111 */ 1112 public int getDescriptionsCount() { 1113 return descriptions_.size(); 1114 } 1115 /** 1116 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1117 */ 1118 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo getDescriptions(int index) { 1119 return descriptions_.get(index); 1120 } 1121 /** 1122 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1123 */ 1124 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder getDescriptionsOrBuilder( 1125 int index) { 1126 return descriptions_.get(index); 1127 } 1128 1129 private void initFields() { 1130 descriptions_ = java.util.Collections.emptyList(); 1131 } 1132 private byte memoizedIsInitialized = -1; 1133 public final boolean isInitialized() { 1134 byte isInitialized = memoizedIsInitialized; 1135 if (isInitialized != -1) return isInitialized == 1; 1136 1137 for (int i = 0; i < getDescriptionsCount(); i++) { 1138 if (!getDescriptions(i).isInitialized()) { 1139 memoizedIsInitialized = 0; 1140 return false; 1141 } 1142 } 1143 memoizedIsInitialized = 1; 1144 return true; 1145 } 1146 1147 public void writeTo(com.google.protobuf.CodedOutputStream output) 1148 throws java.io.IOException { 1149 getSerializedSize(); 1150 for (int i = 0; i < descriptions_.size(); i++) { 1151 output.writeMessage(1, descriptions_.get(i)); 1152 } 1153 getUnknownFields().writeTo(output); 1154 } 1155 1156 private int memoizedSerializedSize = -1; 1157 public int getSerializedSize() { 1158 int size = memoizedSerializedSize; 1159 if (size != -1) return size; 1160 1161 size = 0; 1162 for (int i = 0; i < descriptions_.size(); i++) { 1163 size += com.google.protobuf.CodedOutputStream 1164 .computeMessageSize(1, descriptions_.get(i)); 1165 } 1166 size += getUnknownFields().getSerializedSize(); 1167 memoizedSerializedSize = size; 1168 return size; 1169 } 1170 1171 private static final long serialVersionUID = 0L; 1172 @java.lang.Override 1173 protected java.lang.Object writeReplace() 1174 throws java.io.ObjectStreamException { 1175 return super.writeReplace(); 1176 } 1177 1178 @java.lang.Override 1179 public boolean equals(final java.lang.Object obj) { 1180 if (obj == this) { 1181 return true; 1182 } 1183 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto)) { 1184 return super.equals(obj); 1185 } 1186 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto other = (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto) obj; 1187 1188 boolean result = true; 1189 result = result && getDescriptionsList() 1190 .equals(other.getDescriptionsList()); 1191 result = result && 1192 getUnknownFields().equals(other.getUnknownFields()); 1193 return result; 1194 } 1195 1196 private int memoizedHashCode = 0; 1197 @java.lang.Override 1198 public int hashCode() { 1199 if (memoizedHashCode != 0) { 1200 return memoizedHashCode; 1201 } 1202 int hash = 41; 1203 hash = (19 * hash) + getDescriptorForType().hashCode(); 1204 if (getDescriptionsCount() > 0) { 1205 hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER; 1206 hash = (53 * hash) + getDescriptionsList().hashCode(); 1207 } 1208 hash = (29 * hash) + getUnknownFields().hashCode(); 1209 memoizedHashCode = hash; 1210 return hash; 1211 } 1212 1213 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1214 com.google.protobuf.ByteString data) 1215 throws com.google.protobuf.InvalidProtocolBufferException { 1216 return PARSER.parseFrom(data); 1217 } 1218 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1219 com.google.protobuf.ByteString data, 1220 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1221 throws com.google.protobuf.InvalidProtocolBufferException { 1222 return PARSER.parseFrom(data, extensionRegistry); 1223 } 1224 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom(byte[] data) 1225 throws com.google.protobuf.InvalidProtocolBufferException { 1226 return PARSER.parseFrom(data); 1227 } 1228 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1229 byte[] data, 1230 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1231 throws com.google.protobuf.InvalidProtocolBufferException { 1232 return PARSER.parseFrom(data, extensionRegistry); 1233 } 1234 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom(java.io.InputStream input) 1235 throws java.io.IOException { 1236 return PARSER.parseFrom(input); 1237 } 1238 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1239 java.io.InputStream input, 1240 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1241 throws java.io.IOException { 1242 return PARSER.parseFrom(input, extensionRegistry); 1243 } 1244 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseDelimitedFrom(java.io.InputStream input) 1245 throws java.io.IOException { 1246 return PARSER.parseDelimitedFrom(input); 1247 } 1248 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseDelimitedFrom( 1249 java.io.InputStream input, 1250 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1251 throws java.io.IOException { 1252 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1253 } 1254 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1255 com.google.protobuf.CodedInputStream input) 1256 throws java.io.IOException { 1257 return PARSER.parseFrom(input); 1258 } 1259 public static org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parseFrom( 1260 com.google.protobuf.CodedInputStream input, 1261 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1262 throws java.io.IOException { 1263 return PARSER.parseFrom(input, extensionRegistry); 1264 } 1265 1266 public static Builder newBuilder() { return Builder.create(); } 1267 public Builder newBuilderForType() { return newBuilder(); } 1268 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto prototype) { 1269 return newBuilder().mergeFrom(prototype); 1270 } 1271 public Builder toBuilder() { return newBuilder(this); } 1272 1273 @java.lang.Override 1274 protected Builder newBuilderForType( 1275 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1276 Builder builder = new Builder(parent); 1277 return builder; 1278 } 1279 /** 1280 * Protobuf type {@code hadoop.common.ListSpanReceiversResponseProto} 1281 */ 1282 public static final class Builder extends 1283 com.google.protobuf.GeneratedMessage.Builder<Builder> 1284 implements org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProtoOrBuilder { 1285 public static final com.google.protobuf.Descriptors.Descriptor 1286 getDescriptor() { 1287 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor; 1288 } 1289 1290 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1291 internalGetFieldAccessorTable() { 1292 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversResponseProto_fieldAccessorTable 1293 .ensureFieldAccessorsInitialized( 1294 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.Builder.class); 1295 } 1296 1297 // Construct using org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.newBuilder() 1298 private Builder() { 1299 maybeForceBuilderInitialization(); 1300 } 1301 1302 private Builder( 1303 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1304 super(parent); 1305 maybeForceBuilderInitialization(); 1306 } 1307 private void maybeForceBuilderInitialization() { 1308 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1309 getDescriptionsFieldBuilder(); 1310 } 1311 } 1312 private static Builder create() { 1313 return new Builder(); 1314 } 1315 1316 public Builder clear() { 1317 super.clear(); 1318 if (descriptionsBuilder_ == null) { 1319 descriptions_ = java.util.Collections.emptyList(); 1320 bitField0_ = (bitField0_ & ~0x00000001); 1321 } else { 1322 descriptionsBuilder_.clear(); 1323 } 1324 return this; 1325 } 1326 1327 public Builder clone() { 1328 return create().mergeFrom(buildPartial()); 1329 } 1330 1331 public com.google.protobuf.Descriptors.Descriptor 1332 getDescriptorForType() { 1333 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor; 1334 } 1335 1336 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto getDefaultInstanceForType() { 1337 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance(); 1338 } 1339 1340 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto build() { 1341 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto result = buildPartial(); 1342 if (!result.isInitialized()) { 1343 throw newUninitializedMessageException(result); 1344 } 1345 return result; 1346 } 1347 1348 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto buildPartial() { 1349 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto result = new org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto(this); 1350 int from_bitField0_ = bitField0_; 1351 if (descriptionsBuilder_ == null) { 1352 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1353 descriptions_ = java.util.Collections.unmodifiableList(descriptions_); 1354 bitField0_ = (bitField0_ & ~0x00000001); 1355 } 1356 result.descriptions_ = descriptions_; 1357 } else { 1358 result.descriptions_ = descriptionsBuilder_.build(); 1359 } 1360 onBuilt(); 1361 return result; 1362 } 1363 1364 public Builder mergeFrom(com.google.protobuf.Message other) { 1365 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto) { 1366 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto)other); 1367 } else { 1368 super.mergeFrom(other); 1369 return this; 1370 } 1371 } 1372 1373 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto other) { 1374 if (other == org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance()) return this; 1375 if (descriptionsBuilder_ == null) { 1376 if (!other.descriptions_.isEmpty()) { 1377 if (descriptions_.isEmpty()) { 1378 descriptions_ = other.descriptions_; 1379 bitField0_ = (bitField0_ & ~0x00000001); 1380 } else { 1381 ensureDescriptionsIsMutable(); 1382 descriptions_.addAll(other.descriptions_); 1383 } 1384 onChanged(); 1385 } 1386 } else { 1387 if (!other.descriptions_.isEmpty()) { 1388 if (descriptionsBuilder_.isEmpty()) { 1389 descriptionsBuilder_.dispose(); 1390 descriptionsBuilder_ = null; 1391 descriptions_ = other.descriptions_; 1392 bitField0_ = (bitField0_ & ~0x00000001); 1393 descriptionsBuilder_ = 1394 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 1395 getDescriptionsFieldBuilder() : null; 1396 } else { 1397 descriptionsBuilder_.addAllMessages(other.descriptions_); 1398 } 1399 } 1400 } 1401 this.mergeUnknownFields(other.getUnknownFields()); 1402 return this; 1403 } 1404 1405 public final boolean isInitialized() { 1406 for (int i = 0; i < getDescriptionsCount(); i++) { 1407 if (!getDescriptions(i).isInitialized()) { 1408 1409 return false; 1410 } 1411 } 1412 return true; 1413 } 1414 1415 public Builder mergeFrom( 1416 com.google.protobuf.CodedInputStream input, 1417 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1418 throws java.io.IOException { 1419 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto parsedMessage = null; 1420 try { 1421 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1422 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1423 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto) e.getUnfinishedMessage(); 1424 throw e; 1425 } finally { 1426 if (parsedMessage != null) { 1427 mergeFrom(parsedMessage); 1428 } 1429 } 1430 return this; 1431 } 1432 private int bitField0_; 1433 1434 // repeated .hadoop.common.SpanReceiverListInfo descriptions = 1; 1435 private java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> descriptions_ = 1436 java.util.Collections.emptyList(); 1437 private void ensureDescriptionsIsMutable() { 1438 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 1439 descriptions_ = new java.util.ArrayList<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo>(descriptions_); 1440 bitField0_ |= 0x00000001; 1441 } 1442 } 1443 1444 private com.google.protobuf.RepeatedFieldBuilder< 1445 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder> descriptionsBuilder_; 1446 1447 /** 1448 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1449 */ 1450 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> getDescriptionsList() { 1451 if (descriptionsBuilder_ == null) { 1452 return java.util.Collections.unmodifiableList(descriptions_); 1453 } else { 1454 return descriptionsBuilder_.getMessageList(); 1455 } 1456 } 1457 /** 1458 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1459 */ 1460 public int getDescriptionsCount() { 1461 if (descriptionsBuilder_ == null) { 1462 return descriptions_.size(); 1463 } else { 1464 return descriptionsBuilder_.getCount(); 1465 } 1466 } 1467 /** 1468 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1469 */ 1470 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo getDescriptions(int index) { 1471 if (descriptionsBuilder_ == null) { 1472 return descriptions_.get(index); 1473 } else { 1474 return descriptionsBuilder_.getMessage(index); 1475 } 1476 } 1477 /** 1478 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1479 */ 1480 public Builder setDescriptions( 1481 int index, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo value) { 1482 if (descriptionsBuilder_ == null) { 1483 if (value == null) { 1484 throw new NullPointerException(); 1485 } 1486 ensureDescriptionsIsMutable(); 1487 descriptions_.set(index, value); 1488 onChanged(); 1489 } else { 1490 descriptionsBuilder_.setMessage(index, value); 1491 } 1492 return this; 1493 } 1494 /** 1495 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1496 */ 1497 public Builder setDescriptions( 1498 int index, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder builderForValue) { 1499 if (descriptionsBuilder_ == null) { 1500 ensureDescriptionsIsMutable(); 1501 descriptions_.set(index, builderForValue.build()); 1502 onChanged(); 1503 } else { 1504 descriptionsBuilder_.setMessage(index, builderForValue.build()); 1505 } 1506 return this; 1507 } 1508 /** 1509 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1510 */ 1511 public Builder addDescriptions(org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo value) { 1512 if (descriptionsBuilder_ == null) { 1513 if (value == null) { 1514 throw new NullPointerException(); 1515 } 1516 ensureDescriptionsIsMutable(); 1517 descriptions_.add(value); 1518 onChanged(); 1519 } else { 1520 descriptionsBuilder_.addMessage(value); 1521 } 1522 return this; 1523 } 1524 /** 1525 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1526 */ 1527 public Builder addDescriptions( 1528 int index, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo value) { 1529 if (descriptionsBuilder_ == null) { 1530 if (value == null) { 1531 throw new NullPointerException(); 1532 } 1533 ensureDescriptionsIsMutable(); 1534 descriptions_.add(index, value); 1535 onChanged(); 1536 } else { 1537 descriptionsBuilder_.addMessage(index, value); 1538 } 1539 return this; 1540 } 1541 /** 1542 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1543 */ 1544 public Builder addDescriptions( 1545 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder builderForValue) { 1546 if (descriptionsBuilder_ == null) { 1547 ensureDescriptionsIsMutable(); 1548 descriptions_.add(builderForValue.build()); 1549 onChanged(); 1550 } else { 1551 descriptionsBuilder_.addMessage(builderForValue.build()); 1552 } 1553 return this; 1554 } 1555 /** 1556 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1557 */ 1558 public Builder addDescriptions( 1559 int index, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder builderForValue) { 1560 if (descriptionsBuilder_ == null) { 1561 ensureDescriptionsIsMutable(); 1562 descriptions_.add(index, builderForValue.build()); 1563 onChanged(); 1564 } else { 1565 descriptionsBuilder_.addMessage(index, builderForValue.build()); 1566 } 1567 return this; 1568 } 1569 /** 1570 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1571 */ 1572 public Builder addAllDescriptions( 1573 java.lang.Iterable<? extends org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo> values) { 1574 if (descriptionsBuilder_ == null) { 1575 ensureDescriptionsIsMutable(); 1576 super.addAll(values, descriptions_); 1577 onChanged(); 1578 } else { 1579 descriptionsBuilder_.addAllMessages(values); 1580 } 1581 return this; 1582 } 1583 /** 1584 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1585 */ 1586 public Builder clearDescriptions() { 1587 if (descriptionsBuilder_ == null) { 1588 descriptions_ = java.util.Collections.emptyList(); 1589 bitField0_ = (bitField0_ & ~0x00000001); 1590 onChanged(); 1591 } else { 1592 descriptionsBuilder_.clear(); 1593 } 1594 return this; 1595 } 1596 /** 1597 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1598 */ 1599 public Builder removeDescriptions(int index) { 1600 if (descriptionsBuilder_ == null) { 1601 ensureDescriptionsIsMutable(); 1602 descriptions_.remove(index); 1603 onChanged(); 1604 } else { 1605 descriptionsBuilder_.remove(index); 1606 } 1607 return this; 1608 } 1609 /** 1610 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1611 */ 1612 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder getDescriptionsBuilder( 1613 int index) { 1614 return getDescriptionsFieldBuilder().getBuilder(index); 1615 } 1616 /** 1617 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1618 */ 1619 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder getDescriptionsOrBuilder( 1620 int index) { 1621 if (descriptionsBuilder_ == null) { 1622 return descriptions_.get(index); } else { 1623 return descriptionsBuilder_.getMessageOrBuilder(index); 1624 } 1625 } 1626 /** 1627 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1628 */ 1629 public java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder> 1630 getDescriptionsOrBuilderList() { 1631 if (descriptionsBuilder_ != null) { 1632 return descriptionsBuilder_.getMessageOrBuilderList(); 1633 } else { 1634 return java.util.Collections.unmodifiableList(descriptions_); 1635 } 1636 } 1637 /** 1638 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1639 */ 1640 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder addDescriptionsBuilder() { 1641 return getDescriptionsFieldBuilder().addBuilder( 1642 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.getDefaultInstance()); 1643 } 1644 /** 1645 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1646 */ 1647 public org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder addDescriptionsBuilder( 1648 int index) { 1649 return getDescriptionsFieldBuilder().addBuilder( 1650 index, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.getDefaultInstance()); 1651 } 1652 /** 1653 * <code>repeated .hadoop.common.SpanReceiverListInfo descriptions = 1;</code> 1654 */ 1655 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder> 1656 getDescriptionsBuilderList() { 1657 return getDescriptionsFieldBuilder().getBuilderList(); 1658 } 1659 private com.google.protobuf.RepeatedFieldBuilder< 1660 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder> 1661 getDescriptionsFieldBuilder() { 1662 if (descriptionsBuilder_ == null) { 1663 descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 1664 org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo.Builder, org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfoOrBuilder>( 1665 descriptions_, 1666 ((bitField0_ & 0x00000001) == 0x00000001), 1667 getParentForChildren(), 1668 isClean()); 1669 descriptions_ = null; 1670 } 1671 return descriptionsBuilder_; 1672 } 1673 1674 // @@protoc_insertion_point(builder_scope:hadoop.common.ListSpanReceiversResponseProto) 1675 } 1676 1677 static { 1678 defaultInstance = new ListSpanReceiversResponseProto(true); 1679 defaultInstance.initFields(); 1680 } 1681 1682 // @@protoc_insertion_point(class_scope:hadoop.common.ListSpanReceiversResponseProto) 1683 } 1684 1685 public interface ConfigPairOrBuilder 1686 extends com.google.protobuf.MessageOrBuilder { 1687 1688 // required string key = 1; 1689 /** 1690 * <code>required string key = 1;</code> 1691 */ 1692 boolean hasKey(); 1693 /** 1694 * <code>required string key = 1;</code> 1695 */ 1696 java.lang.String getKey(); 1697 /** 1698 * <code>required string key = 1;</code> 1699 */ 1700 com.google.protobuf.ByteString 1701 getKeyBytes(); 1702 1703 // required string value = 2; 1704 /** 1705 * <code>required string value = 2;</code> 1706 */ 1707 boolean hasValue(); 1708 /** 1709 * <code>required string value = 2;</code> 1710 */ 1711 java.lang.String getValue(); 1712 /** 1713 * <code>required string value = 2;</code> 1714 */ 1715 com.google.protobuf.ByteString 1716 getValueBytes(); 1717 } 1718 /** 1719 * Protobuf type {@code hadoop.common.ConfigPair} 1720 */ 1721 public static final class ConfigPair extends 1722 com.google.protobuf.GeneratedMessage 1723 implements ConfigPairOrBuilder { 1724 // Use ConfigPair.newBuilder() to construct. 1725 private ConfigPair(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 1726 super(builder); 1727 this.unknownFields = builder.getUnknownFields(); 1728 } 1729 private ConfigPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 1730 1731 private static final ConfigPair defaultInstance; 1732 public static ConfigPair getDefaultInstance() { 1733 return defaultInstance; 1734 } 1735 1736 public ConfigPair getDefaultInstanceForType() { 1737 return defaultInstance; 1738 } 1739 1740 private final com.google.protobuf.UnknownFieldSet unknownFields; 1741 @java.lang.Override 1742 public final com.google.protobuf.UnknownFieldSet 1743 getUnknownFields() { 1744 return this.unknownFields; 1745 } 1746 private ConfigPair( 1747 com.google.protobuf.CodedInputStream input, 1748 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1749 throws com.google.protobuf.InvalidProtocolBufferException { 1750 initFields(); 1751 int mutable_bitField0_ = 0; 1752 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1753 com.google.protobuf.UnknownFieldSet.newBuilder(); 1754 try { 1755 boolean done = false; 1756 while (!done) { 1757 int tag = input.readTag(); 1758 switch (tag) { 1759 case 0: 1760 done = true; 1761 break; 1762 default: { 1763 if (!parseUnknownField(input, unknownFields, 1764 extensionRegistry, tag)) { 1765 done = true; 1766 } 1767 break; 1768 } 1769 case 10: { 1770 bitField0_ |= 0x00000001; 1771 key_ = input.readBytes(); 1772 break; 1773 } 1774 case 18: { 1775 bitField0_ |= 0x00000002; 1776 value_ = input.readBytes(); 1777 break; 1778 } 1779 } 1780 } 1781 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1782 throw e.setUnfinishedMessage(this); 1783 } catch (java.io.IOException e) { 1784 throw new com.google.protobuf.InvalidProtocolBufferException( 1785 e.getMessage()).setUnfinishedMessage(this); 1786 } finally { 1787 this.unknownFields = unknownFields.build(); 1788 makeExtensionsImmutable(); 1789 } 1790 } 1791 public static final com.google.protobuf.Descriptors.Descriptor 1792 getDescriptor() { 1793 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ConfigPair_descriptor; 1794 } 1795 1796 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1797 internalGetFieldAccessorTable() { 1798 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ConfigPair_fieldAccessorTable 1799 .ensureFieldAccessorsInitialized( 1800 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.class, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder.class); 1801 } 1802 1803 public static com.google.protobuf.Parser<ConfigPair> PARSER = 1804 new com.google.protobuf.AbstractParser<ConfigPair>() { 1805 public ConfigPair parsePartialFrom( 1806 com.google.protobuf.CodedInputStream input, 1807 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1808 throws com.google.protobuf.InvalidProtocolBufferException { 1809 return new ConfigPair(input, extensionRegistry); 1810 } 1811 }; 1812 1813 @java.lang.Override 1814 public com.google.protobuf.Parser<ConfigPair> getParserForType() { 1815 return PARSER; 1816 } 1817 1818 private int bitField0_; 1819 // required string key = 1; 1820 public static final int KEY_FIELD_NUMBER = 1; 1821 private java.lang.Object key_; 1822 /** 1823 * <code>required string key = 1;</code> 1824 */ 1825 public boolean hasKey() { 1826 return ((bitField0_ & 0x00000001) == 0x00000001); 1827 } 1828 /** 1829 * <code>required string key = 1;</code> 1830 */ 1831 public java.lang.String getKey() { 1832 java.lang.Object ref = key_; 1833 if (ref instanceof java.lang.String) { 1834 return (java.lang.String) ref; 1835 } else { 1836 com.google.protobuf.ByteString bs = 1837 (com.google.protobuf.ByteString) ref; 1838 java.lang.String s = bs.toStringUtf8(); 1839 if (bs.isValidUtf8()) { 1840 key_ = s; 1841 } 1842 return s; 1843 } 1844 } 1845 /** 1846 * <code>required string key = 1;</code> 1847 */ 1848 public com.google.protobuf.ByteString 1849 getKeyBytes() { 1850 java.lang.Object ref = key_; 1851 if (ref instanceof java.lang.String) { 1852 com.google.protobuf.ByteString b = 1853 com.google.protobuf.ByteString.copyFromUtf8( 1854 (java.lang.String) ref); 1855 key_ = b; 1856 return b; 1857 } else { 1858 return (com.google.protobuf.ByteString) ref; 1859 } 1860 } 1861 1862 // required string value = 2; 1863 public static final int VALUE_FIELD_NUMBER = 2; 1864 private java.lang.Object value_; 1865 /** 1866 * <code>required string value = 2;</code> 1867 */ 1868 public boolean hasValue() { 1869 return ((bitField0_ & 0x00000002) == 0x00000002); 1870 } 1871 /** 1872 * <code>required string value = 2;</code> 1873 */ 1874 public java.lang.String getValue() { 1875 java.lang.Object ref = value_; 1876 if (ref instanceof java.lang.String) { 1877 return (java.lang.String) ref; 1878 } else { 1879 com.google.protobuf.ByteString bs = 1880 (com.google.protobuf.ByteString) ref; 1881 java.lang.String s = bs.toStringUtf8(); 1882 if (bs.isValidUtf8()) { 1883 value_ = s; 1884 } 1885 return s; 1886 } 1887 } 1888 /** 1889 * <code>required string value = 2;</code> 1890 */ 1891 public com.google.protobuf.ByteString 1892 getValueBytes() { 1893 java.lang.Object ref = value_; 1894 if (ref instanceof java.lang.String) { 1895 com.google.protobuf.ByteString b = 1896 com.google.protobuf.ByteString.copyFromUtf8( 1897 (java.lang.String) ref); 1898 value_ = b; 1899 return b; 1900 } else { 1901 return (com.google.protobuf.ByteString) ref; 1902 } 1903 } 1904 1905 private void initFields() { 1906 key_ = ""; 1907 value_ = ""; 1908 } 1909 private byte memoizedIsInitialized = -1; 1910 public final boolean isInitialized() { 1911 byte isInitialized = memoizedIsInitialized; 1912 if (isInitialized != -1) return isInitialized == 1; 1913 1914 if (!hasKey()) { 1915 memoizedIsInitialized = 0; 1916 return false; 1917 } 1918 if (!hasValue()) { 1919 memoizedIsInitialized = 0; 1920 return false; 1921 } 1922 memoizedIsInitialized = 1; 1923 return true; 1924 } 1925 1926 public void writeTo(com.google.protobuf.CodedOutputStream output) 1927 throws java.io.IOException { 1928 getSerializedSize(); 1929 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1930 output.writeBytes(1, getKeyBytes()); 1931 } 1932 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1933 output.writeBytes(2, getValueBytes()); 1934 } 1935 getUnknownFields().writeTo(output); 1936 } 1937 1938 private int memoizedSerializedSize = -1; 1939 public int getSerializedSize() { 1940 int size = memoizedSerializedSize; 1941 if (size != -1) return size; 1942 1943 size = 0; 1944 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1945 size += com.google.protobuf.CodedOutputStream 1946 .computeBytesSize(1, getKeyBytes()); 1947 } 1948 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1949 size += com.google.protobuf.CodedOutputStream 1950 .computeBytesSize(2, getValueBytes()); 1951 } 1952 size += getUnknownFields().getSerializedSize(); 1953 memoizedSerializedSize = size; 1954 return size; 1955 } 1956 1957 private static final long serialVersionUID = 0L; 1958 @java.lang.Override 1959 protected java.lang.Object writeReplace() 1960 throws java.io.ObjectStreamException { 1961 return super.writeReplace(); 1962 } 1963 1964 @java.lang.Override 1965 public boolean equals(final java.lang.Object obj) { 1966 if (obj == this) { 1967 return true; 1968 } 1969 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.ConfigPair)) { 1970 return super.equals(obj); 1971 } 1972 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair other = (org.apache.hadoop.tracing.TraceAdminPB.ConfigPair) obj; 1973 1974 boolean result = true; 1975 result = result && (hasKey() == other.hasKey()); 1976 if (hasKey()) { 1977 result = result && getKey() 1978 .equals(other.getKey()); 1979 } 1980 result = result && (hasValue() == other.hasValue()); 1981 if (hasValue()) { 1982 result = result && getValue() 1983 .equals(other.getValue()); 1984 } 1985 result = result && 1986 getUnknownFields().equals(other.getUnknownFields()); 1987 return result; 1988 } 1989 1990 private int memoizedHashCode = 0; 1991 @java.lang.Override 1992 public int hashCode() { 1993 if (memoizedHashCode != 0) { 1994 return memoizedHashCode; 1995 } 1996 int hash = 41; 1997 hash = (19 * hash) + getDescriptorForType().hashCode(); 1998 if (hasKey()) { 1999 hash = (37 * hash) + KEY_FIELD_NUMBER; 2000 hash = (53 * hash) + getKey().hashCode(); 2001 } 2002 if (hasValue()) { 2003 hash = (37 * hash) + VALUE_FIELD_NUMBER; 2004 hash = (53 * hash) + getValue().hashCode(); 2005 } 2006 hash = (29 * hash) + getUnknownFields().hashCode(); 2007 memoizedHashCode = hash; 2008 return hash; 2009 } 2010 2011 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2012 com.google.protobuf.ByteString data) 2013 throws com.google.protobuf.InvalidProtocolBufferException { 2014 return PARSER.parseFrom(data); 2015 } 2016 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2017 com.google.protobuf.ByteString data, 2018 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2019 throws com.google.protobuf.InvalidProtocolBufferException { 2020 return PARSER.parseFrom(data, extensionRegistry); 2021 } 2022 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom(byte[] data) 2023 throws com.google.protobuf.InvalidProtocolBufferException { 2024 return PARSER.parseFrom(data); 2025 } 2026 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2027 byte[] data, 2028 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2029 throws com.google.protobuf.InvalidProtocolBufferException { 2030 return PARSER.parseFrom(data, extensionRegistry); 2031 } 2032 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom(java.io.InputStream input) 2033 throws java.io.IOException { 2034 return PARSER.parseFrom(input); 2035 } 2036 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2037 java.io.InputStream input, 2038 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2039 throws java.io.IOException { 2040 return PARSER.parseFrom(input, extensionRegistry); 2041 } 2042 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseDelimitedFrom(java.io.InputStream input) 2043 throws java.io.IOException { 2044 return PARSER.parseDelimitedFrom(input); 2045 } 2046 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseDelimitedFrom( 2047 java.io.InputStream input, 2048 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2049 throws java.io.IOException { 2050 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2051 } 2052 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2053 com.google.protobuf.CodedInputStream input) 2054 throws java.io.IOException { 2055 return PARSER.parseFrom(input); 2056 } 2057 public static org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parseFrom( 2058 com.google.protobuf.CodedInputStream input, 2059 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2060 throws java.io.IOException { 2061 return PARSER.parseFrom(input, extensionRegistry); 2062 } 2063 2064 public static Builder newBuilder() { return Builder.create(); } 2065 public Builder newBuilderForType() { return newBuilder(); } 2066 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.ConfigPair prototype) { 2067 return newBuilder().mergeFrom(prototype); 2068 } 2069 public Builder toBuilder() { return newBuilder(this); } 2070 2071 @java.lang.Override 2072 protected Builder newBuilderForType( 2073 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2074 Builder builder = new Builder(parent); 2075 return builder; 2076 } 2077 /** 2078 * Protobuf type {@code hadoop.common.ConfigPair} 2079 */ 2080 public static final class Builder extends 2081 com.google.protobuf.GeneratedMessage.Builder<Builder> 2082 implements org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder { 2083 public static final com.google.protobuf.Descriptors.Descriptor 2084 getDescriptor() { 2085 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ConfigPair_descriptor; 2086 } 2087 2088 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2089 internalGetFieldAccessorTable() { 2090 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ConfigPair_fieldAccessorTable 2091 .ensureFieldAccessorsInitialized( 2092 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.class, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder.class); 2093 } 2094 2095 // Construct using org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.newBuilder() 2096 private Builder() { 2097 maybeForceBuilderInitialization(); 2098 } 2099 2100 private Builder( 2101 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2102 super(parent); 2103 maybeForceBuilderInitialization(); 2104 } 2105 private void maybeForceBuilderInitialization() { 2106 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 2107 } 2108 } 2109 private static Builder create() { 2110 return new Builder(); 2111 } 2112 2113 public Builder clear() { 2114 super.clear(); 2115 key_ = ""; 2116 bitField0_ = (bitField0_ & ~0x00000001); 2117 value_ = ""; 2118 bitField0_ = (bitField0_ & ~0x00000002); 2119 return this; 2120 } 2121 2122 public Builder clone() { 2123 return create().mergeFrom(buildPartial()); 2124 } 2125 2126 public com.google.protobuf.Descriptors.Descriptor 2127 getDescriptorForType() { 2128 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_ConfigPair_descriptor; 2129 } 2130 2131 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair getDefaultInstanceForType() { 2132 return org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.getDefaultInstance(); 2133 } 2134 2135 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair build() { 2136 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair result = buildPartial(); 2137 if (!result.isInitialized()) { 2138 throw newUninitializedMessageException(result); 2139 } 2140 return result; 2141 } 2142 2143 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair buildPartial() { 2144 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair result = new org.apache.hadoop.tracing.TraceAdminPB.ConfigPair(this); 2145 int from_bitField0_ = bitField0_; 2146 int to_bitField0_ = 0; 2147 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2148 to_bitField0_ |= 0x00000001; 2149 } 2150 result.key_ = key_; 2151 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2152 to_bitField0_ |= 0x00000002; 2153 } 2154 result.value_ = value_; 2155 result.bitField0_ = to_bitField0_; 2156 onBuilt(); 2157 return result; 2158 } 2159 2160 public Builder mergeFrom(com.google.protobuf.Message other) { 2161 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.ConfigPair) { 2162 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.ConfigPair)other); 2163 } else { 2164 super.mergeFrom(other); 2165 return this; 2166 } 2167 } 2168 2169 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.ConfigPair other) { 2170 if (other == org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.getDefaultInstance()) return this; 2171 if (other.hasKey()) { 2172 bitField0_ |= 0x00000001; 2173 key_ = other.key_; 2174 onChanged(); 2175 } 2176 if (other.hasValue()) { 2177 bitField0_ |= 0x00000002; 2178 value_ = other.value_; 2179 onChanged(); 2180 } 2181 this.mergeUnknownFields(other.getUnknownFields()); 2182 return this; 2183 } 2184 2185 public final boolean isInitialized() { 2186 if (!hasKey()) { 2187 2188 return false; 2189 } 2190 if (!hasValue()) { 2191 2192 return false; 2193 } 2194 return true; 2195 } 2196 2197 public Builder mergeFrom( 2198 com.google.protobuf.CodedInputStream input, 2199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2200 throws java.io.IOException { 2201 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair parsedMessage = null; 2202 try { 2203 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2204 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2205 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.ConfigPair) e.getUnfinishedMessage(); 2206 throw e; 2207 } finally { 2208 if (parsedMessage != null) { 2209 mergeFrom(parsedMessage); 2210 } 2211 } 2212 return this; 2213 } 2214 private int bitField0_; 2215 2216 // required string key = 1; 2217 private java.lang.Object key_ = ""; 2218 /** 2219 * <code>required string key = 1;</code> 2220 */ 2221 public boolean hasKey() { 2222 return ((bitField0_ & 0x00000001) == 0x00000001); 2223 } 2224 /** 2225 * <code>required string key = 1;</code> 2226 */ 2227 public java.lang.String getKey() { 2228 java.lang.Object ref = key_; 2229 if (!(ref instanceof java.lang.String)) { 2230 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2231 .toStringUtf8(); 2232 key_ = s; 2233 return s; 2234 } else { 2235 return (java.lang.String) ref; 2236 } 2237 } 2238 /** 2239 * <code>required string key = 1;</code> 2240 */ 2241 public com.google.protobuf.ByteString 2242 getKeyBytes() { 2243 java.lang.Object ref = key_; 2244 if (ref instanceof String) { 2245 com.google.protobuf.ByteString b = 2246 com.google.protobuf.ByteString.copyFromUtf8( 2247 (java.lang.String) ref); 2248 key_ = b; 2249 return b; 2250 } else { 2251 return (com.google.protobuf.ByteString) ref; 2252 } 2253 } 2254 /** 2255 * <code>required string key = 1;</code> 2256 */ 2257 public Builder setKey( 2258 java.lang.String value) { 2259 if (value == null) { 2260 throw new NullPointerException(); 2261 } 2262 bitField0_ |= 0x00000001; 2263 key_ = value; 2264 onChanged(); 2265 return this; 2266 } 2267 /** 2268 * <code>required string key = 1;</code> 2269 */ 2270 public Builder clearKey() { 2271 bitField0_ = (bitField0_ & ~0x00000001); 2272 key_ = getDefaultInstance().getKey(); 2273 onChanged(); 2274 return this; 2275 } 2276 /** 2277 * <code>required string key = 1;</code> 2278 */ 2279 public Builder setKeyBytes( 2280 com.google.protobuf.ByteString value) { 2281 if (value == null) { 2282 throw new NullPointerException(); 2283 } 2284 bitField0_ |= 0x00000001; 2285 key_ = value; 2286 onChanged(); 2287 return this; 2288 } 2289 2290 // required string value = 2; 2291 private java.lang.Object value_ = ""; 2292 /** 2293 * <code>required string value = 2;</code> 2294 */ 2295 public boolean hasValue() { 2296 return ((bitField0_ & 0x00000002) == 0x00000002); 2297 } 2298 /** 2299 * <code>required string value = 2;</code> 2300 */ 2301 public java.lang.String getValue() { 2302 java.lang.Object ref = value_; 2303 if (!(ref instanceof java.lang.String)) { 2304 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2305 .toStringUtf8(); 2306 value_ = s; 2307 return s; 2308 } else { 2309 return (java.lang.String) ref; 2310 } 2311 } 2312 /** 2313 * <code>required string value = 2;</code> 2314 */ 2315 public com.google.protobuf.ByteString 2316 getValueBytes() { 2317 java.lang.Object ref = value_; 2318 if (ref instanceof String) { 2319 com.google.protobuf.ByteString b = 2320 com.google.protobuf.ByteString.copyFromUtf8( 2321 (java.lang.String) ref); 2322 value_ = b; 2323 return b; 2324 } else { 2325 return (com.google.protobuf.ByteString) ref; 2326 } 2327 } 2328 /** 2329 * <code>required string value = 2;</code> 2330 */ 2331 public Builder setValue( 2332 java.lang.String value) { 2333 if (value == null) { 2334 throw new NullPointerException(); 2335 } 2336 bitField0_ |= 0x00000002; 2337 value_ = value; 2338 onChanged(); 2339 return this; 2340 } 2341 /** 2342 * <code>required string value = 2;</code> 2343 */ 2344 public Builder clearValue() { 2345 bitField0_ = (bitField0_ & ~0x00000002); 2346 value_ = getDefaultInstance().getValue(); 2347 onChanged(); 2348 return this; 2349 } 2350 /** 2351 * <code>required string value = 2;</code> 2352 */ 2353 public Builder setValueBytes( 2354 com.google.protobuf.ByteString value) { 2355 if (value == null) { 2356 throw new NullPointerException(); 2357 } 2358 bitField0_ |= 0x00000002; 2359 value_ = value; 2360 onChanged(); 2361 return this; 2362 } 2363 2364 // @@protoc_insertion_point(builder_scope:hadoop.common.ConfigPair) 2365 } 2366 2367 static { 2368 defaultInstance = new ConfigPair(true); 2369 defaultInstance.initFields(); 2370 } 2371 2372 // @@protoc_insertion_point(class_scope:hadoop.common.ConfigPair) 2373 } 2374 2375 public interface AddSpanReceiverRequestProtoOrBuilder 2376 extends com.google.protobuf.MessageOrBuilder { 2377 2378 // required string className = 1; 2379 /** 2380 * <code>required string className = 1;</code> 2381 */ 2382 boolean hasClassName(); 2383 /** 2384 * <code>required string className = 1;</code> 2385 */ 2386 java.lang.String getClassName(); 2387 /** 2388 * <code>required string className = 1;</code> 2389 */ 2390 com.google.protobuf.ByteString 2391 getClassNameBytes(); 2392 2393 // repeated .hadoop.common.ConfigPair config = 2; 2394 /** 2395 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2396 */ 2397 java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> 2398 getConfigList(); 2399 /** 2400 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2401 */ 2402 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair getConfig(int index); 2403 /** 2404 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2405 */ 2406 int getConfigCount(); 2407 /** 2408 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2409 */ 2410 java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder> 2411 getConfigOrBuilderList(); 2412 /** 2413 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2414 */ 2415 org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder getConfigOrBuilder( 2416 int index); 2417 } 2418 /** 2419 * Protobuf type {@code hadoop.common.AddSpanReceiverRequestProto} 2420 */ 2421 public static final class AddSpanReceiverRequestProto extends 2422 com.google.protobuf.GeneratedMessage 2423 implements AddSpanReceiverRequestProtoOrBuilder { 2424 // Use AddSpanReceiverRequestProto.newBuilder() to construct. 2425 private AddSpanReceiverRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2426 super(builder); 2427 this.unknownFields = builder.getUnknownFields(); 2428 } 2429 private AddSpanReceiverRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 2430 2431 private static final AddSpanReceiverRequestProto defaultInstance; 2432 public static AddSpanReceiverRequestProto getDefaultInstance() { 2433 return defaultInstance; 2434 } 2435 2436 public AddSpanReceiverRequestProto getDefaultInstanceForType() { 2437 return defaultInstance; 2438 } 2439 2440 private final com.google.protobuf.UnknownFieldSet unknownFields; 2441 @java.lang.Override 2442 public final com.google.protobuf.UnknownFieldSet 2443 getUnknownFields() { 2444 return this.unknownFields; 2445 } 2446 private AddSpanReceiverRequestProto( 2447 com.google.protobuf.CodedInputStream input, 2448 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2449 throws com.google.protobuf.InvalidProtocolBufferException { 2450 initFields(); 2451 int mutable_bitField0_ = 0; 2452 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 2453 com.google.protobuf.UnknownFieldSet.newBuilder(); 2454 try { 2455 boolean done = false; 2456 while (!done) { 2457 int tag = input.readTag(); 2458 switch (tag) { 2459 case 0: 2460 done = true; 2461 break; 2462 default: { 2463 if (!parseUnknownField(input, unknownFields, 2464 extensionRegistry, tag)) { 2465 done = true; 2466 } 2467 break; 2468 } 2469 case 10: { 2470 bitField0_ |= 0x00000001; 2471 className_ = input.readBytes(); 2472 break; 2473 } 2474 case 18: { 2475 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2476 config_ = new java.util.ArrayList<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair>(); 2477 mutable_bitField0_ |= 0x00000002; 2478 } 2479 config_.add(input.readMessage(org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.PARSER, extensionRegistry)); 2480 break; 2481 } 2482 } 2483 } 2484 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2485 throw e.setUnfinishedMessage(this); 2486 } catch (java.io.IOException e) { 2487 throw new com.google.protobuf.InvalidProtocolBufferException( 2488 e.getMessage()).setUnfinishedMessage(this); 2489 } finally { 2490 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2491 config_ = java.util.Collections.unmodifiableList(config_); 2492 } 2493 this.unknownFields = unknownFields.build(); 2494 makeExtensionsImmutable(); 2495 } 2496 } 2497 public static final com.google.protobuf.Descriptors.Descriptor 2498 getDescriptor() { 2499 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor; 2500 } 2501 2502 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2503 internalGetFieldAccessorTable() { 2504 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverRequestProto_fieldAccessorTable 2505 .ensureFieldAccessorsInitialized( 2506 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.Builder.class); 2507 } 2508 2509 public static com.google.protobuf.Parser<AddSpanReceiverRequestProto> PARSER = 2510 new com.google.protobuf.AbstractParser<AddSpanReceiverRequestProto>() { 2511 public AddSpanReceiverRequestProto parsePartialFrom( 2512 com.google.protobuf.CodedInputStream input, 2513 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2514 throws com.google.protobuf.InvalidProtocolBufferException { 2515 return new AddSpanReceiverRequestProto(input, extensionRegistry); 2516 } 2517 }; 2518 2519 @java.lang.Override 2520 public com.google.protobuf.Parser<AddSpanReceiverRequestProto> getParserForType() { 2521 return PARSER; 2522 } 2523 2524 private int bitField0_; 2525 // required string className = 1; 2526 public static final int CLASSNAME_FIELD_NUMBER = 1; 2527 private java.lang.Object className_; 2528 /** 2529 * <code>required string className = 1;</code> 2530 */ 2531 public boolean hasClassName() { 2532 return ((bitField0_ & 0x00000001) == 0x00000001); 2533 } 2534 /** 2535 * <code>required string className = 1;</code> 2536 */ 2537 public java.lang.String getClassName() { 2538 java.lang.Object ref = className_; 2539 if (ref instanceof java.lang.String) { 2540 return (java.lang.String) ref; 2541 } else { 2542 com.google.protobuf.ByteString bs = 2543 (com.google.protobuf.ByteString) ref; 2544 java.lang.String s = bs.toStringUtf8(); 2545 if (bs.isValidUtf8()) { 2546 className_ = s; 2547 } 2548 return s; 2549 } 2550 } 2551 /** 2552 * <code>required string className = 1;</code> 2553 */ 2554 public com.google.protobuf.ByteString 2555 getClassNameBytes() { 2556 java.lang.Object ref = className_; 2557 if (ref instanceof java.lang.String) { 2558 com.google.protobuf.ByteString b = 2559 com.google.protobuf.ByteString.copyFromUtf8( 2560 (java.lang.String) ref); 2561 className_ = b; 2562 return b; 2563 } else { 2564 return (com.google.protobuf.ByteString) ref; 2565 } 2566 } 2567 2568 // repeated .hadoop.common.ConfigPair config = 2; 2569 public static final int CONFIG_FIELD_NUMBER = 2; 2570 private java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> config_; 2571 /** 2572 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2573 */ 2574 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> getConfigList() { 2575 return config_; 2576 } 2577 /** 2578 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2579 */ 2580 public java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder> 2581 getConfigOrBuilderList() { 2582 return config_; 2583 } 2584 /** 2585 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2586 */ 2587 public int getConfigCount() { 2588 return config_.size(); 2589 } 2590 /** 2591 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2592 */ 2593 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair getConfig(int index) { 2594 return config_.get(index); 2595 } 2596 /** 2597 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 2598 */ 2599 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder getConfigOrBuilder( 2600 int index) { 2601 return config_.get(index); 2602 } 2603 2604 private void initFields() { 2605 className_ = ""; 2606 config_ = java.util.Collections.emptyList(); 2607 } 2608 private byte memoizedIsInitialized = -1; 2609 public final boolean isInitialized() { 2610 byte isInitialized = memoizedIsInitialized; 2611 if (isInitialized != -1) return isInitialized == 1; 2612 2613 if (!hasClassName()) { 2614 memoizedIsInitialized = 0; 2615 return false; 2616 } 2617 for (int i = 0; i < getConfigCount(); i++) { 2618 if (!getConfig(i).isInitialized()) { 2619 memoizedIsInitialized = 0; 2620 return false; 2621 } 2622 } 2623 memoizedIsInitialized = 1; 2624 return true; 2625 } 2626 2627 public void writeTo(com.google.protobuf.CodedOutputStream output) 2628 throws java.io.IOException { 2629 getSerializedSize(); 2630 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2631 output.writeBytes(1, getClassNameBytes()); 2632 } 2633 for (int i = 0; i < config_.size(); i++) { 2634 output.writeMessage(2, config_.get(i)); 2635 } 2636 getUnknownFields().writeTo(output); 2637 } 2638 2639 private int memoizedSerializedSize = -1; 2640 public int getSerializedSize() { 2641 int size = memoizedSerializedSize; 2642 if (size != -1) return size; 2643 2644 size = 0; 2645 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2646 size += com.google.protobuf.CodedOutputStream 2647 .computeBytesSize(1, getClassNameBytes()); 2648 } 2649 for (int i = 0; i < config_.size(); i++) { 2650 size += com.google.protobuf.CodedOutputStream 2651 .computeMessageSize(2, config_.get(i)); 2652 } 2653 size += getUnknownFields().getSerializedSize(); 2654 memoizedSerializedSize = size; 2655 return size; 2656 } 2657 2658 private static final long serialVersionUID = 0L; 2659 @java.lang.Override 2660 protected java.lang.Object writeReplace() 2661 throws java.io.ObjectStreamException { 2662 return super.writeReplace(); 2663 } 2664 2665 @java.lang.Override 2666 public boolean equals(final java.lang.Object obj) { 2667 if (obj == this) { 2668 return true; 2669 } 2670 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto)) { 2671 return super.equals(obj); 2672 } 2673 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto other = (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto) obj; 2674 2675 boolean result = true; 2676 result = result && (hasClassName() == other.hasClassName()); 2677 if (hasClassName()) { 2678 result = result && getClassName() 2679 .equals(other.getClassName()); 2680 } 2681 result = result && getConfigList() 2682 .equals(other.getConfigList()); 2683 result = result && 2684 getUnknownFields().equals(other.getUnknownFields()); 2685 return result; 2686 } 2687 2688 private int memoizedHashCode = 0; 2689 @java.lang.Override 2690 public int hashCode() { 2691 if (memoizedHashCode != 0) { 2692 return memoizedHashCode; 2693 } 2694 int hash = 41; 2695 hash = (19 * hash) + getDescriptorForType().hashCode(); 2696 if (hasClassName()) { 2697 hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; 2698 hash = (53 * hash) + getClassName().hashCode(); 2699 } 2700 if (getConfigCount() > 0) { 2701 hash = (37 * hash) + CONFIG_FIELD_NUMBER; 2702 hash = (53 * hash) + getConfigList().hashCode(); 2703 } 2704 hash = (29 * hash) + getUnknownFields().hashCode(); 2705 memoizedHashCode = hash; 2706 return hash; 2707 } 2708 2709 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2710 com.google.protobuf.ByteString data) 2711 throws com.google.protobuf.InvalidProtocolBufferException { 2712 return PARSER.parseFrom(data); 2713 } 2714 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2715 com.google.protobuf.ByteString data, 2716 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2717 throws com.google.protobuf.InvalidProtocolBufferException { 2718 return PARSER.parseFrom(data, extensionRegistry); 2719 } 2720 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom(byte[] data) 2721 throws com.google.protobuf.InvalidProtocolBufferException { 2722 return PARSER.parseFrom(data); 2723 } 2724 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2725 byte[] data, 2726 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2727 throws com.google.protobuf.InvalidProtocolBufferException { 2728 return PARSER.parseFrom(data, extensionRegistry); 2729 } 2730 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom(java.io.InputStream input) 2731 throws java.io.IOException { 2732 return PARSER.parseFrom(input); 2733 } 2734 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2735 java.io.InputStream input, 2736 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2737 throws java.io.IOException { 2738 return PARSER.parseFrom(input, extensionRegistry); 2739 } 2740 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseDelimitedFrom(java.io.InputStream input) 2741 throws java.io.IOException { 2742 return PARSER.parseDelimitedFrom(input); 2743 } 2744 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseDelimitedFrom( 2745 java.io.InputStream input, 2746 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2747 throws java.io.IOException { 2748 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2749 } 2750 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2751 com.google.protobuf.CodedInputStream input) 2752 throws java.io.IOException { 2753 return PARSER.parseFrom(input); 2754 } 2755 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parseFrom( 2756 com.google.protobuf.CodedInputStream input, 2757 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2758 throws java.io.IOException { 2759 return PARSER.parseFrom(input, extensionRegistry); 2760 } 2761 2762 public static Builder newBuilder() { return Builder.create(); } 2763 public Builder newBuilderForType() { return newBuilder(); } 2764 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto prototype) { 2765 return newBuilder().mergeFrom(prototype); 2766 } 2767 public Builder toBuilder() { return newBuilder(this); } 2768 2769 @java.lang.Override 2770 protected Builder newBuilderForType( 2771 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2772 Builder builder = new Builder(parent); 2773 return builder; 2774 } 2775 /** 2776 * Protobuf type {@code hadoop.common.AddSpanReceiverRequestProto} 2777 */ 2778 public static final class Builder extends 2779 com.google.protobuf.GeneratedMessage.Builder<Builder> 2780 implements org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProtoOrBuilder { 2781 public static final com.google.protobuf.Descriptors.Descriptor 2782 getDescriptor() { 2783 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor; 2784 } 2785 2786 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2787 internalGetFieldAccessorTable() { 2788 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverRequestProto_fieldAccessorTable 2789 .ensureFieldAccessorsInitialized( 2790 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.Builder.class); 2791 } 2792 2793 // Construct using org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.newBuilder() 2794 private Builder() { 2795 maybeForceBuilderInitialization(); 2796 } 2797 2798 private Builder( 2799 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2800 super(parent); 2801 maybeForceBuilderInitialization(); 2802 } 2803 private void maybeForceBuilderInitialization() { 2804 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 2805 getConfigFieldBuilder(); 2806 } 2807 } 2808 private static Builder create() { 2809 return new Builder(); 2810 } 2811 2812 public Builder clear() { 2813 super.clear(); 2814 className_ = ""; 2815 bitField0_ = (bitField0_ & ~0x00000001); 2816 if (configBuilder_ == null) { 2817 config_ = java.util.Collections.emptyList(); 2818 bitField0_ = (bitField0_ & ~0x00000002); 2819 } else { 2820 configBuilder_.clear(); 2821 } 2822 return this; 2823 } 2824 2825 public Builder clone() { 2826 return create().mergeFrom(buildPartial()); 2827 } 2828 2829 public com.google.protobuf.Descriptors.Descriptor 2830 getDescriptorForType() { 2831 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor; 2832 } 2833 2834 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto getDefaultInstanceForType() { 2835 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.getDefaultInstance(); 2836 } 2837 2838 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto build() { 2839 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto result = buildPartial(); 2840 if (!result.isInitialized()) { 2841 throw newUninitializedMessageException(result); 2842 } 2843 return result; 2844 } 2845 2846 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto buildPartial() { 2847 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto result = new org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto(this); 2848 int from_bitField0_ = bitField0_; 2849 int to_bitField0_ = 0; 2850 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2851 to_bitField0_ |= 0x00000001; 2852 } 2853 result.className_ = className_; 2854 if (configBuilder_ == null) { 2855 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2856 config_ = java.util.Collections.unmodifiableList(config_); 2857 bitField0_ = (bitField0_ & ~0x00000002); 2858 } 2859 result.config_ = config_; 2860 } else { 2861 result.config_ = configBuilder_.build(); 2862 } 2863 result.bitField0_ = to_bitField0_; 2864 onBuilt(); 2865 return result; 2866 } 2867 2868 public Builder mergeFrom(com.google.protobuf.Message other) { 2869 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto) { 2870 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto)other); 2871 } else { 2872 super.mergeFrom(other); 2873 return this; 2874 } 2875 } 2876 2877 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto other) { 2878 if (other == org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.getDefaultInstance()) return this; 2879 if (other.hasClassName()) { 2880 bitField0_ |= 0x00000001; 2881 className_ = other.className_; 2882 onChanged(); 2883 } 2884 if (configBuilder_ == null) { 2885 if (!other.config_.isEmpty()) { 2886 if (config_.isEmpty()) { 2887 config_ = other.config_; 2888 bitField0_ = (bitField0_ & ~0x00000002); 2889 } else { 2890 ensureConfigIsMutable(); 2891 config_.addAll(other.config_); 2892 } 2893 onChanged(); 2894 } 2895 } else { 2896 if (!other.config_.isEmpty()) { 2897 if (configBuilder_.isEmpty()) { 2898 configBuilder_.dispose(); 2899 configBuilder_ = null; 2900 config_ = other.config_; 2901 bitField0_ = (bitField0_ & ~0x00000002); 2902 configBuilder_ = 2903 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 2904 getConfigFieldBuilder() : null; 2905 } else { 2906 configBuilder_.addAllMessages(other.config_); 2907 } 2908 } 2909 } 2910 this.mergeUnknownFields(other.getUnknownFields()); 2911 return this; 2912 } 2913 2914 public final boolean isInitialized() { 2915 if (!hasClassName()) { 2916 2917 return false; 2918 } 2919 for (int i = 0; i < getConfigCount(); i++) { 2920 if (!getConfig(i).isInitialized()) { 2921 2922 return false; 2923 } 2924 } 2925 return true; 2926 } 2927 2928 public Builder mergeFrom( 2929 com.google.protobuf.CodedInputStream input, 2930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2931 throws java.io.IOException { 2932 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto parsedMessage = null; 2933 try { 2934 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2935 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2936 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto) e.getUnfinishedMessage(); 2937 throw e; 2938 } finally { 2939 if (parsedMessage != null) { 2940 mergeFrom(parsedMessage); 2941 } 2942 } 2943 return this; 2944 } 2945 private int bitField0_; 2946 2947 // required string className = 1; 2948 private java.lang.Object className_ = ""; 2949 /** 2950 * <code>required string className = 1;</code> 2951 */ 2952 public boolean hasClassName() { 2953 return ((bitField0_ & 0x00000001) == 0x00000001); 2954 } 2955 /** 2956 * <code>required string className = 1;</code> 2957 */ 2958 public java.lang.String getClassName() { 2959 java.lang.Object ref = className_; 2960 if (!(ref instanceof java.lang.String)) { 2961 java.lang.String s = ((com.google.protobuf.ByteString) ref) 2962 .toStringUtf8(); 2963 className_ = s; 2964 return s; 2965 } else { 2966 return (java.lang.String) ref; 2967 } 2968 } 2969 /** 2970 * <code>required string className = 1;</code> 2971 */ 2972 public com.google.protobuf.ByteString 2973 getClassNameBytes() { 2974 java.lang.Object ref = className_; 2975 if (ref instanceof String) { 2976 com.google.protobuf.ByteString b = 2977 com.google.protobuf.ByteString.copyFromUtf8( 2978 (java.lang.String) ref); 2979 className_ = b; 2980 return b; 2981 } else { 2982 return (com.google.protobuf.ByteString) ref; 2983 } 2984 } 2985 /** 2986 * <code>required string className = 1;</code> 2987 */ 2988 public Builder setClassName( 2989 java.lang.String value) { 2990 if (value == null) { 2991 throw new NullPointerException(); 2992 } 2993 bitField0_ |= 0x00000001; 2994 className_ = value; 2995 onChanged(); 2996 return this; 2997 } 2998 /** 2999 * <code>required string className = 1;</code> 3000 */ 3001 public Builder clearClassName() { 3002 bitField0_ = (bitField0_ & ~0x00000001); 3003 className_ = getDefaultInstance().getClassName(); 3004 onChanged(); 3005 return this; 3006 } 3007 /** 3008 * <code>required string className = 1;</code> 3009 */ 3010 public Builder setClassNameBytes( 3011 com.google.protobuf.ByteString value) { 3012 if (value == null) { 3013 throw new NullPointerException(); 3014 } 3015 bitField0_ |= 0x00000001; 3016 className_ = value; 3017 onChanged(); 3018 return this; 3019 } 3020 3021 // repeated .hadoop.common.ConfigPair config = 2; 3022 private java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> config_ = 3023 java.util.Collections.emptyList(); 3024 private void ensureConfigIsMutable() { 3025 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 3026 config_ = new java.util.ArrayList<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair>(config_); 3027 bitField0_ |= 0x00000002; 3028 } 3029 } 3030 3031 private com.google.protobuf.RepeatedFieldBuilder< 3032 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder, org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder> configBuilder_; 3033 3034 /** 3035 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3036 */ 3037 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> getConfigList() { 3038 if (configBuilder_ == null) { 3039 return java.util.Collections.unmodifiableList(config_); 3040 } else { 3041 return configBuilder_.getMessageList(); 3042 } 3043 } 3044 /** 3045 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3046 */ 3047 public int getConfigCount() { 3048 if (configBuilder_ == null) { 3049 return config_.size(); 3050 } else { 3051 return configBuilder_.getCount(); 3052 } 3053 } 3054 /** 3055 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3056 */ 3057 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair getConfig(int index) { 3058 if (configBuilder_ == null) { 3059 return config_.get(index); 3060 } else { 3061 return configBuilder_.getMessage(index); 3062 } 3063 } 3064 /** 3065 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3066 */ 3067 public Builder setConfig( 3068 int index, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair value) { 3069 if (configBuilder_ == null) { 3070 if (value == null) { 3071 throw new NullPointerException(); 3072 } 3073 ensureConfigIsMutable(); 3074 config_.set(index, value); 3075 onChanged(); 3076 } else { 3077 configBuilder_.setMessage(index, value); 3078 } 3079 return this; 3080 } 3081 /** 3082 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3083 */ 3084 public Builder setConfig( 3085 int index, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder builderForValue) { 3086 if (configBuilder_ == null) { 3087 ensureConfigIsMutable(); 3088 config_.set(index, builderForValue.build()); 3089 onChanged(); 3090 } else { 3091 configBuilder_.setMessage(index, builderForValue.build()); 3092 } 3093 return this; 3094 } 3095 /** 3096 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3097 */ 3098 public Builder addConfig(org.apache.hadoop.tracing.TraceAdminPB.ConfigPair value) { 3099 if (configBuilder_ == null) { 3100 if (value == null) { 3101 throw new NullPointerException(); 3102 } 3103 ensureConfigIsMutable(); 3104 config_.add(value); 3105 onChanged(); 3106 } else { 3107 configBuilder_.addMessage(value); 3108 } 3109 return this; 3110 } 3111 /** 3112 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3113 */ 3114 public Builder addConfig( 3115 int index, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair value) { 3116 if (configBuilder_ == null) { 3117 if (value == null) { 3118 throw new NullPointerException(); 3119 } 3120 ensureConfigIsMutable(); 3121 config_.add(index, value); 3122 onChanged(); 3123 } else { 3124 configBuilder_.addMessage(index, value); 3125 } 3126 return this; 3127 } 3128 /** 3129 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3130 */ 3131 public Builder addConfig( 3132 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder builderForValue) { 3133 if (configBuilder_ == null) { 3134 ensureConfigIsMutable(); 3135 config_.add(builderForValue.build()); 3136 onChanged(); 3137 } else { 3138 configBuilder_.addMessage(builderForValue.build()); 3139 } 3140 return this; 3141 } 3142 /** 3143 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3144 */ 3145 public Builder addConfig( 3146 int index, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder builderForValue) { 3147 if (configBuilder_ == null) { 3148 ensureConfigIsMutable(); 3149 config_.add(index, builderForValue.build()); 3150 onChanged(); 3151 } else { 3152 configBuilder_.addMessage(index, builderForValue.build()); 3153 } 3154 return this; 3155 } 3156 /** 3157 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3158 */ 3159 public Builder addAllConfig( 3160 java.lang.Iterable<? extends org.apache.hadoop.tracing.TraceAdminPB.ConfigPair> values) { 3161 if (configBuilder_ == null) { 3162 ensureConfigIsMutable(); 3163 super.addAll(values, config_); 3164 onChanged(); 3165 } else { 3166 configBuilder_.addAllMessages(values); 3167 } 3168 return this; 3169 } 3170 /** 3171 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3172 */ 3173 public Builder clearConfig() { 3174 if (configBuilder_ == null) { 3175 config_ = java.util.Collections.emptyList(); 3176 bitField0_ = (bitField0_ & ~0x00000002); 3177 onChanged(); 3178 } else { 3179 configBuilder_.clear(); 3180 } 3181 return this; 3182 } 3183 /** 3184 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3185 */ 3186 public Builder removeConfig(int index) { 3187 if (configBuilder_ == null) { 3188 ensureConfigIsMutable(); 3189 config_.remove(index); 3190 onChanged(); 3191 } else { 3192 configBuilder_.remove(index); 3193 } 3194 return this; 3195 } 3196 /** 3197 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3198 */ 3199 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder getConfigBuilder( 3200 int index) { 3201 return getConfigFieldBuilder().getBuilder(index); 3202 } 3203 /** 3204 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3205 */ 3206 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder getConfigOrBuilder( 3207 int index) { 3208 if (configBuilder_ == null) { 3209 return config_.get(index); } else { 3210 return configBuilder_.getMessageOrBuilder(index); 3211 } 3212 } 3213 /** 3214 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3215 */ 3216 public java.util.List<? extends org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder> 3217 getConfigOrBuilderList() { 3218 if (configBuilder_ != null) { 3219 return configBuilder_.getMessageOrBuilderList(); 3220 } else { 3221 return java.util.Collections.unmodifiableList(config_); 3222 } 3223 } 3224 /** 3225 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3226 */ 3227 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder addConfigBuilder() { 3228 return getConfigFieldBuilder().addBuilder( 3229 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.getDefaultInstance()); 3230 } 3231 /** 3232 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3233 */ 3234 public org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder addConfigBuilder( 3235 int index) { 3236 return getConfigFieldBuilder().addBuilder( 3237 index, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.getDefaultInstance()); 3238 } 3239 /** 3240 * <code>repeated .hadoop.common.ConfigPair config = 2;</code> 3241 */ 3242 public java.util.List<org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder> 3243 getConfigBuilderList() { 3244 return getConfigFieldBuilder().getBuilderList(); 3245 } 3246 private com.google.protobuf.RepeatedFieldBuilder< 3247 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder, org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder> 3248 getConfigFieldBuilder() { 3249 if (configBuilder_ == null) { 3250 configBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 3251 org.apache.hadoop.tracing.TraceAdminPB.ConfigPair, org.apache.hadoop.tracing.TraceAdminPB.ConfigPair.Builder, org.apache.hadoop.tracing.TraceAdminPB.ConfigPairOrBuilder>( 3252 config_, 3253 ((bitField0_ & 0x00000002) == 0x00000002), 3254 getParentForChildren(), 3255 isClean()); 3256 config_ = null; 3257 } 3258 return configBuilder_; 3259 } 3260 3261 // @@protoc_insertion_point(builder_scope:hadoop.common.AddSpanReceiverRequestProto) 3262 } 3263 3264 static { 3265 defaultInstance = new AddSpanReceiverRequestProto(true); 3266 defaultInstance.initFields(); 3267 } 3268 3269 // @@protoc_insertion_point(class_scope:hadoop.common.AddSpanReceiverRequestProto) 3270 } 3271 3272 public interface AddSpanReceiverResponseProtoOrBuilder 3273 extends com.google.protobuf.MessageOrBuilder { 3274 3275 // required int64 id = 1; 3276 /** 3277 * <code>required int64 id = 1;</code> 3278 */ 3279 boolean hasId(); 3280 /** 3281 * <code>required int64 id = 1;</code> 3282 */ 3283 long getId(); 3284 } 3285 /** 3286 * Protobuf type {@code hadoop.common.AddSpanReceiverResponseProto} 3287 */ 3288 public static final class AddSpanReceiverResponseProto extends 3289 com.google.protobuf.GeneratedMessage 3290 implements AddSpanReceiverResponseProtoOrBuilder { 3291 // Use AddSpanReceiverResponseProto.newBuilder() to construct. 3292 private AddSpanReceiverResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 3293 super(builder); 3294 this.unknownFields = builder.getUnknownFields(); 3295 } 3296 private AddSpanReceiverResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 3297 3298 private static final AddSpanReceiverResponseProto defaultInstance; 3299 public static AddSpanReceiverResponseProto getDefaultInstance() { 3300 return defaultInstance; 3301 } 3302 3303 public AddSpanReceiverResponseProto getDefaultInstanceForType() { 3304 return defaultInstance; 3305 } 3306 3307 private final com.google.protobuf.UnknownFieldSet unknownFields; 3308 @java.lang.Override 3309 public final com.google.protobuf.UnknownFieldSet 3310 getUnknownFields() { 3311 return this.unknownFields; 3312 } 3313 private AddSpanReceiverResponseProto( 3314 com.google.protobuf.CodedInputStream input, 3315 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3316 throws com.google.protobuf.InvalidProtocolBufferException { 3317 initFields(); 3318 int mutable_bitField0_ = 0; 3319 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 3320 com.google.protobuf.UnknownFieldSet.newBuilder(); 3321 try { 3322 boolean done = false; 3323 while (!done) { 3324 int tag = input.readTag(); 3325 switch (tag) { 3326 case 0: 3327 done = true; 3328 break; 3329 default: { 3330 if (!parseUnknownField(input, unknownFields, 3331 extensionRegistry, tag)) { 3332 done = true; 3333 } 3334 break; 3335 } 3336 case 8: { 3337 bitField0_ |= 0x00000001; 3338 id_ = input.readInt64(); 3339 break; 3340 } 3341 } 3342 } 3343 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3344 throw e.setUnfinishedMessage(this); 3345 } catch (java.io.IOException e) { 3346 throw new com.google.protobuf.InvalidProtocolBufferException( 3347 e.getMessage()).setUnfinishedMessage(this); 3348 } finally { 3349 this.unknownFields = unknownFields.build(); 3350 makeExtensionsImmutable(); 3351 } 3352 } 3353 public static final com.google.protobuf.Descriptors.Descriptor 3354 getDescriptor() { 3355 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor; 3356 } 3357 3358 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3359 internalGetFieldAccessorTable() { 3360 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverResponseProto_fieldAccessorTable 3361 .ensureFieldAccessorsInitialized( 3362 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.Builder.class); 3363 } 3364 3365 public static com.google.protobuf.Parser<AddSpanReceiverResponseProto> PARSER = 3366 new com.google.protobuf.AbstractParser<AddSpanReceiverResponseProto>() { 3367 public AddSpanReceiverResponseProto parsePartialFrom( 3368 com.google.protobuf.CodedInputStream input, 3369 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3370 throws com.google.protobuf.InvalidProtocolBufferException { 3371 return new AddSpanReceiverResponseProto(input, extensionRegistry); 3372 } 3373 }; 3374 3375 @java.lang.Override 3376 public com.google.protobuf.Parser<AddSpanReceiverResponseProto> getParserForType() { 3377 return PARSER; 3378 } 3379 3380 private int bitField0_; 3381 // required int64 id = 1; 3382 public static final int ID_FIELD_NUMBER = 1; 3383 private long id_; 3384 /** 3385 * <code>required int64 id = 1;</code> 3386 */ 3387 public boolean hasId() { 3388 return ((bitField0_ & 0x00000001) == 0x00000001); 3389 } 3390 /** 3391 * <code>required int64 id = 1;</code> 3392 */ 3393 public long getId() { 3394 return id_; 3395 } 3396 3397 private void initFields() { 3398 id_ = 0L; 3399 } 3400 private byte memoizedIsInitialized = -1; 3401 public final boolean isInitialized() { 3402 byte isInitialized = memoizedIsInitialized; 3403 if (isInitialized != -1) return isInitialized == 1; 3404 3405 if (!hasId()) { 3406 memoizedIsInitialized = 0; 3407 return false; 3408 } 3409 memoizedIsInitialized = 1; 3410 return true; 3411 } 3412 3413 public void writeTo(com.google.protobuf.CodedOutputStream output) 3414 throws java.io.IOException { 3415 getSerializedSize(); 3416 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3417 output.writeInt64(1, id_); 3418 } 3419 getUnknownFields().writeTo(output); 3420 } 3421 3422 private int memoizedSerializedSize = -1; 3423 public int getSerializedSize() { 3424 int size = memoizedSerializedSize; 3425 if (size != -1) return size; 3426 3427 size = 0; 3428 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3429 size += com.google.protobuf.CodedOutputStream 3430 .computeInt64Size(1, id_); 3431 } 3432 size += getUnknownFields().getSerializedSize(); 3433 memoizedSerializedSize = size; 3434 return size; 3435 } 3436 3437 private static final long serialVersionUID = 0L; 3438 @java.lang.Override 3439 protected java.lang.Object writeReplace() 3440 throws java.io.ObjectStreamException { 3441 return super.writeReplace(); 3442 } 3443 3444 @java.lang.Override 3445 public boolean equals(final java.lang.Object obj) { 3446 if (obj == this) { 3447 return true; 3448 } 3449 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto)) { 3450 return super.equals(obj); 3451 } 3452 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto other = (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto) obj; 3453 3454 boolean result = true; 3455 result = result && (hasId() == other.hasId()); 3456 if (hasId()) { 3457 result = result && (getId() 3458 == other.getId()); 3459 } 3460 result = result && 3461 getUnknownFields().equals(other.getUnknownFields()); 3462 return result; 3463 } 3464 3465 private int memoizedHashCode = 0; 3466 @java.lang.Override 3467 public int hashCode() { 3468 if (memoizedHashCode != 0) { 3469 return memoizedHashCode; 3470 } 3471 int hash = 41; 3472 hash = (19 * hash) + getDescriptorForType().hashCode(); 3473 if (hasId()) { 3474 hash = (37 * hash) + ID_FIELD_NUMBER; 3475 hash = (53 * hash) + hashLong(getId()); 3476 } 3477 hash = (29 * hash) + getUnknownFields().hashCode(); 3478 memoizedHashCode = hash; 3479 return hash; 3480 } 3481 3482 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3483 com.google.protobuf.ByteString data) 3484 throws com.google.protobuf.InvalidProtocolBufferException { 3485 return PARSER.parseFrom(data); 3486 } 3487 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3488 com.google.protobuf.ByteString data, 3489 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3490 throws com.google.protobuf.InvalidProtocolBufferException { 3491 return PARSER.parseFrom(data, extensionRegistry); 3492 } 3493 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom(byte[] data) 3494 throws com.google.protobuf.InvalidProtocolBufferException { 3495 return PARSER.parseFrom(data); 3496 } 3497 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3498 byte[] data, 3499 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3500 throws com.google.protobuf.InvalidProtocolBufferException { 3501 return PARSER.parseFrom(data, extensionRegistry); 3502 } 3503 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom(java.io.InputStream input) 3504 throws java.io.IOException { 3505 return PARSER.parseFrom(input); 3506 } 3507 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3508 java.io.InputStream input, 3509 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3510 throws java.io.IOException { 3511 return PARSER.parseFrom(input, extensionRegistry); 3512 } 3513 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseDelimitedFrom(java.io.InputStream input) 3514 throws java.io.IOException { 3515 return PARSER.parseDelimitedFrom(input); 3516 } 3517 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseDelimitedFrom( 3518 java.io.InputStream input, 3519 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3520 throws java.io.IOException { 3521 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3522 } 3523 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3524 com.google.protobuf.CodedInputStream input) 3525 throws java.io.IOException { 3526 return PARSER.parseFrom(input); 3527 } 3528 public static org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parseFrom( 3529 com.google.protobuf.CodedInputStream input, 3530 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3531 throws java.io.IOException { 3532 return PARSER.parseFrom(input, extensionRegistry); 3533 } 3534 3535 public static Builder newBuilder() { return Builder.create(); } 3536 public Builder newBuilderForType() { return newBuilder(); } 3537 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto prototype) { 3538 return newBuilder().mergeFrom(prototype); 3539 } 3540 public Builder toBuilder() { return newBuilder(this); } 3541 3542 @java.lang.Override 3543 protected Builder newBuilderForType( 3544 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3545 Builder builder = new Builder(parent); 3546 return builder; 3547 } 3548 /** 3549 * Protobuf type {@code hadoop.common.AddSpanReceiverResponseProto} 3550 */ 3551 public static final class Builder extends 3552 com.google.protobuf.GeneratedMessage.Builder<Builder> 3553 implements org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProtoOrBuilder { 3554 public static final com.google.protobuf.Descriptors.Descriptor 3555 getDescriptor() { 3556 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor; 3557 } 3558 3559 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3560 internalGetFieldAccessorTable() { 3561 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverResponseProto_fieldAccessorTable 3562 .ensureFieldAccessorsInitialized( 3563 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.Builder.class); 3564 } 3565 3566 // Construct using org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.newBuilder() 3567 private Builder() { 3568 maybeForceBuilderInitialization(); 3569 } 3570 3571 private Builder( 3572 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3573 super(parent); 3574 maybeForceBuilderInitialization(); 3575 } 3576 private void maybeForceBuilderInitialization() { 3577 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 3578 } 3579 } 3580 private static Builder create() { 3581 return new Builder(); 3582 } 3583 3584 public Builder clear() { 3585 super.clear(); 3586 id_ = 0L; 3587 bitField0_ = (bitField0_ & ~0x00000001); 3588 return this; 3589 } 3590 3591 public Builder clone() { 3592 return create().mergeFrom(buildPartial()); 3593 } 3594 3595 public com.google.protobuf.Descriptors.Descriptor 3596 getDescriptorForType() { 3597 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor; 3598 } 3599 3600 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto getDefaultInstanceForType() { 3601 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance(); 3602 } 3603 3604 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto build() { 3605 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto result = buildPartial(); 3606 if (!result.isInitialized()) { 3607 throw newUninitializedMessageException(result); 3608 } 3609 return result; 3610 } 3611 3612 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto buildPartial() { 3613 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto result = new org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto(this); 3614 int from_bitField0_ = bitField0_; 3615 int to_bitField0_ = 0; 3616 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 3617 to_bitField0_ |= 0x00000001; 3618 } 3619 result.id_ = id_; 3620 result.bitField0_ = to_bitField0_; 3621 onBuilt(); 3622 return result; 3623 } 3624 3625 public Builder mergeFrom(com.google.protobuf.Message other) { 3626 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto) { 3627 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto)other); 3628 } else { 3629 super.mergeFrom(other); 3630 return this; 3631 } 3632 } 3633 3634 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto other) { 3635 if (other == org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance()) return this; 3636 if (other.hasId()) { 3637 setId(other.getId()); 3638 } 3639 this.mergeUnknownFields(other.getUnknownFields()); 3640 return this; 3641 } 3642 3643 public final boolean isInitialized() { 3644 if (!hasId()) { 3645 3646 return false; 3647 } 3648 return true; 3649 } 3650 3651 public Builder mergeFrom( 3652 com.google.protobuf.CodedInputStream input, 3653 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3654 throws java.io.IOException { 3655 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto parsedMessage = null; 3656 try { 3657 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3658 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3659 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto) e.getUnfinishedMessage(); 3660 throw e; 3661 } finally { 3662 if (parsedMessage != null) { 3663 mergeFrom(parsedMessage); 3664 } 3665 } 3666 return this; 3667 } 3668 private int bitField0_; 3669 3670 // required int64 id = 1; 3671 private long id_ ; 3672 /** 3673 * <code>required int64 id = 1;</code> 3674 */ 3675 public boolean hasId() { 3676 return ((bitField0_ & 0x00000001) == 0x00000001); 3677 } 3678 /** 3679 * <code>required int64 id = 1;</code> 3680 */ 3681 public long getId() { 3682 return id_; 3683 } 3684 /** 3685 * <code>required int64 id = 1;</code> 3686 */ 3687 public Builder setId(long value) { 3688 bitField0_ |= 0x00000001; 3689 id_ = value; 3690 onChanged(); 3691 return this; 3692 } 3693 /** 3694 * <code>required int64 id = 1;</code> 3695 */ 3696 public Builder clearId() { 3697 bitField0_ = (bitField0_ & ~0x00000001); 3698 id_ = 0L; 3699 onChanged(); 3700 return this; 3701 } 3702 3703 // @@protoc_insertion_point(builder_scope:hadoop.common.AddSpanReceiverResponseProto) 3704 } 3705 3706 static { 3707 defaultInstance = new AddSpanReceiverResponseProto(true); 3708 defaultInstance.initFields(); 3709 } 3710 3711 // @@protoc_insertion_point(class_scope:hadoop.common.AddSpanReceiverResponseProto) 3712 } 3713 3714 public interface RemoveSpanReceiverRequestProtoOrBuilder 3715 extends com.google.protobuf.MessageOrBuilder { 3716 3717 // required int64 id = 1; 3718 /** 3719 * <code>required int64 id = 1;</code> 3720 */ 3721 boolean hasId(); 3722 /** 3723 * <code>required int64 id = 1;</code> 3724 */ 3725 long getId(); 3726 } 3727 /** 3728 * Protobuf type {@code hadoop.common.RemoveSpanReceiverRequestProto} 3729 */ 3730 public static final class RemoveSpanReceiverRequestProto extends 3731 com.google.protobuf.GeneratedMessage 3732 implements RemoveSpanReceiverRequestProtoOrBuilder { 3733 // Use RemoveSpanReceiverRequestProto.newBuilder() to construct. 3734 private RemoveSpanReceiverRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 3735 super(builder); 3736 this.unknownFields = builder.getUnknownFields(); 3737 } 3738 private RemoveSpanReceiverRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 3739 3740 private static final RemoveSpanReceiverRequestProto defaultInstance; 3741 public static RemoveSpanReceiverRequestProto getDefaultInstance() { 3742 return defaultInstance; 3743 } 3744 3745 public RemoveSpanReceiverRequestProto getDefaultInstanceForType() { 3746 return defaultInstance; 3747 } 3748 3749 private final com.google.protobuf.UnknownFieldSet unknownFields; 3750 @java.lang.Override 3751 public final com.google.protobuf.UnknownFieldSet 3752 getUnknownFields() { 3753 return this.unknownFields; 3754 } 3755 private RemoveSpanReceiverRequestProto( 3756 com.google.protobuf.CodedInputStream input, 3757 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3758 throws com.google.protobuf.InvalidProtocolBufferException { 3759 initFields(); 3760 int mutable_bitField0_ = 0; 3761 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 3762 com.google.protobuf.UnknownFieldSet.newBuilder(); 3763 try { 3764 boolean done = false; 3765 while (!done) { 3766 int tag = input.readTag(); 3767 switch (tag) { 3768 case 0: 3769 done = true; 3770 break; 3771 default: { 3772 if (!parseUnknownField(input, unknownFields, 3773 extensionRegistry, tag)) { 3774 done = true; 3775 } 3776 break; 3777 } 3778 case 8: { 3779 bitField0_ |= 0x00000001; 3780 id_ = input.readInt64(); 3781 break; 3782 } 3783 } 3784 } 3785 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3786 throw e.setUnfinishedMessage(this); 3787 } catch (java.io.IOException e) { 3788 throw new com.google.protobuf.InvalidProtocolBufferException( 3789 e.getMessage()).setUnfinishedMessage(this); 3790 } finally { 3791 this.unknownFields = unknownFields.build(); 3792 makeExtensionsImmutable(); 3793 } 3794 } 3795 public static final com.google.protobuf.Descriptors.Descriptor 3796 getDescriptor() { 3797 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor; 3798 } 3799 3800 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3801 internalGetFieldAccessorTable() { 3802 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverRequestProto_fieldAccessorTable 3803 .ensureFieldAccessorsInitialized( 3804 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.Builder.class); 3805 } 3806 3807 public static com.google.protobuf.Parser<RemoveSpanReceiverRequestProto> PARSER = 3808 new com.google.protobuf.AbstractParser<RemoveSpanReceiverRequestProto>() { 3809 public RemoveSpanReceiverRequestProto parsePartialFrom( 3810 com.google.protobuf.CodedInputStream input, 3811 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3812 throws com.google.protobuf.InvalidProtocolBufferException { 3813 return new RemoveSpanReceiverRequestProto(input, extensionRegistry); 3814 } 3815 }; 3816 3817 @java.lang.Override 3818 public com.google.protobuf.Parser<RemoveSpanReceiverRequestProto> getParserForType() { 3819 return PARSER; 3820 } 3821 3822 private int bitField0_; 3823 // required int64 id = 1; 3824 public static final int ID_FIELD_NUMBER = 1; 3825 private long id_; 3826 /** 3827 * <code>required int64 id = 1;</code> 3828 */ 3829 public boolean hasId() { 3830 return ((bitField0_ & 0x00000001) == 0x00000001); 3831 } 3832 /** 3833 * <code>required int64 id = 1;</code> 3834 */ 3835 public long getId() { 3836 return id_; 3837 } 3838 3839 private void initFields() { 3840 id_ = 0L; 3841 } 3842 private byte memoizedIsInitialized = -1; 3843 public final boolean isInitialized() { 3844 byte isInitialized = memoizedIsInitialized; 3845 if (isInitialized != -1) return isInitialized == 1; 3846 3847 if (!hasId()) { 3848 memoizedIsInitialized = 0; 3849 return false; 3850 } 3851 memoizedIsInitialized = 1; 3852 return true; 3853 } 3854 3855 public void writeTo(com.google.protobuf.CodedOutputStream output) 3856 throws java.io.IOException { 3857 getSerializedSize(); 3858 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3859 output.writeInt64(1, id_); 3860 } 3861 getUnknownFields().writeTo(output); 3862 } 3863 3864 private int memoizedSerializedSize = -1; 3865 public int getSerializedSize() { 3866 int size = memoizedSerializedSize; 3867 if (size != -1) return size; 3868 3869 size = 0; 3870 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3871 size += com.google.protobuf.CodedOutputStream 3872 .computeInt64Size(1, id_); 3873 } 3874 size += getUnknownFields().getSerializedSize(); 3875 memoizedSerializedSize = size; 3876 return size; 3877 } 3878 3879 private static final long serialVersionUID = 0L; 3880 @java.lang.Override 3881 protected java.lang.Object writeReplace() 3882 throws java.io.ObjectStreamException { 3883 return super.writeReplace(); 3884 } 3885 3886 @java.lang.Override 3887 public boolean equals(final java.lang.Object obj) { 3888 if (obj == this) { 3889 return true; 3890 } 3891 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto)) { 3892 return super.equals(obj); 3893 } 3894 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto other = (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto) obj; 3895 3896 boolean result = true; 3897 result = result && (hasId() == other.hasId()); 3898 if (hasId()) { 3899 result = result && (getId() 3900 == other.getId()); 3901 } 3902 result = result && 3903 getUnknownFields().equals(other.getUnknownFields()); 3904 return result; 3905 } 3906 3907 private int memoizedHashCode = 0; 3908 @java.lang.Override 3909 public int hashCode() { 3910 if (memoizedHashCode != 0) { 3911 return memoizedHashCode; 3912 } 3913 int hash = 41; 3914 hash = (19 * hash) + getDescriptorForType().hashCode(); 3915 if (hasId()) { 3916 hash = (37 * hash) + ID_FIELD_NUMBER; 3917 hash = (53 * hash) + hashLong(getId()); 3918 } 3919 hash = (29 * hash) + getUnknownFields().hashCode(); 3920 memoizedHashCode = hash; 3921 return hash; 3922 } 3923 3924 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3925 com.google.protobuf.ByteString data) 3926 throws com.google.protobuf.InvalidProtocolBufferException { 3927 return PARSER.parseFrom(data); 3928 } 3929 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3930 com.google.protobuf.ByteString data, 3931 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3932 throws com.google.protobuf.InvalidProtocolBufferException { 3933 return PARSER.parseFrom(data, extensionRegistry); 3934 } 3935 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom(byte[] data) 3936 throws com.google.protobuf.InvalidProtocolBufferException { 3937 return PARSER.parseFrom(data); 3938 } 3939 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3940 byte[] data, 3941 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3942 throws com.google.protobuf.InvalidProtocolBufferException { 3943 return PARSER.parseFrom(data, extensionRegistry); 3944 } 3945 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom(java.io.InputStream input) 3946 throws java.io.IOException { 3947 return PARSER.parseFrom(input); 3948 } 3949 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3950 java.io.InputStream input, 3951 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3952 throws java.io.IOException { 3953 return PARSER.parseFrom(input, extensionRegistry); 3954 } 3955 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseDelimitedFrom(java.io.InputStream input) 3956 throws java.io.IOException { 3957 return PARSER.parseDelimitedFrom(input); 3958 } 3959 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseDelimitedFrom( 3960 java.io.InputStream input, 3961 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3962 throws java.io.IOException { 3963 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3964 } 3965 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3966 com.google.protobuf.CodedInputStream input) 3967 throws java.io.IOException { 3968 return PARSER.parseFrom(input); 3969 } 3970 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parseFrom( 3971 com.google.protobuf.CodedInputStream input, 3972 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3973 throws java.io.IOException { 3974 return PARSER.parseFrom(input, extensionRegistry); 3975 } 3976 3977 public static Builder newBuilder() { return Builder.create(); } 3978 public Builder newBuilderForType() { return newBuilder(); } 3979 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto prototype) { 3980 return newBuilder().mergeFrom(prototype); 3981 } 3982 public Builder toBuilder() { return newBuilder(this); } 3983 3984 @java.lang.Override 3985 protected Builder newBuilderForType( 3986 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3987 Builder builder = new Builder(parent); 3988 return builder; 3989 } 3990 /** 3991 * Protobuf type {@code hadoop.common.RemoveSpanReceiverRequestProto} 3992 */ 3993 public static final class Builder extends 3994 com.google.protobuf.GeneratedMessage.Builder<Builder> 3995 implements org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProtoOrBuilder { 3996 public static final com.google.protobuf.Descriptors.Descriptor 3997 getDescriptor() { 3998 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor; 3999 } 4000 4001 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4002 internalGetFieldAccessorTable() { 4003 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverRequestProto_fieldAccessorTable 4004 .ensureFieldAccessorsInitialized( 4005 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.class, org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.Builder.class); 4006 } 4007 4008 // Construct using org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.newBuilder() 4009 private Builder() { 4010 maybeForceBuilderInitialization(); 4011 } 4012 4013 private Builder( 4014 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4015 super(parent); 4016 maybeForceBuilderInitialization(); 4017 } 4018 private void maybeForceBuilderInitialization() { 4019 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 4020 } 4021 } 4022 private static Builder create() { 4023 return new Builder(); 4024 } 4025 4026 public Builder clear() { 4027 super.clear(); 4028 id_ = 0L; 4029 bitField0_ = (bitField0_ & ~0x00000001); 4030 return this; 4031 } 4032 4033 public Builder clone() { 4034 return create().mergeFrom(buildPartial()); 4035 } 4036 4037 public com.google.protobuf.Descriptors.Descriptor 4038 getDescriptorForType() { 4039 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor; 4040 } 4041 4042 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto getDefaultInstanceForType() { 4043 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.getDefaultInstance(); 4044 } 4045 4046 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto build() { 4047 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto result = buildPartial(); 4048 if (!result.isInitialized()) { 4049 throw newUninitializedMessageException(result); 4050 } 4051 return result; 4052 } 4053 4054 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto buildPartial() { 4055 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto result = new org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto(this); 4056 int from_bitField0_ = bitField0_; 4057 int to_bitField0_ = 0; 4058 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 4059 to_bitField0_ |= 0x00000001; 4060 } 4061 result.id_ = id_; 4062 result.bitField0_ = to_bitField0_; 4063 onBuilt(); 4064 return result; 4065 } 4066 4067 public Builder mergeFrom(com.google.protobuf.Message other) { 4068 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto) { 4069 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto)other); 4070 } else { 4071 super.mergeFrom(other); 4072 return this; 4073 } 4074 } 4075 4076 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto other) { 4077 if (other == org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.getDefaultInstance()) return this; 4078 if (other.hasId()) { 4079 setId(other.getId()); 4080 } 4081 this.mergeUnknownFields(other.getUnknownFields()); 4082 return this; 4083 } 4084 4085 public final boolean isInitialized() { 4086 if (!hasId()) { 4087 4088 return false; 4089 } 4090 return true; 4091 } 4092 4093 public Builder mergeFrom( 4094 com.google.protobuf.CodedInputStream input, 4095 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4096 throws java.io.IOException { 4097 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto parsedMessage = null; 4098 try { 4099 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4100 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4101 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto) e.getUnfinishedMessage(); 4102 throw e; 4103 } finally { 4104 if (parsedMessage != null) { 4105 mergeFrom(parsedMessage); 4106 } 4107 } 4108 return this; 4109 } 4110 private int bitField0_; 4111 4112 // required int64 id = 1; 4113 private long id_ ; 4114 /** 4115 * <code>required int64 id = 1;</code> 4116 */ 4117 public boolean hasId() { 4118 return ((bitField0_ & 0x00000001) == 0x00000001); 4119 } 4120 /** 4121 * <code>required int64 id = 1;</code> 4122 */ 4123 public long getId() { 4124 return id_; 4125 } 4126 /** 4127 * <code>required int64 id = 1;</code> 4128 */ 4129 public Builder setId(long value) { 4130 bitField0_ |= 0x00000001; 4131 id_ = value; 4132 onChanged(); 4133 return this; 4134 } 4135 /** 4136 * <code>required int64 id = 1;</code> 4137 */ 4138 public Builder clearId() { 4139 bitField0_ = (bitField0_ & ~0x00000001); 4140 id_ = 0L; 4141 onChanged(); 4142 return this; 4143 } 4144 4145 // @@protoc_insertion_point(builder_scope:hadoop.common.RemoveSpanReceiverRequestProto) 4146 } 4147 4148 static { 4149 defaultInstance = new RemoveSpanReceiverRequestProto(true); 4150 defaultInstance.initFields(); 4151 } 4152 4153 // @@protoc_insertion_point(class_scope:hadoop.common.RemoveSpanReceiverRequestProto) 4154 } 4155 4156 public interface RemoveSpanReceiverResponseProtoOrBuilder 4157 extends com.google.protobuf.MessageOrBuilder { 4158 } 4159 /** 4160 * Protobuf type {@code hadoop.common.RemoveSpanReceiverResponseProto} 4161 */ 4162 public static final class RemoveSpanReceiverResponseProto extends 4163 com.google.protobuf.GeneratedMessage 4164 implements RemoveSpanReceiverResponseProtoOrBuilder { 4165 // Use RemoveSpanReceiverResponseProto.newBuilder() to construct. 4166 private RemoveSpanReceiverResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 4167 super(builder); 4168 this.unknownFields = builder.getUnknownFields(); 4169 } 4170 private RemoveSpanReceiverResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 4171 4172 private static final RemoveSpanReceiverResponseProto defaultInstance; 4173 public static RemoveSpanReceiverResponseProto getDefaultInstance() { 4174 return defaultInstance; 4175 } 4176 4177 public RemoveSpanReceiverResponseProto getDefaultInstanceForType() { 4178 return defaultInstance; 4179 } 4180 4181 private final com.google.protobuf.UnknownFieldSet unknownFields; 4182 @java.lang.Override 4183 public final com.google.protobuf.UnknownFieldSet 4184 getUnknownFields() { 4185 return this.unknownFields; 4186 } 4187 private RemoveSpanReceiverResponseProto( 4188 com.google.protobuf.CodedInputStream input, 4189 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4190 throws com.google.protobuf.InvalidProtocolBufferException { 4191 initFields(); 4192 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4193 com.google.protobuf.UnknownFieldSet.newBuilder(); 4194 try { 4195 boolean done = false; 4196 while (!done) { 4197 int tag = input.readTag(); 4198 switch (tag) { 4199 case 0: 4200 done = true; 4201 break; 4202 default: { 4203 if (!parseUnknownField(input, unknownFields, 4204 extensionRegistry, tag)) { 4205 done = true; 4206 } 4207 break; 4208 } 4209 } 4210 } 4211 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4212 throw e.setUnfinishedMessage(this); 4213 } catch (java.io.IOException e) { 4214 throw new com.google.protobuf.InvalidProtocolBufferException( 4215 e.getMessage()).setUnfinishedMessage(this); 4216 } finally { 4217 this.unknownFields = unknownFields.build(); 4218 makeExtensionsImmutable(); 4219 } 4220 } 4221 public static final com.google.protobuf.Descriptors.Descriptor 4222 getDescriptor() { 4223 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor; 4224 } 4225 4226 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4227 internalGetFieldAccessorTable() { 4228 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverResponseProto_fieldAccessorTable 4229 .ensureFieldAccessorsInitialized( 4230 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.Builder.class); 4231 } 4232 4233 public static com.google.protobuf.Parser<RemoveSpanReceiverResponseProto> PARSER = 4234 new com.google.protobuf.AbstractParser<RemoveSpanReceiverResponseProto>() { 4235 public RemoveSpanReceiverResponseProto parsePartialFrom( 4236 com.google.protobuf.CodedInputStream input, 4237 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4238 throws com.google.protobuf.InvalidProtocolBufferException { 4239 return new RemoveSpanReceiverResponseProto(input, extensionRegistry); 4240 } 4241 }; 4242 4243 @java.lang.Override 4244 public com.google.protobuf.Parser<RemoveSpanReceiverResponseProto> getParserForType() { 4245 return PARSER; 4246 } 4247 4248 private void initFields() { 4249 } 4250 private byte memoizedIsInitialized = -1; 4251 public final boolean isInitialized() { 4252 byte isInitialized = memoizedIsInitialized; 4253 if (isInitialized != -1) return isInitialized == 1; 4254 4255 memoizedIsInitialized = 1; 4256 return true; 4257 } 4258 4259 public void writeTo(com.google.protobuf.CodedOutputStream output) 4260 throws java.io.IOException { 4261 getSerializedSize(); 4262 getUnknownFields().writeTo(output); 4263 } 4264 4265 private int memoizedSerializedSize = -1; 4266 public int getSerializedSize() { 4267 int size = memoizedSerializedSize; 4268 if (size != -1) return size; 4269 4270 size = 0; 4271 size += getUnknownFields().getSerializedSize(); 4272 memoizedSerializedSize = size; 4273 return size; 4274 } 4275 4276 private static final long serialVersionUID = 0L; 4277 @java.lang.Override 4278 protected java.lang.Object writeReplace() 4279 throws java.io.ObjectStreamException { 4280 return super.writeReplace(); 4281 } 4282 4283 @java.lang.Override 4284 public boolean equals(final java.lang.Object obj) { 4285 if (obj == this) { 4286 return true; 4287 } 4288 if (!(obj instanceof org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto)) { 4289 return super.equals(obj); 4290 } 4291 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto other = (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto) obj; 4292 4293 boolean result = true; 4294 result = result && 4295 getUnknownFields().equals(other.getUnknownFields()); 4296 return result; 4297 } 4298 4299 private int memoizedHashCode = 0; 4300 @java.lang.Override 4301 public int hashCode() { 4302 if (memoizedHashCode != 0) { 4303 return memoizedHashCode; 4304 } 4305 int hash = 41; 4306 hash = (19 * hash) + getDescriptorForType().hashCode(); 4307 hash = (29 * hash) + getUnknownFields().hashCode(); 4308 memoizedHashCode = hash; 4309 return hash; 4310 } 4311 4312 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4313 com.google.protobuf.ByteString data) 4314 throws com.google.protobuf.InvalidProtocolBufferException { 4315 return PARSER.parseFrom(data); 4316 } 4317 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4318 com.google.protobuf.ByteString data, 4319 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4320 throws com.google.protobuf.InvalidProtocolBufferException { 4321 return PARSER.parseFrom(data, extensionRegistry); 4322 } 4323 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom(byte[] data) 4324 throws com.google.protobuf.InvalidProtocolBufferException { 4325 return PARSER.parseFrom(data); 4326 } 4327 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4328 byte[] data, 4329 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4330 throws com.google.protobuf.InvalidProtocolBufferException { 4331 return PARSER.parseFrom(data, extensionRegistry); 4332 } 4333 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom(java.io.InputStream input) 4334 throws java.io.IOException { 4335 return PARSER.parseFrom(input); 4336 } 4337 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4338 java.io.InputStream input, 4339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4340 throws java.io.IOException { 4341 return PARSER.parseFrom(input, extensionRegistry); 4342 } 4343 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseDelimitedFrom(java.io.InputStream input) 4344 throws java.io.IOException { 4345 return PARSER.parseDelimitedFrom(input); 4346 } 4347 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseDelimitedFrom( 4348 java.io.InputStream input, 4349 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4350 throws java.io.IOException { 4351 return PARSER.parseDelimitedFrom(input, extensionRegistry); 4352 } 4353 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4354 com.google.protobuf.CodedInputStream input) 4355 throws java.io.IOException { 4356 return PARSER.parseFrom(input); 4357 } 4358 public static org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parseFrom( 4359 com.google.protobuf.CodedInputStream input, 4360 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4361 throws java.io.IOException { 4362 return PARSER.parseFrom(input, extensionRegistry); 4363 } 4364 4365 public static Builder newBuilder() { return Builder.create(); } 4366 public Builder newBuilderForType() { return newBuilder(); } 4367 public static Builder newBuilder(org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto prototype) { 4368 return newBuilder().mergeFrom(prototype); 4369 } 4370 public Builder toBuilder() { return newBuilder(this); } 4371 4372 @java.lang.Override 4373 protected Builder newBuilderForType( 4374 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4375 Builder builder = new Builder(parent); 4376 return builder; 4377 } 4378 /** 4379 * Protobuf type {@code hadoop.common.RemoveSpanReceiverResponseProto} 4380 */ 4381 public static final class Builder extends 4382 com.google.protobuf.GeneratedMessage.Builder<Builder> 4383 implements org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProtoOrBuilder { 4384 public static final com.google.protobuf.Descriptors.Descriptor 4385 getDescriptor() { 4386 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor; 4387 } 4388 4389 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4390 internalGetFieldAccessorTable() { 4391 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverResponseProto_fieldAccessorTable 4392 .ensureFieldAccessorsInitialized( 4393 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.class, org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.Builder.class); 4394 } 4395 4396 // Construct using org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.newBuilder() 4397 private Builder() { 4398 maybeForceBuilderInitialization(); 4399 } 4400 4401 private Builder( 4402 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4403 super(parent); 4404 maybeForceBuilderInitialization(); 4405 } 4406 private void maybeForceBuilderInitialization() { 4407 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 4408 } 4409 } 4410 private static Builder create() { 4411 return new Builder(); 4412 } 4413 4414 public Builder clear() { 4415 super.clear(); 4416 return this; 4417 } 4418 4419 public Builder clone() { 4420 return create().mergeFrom(buildPartial()); 4421 } 4422 4423 public com.google.protobuf.Descriptors.Descriptor 4424 getDescriptorForType() { 4425 return org.apache.hadoop.tracing.TraceAdminPB.internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor; 4426 } 4427 4428 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto getDefaultInstanceForType() { 4429 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance(); 4430 } 4431 4432 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto build() { 4433 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto result = buildPartial(); 4434 if (!result.isInitialized()) { 4435 throw newUninitializedMessageException(result); 4436 } 4437 return result; 4438 } 4439 4440 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto buildPartial() { 4441 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto result = new org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto(this); 4442 onBuilt(); 4443 return result; 4444 } 4445 4446 public Builder mergeFrom(com.google.protobuf.Message other) { 4447 if (other instanceof org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto) { 4448 return mergeFrom((org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto)other); 4449 } else { 4450 super.mergeFrom(other); 4451 return this; 4452 } 4453 } 4454 4455 public Builder mergeFrom(org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto other) { 4456 if (other == org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance()) return this; 4457 this.mergeUnknownFields(other.getUnknownFields()); 4458 return this; 4459 } 4460 4461 public final boolean isInitialized() { 4462 return true; 4463 } 4464 4465 public Builder mergeFrom( 4466 com.google.protobuf.CodedInputStream input, 4467 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4468 throws java.io.IOException { 4469 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto parsedMessage = null; 4470 try { 4471 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4472 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4473 parsedMessage = (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto) e.getUnfinishedMessage(); 4474 throw e; 4475 } finally { 4476 if (parsedMessage != null) { 4477 mergeFrom(parsedMessage); 4478 } 4479 } 4480 return this; 4481 } 4482 4483 // @@protoc_insertion_point(builder_scope:hadoop.common.RemoveSpanReceiverResponseProto) 4484 } 4485 4486 static { 4487 defaultInstance = new RemoveSpanReceiverResponseProto(true); 4488 defaultInstance.initFields(); 4489 } 4490 4491 // @@protoc_insertion_point(class_scope:hadoop.common.RemoveSpanReceiverResponseProto) 4492 } 4493 4494 /** 4495 * Protobuf service {@code hadoop.common.TraceAdminService} 4496 */ 4497 public static abstract class TraceAdminService 4498 implements com.google.protobuf.Service { 4499 protected TraceAdminService() {} 4500 4501 public interface Interface { 4502 /** 4503 * <code>rpc listSpanReceivers(.hadoop.common.ListSpanReceiversRequestProto) returns (.hadoop.common.ListSpanReceiversResponseProto);</code> 4504 */ 4505 public abstract void listSpanReceivers( 4506 com.google.protobuf.RpcController controller, 4507 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request, 4508 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto> done); 4509 4510 /** 4511 * <code>rpc addSpanReceiver(.hadoop.common.AddSpanReceiverRequestProto) returns (.hadoop.common.AddSpanReceiverResponseProto);</code> 4512 */ 4513 public abstract void addSpanReceiver( 4514 com.google.protobuf.RpcController controller, 4515 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request, 4516 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto> done); 4517 4518 /** 4519 * <code>rpc removeSpanReceiver(.hadoop.common.RemoveSpanReceiverRequestProto) returns (.hadoop.common.RemoveSpanReceiverResponseProto);</code> 4520 */ 4521 public abstract void removeSpanReceiver( 4522 com.google.protobuf.RpcController controller, 4523 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request, 4524 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto> done); 4525 4526 } 4527 4528 public static com.google.protobuf.Service newReflectiveService( 4529 final Interface impl) { 4530 return new TraceAdminService() { 4531 @java.lang.Override 4532 public void listSpanReceivers( 4533 com.google.protobuf.RpcController controller, 4534 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request, 4535 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto> done) { 4536 impl.listSpanReceivers(controller, request, done); 4537 } 4538 4539 @java.lang.Override 4540 public void addSpanReceiver( 4541 com.google.protobuf.RpcController controller, 4542 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request, 4543 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto> done) { 4544 impl.addSpanReceiver(controller, request, done); 4545 } 4546 4547 @java.lang.Override 4548 public void removeSpanReceiver( 4549 com.google.protobuf.RpcController controller, 4550 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request, 4551 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto> done) { 4552 impl.removeSpanReceiver(controller, request, done); 4553 } 4554 4555 }; 4556 } 4557 4558 public static com.google.protobuf.BlockingService 4559 newReflectiveBlockingService(final BlockingInterface impl) { 4560 return new com.google.protobuf.BlockingService() { 4561 public final com.google.protobuf.Descriptors.ServiceDescriptor 4562 getDescriptorForType() { 4563 return getDescriptor(); 4564 } 4565 4566 public final com.google.protobuf.Message callBlockingMethod( 4567 com.google.protobuf.Descriptors.MethodDescriptor method, 4568 com.google.protobuf.RpcController controller, 4569 com.google.protobuf.Message request) 4570 throws com.google.protobuf.ServiceException { 4571 if (method.getService() != getDescriptor()) { 4572 throw new java.lang.IllegalArgumentException( 4573 "Service.callBlockingMethod() given method descriptor for " + 4574 "wrong service type."); 4575 } 4576 switch(method.getIndex()) { 4577 case 0: 4578 return impl.listSpanReceivers(controller, (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto)request); 4579 case 1: 4580 return impl.addSpanReceiver(controller, (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto)request); 4581 case 2: 4582 return impl.removeSpanReceiver(controller, (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto)request); 4583 default: 4584 throw new java.lang.AssertionError("Can't get here."); 4585 } 4586 } 4587 4588 public final com.google.protobuf.Message 4589 getRequestPrototype( 4590 com.google.protobuf.Descriptors.MethodDescriptor method) { 4591 if (method.getService() != getDescriptor()) { 4592 throw new java.lang.IllegalArgumentException( 4593 "Service.getRequestPrototype() given method " + 4594 "descriptor for wrong service type."); 4595 } 4596 switch(method.getIndex()) { 4597 case 0: 4598 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.getDefaultInstance(); 4599 case 1: 4600 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.getDefaultInstance(); 4601 case 2: 4602 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.getDefaultInstance(); 4603 default: 4604 throw new java.lang.AssertionError("Can't get here."); 4605 } 4606 } 4607 4608 public final com.google.protobuf.Message 4609 getResponsePrototype( 4610 com.google.protobuf.Descriptors.MethodDescriptor method) { 4611 if (method.getService() != getDescriptor()) { 4612 throw new java.lang.IllegalArgumentException( 4613 "Service.getResponsePrototype() given method " + 4614 "descriptor for wrong service type."); 4615 } 4616 switch(method.getIndex()) { 4617 case 0: 4618 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance(); 4619 case 1: 4620 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance(); 4621 case 2: 4622 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance(); 4623 default: 4624 throw new java.lang.AssertionError("Can't get here."); 4625 } 4626 } 4627 4628 }; 4629 } 4630 4631 /** 4632 * <code>rpc listSpanReceivers(.hadoop.common.ListSpanReceiversRequestProto) returns (.hadoop.common.ListSpanReceiversResponseProto);</code> 4633 */ 4634 public abstract void listSpanReceivers( 4635 com.google.protobuf.RpcController controller, 4636 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request, 4637 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto> done); 4638 4639 /** 4640 * <code>rpc addSpanReceiver(.hadoop.common.AddSpanReceiverRequestProto) returns (.hadoop.common.AddSpanReceiverResponseProto);</code> 4641 */ 4642 public abstract void addSpanReceiver( 4643 com.google.protobuf.RpcController controller, 4644 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request, 4645 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto> done); 4646 4647 /** 4648 * <code>rpc removeSpanReceiver(.hadoop.common.RemoveSpanReceiverRequestProto) returns (.hadoop.common.RemoveSpanReceiverResponseProto);</code> 4649 */ 4650 public abstract void removeSpanReceiver( 4651 com.google.protobuf.RpcController controller, 4652 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request, 4653 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto> done); 4654 4655 public static final 4656 com.google.protobuf.Descriptors.ServiceDescriptor 4657 getDescriptor() { 4658 return org.apache.hadoop.tracing.TraceAdminPB.getDescriptor().getServices().get(0); 4659 } 4660 public final com.google.protobuf.Descriptors.ServiceDescriptor 4661 getDescriptorForType() { 4662 return getDescriptor(); 4663 } 4664 4665 public final void callMethod( 4666 com.google.protobuf.Descriptors.MethodDescriptor method, 4667 com.google.protobuf.RpcController controller, 4668 com.google.protobuf.Message request, 4669 com.google.protobuf.RpcCallback< 4670 com.google.protobuf.Message> done) { 4671 if (method.getService() != getDescriptor()) { 4672 throw new java.lang.IllegalArgumentException( 4673 "Service.callMethod() given method descriptor for wrong " + 4674 "service type."); 4675 } 4676 switch(method.getIndex()) { 4677 case 0: 4678 this.listSpanReceivers(controller, (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto)request, 4679 com.google.protobuf.RpcUtil.<org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto>specializeCallback( 4680 done)); 4681 return; 4682 case 1: 4683 this.addSpanReceiver(controller, (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto)request, 4684 com.google.protobuf.RpcUtil.<org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto>specializeCallback( 4685 done)); 4686 return; 4687 case 2: 4688 this.removeSpanReceiver(controller, (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto)request, 4689 com.google.protobuf.RpcUtil.<org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto>specializeCallback( 4690 done)); 4691 return; 4692 default: 4693 throw new java.lang.AssertionError("Can't get here."); 4694 } 4695 } 4696 4697 public final com.google.protobuf.Message 4698 getRequestPrototype( 4699 com.google.protobuf.Descriptors.MethodDescriptor method) { 4700 if (method.getService() != getDescriptor()) { 4701 throw new java.lang.IllegalArgumentException( 4702 "Service.getRequestPrototype() given method " + 4703 "descriptor for wrong service type."); 4704 } 4705 switch(method.getIndex()) { 4706 case 0: 4707 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto.getDefaultInstance(); 4708 case 1: 4709 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto.getDefaultInstance(); 4710 case 2: 4711 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto.getDefaultInstance(); 4712 default: 4713 throw new java.lang.AssertionError("Can't get here."); 4714 } 4715 } 4716 4717 public final com.google.protobuf.Message 4718 getResponsePrototype( 4719 com.google.protobuf.Descriptors.MethodDescriptor method) { 4720 if (method.getService() != getDescriptor()) { 4721 throw new java.lang.IllegalArgumentException( 4722 "Service.getResponsePrototype() given method " + 4723 "descriptor for wrong service type."); 4724 } 4725 switch(method.getIndex()) { 4726 case 0: 4727 return org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance(); 4728 case 1: 4729 return org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance(); 4730 case 2: 4731 return org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance(); 4732 default: 4733 throw new java.lang.AssertionError("Can't get here."); 4734 } 4735 } 4736 4737 public static Stub newStub( 4738 com.google.protobuf.RpcChannel channel) { 4739 return new Stub(channel); 4740 } 4741 4742 public static final class Stub extends org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService implements Interface { 4743 private Stub(com.google.protobuf.RpcChannel channel) { 4744 this.channel = channel; 4745 } 4746 4747 private final com.google.protobuf.RpcChannel channel; 4748 4749 public com.google.protobuf.RpcChannel getChannel() { 4750 return channel; 4751 } 4752 4753 public void listSpanReceivers( 4754 com.google.protobuf.RpcController controller, 4755 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request, 4756 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto> done) { 4757 channel.callMethod( 4758 getDescriptor().getMethods().get(0), 4759 controller, 4760 request, 4761 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance(), 4762 com.google.protobuf.RpcUtil.generalizeCallback( 4763 done, 4764 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.class, 4765 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance())); 4766 } 4767 4768 public void addSpanReceiver( 4769 com.google.protobuf.RpcController controller, 4770 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request, 4771 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto> done) { 4772 channel.callMethod( 4773 getDescriptor().getMethods().get(1), 4774 controller, 4775 request, 4776 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance(), 4777 com.google.protobuf.RpcUtil.generalizeCallback( 4778 done, 4779 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.class, 4780 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance())); 4781 } 4782 4783 public void removeSpanReceiver( 4784 com.google.protobuf.RpcController controller, 4785 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request, 4786 com.google.protobuf.RpcCallback<org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto> done) { 4787 channel.callMethod( 4788 getDescriptor().getMethods().get(2), 4789 controller, 4790 request, 4791 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance(), 4792 com.google.protobuf.RpcUtil.generalizeCallback( 4793 done, 4794 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.class, 4795 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance())); 4796 } 4797 } 4798 4799 public static BlockingInterface newBlockingStub( 4800 com.google.protobuf.BlockingRpcChannel channel) { 4801 return new BlockingStub(channel); 4802 } 4803 4804 public interface BlockingInterface { 4805 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto listSpanReceivers( 4806 com.google.protobuf.RpcController controller, 4807 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request) 4808 throws com.google.protobuf.ServiceException; 4809 4810 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto addSpanReceiver( 4811 com.google.protobuf.RpcController controller, 4812 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request) 4813 throws com.google.protobuf.ServiceException; 4814 4815 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto removeSpanReceiver( 4816 com.google.protobuf.RpcController controller, 4817 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request) 4818 throws com.google.protobuf.ServiceException; 4819 } 4820 4821 private static final class BlockingStub implements BlockingInterface { 4822 private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { 4823 this.channel = channel; 4824 } 4825 4826 private final com.google.protobuf.BlockingRpcChannel channel; 4827 4828 public org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto listSpanReceivers( 4829 com.google.protobuf.RpcController controller, 4830 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversRequestProto request) 4831 throws com.google.protobuf.ServiceException { 4832 return (org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto) channel.callBlockingMethod( 4833 getDescriptor().getMethods().get(0), 4834 controller, 4835 request, 4836 org.apache.hadoop.tracing.TraceAdminPB.ListSpanReceiversResponseProto.getDefaultInstance()); 4837 } 4838 4839 4840 public org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto addSpanReceiver( 4841 com.google.protobuf.RpcController controller, 4842 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverRequestProto request) 4843 throws com.google.protobuf.ServiceException { 4844 return (org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto) channel.callBlockingMethod( 4845 getDescriptor().getMethods().get(1), 4846 controller, 4847 request, 4848 org.apache.hadoop.tracing.TraceAdminPB.AddSpanReceiverResponseProto.getDefaultInstance()); 4849 } 4850 4851 4852 public org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto removeSpanReceiver( 4853 com.google.protobuf.RpcController controller, 4854 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverRequestProto request) 4855 throws com.google.protobuf.ServiceException { 4856 return (org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto) channel.callBlockingMethod( 4857 getDescriptor().getMethods().get(2), 4858 controller, 4859 request, 4860 org.apache.hadoop.tracing.TraceAdminPB.RemoveSpanReceiverResponseProto.getDefaultInstance()); 4861 } 4862 4863 } 4864 4865 // @@protoc_insertion_point(class_scope:hadoop.common.TraceAdminService) 4866 } 4867 4868 private static com.google.protobuf.Descriptors.Descriptor 4869 internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor; 4870 private static 4871 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4872 internal_static_hadoop_common_ListSpanReceiversRequestProto_fieldAccessorTable; 4873 private static com.google.protobuf.Descriptors.Descriptor 4874 internal_static_hadoop_common_SpanReceiverListInfo_descriptor; 4875 private static 4876 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4877 internal_static_hadoop_common_SpanReceiverListInfo_fieldAccessorTable; 4878 private static com.google.protobuf.Descriptors.Descriptor 4879 internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor; 4880 private static 4881 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4882 internal_static_hadoop_common_ListSpanReceiversResponseProto_fieldAccessorTable; 4883 private static com.google.protobuf.Descriptors.Descriptor 4884 internal_static_hadoop_common_ConfigPair_descriptor; 4885 private static 4886 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4887 internal_static_hadoop_common_ConfigPair_fieldAccessorTable; 4888 private static com.google.protobuf.Descriptors.Descriptor 4889 internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor; 4890 private static 4891 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4892 internal_static_hadoop_common_AddSpanReceiverRequestProto_fieldAccessorTable; 4893 private static com.google.protobuf.Descriptors.Descriptor 4894 internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor; 4895 private static 4896 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4897 internal_static_hadoop_common_AddSpanReceiverResponseProto_fieldAccessorTable; 4898 private static com.google.protobuf.Descriptors.Descriptor 4899 internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor; 4900 private static 4901 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4902 internal_static_hadoop_common_RemoveSpanReceiverRequestProto_fieldAccessorTable; 4903 private static com.google.protobuf.Descriptors.Descriptor 4904 internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor; 4905 private static 4906 com.google.protobuf.GeneratedMessage.FieldAccessorTable 4907 internal_static_hadoop_common_RemoveSpanReceiverResponseProto_fieldAccessorTable; 4908 4909 public static com.google.protobuf.Descriptors.FileDescriptor 4910 getDescriptor() { 4911 return descriptor; 4912 } 4913 private static com.google.protobuf.Descriptors.FileDescriptor 4914 descriptor; 4915 static { 4916 java.lang.String[] descriptorData = { 4917 "\n\020TraceAdmin.proto\022\rhadoop.common\"\037\n\035Lis" + 4918 "tSpanReceiversRequestProto\"5\n\024SpanReceiv" + 4919 "erListInfo\022\n\n\002id\030\001 \002(\003\022\021\n\tclassName\030\002 \002(" + 4920 "\t\"[\n\036ListSpanReceiversResponseProto\0229\n\014d" + 4921 "escriptions\030\001 \003(\0132#.hadoop.common.SpanRe" + 4922 "ceiverListInfo\"(\n\nConfigPair\022\013\n\003key\030\001 \002(" + 4923 "\t\022\r\n\005value\030\002 \002(\t\"[\n\033AddSpanReceiverReque" + 4924 "stProto\022\021\n\tclassName\030\001 \002(\t\022)\n\006config\030\002 \003" + 4925 "(\0132\031.hadoop.common.ConfigPair\"*\n\034AddSpan" + 4926 "ReceiverResponseProto\022\n\n\002id\030\001 \002(\003\",\n\036Rem", 4927 "oveSpanReceiverRequestProto\022\n\n\002id\030\001 \002(\003\"" + 4928 "!\n\037RemoveSpanReceiverResponseProto2\346\002\n\021T" + 4929 "raceAdminService\022p\n\021listSpanReceivers\022,." + 4930 "hadoop.common.ListSpanReceiversRequestPr" + 4931 "oto\032-.hadoop.common.ListSpanReceiversRes" + 4932 "ponseProto\022j\n\017addSpanReceiver\022*.hadoop.c" + 4933 "ommon.AddSpanReceiverRequestProto\032+.hado" + 4934 "op.common.AddSpanReceiverResponseProto\022s" + 4935 "\n\022removeSpanReceiver\022-.hadoop.common.Rem" + 4936 "oveSpanReceiverRequestProto\032..hadoop.com", 4937 "mon.RemoveSpanReceiverResponseProtoB/\n\031o" + 4938 "rg.apache.hadoop.tracingB\014TraceAdminPB\210\001" + 4939 "\001\240\001\001" 4940 }; 4941 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 4942 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { 4943 public com.google.protobuf.ExtensionRegistry assignDescriptors( 4944 com.google.protobuf.Descriptors.FileDescriptor root) { 4945 descriptor = root; 4946 internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor = 4947 getDescriptor().getMessageTypes().get(0); 4948 internal_static_hadoop_common_ListSpanReceiversRequestProto_fieldAccessorTable = new 4949 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4950 internal_static_hadoop_common_ListSpanReceiversRequestProto_descriptor, 4951 new java.lang.String[] { }); 4952 internal_static_hadoop_common_SpanReceiverListInfo_descriptor = 4953 getDescriptor().getMessageTypes().get(1); 4954 internal_static_hadoop_common_SpanReceiverListInfo_fieldAccessorTable = new 4955 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4956 internal_static_hadoop_common_SpanReceiverListInfo_descriptor, 4957 new java.lang.String[] { "Id", "ClassName", }); 4958 internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor = 4959 getDescriptor().getMessageTypes().get(2); 4960 internal_static_hadoop_common_ListSpanReceiversResponseProto_fieldAccessorTable = new 4961 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4962 internal_static_hadoop_common_ListSpanReceiversResponseProto_descriptor, 4963 new java.lang.String[] { "Descriptions", }); 4964 internal_static_hadoop_common_ConfigPair_descriptor = 4965 getDescriptor().getMessageTypes().get(3); 4966 internal_static_hadoop_common_ConfigPair_fieldAccessorTable = new 4967 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4968 internal_static_hadoop_common_ConfigPair_descriptor, 4969 new java.lang.String[] { "Key", "Value", }); 4970 internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor = 4971 getDescriptor().getMessageTypes().get(4); 4972 internal_static_hadoop_common_AddSpanReceiverRequestProto_fieldAccessorTable = new 4973 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4974 internal_static_hadoop_common_AddSpanReceiverRequestProto_descriptor, 4975 new java.lang.String[] { "ClassName", "Config", }); 4976 internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor = 4977 getDescriptor().getMessageTypes().get(5); 4978 internal_static_hadoop_common_AddSpanReceiverResponseProto_fieldAccessorTable = new 4979 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4980 internal_static_hadoop_common_AddSpanReceiverResponseProto_descriptor, 4981 new java.lang.String[] { "Id", }); 4982 internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor = 4983 getDescriptor().getMessageTypes().get(6); 4984 internal_static_hadoop_common_RemoveSpanReceiverRequestProto_fieldAccessorTable = new 4985 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4986 internal_static_hadoop_common_RemoveSpanReceiverRequestProto_descriptor, 4987 new java.lang.String[] { "Id", }); 4988 internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor = 4989 getDescriptor().getMessageTypes().get(7); 4990 internal_static_hadoop_common_RemoveSpanReceiverResponseProto_fieldAccessorTable = new 4991 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 4992 internal_static_hadoop_common_RemoveSpanReceiverResponseProto_descriptor, 4993 new java.lang.String[] { }); 4994 return null; 4995 } 4996 }; 4997 com.google.protobuf.Descriptors.FileDescriptor 4998 .internalBuildGeneratedFileFrom(descriptorData, 4999 new com.google.protobuf.Descriptors.FileDescriptor[] { 5000 }, assigner); 5001 } 5002 5003 // @@protoc_insertion_point(outer_class_scope) 5004}