001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: mqtt5_auth_types.proto 003 004// Protobuf Java Version: 3.25.5 005package com.baidu.bifromq.plugin.authprovider.type; 006 007/** 008 * Protobuf type {@code mqtt5authtypes.Failed} 009 */ 010public final class Failed extends 011 com.google.protobuf.GeneratedMessageV3 implements 012 // @@protoc_insertion_point(message_implements:mqtt5authtypes.Failed) 013 FailedOrBuilder { 014private static final long serialVersionUID = 0L; 015 // Use Failed.newBuilder() to construct. 016 private Failed(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 017 super(builder); 018 } 019 private Failed() { 020 code_ = 0; 021 tenantId_ = ""; 022 userId_ = ""; 023 reason_ = ""; 024 } 025 026 @java.lang.Override 027 @SuppressWarnings({"unused"}) 028 protected java.lang.Object newInstance( 029 UnusedPrivateParameter unused) { 030 return new Failed(); 031 } 032 033 public static final com.google.protobuf.Descriptors.Descriptor 034 getDescriptor() { 035 return com.baidu.bifromq.plugin.authprovider.type.MQTT5AuthTypesProto.internal_static_mqtt5authtypes_Failed_descriptor; 036 } 037 038 @java.lang.Override 039 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 040 internalGetFieldAccessorTable() { 041 return com.baidu.bifromq.plugin.authprovider.type.MQTT5AuthTypesProto.internal_static_mqtt5authtypes_Failed_fieldAccessorTable 042 .ensureFieldAccessorsInitialized( 043 com.baidu.bifromq.plugin.authprovider.type.Failed.class, com.baidu.bifromq.plugin.authprovider.type.Failed.Builder.class); 044 } 045 046 /** 047 * Protobuf enum {@code mqtt5authtypes.Failed.Code} 048 */ 049 public enum Code 050 implements com.google.protobuf.ProtocolMessageEnum { 051 /** 052 * <code>BadPass = 0;</code> 053 */ 054 BadPass(0), 055 /** 056 * <code>NotAuthorized = 1;</code> 057 */ 058 NotAuthorized(1), 059 /** 060 * <code>Banned = 2;</code> 061 */ 062 Banned(2), 063 /** 064 * <code>BadAuthMethod = 3;</code> 065 */ 066 BadAuthMethod(3), 067 /** 068 * <code>Error = 4;</code> 069 */ 070 Error(4), 071 UNRECOGNIZED(-1), 072 ; 073 074 /** 075 * <code>BadPass = 0;</code> 076 */ 077 public static final int BadPass_VALUE = 0; 078 /** 079 * <code>NotAuthorized = 1;</code> 080 */ 081 public static final int NotAuthorized_VALUE = 1; 082 /** 083 * <code>Banned = 2;</code> 084 */ 085 public static final int Banned_VALUE = 2; 086 /** 087 * <code>BadAuthMethod = 3;</code> 088 */ 089 public static final int BadAuthMethod_VALUE = 3; 090 /** 091 * <code>Error = 4;</code> 092 */ 093 public static final int Error_VALUE = 4; 094 095 096 public final int getNumber() { 097 if (this == UNRECOGNIZED) { 098 throw new java.lang.IllegalArgumentException( 099 "Can't get the number of an unknown enum value."); 100 } 101 return value; 102 } 103 104 /** 105 * @param value The numeric wire value of the corresponding enum entry. 106 * @return The enum associated with the given numeric wire value. 107 * @deprecated Use {@link #forNumber(int)} instead. 108 */ 109 @java.lang.Deprecated 110 public static Code valueOf(int value) { 111 return forNumber(value); 112 } 113 114 /** 115 * @param value The numeric wire value of the corresponding enum entry. 116 * @return The enum associated with the given numeric wire value. 117 */ 118 public static Code forNumber(int value) { 119 switch (value) { 120 case 0: return BadPass; 121 case 1: return NotAuthorized; 122 case 2: return Banned; 123 case 3: return BadAuthMethod; 124 case 4: return Error; 125 default: return null; 126 } 127 } 128 129 public static com.google.protobuf.Internal.EnumLiteMap<Code> 130 internalGetValueMap() { 131 return internalValueMap; 132 } 133 private static final com.google.protobuf.Internal.EnumLiteMap< 134 Code> internalValueMap = 135 new com.google.protobuf.Internal.EnumLiteMap<Code>() { 136 public Code findValueByNumber(int number) { 137 return Code.forNumber(number); 138 } 139 }; 140 141 public final com.google.protobuf.Descriptors.EnumValueDescriptor 142 getValueDescriptor() { 143 if (this == UNRECOGNIZED) { 144 throw new java.lang.IllegalStateException( 145 "Can't get the descriptor of an unrecognized enum value."); 146 } 147 return getDescriptor().getValues().get(ordinal()); 148 } 149 public final com.google.protobuf.Descriptors.EnumDescriptor 150 getDescriptorForType() { 151 return getDescriptor(); 152 } 153 public static final com.google.protobuf.Descriptors.EnumDescriptor 154 getDescriptor() { 155 return com.baidu.bifromq.plugin.authprovider.type.Failed.getDescriptor().getEnumTypes().get(0); 156 } 157 158 private static final Code[] VALUES = values(); 159 160 public static Code valueOf( 161 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 162 if (desc.getType() != getDescriptor()) { 163 throw new java.lang.IllegalArgumentException( 164 "EnumValueDescriptor is not for this type."); 165 } 166 if (desc.getIndex() == -1) { 167 return UNRECOGNIZED; 168 } 169 return VALUES[desc.getIndex()]; 170 } 171 172 private final int value; 173 174 private Code(int value) { 175 this.value = value; 176 } 177 178 // @@protoc_insertion_point(enum_scope:mqtt5authtypes.Failed.Code) 179 } 180 181 private int bitField0_; 182 public static final int CODE_FIELD_NUMBER = 1; 183 private int code_ = 0; 184 /** 185 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 186 * @return The enum numeric value on the wire for code. 187 */ 188 @java.lang.Override public int getCodeValue() { 189 return code_; 190 } 191 /** 192 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 193 * @return The code. 194 */ 195 @java.lang.Override public com.baidu.bifromq.plugin.authprovider.type.Failed.Code getCode() { 196 com.baidu.bifromq.plugin.authprovider.type.Failed.Code result = com.baidu.bifromq.plugin.authprovider.type.Failed.Code.forNumber(code_); 197 return result == null ? com.baidu.bifromq.plugin.authprovider.type.Failed.Code.UNRECOGNIZED : result; 198 } 199 200 public static final int TENANTID_FIELD_NUMBER = 2; 201 @SuppressWarnings("serial") 202 private volatile java.lang.Object tenantId_ = ""; 203 /** 204 * <pre> 205 * optional if tenant can be determined 206 * </pre> 207 * 208 * <code>optional string tenantId = 2;</code> 209 * @return Whether the tenantId field is set. 210 */ 211 @java.lang.Override 212 public boolean hasTenantId() { 213 return ((bitField0_ & 0x00000001) != 0); 214 } 215 /** 216 * <pre> 217 * optional if tenant can be determined 218 * </pre> 219 * 220 * <code>optional string tenantId = 2;</code> 221 * @return The tenantId. 222 */ 223 @java.lang.Override 224 public java.lang.String getTenantId() { 225 java.lang.Object ref = tenantId_; 226 if (ref instanceof java.lang.String) { 227 return (java.lang.String) ref; 228 } else { 229 com.google.protobuf.ByteString bs = 230 (com.google.protobuf.ByteString) ref; 231 java.lang.String s = bs.toStringUtf8(); 232 tenantId_ = s; 233 return s; 234 } 235 } 236 /** 237 * <pre> 238 * optional if tenant can be determined 239 * </pre> 240 * 241 * <code>optional string tenantId = 2;</code> 242 * @return The bytes for tenantId. 243 */ 244 @java.lang.Override 245 public com.google.protobuf.ByteString 246 getTenantIdBytes() { 247 java.lang.Object ref = tenantId_; 248 if (ref instanceof java.lang.String) { 249 com.google.protobuf.ByteString b = 250 com.google.protobuf.ByteString.copyFromUtf8( 251 (java.lang.String) ref); 252 tenantId_ = b; 253 return b; 254 } else { 255 return (com.google.protobuf.ByteString) ref; 256 } 257 } 258 259 public static final int USERID_FIELD_NUMBER = 3; 260 @SuppressWarnings("serial") 261 private volatile java.lang.Object userId_ = ""; 262 /** 263 * <pre> 264 * optional if user can be determined 265 * </pre> 266 * 267 * <code>optional string userId = 3;</code> 268 * @return Whether the userId field is set. 269 */ 270 @java.lang.Override 271 public boolean hasUserId() { 272 return ((bitField0_ & 0x00000002) != 0); 273 } 274 /** 275 * <pre> 276 * optional if user can be determined 277 * </pre> 278 * 279 * <code>optional string userId = 3;</code> 280 * @return The userId. 281 */ 282 @java.lang.Override 283 public java.lang.String getUserId() { 284 java.lang.Object ref = userId_; 285 if (ref instanceof java.lang.String) { 286 return (java.lang.String) ref; 287 } else { 288 com.google.protobuf.ByteString bs = 289 (com.google.protobuf.ByteString) ref; 290 java.lang.String s = bs.toStringUtf8(); 291 userId_ = s; 292 return s; 293 } 294 } 295 /** 296 * <pre> 297 * optional if user can be determined 298 * </pre> 299 * 300 * <code>optional string userId = 3;</code> 301 * @return The bytes for userId. 302 */ 303 @java.lang.Override 304 public com.google.protobuf.ByteString 305 getUserIdBytes() { 306 java.lang.Object ref = userId_; 307 if (ref instanceof java.lang.String) { 308 com.google.protobuf.ByteString b = 309 com.google.protobuf.ByteString.copyFromUtf8( 310 (java.lang.String) ref); 311 userId_ = b; 312 return b; 313 } else { 314 return (com.google.protobuf.ByteString) ref; 315 } 316 } 317 318 public static final int REASON_FIELD_NUMBER = 4; 319 @SuppressWarnings("serial") 320 private volatile java.lang.Object reason_ = ""; 321 /** 322 * <pre> 323 * optional description 324 * </pre> 325 * 326 * <code>optional string reason = 4;</code> 327 * @return Whether the reason field is set. 328 */ 329 @java.lang.Override 330 public boolean hasReason() { 331 return ((bitField0_ & 0x00000004) != 0); 332 } 333 /** 334 * <pre> 335 * optional description 336 * </pre> 337 * 338 * <code>optional string reason = 4;</code> 339 * @return The reason. 340 */ 341 @java.lang.Override 342 public java.lang.String getReason() { 343 java.lang.Object ref = reason_; 344 if (ref instanceof java.lang.String) { 345 return (java.lang.String) ref; 346 } else { 347 com.google.protobuf.ByteString bs = 348 (com.google.protobuf.ByteString) ref; 349 java.lang.String s = bs.toStringUtf8(); 350 reason_ = s; 351 return s; 352 } 353 } 354 /** 355 * <pre> 356 * optional description 357 * </pre> 358 * 359 * <code>optional string reason = 4;</code> 360 * @return The bytes for reason. 361 */ 362 @java.lang.Override 363 public com.google.protobuf.ByteString 364 getReasonBytes() { 365 java.lang.Object ref = reason_; 366 if (ref instanceof java.lang.String) { 367 com.google.protobuf.ByteString b = 368 com.google.protobuf.ByteString.copyFromUtf8( 369 (java.lang.String) ref); 370 reason_ = b; 371 return b; 372 } else { 373 return (com.google.protobuf.ByteString) ref; 374 } 375 } 376 377 public static final int USERPROPS_FIELD_NUMBER = 5; 378 private com.baidu.bifromq.type.UserProperties userProps_; 379 /** 380 * <pre> 381 * user properties return back via mqtt5 connack 382 * </pre> 383 * 384 * <code>.commontype.UserProperties userProps = 5;</code> 385 * @return Whether the userProps field is set. 386 */ 387 @java.lang.Override 388 public boolean hasUserProps() { 389 return ((bitField0_ & 0x00000008) != 0); 390 } 391 /** 392 * <pre> 393 * user properties return back via mqtt5 connack 394 * </pre> 395 * 396 * <code>.commontype.UserProperties userProps = 5;</code> 397 * @return The userProps. 398 */ 399 @java.lang.Override 400 public com.baidu.bifromq.type.UserProperties getUserProps() { 401 return userProps_ == null ? com.baidu.bifromq.type.UserProperties.getDefaultInstance() : userProps_; 402 } 403 /** 404 * <pre> 405 * user properties return back via mqtt5 connack 406 * </pre> 407 * 408 * <code>.commontype.UserProperties userProps = 5;</code> 409 */ 410 @java.lang.Override 411 public com.baidu.bifromq.type.UserPropertiesOrBuilder getUserPropsOrBuilder() { 412 return userProps_ == null ? com.baidu.bifromq.type.UserProperties.getDefaultInstance() : userProps_; 413 } 414 415 private byte memoizedIsInitialized = -1; 416 @java.lang.Override 417 public final boolean isInitialized() { 418 byte isInitialized = memoizedIsInitialized; 419 if (isInitialized == 1) return true; 420 if (isInitialized == 0) return false; 421 422 memoizedIsInitialized = 1; 423 return true; 424 } 425 426 @java.lang.Override 427 public void writeTo(com.google.protobuf.CodedOutputStream output) 428 throws java.io.IOException { 429 if (code_ != com.baidu.bifromq.plugin.authprovider.type.Failed.Code.BadPass.getNumber()) { 430 output.writeEnum(1, code_); 431 } 432 if (((bitField0_ & 0x00000001) != 0)) { 433 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tenantId_); 434 } 435 if (((bitField0_ & 0x00000002) != 0)) { 436 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_); 437 } 438 if (((bitField0_ & 0x00000004) != 0)) { 439 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); 440 } 441 if (((bitField0_ & 0x00000008) != 0)) { 442 output.writeMessage(5, getUserProps()); 443 } 444 getUnknownFields().writeTo(output); 445 } 446 447 @java.lang.Override 448 public int getSerializedSize() { 449 int size = memoizedSize; 450 if (size != -1) return size; 451 452 size = 0; 453 if (code_ != com.baidu.bifromq.plugin.authprovider.type.Failed.Code.BadPass.getNumber()) { 454 size += com.google.protobuf.CodedOutputStream 455 .computeEnumSize(1, code_); 456 } 457 if (((bitField0_ & 0x00000001) != 0)) { 458 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tenantId_); 459 } 460 if (((bitField0_ & 0x00000002) != 0)) { 461 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_); 462 } 463 if (((bitField0_ & 0x00000004) != 0)) { 464 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); 465 } 466 if (((bitField0_ & 0x00000008) != 0)) { 467 size += com.google.protobuf.CodedOutputStream 468 .computeMessageSize(5, getUserProps()); 469 } 470 size += getUnknownFields().getSerializedSize(); 471 memoizedSize = size; 472 return size; 473 } 474 475 @java.lang.Override 476 public boolean equals(final java.lang.Object obj) { 477 if (obj == this) { 478 return true; 479 } 480 if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.Failed)) { 481 return super.equals(obj); 482 } 483 com.baidu.bifromq.plugin.authprovider.type.Failed other = (com.baidu.bifromq.plugin.authprovider.type.Failed) obj; 484 485 if (code_ != other.code_) return false; 486 if (hasTenantId() != other.hasTenantId()) return false; 487 if (hasTenantId()) { 488 if (!getTenantId() 489 .equals(other.getTenantId())) return false; 490 } 491 if (hasUserId() != other.hasUserId()) return false; 492 if (hasUserId()) { 493 if (!getUserId() 494 .equals(other.getUserId())) return false; 495 } 496 if (hasReason() != other.hasReason()) return false; 497 if (hasReason()) { 498 if (!getReason() 499 .equals(other.getReason())) return false; 500 } 501 if (hasUserProps() != other.hasUserProps()) return false; 502 if (hasUserProps()) { 503 if (!getUserProps() 504 .equals(other.getUserProps())) return false; 505 } 506 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 507 return true; 508 } 509 510 @java.lang.Override 511 public int hashCode() { 512 if (memoizedHashCode != 0) { 513 return memoizedHashCode; 514 } 515 int hash = 41; 516 hash = (19 * hash) + getDescriptor().hashCode(); 517 hash = (37 * hash) + CODE_FIELD_NUMBER; 518 hash = (53 * hash) + code_; 519 if (hasTenantId()) { 520 hash = (37 * hash) + TENANTID_FIELD_NUMBER; 521 hash = (53 * hash) + getTenantId().hashCode(); 522 } 523 if (hasUserId()) { 524 hash = (37 * hash) + USERID_FIELD_NUMBER; 525 hash = (53 * hash) + getUserId().hashCode(); 526 } 527 if (hasReason()) { 528 hash = (37 * hash) + REASON_FIELD_NUMBER; 529 hash = (53 * hash) + getReason().hashCode(); 530 } 531 if (hasUserProps()) { 532 hash = (37 * hash) + USERPROPS_FIELD_NUMBER; 533 hash = (53 * hash) + getUserProps().hashCode(); 534 } 535 hash = (29 * hash) + getUnknownFields().hashCode(); 536 memoizedHashCode = hash; 537 return hash; 538 } 539 540 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 541 java.nio.ByteBuffer data) 542 throws com.google.protobuf.InvalidProtocolBufferException { 543 return PARSER.parseFrom(data); 544 } 545 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 546 java.nio.ByteBuffer data, 547 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 548 throws com.google.protobuf.InvalidProtocolBufferException { 549 return PARSER.parseFrom(data, extensionRegistry); 550 } 551 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 552 com.google.protobuf.ByteString data) 553 throws com.google.protobuf.InvalidProtocolBufferException { 554 return PARSER.parseFrom(data); 555 } 556 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 557 com.google.protobuf.ByteString data, 558 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 559 throws com.google.protobuf.InvalidProtocolBufferException { 560 return PARSER.parseFrom(data, extensionRegistry); 561 } 562 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom(byte[] data) 563 throws com.google.protobuf.InvalidProtocolBufferException { 564 return PARSER.parseFrom(data); 565 } 566 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 567 byte[] data, 568 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 569 throws com.google.protobuf.InvalidProtocolBufferException { 570 return PARSER.parseFrom(data, extensionRegistry); 571 } 572 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom(java.io.InputStream input) 573 throws java.io.IOException { 574 return com.google.protobuf.GeneratedMessageV3 575 .parseWithIOException(PARSER, input); 576 } 577 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 578 java.io.InputStream input, 579 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 580 throws java.io.IOException { 581 return com.google.protobuf.GeneratedMessageV3 582 .parseWithIOException(PARSER, input, extensionRegistry); 583 } 584 585 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseDelimitedFrom(java.io.InputStream input) 586 throws java.io.IOException { 587 return com.google.protobuf.GeneratedMessageV3 588 .parseDelimitedWithIOException(PARSER, input); 589 } 590 591 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseDelimitedFrom( 592 java.io.InputStream input, 593 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 594 throws java.io.IOException { 595 return com.google.protobuf.GeneratedMessageV3 596 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 597 } 598 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 599 com.google.protobuf.CodedInputStream input) 600 throws java.io.IOException { 601 return com.google.protobuf.GeneratedMessageV3 602 .parseWithIOException(PARSER, input); 603 } 604 public static com.baidu.bifromq.plugin.authprovider.type.Failed parseFrom( 605 com.google.protobuf.CodedInputStream input, 606 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 607 throws java.io.IOException { 608 return com.google.protobuf.GeneratedMessageV3 609 .parseWithIOException(PARSER, input, extensionRegistry); 610 } 611 612 @java.lang.Override 613 public Builder newBuilderForType() { return newBuilder(); } 614 public static Builder newBuilder() { 615 return DEFAULT_INSTANCE.toBuilder(); 616 } 617 public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.Failed prototype) { 618 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 619 } 620 @java.lang.Override 621 public Builder toBuilder() { 622 return this == DEFAULT_INSTANCE 623 ? new Builder() : new Builder().mergeFrom(this); 624 } 625 626 @java.lang.Override 627 protected Builder newBuilderForType( 628 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 629 Builder builder = new Builder(parent); 630 return builder; 631 } 632 /** 633 * Protobuf type {@code mqtt5authtypes.Failed} 634 */ 635 public static final class Builder extends 636 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 637 // @@protoc_insertion_point(builder_implements:mqtt5authtypes.Failed) 638 com.baidu.bifromq.plugin.authprovider.type.FailedOrBuilder { 639 public static final com.google.protobuf.Descriptors.Descriptor 640 getDescriptor() { 641 return com.baidu.bifromq.plugin.authprovider.type.MQTT5AuthTypesProto.internal_static_mqtt5authtypes_Failed_descriptor; 642 } 643 644 @java.lang.Override 645 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 646 internalGetFieldAccessorTable() { 647 return com.baidu.bifromq.plugin.authprovider.type.MQTT5AuthTypesProto.internal_static_mqtt5authtypes_Failed_fieldAccessorTable 648 .ensureFieldAccessorsInitialized( 649 com.baidu.bifromq.plugin.authprovider.type.Failed.class, com.baidu.bifromq.plugin.authprovider.type.Failed.Builder.class); 650 } 651 652 // Construct using com.baidu.bifromq.plugin.authprovider.type.Failed.newBuilder() 653 private Builder() { 654 maybeForceBuilderInitialization(); 655 } 656 657 private Builder( 658 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 659 super(parent); 660 maybeForceBuilderInitialization(); 661 } 662 private void maybeForceBuilderInitialization() { 663 if (com.google.protobuf.GeneratedMessageV3 664 .alwaysUseFieldBuilders) { 665 getUserPropsFieldBuilder(); 666 } 667 } 668 @java.lang.Override 669 public Builder clear() { 670 super.clear(); 671 bitField0_ = 0; 672 code_ = 0; 673 tenantId_ = ""; 674 userId_ = ""; 675 reason_ = ""; 676 userProps_ = null; 677 if (userPropsBuilder_ != null) { 678 userPropsBuilder_.dispose(); 679 userPropsBuilder_ = null; 680 } 681 return this; 682 } 683 684 @java.lang.Override 685 public com.google.protobuf.Descriptors.Descriptor 686 getDescriptorForType() { 687 return com.baidu.bifromq.plugin.authprovider.type.MQTT5AuthTypesProto.internal_static_mqtt5authtypes_Failed_descriptor; 688 } 689 690 @java.lang.Override 691 public com.baidu.bifromq.plugin.authprovider.type.Failed getDefaultInstanceForType() { 692 return com.baidu.bifromq.plugin.authprovider.type.Failed.getDefaultInstance(); 693 } 694 695 @java.lang.Override 696 public com.baidu.bifromq.plugin.authprovider.type.Failed build() { 697 com.baidu.bifromq.plugin.authprovider.type.Failed result = buildPartial(); 698 if (!result.isInitialized()) { 699 throw newUninitializedMessageException(result); 700 } 701 return result; 702 } 703 704 @java.lang.Override 705 public com.baidu.bifromq.plugin.authprovider.type.Failed buildPartial() { 706 com.baidu.bifromq.plugin.authprovider.type.Failed result = new com.baidu.bifromq.plugin.authprovider.type.Failed(this); 707 if (bitField0_ != 0) { buildPartial0(result); } 708 onBuilt(); 709 return result; 710 } 711 712 private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.Failed result) { 713 int from_bitField0_ = bitField0_; 714 if (((from_bitField0_ & 0x00000001) != 0)) { 715 result.code_ = code_; 716 } 717 int to_bitField0_ = 0; 718 if (((from_bitField0_ & 0x00000002) != 0)) { 719 result.tenantId_ = tenantId_; 720 to_bitField0_ |= 0x00000001; 721 } 722 if (((from_bitField0_ & 0x00000004) != 0)) { 723 result.userId_ = userId_; 724 to_bitField0_ |= 0x00000002; 725 } 726 if (((from_bitField0_ & 0x00000008) != 0)) { 727 result.reason_ = reason_; 728 to_bitField0_ |= 0x00000004; 729 } 730 if (((from_bitField0_ & 0x00000010) != 0)) { 731 result.userProps_ = userPropsBuilder_ == null 732 ? userProps_ 733 : userPropsBuilder_.build(); 734 to_bitField0_ |= 0x00000008; 735 } 736 result.bitField0_ |= to_bitField0_; 737 } 738 739 @java.lang.Override 740 public Builder clone() { 741 return super.clone(); 742 } 743 @java.lang.Override 744 public Builder setField( 745 com.google.protobuf.Descriptors.FieldDescriptor field, 746 java.lang.Object value) { 747 return super.setField(field, value); 748 } 749 @java.lang.Override 750 public Builder clearField( 751 com.google.protobuf.Descriptors.FieldDescriptor field) { 752 return super.clearField(field); 753 } 754 @java.lang.Override 755 public Builder clearOneof( 756 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 757 return super.clearOneof(oneof); 758 } 759 @java.lang.Override 760 public Builder setRepeatedField( 761 com.google.protobuf.Descriptors.FieldDescriptor field, 762 int index, java.lang.Object value) { 763 return super.setRepeatedField(field, index, value); 764 } 765 @java.lang.Override 766 public Builder addRepeatedField( 767 com.google.protobuf.Descriptors.FieldDescriptor field, 768 java.lang.Object value) { 769 return super.addRepeatedField(field, value); 770 } 771 @java.lang.Override 772 public Builder mergeFrom(com.google.protobuf.Message other) { 773 if (other instanceof com.baidu.bifromq.plugin.authprovider.type.Failed) { 774 return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.Failed)other); 775 } else { 776 super.mergeFrom(other); 777 return this; 778 } 779 } 780 781 public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.Failed other) { 782 if (other == com.baidu.bifromq.plugin.authprovider.type.Failed.getDefaultInstance()) return this; 783 if (other.code_ != 0) { 784 setCodeValue(other.getCodeValue()); 785 } 786 if (other.hasTenantId()) { 787 tenantId_ = other.tenantId_; 788 bitField0_ |= 0x00000002; 789 onChanged(); 790 } 791 if (other.hasUserId()) { 792 userId_ = other.userId_; 793 bitField0_ |= 0x00000004; 794 onChanged(); 795 } 796 if (other.hasReason()) { 797 reason_ = other.reason_; 798 bitField0_ |= 0x00000008; 799 onChanged(); 800 } 801 if (other.hasUserProps()) { 802 mergeUserProps(other.getUserProps()); 803 } 804 this.mergeUnknownFields(other.getUnknownFields()); 805 onChanged(); 806 return this; 807 } 808 809 @java.lang.Override 810 public final boolean isInitialized() { 811 return true; 812 } 813 814 @java.lang.Override 815 public Builder mergeFrom( 816 com.google.protobuf.CodedInputStream input, 817 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 818 throws java.io.IOException { 819 if (extensionRegistry == null) { 820 throw new java.lang.NullPointerException(); 821 } 822 try { 823 boolean done = false; 824 while (!done) { 825 int tag = input.readTag(); 826 switch (tag) { 827 case 0: 828 done = true; 829 break; 830 case 8: { 831 code_ = input.readEnum(); 832 bitField0_ |= 0x00000001; 833 break; 834 } // case 8 835 case 18: { 836 tenantId_ = input.readStringRequireUtf8(); 837 bitField0_ |= 0x00000002; 838 break; 839 } // case 18 840 case 26: { 841 userId_ = input.readStringRequireUtf8(); 842 bitField0_ |= 0x00000004; 843 break; 844 } // case 26 845 case 34: { 846 reason_ = input.readStringRequireUtf8(); 847 bitField0_ |= 0x00000008; 848 break; 849 } // case 34 850 case 42: { 851 input.readMessage( 852 getUserPropsFieldBuilder().getBuilder(), 853 extensionRegistry); 854 bitField0_ |= 0x00000010; 855 break; 856 } // case 42 857 default: { 858 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 859 done = true; // was an endgroup tag 860 } 861 break; 862 } // default: 863 } // switch (tag) 864 } // while (!done) 865 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 866 throw e.unwrapIOException(); 867 } finally { 868 onChanged(); 869 } // finally 870 return this; 871 } 872 private int bitField0_; 873 874 private int code_ = 0; 875 /** 876 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 877 * @return The enum numeric value on the wire for code. 878 */ 879 @java.lang.Override public int getCodeValue() { 880 return code_; 881 } 882 /** 883 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 884 * @param value The enum numeric value on the wire for code to set. 885 * @return This builder for chaining. 886 */ 887 public Builder setCodeValue(int value) { 888 code_ = value; 889 bitField0_ |= 0x00000001; 890 onChanged(); 891 return this; 892 } 893 /** 894 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 895 * @return The code. 896 */ 897 @java.lang.Override 898 public com.baidu.bifromq.plugin.authprovider.type.Failed.Code getCode() { 899 com.baidu.bifromq.plugin.authprovider.type.Failed.Code result = com.baidu.bifromq.plugin.authprovider.type.Failed.Code.forNumber(code_); 900 return result == null ? com.baidu.bifromq.plugin.authprovider.type.Failed.Code.UNRECOGNIZED : result; 901 } 902 /** 903 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 904 * @param value The code to set. 905 * @return This builder for chaining. 906 */ 907 public Builder setCode(com.baidu.bifromq.plugin.authprovider.type.Failed.Code value) { 908 if (value == null) { 909 throw new NullPointerException(); 910 } 911 bitField0_ |= 0x00000001; 912 code_ = value.getNumber(); 913 onChanged(); 914 return this; 915 } 916 /** 917 * <code>.mqtt5authtypes.Failed.Code code = 1;</code> 918 * @return This builder for chaining. 919 */ 920 public Builder clearCode() { 921 bitField0_ = (bitField0_ & ~0x00000001); 922 code_ = 0; 923 onChanged(); 924 return this; 925 } 926 927 private java.lang.Object tenantId_ = ""; 928 /** 929 * <pre> 930 * optional if tenant can be determined 931 * </pre> 932 * 933 * <code>optional string tenantId = 2;</code> 934 * @return Whether the tenantId field is set. 935 */ 936 public boolean hasTenantId() { 937 return ((bitField0_ & 0x00000002) != 0); 938 } 939 /** 940 * <pre> 941 * optional if tenant can be determined 942 * </pre> 943 * 944 * <code>optional string tenantId = 2;</code> 945 * @return The tenantId. 946 */ 947 public java.lang.String getTenantId() { 948 java.lang.Object ref = tenantId_; 949 if (!(ref instanceof java.lang.String)) { 950 com.google.protobuf.ByteString bs = 951 (com.google.protobuf.ByteString) ref; 952 java.lang.String s = bs.toStringUtf8(); 953 tenantId_ = s; 954 return s; 955 } else { 956 return (java.lang.String) ref; 957 } 958 } 959 /** 960 * <pre> 961 * optional if tenant can be determined 962 * </pre> 963 * 964 * <code>optional string tenantId = 2;</code> 965 * @return The bytes for tenantId. 966 */ 967 public com.google.protobuf.ByteString 968 getTenantIdBytes() { 969 java.lang.Object ref = tenantId_; 970 if (ref instanceof String) { 971 com.google.protobuf.ByteString b = 972 com.google.protobuf.ByteString.copyFromUtf8( 973 (java.lang.String) ref); 974 tenantId_ = b; 975 return b; 976 } else { 977 return (com.google.protobuf.ByteString) ref; 978 } 979 } 980 /** 981 * <pre> 982 * optional if tenant can be determined 983 * </pre> 984 * 985 * <code>optional string tenantId = 2;</code> 986 * @param value The tenantId to set. 987 * @return This builder for chaining. 988 */ 989 public Builder setTenantId( 990 java.lang.String value) { 991 if (value == null) { throw new NullPointerException(); } 992 tenantId_ = value; 993 bitField0_ |= 0x00000002; 994 onChanged(); 995 return this; 996 } 997 /** 998 * <pre> 999 * optional if tenant can be determined 1000 * </pre> 1001 * 1002 * <code>optional string tenantId = 2;</code> 1003 * @return This builder for chaining. 1004 */ 1005 public Builder clearTenantId() { 1006 tenantId_ = getDefaultInstance().getTenantId(); 1007 bitField0_ = (bitField0_ & ~0x00000002); 1008 onChanged(); 1009 return this; 1010 } 1011 /** 1012 * <pre> 1013 * optional if tenant can be determined 1014 * </pre> 1015 * 1016 * <code>optional string tenantId = 2;</code> 1017 * @param value The bytes for tenantId to set. 1018 * @return This builder for chaining. 1019 */ 1020 public Builder setTenantIdBytes( 1021 com.google.protobuf.ByteString value) { 1022 if (value == null) { throw new NullPointerException(); } 1023 checkByteStringIsUtf8(value); 1024 tenantId_ = value; 1025 bitField0_ |= 0x00000002; 1026 onChanged(); 1027 return this; 1028 } 1029 1030 private java.lang.Object userId_ = ""; 1031 /** 1032 * <pre> 1033 * optional if user can be determined 1034 * </pre> 1035 * 1036 * <code>optional string userId = 3;</code> 1037 * @return Whether the userId field is set. 1038 */ 1039 public boolean hasUserId() { 1040 return ((bitField0_ & 0x00000004) != 0); 1041 } 1042 /** 1043 * <pre> 1044 * optional if user can be determined 1045 * </pre> 1046 * 1047 * <code>optional string userId = 3;</code> 1048 * @return The userId. 1049 */ 1050 public java.lang.String getUserId() { 1051 java.lang.Object ref = userId_; 1052 if (!(ref instanceof java.lang.String)) { 1053 com.google.protobuf.ByteString bs = 1054 (com.google.protobuf.ByteString) ref; 1055 java.lang.String s = bs.toStringUtf8(); 1056 userId_ = s; 1057 return s; 1058 } else { 1059 return (java.lang.String) ref; 1060 } 1061 } 1062 /** 1063 * <pre> 1064 * optional if user can be determined 1065 * </pre> 1066 * 1067 * <code>optional string userId = 3;</code> 1068 * @return The bytes for userId. 1069 */ 1070 public com.google.protobuf.ByteString 1071 getUserIdBytes() { 1072 java.lang.Object ref = userId_; 1073 if (ref instanceof String) { 1074 com.google.protobuf.ByteString b = 1075 com.google.protobuf.ByteString.copyFromUtf8( 1076 (java.lang.String) ref); 1077 userId_ = b; 1078 return b; 1079 } else { 1080 return (com.google.protobuf.ByteString) ref; 1081 } 1082 } 1083 /** 1084 * <pre> 1085 * optional if user can be determined 1086 * </pre> 1087 * 1088 * <code>optional string userId = 3;</code> 1089 * @param value The userId to set. 1090 * @return This builder for chaining. 1091 */ 1092 public Builder setUserId( 1093 java.lang.String value) { 1094 if (value == null) { throw new NullPointerException(); } 1095 userId_ = value; 1096 bitField0_ |= 0x00000004; 1097 onChanged(); 1098 return this; 1099 } 1100 /** 1101 * <pre> 1102 * optional if user can be determined 1103 * </pre> 1104 * 1105 * <code>optional string userId = 3;</code> 1106 * @return This builder for chaining. 1107 */ 1108 public Builder clearUserId() { 1109 userId_ = getDefaultInstance().getUserId(); 1110 bitField0_ = (bitField0_ & ~0x00000004); 1111 onChanged(); 1112 return this; 1113 } 1114 /** 1115 * <pre> 1116 * optional if user can be determined 1117 * </pre> 1118 * 1119 * <code>optional string userId = 3;</code> 1120 * @param value The bytes for userId to set. 1121 * @return This builder for chaining. 1122 */ 1123 public Builder setUserIdBytes( 1124 com.google.protobuf.ByteString value) { 1125 if (value == null) { throw new NullPointerException(); } 1126 checkByteStringIsUtf8(value); 1127 userId_ = value; 1128 bitField0_ |= 0x00000004; 1129 onChanged(); 1130 return this; 1131 } 1132 1133 private java.lang.Object reason_ = ""; 1134 /** 1135 * <pre> 1136 * optional description 1137 * </pre> 1138 * 1139 * <code>optional string reason = 4;</code> 1140 * @return Whether the reason field is set. 1141 */ 1142 public boolean hasReason() { 1143 return ((bitField0_ & 0x00000008) != 0); 1144 } 1145 /** 1146 * <pre> 1147 * optional description 1148 * </pre> 1149 * 1150 * <code>optional string reason = 4;</code> 1151 * @return The reason. 1152 */ 1153 public java.lang.String getReason() { 1154 java.lang.Object ref = reason_; 1155 if (!(ref instanceof java.lang.String)) { 1156 com.google.protobuf.ByteString bs = 1157 (com.google.protobuf.ByteString) ref; 1158 java.lang.String s = bs.toStringUtf8(); 1159 reason_ = s; 1160 return s; 1161 } else { 1162 return (java.lang.String) ref; 1163 } 1164 } 1165 /** 1166 * <pre> 1167 * optional description 1168 * </pre> 1169 * 1170 * <code>optional string reason = 4;</code> 1171 * @return The bytes for reason. 1172 */ 1173 public com.google.protobuf.ByteString 1174 getReasonBytes() { 1175 java.lang.Object ref = reason_; 1176 if (ref instanceof String) { 1177 com.google.protobuf.ByteString b = 1178 com.google.protobuf.ByteString.copyFromUtf8( 1179 (java.lang.String) ref); 1180 reason_ = b; 1181 return b; 1182 } else { 1183 return (com.google.protobuf.ByteString) ref; 1184 } 1185 } 1186 /** 1187 * <pre> 1188 * optional description 1189 * </pre> 1190 * 1191 * <code>optional string reason = 4;</code> 1192 * @param value The reason to set. 1193 * @return This builder for chaining. 1194 */ 1195 public Builder setReason( 1196 java.lang.String value) { 1197 if (value == null) { throw new NullPointerException(); } 1198 reason_ = value; 1199 bitField0_ |= 0x00000008; 1200 onChanged(); 1201 return this; 1202 } 1203 /** 1204 * <pre> 1205 * optional description 1206 * </pre> 1207 * 1208 * <code>optional string reason = 4;</code> 1209 * @return This builder for chaining. 1210 */ 1211 public Builder clearReason() { 1212 reason_ = getDefaultInstance().getReason(); 1213 bitField0_ = (bitField0_ & ~0x00000008); 1214 onChanged(); 1215 return this; 1216 } 1217 /** 1218 * <pre> 1219 * optional description 1220 * </pre> 1221 * 1222 * <code>optional string reason = 4;</code> 1223 * @param value The bytes for reason to set. 1224 * @return This builder for chaining. 1225 */ 1226 public Builder setReasonBytes( 1227 com.google.protobuf.ByteString value) { 1228 if (value == null) { throw new NullPointerException(); } 1229 checkByteStringIsUtf8(value); 1230 reason_ = value; 1231 bitField0_ |= 0x00000008; 1232 onChanged(); 1233 return this; 1234 } 1235 1236 private com.baidu.bifromq.type.UserProperties userProps_; 1237 private com.google.protobuf.SingleFieldBuilderV3< 1238 com.baidu.bifromq.type.UserProperties, com.baidu.bifromq.type.UserProperties.Builder, com.baidu.bifromq.type.UserPropertiesOrBuilder> userPropsBuilder_; 1239 /** 1240 * <pre> 1241 * user properties return back via mqtt5 connack 1242 * </pre> 1243 * 1244 * <code>.commontype.UserProperties userProps = 5;</code> 1245 * @return Whether the userProps field is set. 1246 */ 1247 public boolean hasUserProps() { 1248 return ((bitField0_ & 0x00000010) != 0); 1249 } 1250 /** 1251 * <pre> 1252 * user properties return back via mqtt5 connack 1253 * </pre> 1254 * 1255 * <code>.commontype.UserProperties userProps = 5;</code> 1256 * @return The userProps. 1257 */ 1258 public com.baidu.bifromq.type.UserProperties getUserProps() { 1259 if (userPropsBuilder_ == null) { 1260 return userProps_ == null ? com.baidu.bifromq.type.UserProperties.getDefaultInstance() : userProps_; 1261 } else { 1262 return userPropsBuilder_.getMessage(); 1263 } 1264 } 1265 /** 1266 * <pre> 1267 * user properties return back via mqtt5 connack 1268 * </pre> 1269 * 1270 * <code>.commontype.UserProperties userProps = 5;</code> 1271 */ 1272 public Builder setUserProps(com.baidu.bifromq.type.UserProperties value) { 1273 if (userPropsBuilder_ == null) { 1274 if (value == null) { 1275 throw new NullPointerException(); 1276 } 1277 userProps_ = value; 1278 } else { 1279 userPropsBuilder_.setMessage(value); 1280 } 1281 bitField0_ |= 0x00000010; 1282 onChanged(); 1283 return this; 1284 } 1285 /** 1286 * <pre> 1287 * user properties return back via mqtt5 connack 1288 * </pre> 1289 * 1290 * <code>.commontype.UserProperties userProps = 5;</code> 1291 */ 1292 public Builder setUserProps( 1293 com.baidu.bifromq.type.UserProperties.Builder builderForValue) { 1294 if (userPropsBuilder_ == null) { 1295 userProps_ = builderForValue.build(); 1296 } else { 1297 userPropsBuilder_.setMessage(builderForValue.build()); 1298 } 1299 bitField0_ |= 0x00000010; 1300 onChanged(); 1301 return this; 1302 } 1303 /** 1304 * <pre> 1305 * user properties return back via mqtt5 connack 1306 * </pre> 1307 * 1308 * <code>.commontype.UserProperties userProps = 5;</code> 1309 */ 1310 public Builder mergeUserProps(com.baidu.bifromq.type.UserProperties value) { 1311 if (userPropsBuilder_ == null) { 1312 if (((bitField0_ & 0x00000010) != 0) && 1313 userProps_ != null && 1314 userProps_ != com.baidu.bifromq.type.UserProperties.getDefaultInstance()) { 1315 getUserPropsBuilder().mergeFrom(value); 1316 } else { 1317 userProps_ = value; 1318 } 1319 } else { 1320 userPropsBuilder_.mergeFrom(value); 1321 } 1322 if (userProps_ != null) { 1323 bitField0_ |= 0x00000010; 1324 onChanged(); 1325 } 1326 return this; 1327 } 1328 /** 1329 * <pre> 1330 * user properties return back via mqtt5 connack 1331 * </pre> 1332 * 1333 * <code>.commontype.UserProperties userProps = 5;</code> 1334 */ 1335 public Builder clearUserProps() { 1336 bitField0_ = (bitField0_ & ~0x00000010); 1337 userProps_ = null; 1338 if (userPropsBuilder_ != null) { 1339 userPropsBuilder_.dispose(); 1340 userPropsBuilder_ = null; 1341 } 1342 onChanged(); 1343 return this; 1344 } 1345 /** 1346 * <pre> 1347 * user properties return back via mqtt5 connack 1348 * </pre> 1349 * 1350 * <code>.commontype.UserProperties userProps = 5;</code> 1351 */ 1352 public com.baidu.bifromq.type.UserProperties.Builder getUserPropsBuilder() { 1353 bitField0_ |= 0x00000010; 1354 onChanged(); 1355 return getUserPropsFieldBuilder().getBuilder(); 1356 } 1357 /** 1358 * <pre> 1359 * user properties return back via mqtt5 connack 1360 * </pre> 1361 * 1362 * <code>.commontype.UserProperties userProps = 5;</code> 1363 */ 1364 public com.baidu.bifromq.type.UserPropertiesOrBuilder getUserPropsOrBuilder() { 1365 if (userPropsBuilder_ != null) { 1366 return userPropsBuilder_.getMessageOrBuilder(); 1367 } else { 1368 return userProps_ == null ? 1369 com.baidu.bifromq.type.UserProperties.getDefaultInstance() : userProps_; 1370 } 1371 } 1372 /** 1373 * <pre> 1374 * user properties return back via mqtt5 connack 1375 * </pre> 1376 * 1377 * <code>.commontype.UserProperties userProps = 5;</code> 1378 */ 1379 private com.google.protobuf.SingleFieldBuilderV3< 1380 com.baidu.bifromq.type.UserProperties, com.baidu.bifromq.type.UserProperties.Builder, com.baidu.bifromq.type.UserPropertiesOrBuilder> 1381 getUserPropsFieldBuilder() { 1382 if (userPropsBuilder_ == null) { 1383 userPropsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1384 com.baidu.bifromq.type.UserProperties, com.baidu.bifromq.type.UserProperties.Builder, com.baidu.bifromq.type.UserPropertiesOrBuilder>( 1385 getUserProps(), 1386 getParentForChildren(), 1387 isClean()); 1388 userProps_ = null; 1389 } 1390 return userPropsBuilder_; 1391 } 1392 @java.lang.Override 1393 public final Builder setUnknownFields( 1394 final com.google.protobuf.UnknownFieldSet unknownFields) { 1395 return super.setUnknownFields(unknownFields); 1396 } 1397 1398 @java.lang.Override 1399 public final Builder mergeUnknownFields( 1400 final com.google.protobuf.UnknownFieldSet unknownFields) { 1401 return super.mergeUnknownFields(unknownFields); 1402 } 1403 1404 1405 // @@protoc_insertion_point(builder_scope:mqtt5authtypes.Failed) 1406 } 1407 1408 // @@protoc_insertion_point(class_scope:mqtt5authtypes.Failed) 1409 private static final com.baidu.bifromq.plugin.authprovider.type.Failed DEFAULT_INSTANCE; 1410 static { 1411 DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.Failed(); 1412 } 1413 1414 public static com.baidu.bifromq.plugin.authprovider.type.Failed getDefaultInstance() { 1415 return DEFAULT_INSTANCE; 1416 } 1417 1418 private static final com.google.protobuf.Parser<Failed> 1419 PARSER = new com.google.protobuf.AbstractParser<Failed>() { 1420 @java.lang.Override 1421 public Failed parsePartialFrom( 1422 com.google.protobuf.CodedInputStream input, 1423 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1424 throws com.google.protobuf.InvalidProtocolBufferException { 1425 Builder builder = newBuilder(); 1426 try { 1427 builder.mergeFrom(input, extensionRegistry); 1428 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1429 throw e.setUnfinishedMessage(builder.buildPartial()); 1430 } catch (com.google.protobuf.UninitializedMessageException e) { 1431 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1432 } catch (java.io.IOException e) { 1433 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1434 .setUnfinishedMessage(builder.buildPartial()); 1435 } 1436 return builder.buildPartial(); 1437 } 1438 }; 1439 1440 public static com.google.protobuf.Parser<Failed> parser() { 1441 return PARSER; 1442 } 1443 1444 @java.lang.Override 1445 public com.google.protobuf.Parser<Failed> getParserForType() { 1446 return PARSER; 1447 } 1448 1449 @java.lang.Override 1450 public com.baidu.bifromq.plugin.authprovider.type.Failed getDefaultInstanceForType() { 1451 return DEFAULT_INSTANCE; 1452 } 1453 1454} 1455