001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: mqtt3_auth_types.proto 003 004// Protobuf Java Version: 3.25.5 005package com.baidu.bifromq.plugin.authprovider.type; 006 007/** 008 * Protobuf type {@code mqtt3authtypes.MQTT3AuthResult} 009 */ 010public final class MQTT3AuthResult extends 011 com.google.protobuf.GeneratedMessageV3 implements 012 // @@protoc_insertion_point(message_implements:mqtt3authtypes.MQTT3AuthResult) 013 MQTT3AuthResultOrBuilder { 014private static final long serialVersionUID = 0L; 015 // Use MQTT3AuthResult.newBuilder() to construct. 016 private MQTT3AuthResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 017 super(builder); 018 } 019 private MQTT3AuthResult() { 020 } 021 022 @java.lang.Override 023 @SuppressWarnings({"unused"}) 024 protected java.lang.Object newInstance( 025 UnusedPrivateParameter unused) { 026 return new MQTT3AuthResult(); 027 } 028 029 public static final com.google.protobuf.Descriptors.Descriptor 030 getDescriptor() { 031 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor; 032 } 033 034 @java.lang.Override 035 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 036 internalGetFieldAccessorTable() { 037 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_fieldAccessorTable 038 .ensureFieldAccessorsInitialized( 039 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.Builder.class); 040 } 041 042 private int typeCase_ = 0; 043 @SuppressWarnings("serial") 044 private java.lang.Object type_; 045 public enum TypeCase 046 implements com.google.protobuf.Internal.EnumLite, 047 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 048 OK(1), 049 REJECT(2), 050 TYPE_NOT_SET(0); 051 private final int value; 052 private TypeCase(int value) { 053 this.value = value; 054 } 055 /** 056 * @param value The number of the enum to look for. 057 * @return The enum associated with the given number. 058 * @deprecated Use {@link #forNumber(int)} instead. 059 */ 060 @java.lang.Deprecated 061 public static TypeCase valueOf(int value) { 062 return forNumber(value); 063 } 064 065 public static TypeCase forNumber(int value) { 066 switch (value) { 067 case 1: return OK; 068 case 2: return REJECT; 069 case 0: return TYPE_NOT_SET; 070 default: return null; 071 } 072 } 073 public int getNumber() { 074 return this.value; 075 } 076 }; 077 078 public TypeCase 079 getTypeCase() { 080 return TypeCase.forNumber( 081 typeCase_); 082 } 083 084 public static final int OK_FIELD_NUMBER = 1; 085 /** 086 * <code>.mqtt3authtypes.Ok ok = 1;</code> 087 * @return Whether the ok field is set. 088 */ 089 @java.lang.Override 090 public boolean hasOk() { 091 return typeCase_ == 1; 092 } 093 /** 094 * <code>.mqtt3authtypes.Ok ok = 1;</code> 095 * @return The ok. 096 */ 097 @java.lang.Override 098 public com.baidu.bifromq.plugin.authprovider.type.Ok getOk() { 099 if (typeCase_ == 1) { 100 return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_; 101 } 102 return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 103 } 104 /** 105 * <code>.mqtt3authtypes.Ok ok = 1;</code> 106 */ 107 @java.lang.Override 108 public com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder getOkOrBuilder() { 109 if (typeCase_ == 1) { 110 return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_; 111 } 112 return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 113 } 114 115 public static final int REJECT_FIELD_NUMBER = 2; 116 /** 117 * <code>.mqtt3authtypes.Reject reject = 2;</code> 118 * @return Whether the reject field is set. 119 */ 120 @java.lang.Override 121 public boolean hasReject() { 122 return typeCase_ == 2; 123 } 124 /** 125 * <code>.mqtt3authtypes.Reject reject = 2;</code> 126 * @return The reject. 127 */ 128 @java.lang.Override 129 public com.baidu.bifromq.plugin.authprovider.type.Reject getReject() { 130 if (typeCase_ == 2) { 131 return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_; 132 } 133 return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 134 } 135 /** 136 * <code>.mqtt3authtypes.Reject reject = 2;</code> 137 */ 138 @java.lang.Override 139 public com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder getRejectOrBuilder() { 140 if (typeCase_ == 2) { 141 return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_; 142 } 143 return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 144 } 145 146 private byte memoizedIsInitialized = -1; 147 @java.lang.Override 148 public final boolean isInitialized() { 149 byte isInitialized = memoizedIsInitialized; 150 if (isInitialized == 1) return true; 151 if (isInitialized == 0) return false; 152 153 memoizedIsInitialized = 1; 154 return true; 155 } 156 157 @java.lang.Override 158 public void writeTo(com.google.protobuf.CodedOutputStream output) 159 throws java.io.IOException { 160 if (typeCase_ == 1) { 161 output.writeMessage(1, (com.baidu.bifromq.plugin.authprovider.type.Ok) type_); 162 } 163 if (typeCase_ == 2) { 164 output.writeMessage(2, (com.baidu.bifromq.plugin.authprovider.type.Reject) type_); 165 } 166 getUnknownFields().writeTo(output); 167 } 168 169 @java.lang.Override 170 public int getSerializedSize() { 171 int size = memoizedSize; 172 if (size != -1) return size; 173 174 size = 0; 175 if (typeCase_ == 1) { 176 size += com.google.protobuf.CodedOutputStream 177 .computeMessageSize(1, (com.baidu.bifromq.plugin.authprovider.type.Ok) type_); 178 } 179 if (typeCase_ == 2) { 180 size += com.google.protobuf.CodedOutputStream 181 .computeMessageSize(2, (com.baidu.bifromq.plugin.authprovider.type.Reject) type_); 182 } 183 size += getUnknownFields().getSerializedSize(); 184 memoizedSize = size; 185 return size; 186 } 187 188 @java.lang.Override 189 public boolean equals(final java.lang.Object obj) { 190 if (obj == this) { 191 return true; 192 } 193 if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult)) { 194 return super.equals(obj); 195 } 196 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult other = (com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult) obj; 197 198 if (!getTypeCase().equals(other.getTypeCase())) return false; 199 switch (typeCase_) { 200 case 1: 201 if (!getOk() 202 .equals(other.getOk())) return false; 203 break; 204 case 2: 205 if (!getReject() 206 .equals(other.getReject())) return false; 207 break; 208 case 0: 209 default: 210 } 211 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 212 return true; 213 } 214 215 @java.lang.Override 216 public int hashCode() { 217 if (memoizedHashCode != 0) { 218 return memoizedHashCode; 219 } 220 int hash = 41; 221 hash = (19 * hash) + getDescriptor().hashCode(); 222 switch (typeCase_) { 223 case 1: 224 hash = (37 * hash) + OK_FIELD_NUMBER; 225 hash = (53 * hash) + getOk().hashCode(); 226 break; 227 case 2: 228 hash = (37 * hash) + REJECT_FIELD_NUMBER; 229 hash = (53 * hash) + getReject().hashCode(); 230 break; 231 case 0: 232 default: 233 } 234 hash = (29 * hash) + getUnknownFields().hashCode(); 235 memoizedHashCode = hash; 236 return hash; 237 } 238 239 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 240 java.nio.ByteBuffer data) 241 throws com.google.protobuf.InvalidProtocolBufferException { 242 return PARSER.parseFrom(data); 243 } 244 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 245 java.nio.ByteBuffer data, 246 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 247 throws com.google.protobuf.InvalidProtocolBufferException { 248 return PARSER.parseFrom(data, extensionRegistry); 249 } 250 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 251 com.google.protobuf.ByteString data) 252 throws com.google.protobuf.InvalidProtocolBufferException { 253 return PARSER.parseFrom(data); 254 } 255 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 256 com.google.protobuf.ByteString data, 257 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 258 throws com.google.protobuf.InvalidProtocolBufferException { 259 return PARSER.parseFrom(data, extensionRegistry); 260 } 261 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(byte[] data) 262 throws com.google.protobuf.InvalidProtocolBufferException { 263 return PARSER.parseFrom(data); 264 } 265 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 266 byte[] data, 267 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 268 throws com.google.protobuf.InvalidProtocolBufferException { 269 return PARSER.parseFrom(data, extensionRegistry); 270 } 271 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(java.io.InputStream input) 272 throws java.io.IOException { 273 return com.google.protobuf.GeneratedMessageV3 274 .parseWithIOException(PARSER, input); 275 } 276 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 277 java.io.InputStream input, 278 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 279 throws java.io.IOException { 280 return com.google.protobuf.GeneratedMessageV3 281 .parseWithIOException(PARSER, input, extensionRegistry); 282 } 283 284 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseDelimitedFrom(java.io.InputStream input) 285 throws java.io.IOException { 286 return com.google.protobuf.GeneratedMessageV3 287 .parseDelimitedWithIOException(PARSER, input); 288 } 289 290 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseDelimitedFrom( 291 java.io.InputStream input, 292 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 293 throws java.io.IOException { 294 return com.google.protobuf.GeneratedMessageV3 295 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 296 } 297 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 298 com.google.protobuf.CodedInputStream input) 299 throws java.io.IOException { 300 return com.google.protobuf.GeneratedMessageV3 301 .parseWithIOException(PARSER, input); 302 } 303 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom( 304 com.google.protobuf.CodedInputStream input, 305 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 306 throws java.io.IOException { 307 return com.google.protobuf.GeneratedMessageV3 308 .parseWithIOException(PARSER, input, extensionRegistry); 309 } 310 311 @java.lang.Override 312 public Builder newBuilderForType() { return newBuilder(); } 313 public static Builder newBuilder() { 314 return DEFAULT_INSTANCE.toBuilder(); 315 } 316 public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult prototype) { 317 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 318 } 319 @java.lang.Override 320 public Builder toBuilder() { 321 return this == DEFAULT_INSTANCE 322 ? new Builder() : new Builder().mergeFrom(this); 323 } 324 325 @java.lang.Override 326 protected Builder newBuilderForType( 327 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 328 Builder builder = new Builder(parent); 329 return builder; 330 } 331 /** 332 * Protobuf type {@code mqtt3authtypes.MQTT3AuthResult} 333 */ 334 public static final class Builder extends 335 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 336 // @@protoc_insertion_point(builder_implements:mqtt3authtypes.MQTT3AuthResult) 337 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResultOrBuilder { 338 public static final com.google.protobuf.Descriptors.Descriptor 339 getDescriptor() { 340 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor; 341 } 342 343 @java.lang.Override 344 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 345 internalGetFieldAccessorTable() { 346 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_fieldAccessorTable 347 .ensureFieldAccessorsInitialized( 348 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.Builder.class); 349 } 350 351 // Construct using com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.newBuilder() 352 private Builder() { 353 354 } 355 356 private Builder( 357 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 358 super(parent); 359 360 } 361 @java.lang.Override 362 public Builder clear() { 363 super.clear(); 364 bitField0_ = 0; 365 if (okBuilder_ != null) { 366 okBuilder_.clear(); 367 } 368 if (rejectBuilder_ != null) { 369 rejectBuilder_.clear(); 370 } 371 typeCase_ = 0; 372 type_ = null; 373 return this; 374 } 375 376 @java.lang.Override 377 public com.google.protobuf.Descriptors.Descriptor 378 getDescriptorForType() { 379 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor; 380 } 381 382 @java.lang.Override 383 public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstanceForType() { 384 return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.getDefaultInstance(); 385 } 386 387 @java.lang.Override 388 public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult build() { 389 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result = buildPartial(); 390 if (!result.isInitialized()) { 391 throw newUninitializedMessageException(result); 392 } 393 return result; 394 } 395 396 @java.lang.Override 397 public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult buildPartial() { 398 com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult(this); 399 if (bitField0_ != 0) { buildPartial0(result); } 400 buildPartialOneofs(result); 401 onBuilt(); 402 return result; 403 } 404 405 private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result) { 406 int from_bitField0_ = bitField0_; 407 } 408 409 private void buildPartialOneofs(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result) { 410 result.typeCase_ = typeCase_; 411 result.type_ = this.type_; 412 if (typeCase_ == 1 && 413 okBuilder_ != null) { 414 result.type_ = okBuilder_.build(); 415 } 416 if (typeCase_ == 2 && 417 rejectBuilder_ != null) { 418 result.type_ = rejectBuilder_.build(); 419 } 420 } 421 422 @java.lang.Override 423 public Builder clone() { 424 return super.clone(); 425 } 426 @java.lang.Override 427 public Builder setField( 428 com.google.protobuf.Descriptors.FieldDescriptor field, 429 java.lang.Object value) { 430 return super.setField(field, value); 431 } 432 @java.lang.Override 433 public Builder clearField( 434 com.google.protobuf.Descriptors.FieldDescriptor field) { 435 return super.clearField(field); 436 } 437 @java.lang.Override 438 public Builder clearOneof( 439 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 440 return super.clearOneof(oneof); 441 } 442 @java.lang.Override 443 public Builder setRepeatedField( 444 com.google.protobuf.Descriptors.FieldDescriptor field, 445 int index, java.lang.Object value) { 446 return super.setRepeatedField(field, index, value); 447 } 448 @java.lang.Override 449 public Builder addRepeatedField( 450 com.google.protobuf.Descriptors.FieldDescriptor field, 451 java.lang.Object value) { 452 return super.addRepeatedField(field, value); 453 } 454 @java.lang.Override 455 public Builder mergeFrom(com.google.protobuf.Message other) { 456 if (other instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult) { 457 return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult)other); 458 } else { 459 super.mergeFrom(other); 460 return this; 461 } 462 } 463 464 public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult other) { 465 if (other == com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.getDefaultInstance()) return this; 466 switch (other.getTypeCase()) { 467 case OK: { 468 mergeOk(other.getOk()); 469 break; 470 } 471 case REJECT: { 472 mergeReject(other.getReject()); 473 break; 474 } 475 case TYPE_NOT_SET: { 476 break; 477 } 478 } 479 this.mergeUnknownFields(other.getUnknownFields()); 480 onChanged(); 481 return this; 482 } 483 484 @java.lang.Override 485 public final boolean isInitialized() { 486 return true; 487 } 488 489 @java.lang.Override 490 public Builder mergeFrom( 491 com.google.protobuf.CodedInputStream input, 492 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 493 throws java.io.IOException { 494 if (extensionRegistry == null) { 495 throw new java.lang.NullPointerException(); 496 } 497 try { 498 boolean done = false; 499 while (!done) { 500 int tag = input.readTag(); 501 switch (tag) { 502 case 0: 503 done = true; 504 break; 505 case 10: { 506 input.readMessage( 507 getOkFieldBuilder().getBuilder(), 508 extensionRegistry); 509 typeCase_ = 1; 510 break; 511 } // case 10 512 case 18: { 513 input.readMessage( 514 getRejectFieldBuilder().getBuilder(), 515 extensionRegistry); 516 typeCase_ = 2; 517 break; 518 } // case 18 519 default: { 520 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 521 done = true; // was an endgroup tag 522 } 523 break; 524 } // default: 525 } // switch (tag) 526 } // while (!done) 527 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 528 throw e.unwrapIOException(); 529 } finally { 530 onChanged(); 531 } // finally 532 return this; 533 } 534 private int typeCase_ = 0; 535 private java.lang.Object type_; 536 public TypeCase 537 getTypeCase() { 538 return TypeCase.forNumber( 539 typeCase_); 540 } 541 542 public Builder clearType() { 543 typeCase_ = 0; 544 type_ = null; 545 onChanged(); 546 return this; 547 } 548 549 private int bitField0_; 550 551 private com.google.protobuf.SingleFieldBuilderV3< 552 com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder> okBuilder_; 553 /** 554 * <code>.mqtt3authtypes.Ok ok = 1;</code> 555 * @return Whether the ok field is set. 556 */ 557 @java.lang.Override 558 public boolean hasOk() { 559 return typeCase_ == 1; 560 } 561 /** 562 * <code>.mqtt3authtypes.Ok ok = 1;</code> 563 * @return The ok. 564 */ 565 @java.lang.Override 566 public com.baidu.bifromq.plugin.authprovider.type.Ok getOk() { 567 if (okBuilder_ == null) { 568 if (typeCase_ == 1) { 569 return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_; 570 } 571 return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 572 } else { 573 if (typeCase_ == 1) { 574 return okBuilder_.getMessage(); 575 } 576 return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 577 } 578 } 579 /** 580 * <code>.mqtt3authtypes.Ok ok = 1;</code> 581 */ 582 public Builder setOk(com.baidu.bifromq.plugin.authprovider.type.Ok value) { 583 if (okBuilder_ == null) { 584 if (value == null) { 585 throw new NullPointerException(); 586 } 587 type_ = value; 588 onChanged(); 589 } else { 590 okBuilder_.setMessage(value); 591 } 592 typeCase_ = 1; 593 return this; 594 } 595 /** 596 * <code>.mqtt3authtypes.Ok ok = 1;</code> 597 */ 598 public Builder setOk( 599 com.baidu.bifromq.plugin.authprovider.type.Ok.Builder builderForValue) { 600 if (okBuilder_ == null) { 601 type_ = builderForValue.build(); 602 onChanged(); 603 } else { 604 okBuilder_.setMessage(builderForValue.build()); 605 } 606 typeCase_ = 1; 607 return this; 608 } 609 /** 610 * <code>.mqtt3authtypes.Ok ok = 1;</code> 611 */ 612 public Builder mergeOk(com.baidu.bifromq.plugin.authprovider.type.Ok value) { 613 if (okBuilder_ == null) { 614 if (typeCase_ == 1 && 615 type_ != com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance()) { 616 type_ = com.baidu.bifromq.plugin.authprovider.type.Ok.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Ok) type_) 617 .mergeFrom(value).buildPartial(); 618 } else { 619 type_ = value; 620 } 621 onChanged(); 622 } else { 623 if (typeCase_ == 1) { 624 okBuilder_.mergeFrom(value); 625 } else { 626 okBuilder_.setMessage(value); 627 } 628 } 629 typeCase_ = 1; 630 return this; 631 } 632 /** 633 * <code>.mqtt3authtypes.Ok ok = 1;</code> 634 */ 635 public Builder clearOk() { 636 if (okBuilder_ == null) { 637 if (typeCase_ == 1) { 638 typeCase_ = 0; 639 type_ = null; 640 onChanged(); 641 } 642 } else { 643 if (typeCase_ == 1) { 644 typeCase_ = 0; 645 type_ = null; 646 } 647 okBuilder_.clear(); 648 } 649 return this; 650 } 651 /** 652 * <code>.mqtt3authtypes.Ok ok = 1;</code> 653 */ 654 public com.baidu.bifromq.plugin.authprovider.type.Ok.Builder getOkBuilder() { 655 return getOkFieldBuilder().getBuilder(); 656 } 657 /** 658 * <code>.mqtt3authtypes.Ok ok = 1;</code> 659 */ 660 @java.lang.Override 661 public com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder getOkOrBuilder() { 662 if ((typeCase_ == 1) && (okBuilder_ != null)) { 663 return okBuilder_.getMessageOrBuilder(); 664 } else { 665 if (typeCase_ == 1) { 666 return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_; 667 } 668 return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 669 } 670 } 671 /** 672 * <code>.mqtt3authtypes.Ok ok = 1;</code> 673 */ 674 private com.google.protobuf.SingleFieldBuilderV3< 675 com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder> 676 getOkFieldBuilder() { 677 if (okBuilder_ == null) { 678 if (!(typeCase_ == 1)) { 679 type_ = com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance(); 680 } 681 okBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 682 com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder>( 683 (com.baidu.bifromq.plugin.authprovider.type.Ok) type_, 684 getParentForChildren(), 685 isClean()); 686 type_ = null; 687 } 688 typeCase_ = 1; 689 onChanged(); 690 return okBuilder_; 691 } 692 693 private com.google.protobuf.SingleFieldBuilderV3< 694 com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder> rejectBuilder_; 695 /** 696 * <code>.mqtt3authtypes.Reject reject = 2;</code> 697 * @return Whether the reject field is set. 698 */ 699 @java.lang.Override 700 public boolean hasReject() { 701 return typeCase_ == 2; 702 } 703 /** 704 * <code>.mqtt3authtypes.Reject reject = 2;</code> 705 * @return The reject. 706 */ 707 @java.lang.Override 708 public com.baidu.bifromq.plugin.authprovider.type.Reject getReject() { 709 if (rejectBuilder_ == null) { 710 if (typeCase_ == 2) { 711 return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_; 712 } 713 return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 714 } else { 715 if (typeCase_ == 2) { 716 return rejectBuilder_.getMessage(); 717 } 718 return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 719 } 720 } 721 /** 722 * <code>.mqtt3authtypes.Reject reject = 2;</code> 723 */ 724 public Builder setReject(com.baidu.bifromq.plugin.authprovider.type.Reject value) { 725 if (rejectBuilder_ == null) { 726 if (value == null) { 727 throw new NullPointerException(); 728 } 729 type_ = value; 730 onChanged(); 731 } else { 732 rejectBuilder_.setMessage(value); 733 } 734 typeCase_ = 2; 735 return this; 736 } 737 /** 738 * <code>.mqtt3authtypes.Reject reject = 2;</code> 739 */ 740 public Builder setReject( 741 com.baidu.bifromq.plugin.authprovider.type.Reject.Builder builderForValue) { 742 if (rejectBuilder_ == null) { 743 type_ = builderForValue.build(); 744 onChanged(); 745 } else { 746 rejectBuilder_.setMessage(builderForValue.build()); 747 } 748 typeCase_ = 2; 749 return this; 750 } 751 /** 752 * <code>.mqtt3authtypes.Reject reject = 2;</code> 753 */ 754 public Builder mergeReject(com.baidu.bifromq.plugin.authprovider.type.Reject value) { 755 if (rejectBuilder_ == null) { 756 if (typeCase_ == 2 && 757 type_ != com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance()) { 758 type_ = com.baidu.bifromq.plugin.authprovider.type.Reject.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Reject) type_) 759 .mergeFrom(value).buildPartial(); 760 } else { 761 type_ = value; 762 } 763 onChanged(); 764 } else { 765 if (typeCase_ == 2) { 766 rejectBuilder_.mergeFrom(value); 767 } else { 768 rejectBuilder_.setMessage(value); 769 } 770 } 771 typeCase_ = 2; 772 return this; 773 } 774 /** 775 * <code>.mqtt3authtypes.Reject reject = 2;</code> 776 */ 777 public Builder clearReject() { 778 if (rejectBuilder_ == null) { 779 if (typeCase_ == 2) { 780 typeCase_ = 0; 781 type_ = null; 782 onChanged(); 783 } 784 } else { 785 if (typeCase_ == 2) { 786 typeCase_ = 0; 787 type_ = null; 788 } 789 rejectBuilder_.clear(); 790 } 791 return this; 792 } 793 /** 794 * <code>.mqtt3authtypes.Reject reject = 2;</code> 795 */ 796 public com.baidu.bifromq.plugin.authprovider.type.Reject.Builder getRejectBuilder() { 797 return getRejectFieldBuilder().getBuilder(); 798 } 799 /** 800 * <code>.mqtt3authtypes.Reject reject = 2;</code> 801 */ 802 @java.lang.Override 803 public com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder getRejectOrBuilder() { 804 if ((typeCase_ == 2) && (rejectBuilder_ != null)) { 805 return rejectBuilder_.getMessageOrBuilder(); 806 } else { 807 if (typeCase_ == 2) { 808 return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_; 809 } 810 return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 811 } 812 } 813 /** 814 * <code>.mqtt3authtypes.Reject reject = 2;</code> 815 */ 816 private com.google.protobuf.SingleFieldBuilderV3< 817 com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder> 818 getRejectFieldBuilder() { 819 if (rejectBuilder_ == null) { 820 if (!(typeCase_ == 2)) { 821 type_ = com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance(); 822 } 823 rejectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 824 com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder>( 825 (com.baidu.bifromq.plugin.authprovider.type.Reject) type_, 826 getParentForChildren(), 827 isClean()); 828 type_ = null; 829 } 830 typeCase_ = 2; 831 onChanged(); 832 return rejectBuilder_; 833 } 834 @java.lang.Override 835 public final Builder setUnknownFields( 836 final com.google.protobuf.UnknownFieldSet unknownFields) { 837 return super.setUnknownFields(unknownFields); 838 } 839 840 @java.lang.Override 841 public final Builder mergeUnknownFields( 842 final com.google.protobuf.UnknownFieldSet unknownFields) { 843 return super.mergeUnknownFields(unknownFields); 844 } 845 846 847 // @@protoc_insertion_point(builder_scope:mqtt3authtypes.MQTT3AuthResult) 848 } 849 850 // @@protoc_insertion_point(class_scope:mqtt3authtypes.MQTT3AuthResult) 851 private static final com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult DEFAULT_INSTANCE; 852 static { 853 DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult(); 854 } 855 856 public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstance() { 857 return DEFAULT_INSTANCE; 858 } 859 860 private static final com.google.protobuf.Parser<MQTT3AuthResult> 861 PARSER = new com.google.protobuf.AbstractParser<MQTT3AuthResult>() { 862 @java.lang.Override 863 public MQTT3AuthResult parsePartialFrom( 864 com.google.protobuf.CodedInputStream input, 865 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 866 throws com.google.protobuf.InvalidProtocolBufferException { 867 Builder builder = newBuilder(); 868 try { 869 builder.mergeFrom(input, extensionRegistry); 870 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 871 throw e.setUnfinishedMessage(builder.buildPartial()); 872 } catch (com.google.protobuf.UninitializedMessageException e) { 873 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 874 } catch (java.io.IOException e) { 875 throw new com.google.protobuf.InvalidProtocolBufferException(e) 876 .setUnfinishedMessage(builder.buildPartial()); 877 } 878 return builder.buildPartial(); 879 } 880 }; 881 882 public static com.google.protobuf.Parser<MQTT3AuthResult> parser() { 883 return PARSER; 884 } 885 886 @java.lang.Override 887 public com.google.protobuf.Parser<MQTT3AuthResult> getParserForType() { 888 return PARSER; 889 } 890 891 @java.lang.Override 892 public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstanceForType() { 893 return DEFAULT_INSTANCE; 894 } 895 896} 897