001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: mqtt_actions.proto 003 004// Protobuf Java Version: 3.25.5 005package com.baidu.bifromq.plugin.authprovider.type; 006 007/** 008 * Protobuf type {@code checktypes.CheckResult} 009 */ 010public final class CheckResult extends 011 com.google.protobuf.GeneratedMessageV3 implements 012 // @@protoc_insertion_point(message_implements:checktypes.CheckResult) 013 CheckResultOrBuilder { 014private static final long serialVersionUID = 0L; 015 // Use CheckResult.newBuilder() to construct. 016 private CheckResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 017 super(builder); 018 } 019 private CheckResult() { 020 } 021 022 @java.lang.Override 023 @SuppressWarnings({"unused"}) 024 protected java.lang.Object newInstance( 025 UnusedPrivateParameter unused) { 026 return new CheckResult(); 027 } 028 029 public static final com.google.protobuf.Descriptors.Descriptor 030 getDescriptor() { 031 return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_CheckResult_descriptor; 032 } 033 034 @java.lang.Override 035 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 036 internalGetFieldAccessorTable() { 037 return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_CheckResult_fieldAccessorTable 038 .ensureFieldAccessorsInitialized( 039 com.baidu.bifromq.plugin.authprovider.type.CheckResult.class, com.baidu.bifromq.plugin.authprovider.type.CheckResult.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 GRANTED(1), 049 DENIED(2), 050 ERROR(3), 051 TYPE_NOT_SET(0); 052 private final int value; 053 private TypeCase(int value) { 054 this.value = value; 055 } 056 /** 057 * @param value The number of the enum to look for. 058 * @return The enum associated with the given number. 059 * @deprecated Use {@link #forNumber(int)} instead. 060 */ 061 @java.lang.Deprecated 062 public static TypeCase valueOf(int value) { 063 return forNumber(value); 064 } 065 066 public static TypeCase forNumber(int value) { 067 switch (value) { 068 case 1: return GRANTED; 069 case 2: return DENIED; 070 case 3: return ERROR; 071 case 0: return TYPE_NOT_SET; 072 default: return null; 073 } 074 } 075 public int getNumber() { 076 return this.value; 077 } 078 }; 079 080 public TypeCase 081 getTypeCase() { 082 return TypeCase.forNumber( 083 typeCase_); 084 } 085 086 public static final int GRANTED_FIELD_NUMBER = 1; 087 /** 088 * <code>.checktypes.Granted granted = 1;</code> 089 * @return Whether the granted field is set. 090 */ 091 @java.lang.Override 092 public boolean hasGranted() { 093 return typeCase_ == 1; 094 } 095 /** 096 * <code>.checktypes.Granted granted = 1;</code> 097 * @return The granted. 098 */ 099 @java.lang.Override 100 public com.baidu.bifromq.plugin.authprovider.type.Granted getGranted() { 101 if (typeCase_ == 1) { 102 return (com.baidu.bifromq.plugin.authprovider.type.Granted) type_; 103 } 104 return com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 105 } 106 /** 107 * <code>.checktypes.Granted granted = 1;</code> 108 */ 109 @java.lang.Override 110 public com.baidu.bifromq.plugin.authprovider.type.GrantedOrBuilder getGrantedOrBuilder() { 111 if (typeCase_ == 1) { 112 return (com.baidu.bifromq.plugin.authprovider.type.Granted) type_; 113 } 114 return com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 115 } 116 117 public static final int DENIED_FIELD_NUMBER = 2; 118 /** 119 * <code>.checktypes.Denied denied = 2;</code> 120 * @return Whether the denied field is set. 121 */ 122 @java.lang.Override 123 public boolean hasDenied() { 124 return typeCase_ == 2; 125 } 126 /** 127 * <code>.checktypes.Denied denied = 2;</code> 128 * @return The denied. 129 */ 130 @java.lang.Override 131 public com.baidu.bifromq.plugin.authprovider.type.Denied getDenied() { 132 if (typeCase_ == 2) { 133 return (com.baidu.bifromq.plugin.authprovider.type.Denied) type_; 134 } 135 return com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 136 } 137 /** 138 * <code>.checktypes.Denied denied = 2;</code> 139 */ 140 @java.lang.Override 141 public com.baidu.bifromq.plugin.authprovider.type.DeniedOrBuilder getDeniedOrBuilder() { 142 if (typeCase_ == 2) { 143 return (com.baidu.bifromq.plugin.authprovider.type.Denied) type_; 144 } 145 return com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 146 } 147 148 public static final int ERROR_FIELD_NUMBER = 3; 149 /** 150 * <code>.checktypes.Error error = 3;</code> 151 * @return Whether the error field is set. 152 */ 153 @java.lang.Override 154 public boolean hasError() { 155 return typeCase_ == 3; 156 } 157 /** 158 * <code>.checktypes.Error error = 3;</code> 159 * @return The error. 160 */ 161 @java.lang.Override 162 public com.baidu.bifromq.plugin.authprovider.type.Error getError() { 163 if (typeCase_ == 3) { 164 return (com.baidu.bifromq.plugin.authprovider.type.Error) type_; 165 } 166 return com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 167 } 168 /** 169 * <code>.checktypes.Error error = 3;</code> 170 */ 171 @java.lang.Override 172 public com.baidu.bifromq.plugin.authprovider.type.ErrorOrBuilder getErrorOrBuilder() { 173 if (typeCase_ == 3) { 174 return (com.baidu.bifromq.plugin.authprovider.type.Error) type_; 175 } 176 return com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 177 } 178 179 private byte memoizedIsInitialized = -1; 180 @java.lang.Override 181 public final boolean isInitialized() { 182 byte isInitialized = memoizedIsInitialized; 183 if (isInitialized == 1) return true; 184 if (isInitialized == 0) return false; 185 186 memoizedIsInitialized = 1; 187 return true; 188 } 189 190 @java.lang.Override 191 public void writeTo(com.google.protobuf.CodedOutputStream output) 192 throws java.io.IOException { 193 if (typeCase_ == 1) { 194 output.writeMessage(1, (com.baidu.bifromq.plugin.authprovider.type.Granted) type_); 195 } 196 if (typeCase_ == 2) { 197 output.writeMessage(2, (com.baidu.bifromq.plugin.authprovider.type.Denied) type_); 198 } 199 if (typeCase_ == 3) { 200 output.writeMessage(3, (com.baidu.bifromq.plugin.authprovider.type.Error) type_); 201 } 202 getUnknownFields().writeTo(output); 203 } 204 205 @java.lang.Override 206 public int getSerializedSize() { 207 int size = memoizedSize; 208 if (size != -1) return size; 209 210 size = 0; 211 if (typeCase_ == 1) { 212 size += com.google.protobuf.CodedOutputStream 213 .computeMessageSize(1, (com.baidu.bifromq.plugin.authprovider.type.Granted) type_); 214 } 215 if (typeCase_ == 2) { 216 size += com.google.protobuf.CodedOutputStream 217 .computeMessageSize(2, (com.baidu.bifromq.plugin.authprovider.type.Denied) type_); 218 } 219 if (typeCase_ == 3) { 220 size += com.google.protobuf.CodedOutputStream 221 .computeMessageSize(3, (com.baidu.bifromq.plugin.authprovider.type.Error) type_); 222 } 223 size += getUnknownFields().getSerializedSize(); 224 memoizedSize = size; 225 return size; 226 } 227 228 @java.lang.Override 229 public boolean equals(final java.lang.Object obj) { 230 if (obj == this) { 231 return true; 232 } 233 if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.CheckResult)) { 234 return super.equals(obj); 235 } 236 com.baidu.bifromq.plugin.authprovider.type.CheckResult other = (com.baidu.bifromq.plugin.authprovider.type.CheckResult) obj; 237 238 if (!getTypeCase().equals(other.getTypeCase())) return false; 239 switch (typeCase_) { 240 case 1: 241 if (!getGranted() 242 .equals(other.getGranted())) return false; 243 break; 244 case 2: 245 if (!getDenied() 246 .equals(other.getDenied())) return false; 247 break; 248 case 3: 249 if (!getError() 250 .equals(other.getError())) return false; 251 break; 252 case 0: 253 default: 254 } 255 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 256 return true; 257 } 258 259 @java.lang.Override 260 public int hashCode() { 261 if (memoizedHashCode != 0) { 262 return memoizedHashCode; 263 } 264 int hash = 41; 265 hash = (19 * hash) + getDescriptor().hashCode(); 266 switch (typeCase_) { 267 case 1: 268 hash = (37 * hash) + GRANTED_FIELD_NUMBER; 269 hash = (53 * hash) + getGranted().hashCode(); 270 break; 271 case 2: 272 hash = (37 * hash) + DENIED_FIELD_NUMBER; 273 hash = (53 * hash) + getDenied().hashCode(); 274 break; 275 case 3: 276 hash = (37 * hash) + ERROR_FIELD_NUMBER; 277 hash = (53 * hash) + getError().hashCode(); 278 break; 279 case 0: 280 default: 281 } 282 hash = (29 * hash) + getUnknownFields().hashCode(); 283 memoizedHashCode = hash; 284 return hash; 285 } 286 287 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 288 java.nio.ByteBuffer data) 289 throws com.google.protobuf.InvalidProtocolBufferException { 290 return PARSER.parseFrom(data); 291 } 292 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 293 java.nio.ByteBuffer data, 294 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 295 throws com.google.protobuf.InvalidProtocolBufferException { 296 return PARSER.parseFrom(data, extensionRegistry); 297 } 298 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 299 com.google.protobuf.ByteString data) 300 throws com.google.protobuf.InvalidProtocolBufferException { 301 return PARSER.parseFrom(data); 302 } 303 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 304 com.google.protobuf.ByteString data, 305 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 306 throws com.google.protobuf.InvalidProtocolBufferException { 307 return PARSER.parseFrom(data, extensionRegistry); 308 } 309 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom(byte[] data) 310 throws com.google.protobuf.InvalidProtocolBufferException { 311 return PARSER.parseFrom(data); 312 } 313 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 314 byte[] data, 315 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 316 throws com.google.protobuf.InvalidProtocolBufferException { 317 return PARSER.parseFrom(data, extensionRegistry); 318 } 319 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom(java.io.InputStream input) 320 throws java.io.IOException { 321 return com.google.protobuf.GeneratedMessageV3 322 .parseWithIOException(PARSER, input); 323 } 324 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 325 java.io.InputStream input, 326 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 327 throws java.io.IOException { 328 return com.google.protobuf.GeneratedMessageV3 329 .parseWithIOException(PARSER, input, extensionRegistry); 330 } 331 332 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseDelimitedFrom(java.io.InputStream input) 333 throws java.io.IOException { 334 return com.google.protobuf.GeneratedMessageV3 335 .parseDelimitedWithIOException(PARSER, input); 336 } 337 338 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseDelimitedFrom( 339 java.io.InputStream input, 340 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 341 throws java.io.IOException { 342 return com.google.protobuf.GeneratedMessageV3 343 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 344 } 345 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 346 com.google.protobuf.CodedInputStream input) 347 throws java.io.IOException { 348 return com.google.protobuf.GeneratedMessageV3 349 .parseWithIOException(PARSER, input); 350 } 351 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult parseFrom( 352 com.google.protobuf.CodedInputStream input, 353 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 354 throws java.io.IOException { 355 return com.google.protobuf.GeneratedMessageV3 356 .parseWithIOException(PARSER, input, extensionRegistry); 357 } 358 359 @java.lang.Override 360 public Builder newBuilderForType() { return newBuilder(); } 361 public static Builder newBuilder() { 362 return DEFAULT_INSTANCE.toBuilder(); 363 } 364 public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.CheckResult prototype) { 365 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 366 } 367 @java.lang.Override 368 public Builder toBuilder() { 369 return this == DEFAULT_INSTANCE 370 ? new Builder() : new Builder().mergeFrom(this); 371 } 372 373 @java.lang.Override 374 protected Builder newBuilderForType( 375 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 376 Builder builder = new Builder(parent); 377 return builder; 378 } 379 /** 380 * Protobuf type {@code checktypes.CheckResult} 381 */ 382 public static final class Builder extends 383 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 384 // @@protoc_insertion_point(builder_implements:checktypes.CheckResult) 385 com.baidu.bifromq.plugin.authprovider.type.CheckResultOrBuilder { 386 public static final com.google.protobuf.Descriptors.Descriptor 387 getDescriptor() { 388 return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_CheckResult_descriptor; 389 } 390 391 @java.lang.Override 392 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 393 internalGetFieldAccessorTable() { 394 return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_CheckResult_fieldAccessorTable 395 .ensureFieldAccessorsInitialized( 396 com.baidu.bifromq.plugin.authprovider.type.CheckResult.class, com.baidu.bifromq.plugin.authprovider.type.CheckResult.Builder.class); 397 } 398 399 // Construct using com.baidu.bifromq.plugin.authprovider.type.CheckResult.newBuilder() 400 private Builder() { 401 402 } 403 404 private Builder( 405 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 406 super(parent); 407 408 } 409 @java.lang.Override 410 public Builder clear() { 411 super.clear(); 412 bitField0_ = 0; 413 if (grantedBuilder_ != null) { 414 grantedBuilder_.clear(); 415 } 416 if (deniedBuilder_ != null) { 417 deniedBuilder_.clear(); 418 } 419 if (errorBuilder_ != null) { 420 errorBuilder_.clear(); 421 } 422 typeCase_ = 0; 423 type_ = null; 424 return this; 425 } 426 427 @java.lang.Override 428 public com.google.protobuf.Descriptors.Descriptor 429 getDescriptorForType() { 430 return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_CheckResult_descriptor; 431 } 432 433 @java.lang.Override 434 public com.baidu.bifromq.plugin.authprovider.type.CheckResult getDefaultInstanceForType() { 435 return com.baidu.bifromq.plugin.authprovider.type.CheckResult.getDefaultInstance(); 436 } 437 438 @java.lang.Override 439 public com.baidu.bifromq.plugin.authprovider.type.CheckResult build() { 440 com.baidu.bifromq.plugin.authprovider.type.CheckResult result = buildPartial(); 441 if (!result.isInitialized()) { 442 throw newUninitializedMessageException(result); 443 } 444 return result; 445 } 446 447 @java.lang.Override 448 public com.baidu.bifromq.plugin.authprovider.type.CheckResult buildPartial() { 449 com.baidu.bifromq.plugin.authprovider.type.CheckResult result = new com.baidu.bifromq.plugin.authprovider.type.CheckResult(this); 450 if (bitField0_ != 0) { buildPartial0(result); } 451 buildPartialOneofs(result); 452 onBuilt(); 453 return result; 454 } 455 456 private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.CheckResult result) { 457 int from_bitField0_ = bitField0_; 458 } 459 460 private void buildPartialOneofs(com.baidu.bifromq.plugin.authprovider.type.CheckResult result) { 461 result.typeCase_ = typeCase_; 462 result.type_ = this.type_; 463 if (typeCase_ == 1 && 464 grantedBuilder_ != null) { 465 result.type_ = grantedBuilder_.build(); 466 } 467 if (typeCase_ == 2 && 468 deniedBuilder_ != null) { 469 result.type_ = deniedBuilder_.build(); 470 } 471 if (typeCase_ == 3 && 472 errorBuilder_ != null) { 473 result.type_ = errorBuilder_.build(); 474 } 475 } 476 477 @java.lang.Override 478 public Builder clone() { 479 return super.clone(); 480 } 481 @java.lang.Override 482 public Builder setField( 483 com.google.protobuf.Descriptors.FieldDescriptor field, 484 java.lang.Object value) { 485 return super.setField(field, value); 486 } 487 @java.lang.Override 488 public Builder clearField( 489 com.google.protobuf.Descriptors.FieldDescriptor field) { 490 return super.clearField(field); 491 } 492 @java.lang.Override 493 public Builder clearOneof( 494 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 495 return super.clearOneof(oneof); 496 } 497 @java.lang.Override 498 public Builder setRepeatedField( 499 com.google.protobuf.Descriptors.FieldDescriptor field, 500 int index, java.lang.Object value) { 501 return super.setRepeatedField(field, index, value); 502 } 503 @java.lang.Override 504 public Builder addRepeatedField( 505 com.google.protobuf.Descriptors.FieldDescriptor field, 506 java.lang.Object value) { 507 return super.addRepeatedField(field, value); 508 } 509 @java.lang.Override 510 public Builder mergeFrom(com.google.protobuf.Message other) { 511 if (other instanceof com.baidu.bifromq.plugin.authprovider.type.CheckResult) { 512 return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.CheckResult)other); 513 } else { 514 super.mergeFrom(other); 515 return this; 516 } 517 } 518 519 public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.CheckResult other) { 520 if (other == com.baidu.bifromq.plugin.authprovider.type.CheckResult.getDefaultInstance()) return this; 521 switch (other.getTypeCase()) { 522 case GRANTED: { 523 mergeGranted(other.getGranted()); 524 break; 525 } 526 case DENIED: { 527 mergeDenied(other.getDenied()); 528 break; 529 } 530 case ERROR: { 531 mergeError(other.getError()); 532 break; 533 } 534 case TYPE_NOT_SET: { 535 break; 536 } 537 } 538 this.mergeUnknownFields(other.getUnknownFields()); 539 onChanged(); 540 return this; 541 } 542 543 @java.lang.Override 544 public final boolean isInitialized() { 545 return true; 546 } 547 548 @java.lang.Override 549 public Builder mergeFrom( 550 com.google.protobuf.CodedInputStream input, 551 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 552 throws java.io.IOException { 553 if (extensionRegistry == null) { 554 throw new java.lang.NullPointerException(); 555 } 556 try { 557 boolean done = false; 558 while (!done) { 559 int tag = input.readTag(); 560 switch (tag) { 561 case 0: 562 done = true; 563 break; 564 case 10: { 565 input.readMessage( 566 getGrantedFieldBuilder().getBuilder(), 567 extensionRegistry); 568 typeCase_ = 1; 569 break; 570 } // case 10 571 case 18: { 572 input.readMessage( 573 getDeniedFieldBuilder().getBuilder(), 574 extensionRegistry); 575 typeCase_ = 2; 576 break; 577 } // case 18 578 case 26: { 579 input.readMessage( 580 getErrorFieldBuilder().getBuilder(), 581 extensionRegistry); 582 typeCase_ = 3; 583 break; 584 } // case 26 585 default: { 586 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 587 done = true; // was an endgroup tag 588 } 589 break; 590 } // default: 591 } // switch (tag) 592 } // while (!done) 593 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 594 throw e.unwrapIOException(); 595 } finally { 596 onChanged(); 597 } // finally 598 return this; 599 } 600 private int typeCase_ = 0; 601 private java.lang.Object type_; 602 public TypeCase 603 getTypeCase() { 604 return TypeCase.forNumber( 605 typeCase_); 606 } 607 608 public Builder clearType() { 609 typeCase_ = 0; 610 type_ = null; 611 onChanged(); 612 return this; 613 } 614 615 private int bitField0_; 616 617 private com.google.protobuf.SingleFieldBuilderV3< 618 com.baidu.bifromq.plugin.authprovider.type.Granted, com.baidu.bifromq.plugin.authprovider.type.Granted.Builder, com.baidu.bifromq.plugin.authprovider.type.GrantedOrBuilder> grantedBuilder_; 619 /** 620 * <code>.checktypes.Granted granted = 1;</code> 621 * @return Whether the granted field is set. 622 */ 623 @java.lang.Override 624 public boolean hasGranted() { 625 return typeCase_ == 1; 626 } 627 /** 628 * <code>.checktypes.Granted granted = 1;</code> 629 * @return The granted. 630 */ 631 @java.lang.Override 632 public com.baidu.bifromq.plugin.authprovider.type.Granted getGranted() { 633 if (grantedBuilder_ == null) { 634 if (typeCase_ == 1) { 635 return (com.baidu.bifromq.plugin.authprovider.type.Granted) type_; 636 } 637 return com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 638 } else { 639 if (typeCase_ == 1) { 640 return grantedBuilder_.getMessage(); 641 } 642 return com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 643 } 644 } 645 /** 646 * <code>.checktypes.Granted granted = 1;</code> 647 */ 648 public Builder setGranted(com.baidu.bifromq.plugin.authprovider.type.Granted value) { 649 if (grantedBuilder_ == null) { 650 if (value == null) { 651 throw new NullPointerException(); 652 } 653 type_ = value; 654 onChanged(); 655 } else { 656 grantedBuilder_.setMessage(value); 657 } 658 typeCase_ = 1; 659 return this; 660 } 661 /** 662 * <code>.checktypes.Granted granted = 1;</code> 663 */ 664 public Builder setGranted( 665 com.baidu.bifromq.plugin.authprovider.type.Granted.Builder builderForValue) { 666 if (grantedBuilder_ == null) { 667 type_ = builderForValue.build(); 668 onChanged(); 669 } else { 670 grantedBuilder_.setMessage(builderForValue.build()); 671 } 672 typeCase_ = 1; 673 return this; 674 } 675 /** 676 * <code>.checktypes.Granted granted = 1;</code> 677 */ 678 public Builder mergeGranted(com.baidu.bifromq.plugin.authprovider.type.Granted value) { 679 if (grantedBuilder_ == null) { 680 if (typeCase_ == 1 && 681 type_ != com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance()) { 682 type_ = com.baidu.bifromq.plugin.authprovider.type.Granted.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Granted) type_) 683 .mergeFrom(value).buildPartial(); 684 } else { 685 type_ = value; 686 } 687 onChanged(); 688 } else { 689 if (typeCase_ == 1) { 690 grantedBuilder_.mergeFrom(value); 691 } else { 692 grantedBuilder_.setMessage(value); 693 } 694 } 695 typeCase_ = 1; 696 return this; 697 } 698 /** 699 * <code>.checktypes.Granted granted = 1;</code> 700 */ 701 public Builder clearGranted() { 702 if (grantedBuilder_ == null) { 703 if (typeCase_ == 1) { 704 typeCase_ = 0; 705 type_ = null; 706 onChanged(); 707 } 708 } else { 709 if (typeCase_ == 1) { 710 typeCase_ = 0; 711 type_ = null; 712 } 713 grantedBuilder_.clear(); 714 } 715 return this; 716 } 717 /** 718 * <code>.checktypes.Granted granted = 1;</code> 719 */ 720 public com.baidu.bifromq.plugin.authprovider.type.Granted.Builder getGrantedBuilder() { 721 return getGrantedFieldBuilder().getBuilder(); 722 } 723 /** 724 * <code>.checktypes.Granted granted = 1;</code> 725 */ 726 @java.lang.Override 727 public com.baidu.bifromq.plugin.authprovider.type.GrantedOrBuilder getGrantedOrBuilder() { 728 if ((typeCase_ == 1) && (grantedBuilder_ != null)) { 729 return grantedBuilder_.getMessageOrBuilder(); 730 } else { 731 if (typeCase_ == 1) { 732 return (com.baidu.bifromq.plugin.authprovider.type.Granted) type_; 733 } 734 return com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 735 } 736 } 737 /** 738 * <code>.checktypes.Granted granted = 1;</code> 739 */ 740 private com.google.protobuf.SingleFieldBuilderV3< 741 com.baidu.bifromq.plugin.authprovider.type.Granted, com.baidu.bifromq.plugin.authprovider.type.Granted.Builder, com.baidu.bifromq.plugin.authprovider.type.GrantedOrBuilder> 742 getGrantedFieldBuilder() { 743 if (grantedBuilder_ == null) { 744 if (!(typeCase_ == 1)) { 745 type_ = com.baidu.bifromq.plugin.authprovider.type.Granted.getDefaultInstance(); 746 } 747 grantedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 748 com.baidu.bifromq.plugin.authprovider.type.Granted, com.baidu.bifromq.plugin.authprovider.type.Granted.Builder, com.baidu.bifromq.plugin.authprovider.type.GrantedOrBuilder>( 749 (com.baidu.bifromq.plugin.authprovider.type.Granted) type_, 750 getParentForChildren(), 751 isClean()); 752 type_ = null; 753 } 754 typeCase_ = 1; 755 onChanged(); 756 return grantedBuilder_; 757 } 758 759 private com.google.protobuf.SingleFieldBuilderV3< 760 com.baidu.bifromq.plugin.authprovider.type.Denied, com.baidu.bifromq.plugin.authprovider.type.Denied.Builder, com.baidu.bifromq.plugin.authprovider.type.DeniedOrBuilder> deniedBuilder_; 761 /** 762 * <code>.checktypes.Denied denied = 2;</code> 763 * @return Whether the denied field is set. 764 */ 765 @java.lang.Override 766 public boolean hasDenied() { 767 return typeCase_ == 2; 768 } 769 /** 770 * <code>.checktypes.Denied denied = 2;</code> 771 * @return The denied. 772 */ 773 @java.lang.Override 774 public com.baidu.bifromq.plugin.authprovider.type.Denied getDenied() { 775 if (deniedBuilder_ == null) { 776 if (typeCase_ == 2) { 777 return (com.baidu.bifromq.plugin.authprovider.type.Denied) type_; 778 } 779 return com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 780 } else { 781 if (typeCase_ == 2) { 782 return deniedBuilder_.getMessage(); 783 } 784 return com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 785 } 786 } 787 /** 788 * <code>.checktypes.Denied denied = 2;</code> 789 */ 790 public Builder setDenied(com.baidu.bifromq.plugin.authprovider.type.Denied value) { 791 if (deniedBuilder_ == null) { 792 if (value == null) { 793 throw new NullPointerException(); 794 } 795 type_ = value; 796 onChanged(); 797 } else { 798 deniedBuilder_.setMessage(value); 799 } 800 typeCase_ = 2; 801 return this; 802 } 803 /** 804 * <code>.checktypes.Denied denied = 2;</code> 805 */ 806 public Builder setDenied( 807 com.baidu.bifromq.plugin.authprovider.type.Denied.Builder builderForValue) { 808 if (deniedBuilder_ == null) { 809 type_ = builderForValue.build(); 810 onChanged(); 811 } else { 812 deniedBuilder_.setMessage(builderForValue.build()); 813 } 814 typeCase_ = 2; 815 return this; 816 } 817 /** 818 * <code>.checktypes.Denied denied = 2;</code> 819 */ 820 public Builder mergeDenied(com.baidu.bifromq.plugin.authprovider.type.Denied value) { 821 if (deniedBuilder_ == null) { 822 if (typeCase_ == 2 && 823 type_ != com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance()) { 824 type_ = com.baidu.bifromq.plugin.authprovider.type.Denied.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Denied) type_) 825 .mergeFrom(value).buildPartial(); 826 } else { 827 type_ = value; 828 } 829 onChanged(); 830 } else { 831 if (typeCase_ == 2) { 832 deniedBuilder_.mergeFrom(value); 833 } else { 834 deniedBuilder_.setMessage(value); 835 } 836 } 837 typeCase_ = 2; 838 return this; 839 } 840 /** 841 * <code>.checktypes.Denied denied = 2;</code> 842 */ 843 public Builder clearDenied() { 844 if (deniedBuilder_ == null) { 845 if (typeCase_ == 2) { 846 typeCase_ = 0; 847 type_ = null; 848 onChanged(); 849 } 850 } else { 851 if (typeCase_ == 2) { 852 typeCase_ = 0; 853 type_ = null; 854 } 855 deniedBuilder_.clear(); 856 } 857 return this; 858 } 859 /** 860 * <code>.checktypes.Denied denied = 2;</code> 861 */ 862 public com.baidu.bifromq.plugin.authprovider.type.Denied.Builder getDeniedBuilder() { 863 return getDeniedFieldBuilder().getBuilder(); 864 } 865 /** 866 * <code>.checktypes.Denied denied = 2;</code> 867 */ 868 @java.lang.Override 869 public com.baidu.bifromq.plugin.authprovider.type.DeniedOrBuilder getDeniedOrBuilder() { 870 if ((typeCase_ == 2) && (deniedBuilder_ != null)) { 871 return deniedBuilder_.getMessageOrBuilder(); 872 } else { 873 if (typeCase_ == 2) { 874 return (com.baidu.bifromq.plugin.authprovider.type.Denied) type_; 875 } 876 return com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 877 } 878 } 879 /** 880 * <code>.checktypes.Denied denied = 2;</code> 881 */ 882 private com.google.protobuf.SingleFieldBuilderV3< 883 com.baidu.bifromq.plugin.authprovider.type.Denied, com.baidu.bifromq.plugin.authprovider.type.Denied.Builder, com.baidu.bifromq.plugin.authprovider.type.DeniedOrBuilder> 884 getDeniedFieldBuilder() { 885 if (deniedBuilder_ == null) { 886 if (!(typeCase_ == 2)) { 887 type_ = com.baidu.bifromq.plugin.authprovider.type.Denied.getDefaultInstance(); 888 } 889 deniedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 890 com.baidu.bifromq.plugin.authprovider.type.Denied, com.baidu.bifromq.plugin.authprovider.type.Denied.Builder, com.baidu.bifromq.plugin.authprovider.type.DeniedOrBuilder>( 891 (com.baidu.bifromq.plugin.authprovider.type.Denied) type_, 892 getParentForChildren(), 893 isClean()); 894 type_ = null; 895 } 896 typeCase_ = 2; 897 onChanged(); 898 return deniedBuilder_; 899 } 900 901 private com.google.protobuf.SingleFieldBuilderV3< 902 com.baidu.bifromq.plugin.authprovider.type.Error, com.baidu.bifromq.plugin.authprovider.type.Error.Builder, com.baidu.bifromq.plugin.authprovider.type.ErrorOrBuilder> errorBuilder_; 903 /** 904 * <code>.checktypes.Error error = 3;</code> 905 * @return Whether the error field is set. 906 */ 907 @java.lang.Override 908 public boolean hasError() { 909 return typeCase_ == 3; 910 } 911 /** 912 * <code>.checktypes.Error error = 3;</code> 913 * @return The error. 914 */ 915 @java.lang.Override 916 public com.baidu.bifromq.plugin.authprovider.type.Error getError() { 917 if (errorBuilder_ == null) { 918 if (typeCase_ == 3) { 919 return (com.baidu.bifromq.plugin.authprovider.type.Error) type_; 920 } 921 return com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 922 } else { 923 if (typeCase_ == 3) { 924 return errorBuilder_.getMessage(); 925 } 926 return com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 927 } 928 } 929 /** 930 * <code>.checktypes.Error error = 3;</code> 931 */ 932 public Builder setError(com.baidu.bifromq.plugin.authprovider.type.Error value) { 933 if (errorBuilder_ == null) { 934 if (value == null) { 935 throw new NullPointerException(); 936 } 937 type_ = value; 938 onChanged(); 939 } else { 940 errorBuilder_.setMessage(value); 941 } 942 typeCase_ = 3; 943 return this; 944 } 945 /** 946 * <code>.checktypes.Error error = 3;</code> 947 */ 948 public Builder setError( 949 com.baidu.bifromq.plugin.authprovider.type.Error.Builder builderForValue) { 950 if (errorBuilder_ == null) { 951 type_ = builderForValue.build(); 952 onChanged(); 953 } else { 954 errorBuilder_.setMessage(builderForValue.build()); 955 } 956 typeCase_ = 3; 957 return this; 958 } 959 /** 960 * <code>.checktypes.Error error = 3;</code> 961 */ 962 public Builder mergeError(com.baidu.bifromq.plugin.authprovider.type.Error value) { 963 if (errorBuilder_ == null) { 964 if (typeCase_ == 3 && 965 type_ != com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance()) { 966 type_ = com.baidu.bifromq.plugin.authprovider.type.Error.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Error) type_) 967 .mergeFrom(value).buildPartial(); 968 } else { 969 type_ = value; 970 } 971 onChanged(); 972 } else { 973 if (typeCase_ == 3) { 974 errorBuilder_.mergeFrom(value); 975 } else { 976 errorBuilder_.setMessage(value); 977 } 978 } 979 typeCase_ = 3; 980 return this; 981 } 982 /** 983 * <code>.checktypes.Error error = 3;</code> 984 */ 985 public Builder clearError() { 986 if (errorBuilder_ == null) { 987 if (typeCase_ == 3) { 988 typeCase_ = 0; 989 type_ = null; 990 onChanged(); 991 } 992 } else { 993 if (typeCase_ == 3) { 994 typeCase_ = 0; 995 type_ = null; 996 } 997 errorBuilder_.clear(); 998 } 999 return this; 1000 } 1001 /** 1002 * <code>.checktypes.Error error = 3;</code> 1003 */ 1004 public com.baidu.bifromq.plugin.authprovider.type.Error.Builder getErrorBuilder() { 1005 return getErrorFieldBuilder().getBuilder(); 1006 } 1007 /** 1008 * <code>.checktypes.Error error = 3;</code> 1009 */ 1010 @java.lang.Override 1011 public com.baidu.bifromq.plugin.authprovider.type.ErrorOrBuilder getErrorOrBuilder() { 1012 if ((typeCase_ == 3) && (errorBuilder_ != null)) { 1013 return errorBuilder_.getMessageOrBuilder(); 1014 } else { 1015 if (typeCase_ == 3) { 1016 return (com.baidu.bifromq.plugin.authprovider.type.Error) type_; 1017 } 1018 return com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 1019 } 1020 } 1021 /** 1022 * <code>.checktypes.Error error = 3;</code> 1023 */ 1024 private com.google.protobuf.SingleFieldBuilderV3< 1025 com.baidu.bifromq.plugin.authprovider.type.Error, com.baidu.bifromq.plugin.authprovider.type.Error.Builder, com.baidu.bifromq.plugin.authprovider.type.ErrorOrBuilder> 1026 getErrorFieldBuilder() { 1027 if (errorBuilder_ == null) { 1028 if (!(typeCase_ == 3)) { 1029 type_ = com.baidu.bifromq.plugin.authprovider.type.Error.getDefaultInstance(); 1030 } 1031 errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1032 com.baidu.bifromq.plugin.authprovider.type.Error, com.baidu.bifromq.plugin.authprovider.type.Error.Builder, com.baidu.bifromq.plugin.authprovider.type.ErrorOrBuilder>( 1033 (com.baidu.bifromq.plugin.authprovider.type.Error) type_, 1034 getParentForChildren(), 1035 isClean()); 1036 type_ = null; 1037 } 1038 typeCase_ = 3; 1039 onChanged(); 1040 return errorBuilder_; 1041 } 1042 @java.lang.Override 1043 public final Builder setUnknownFields( 1044 final com.google.protobuf.UnknownFieldSet unknownFields) { 1045 return super.setUnknownFields(unknownFields); 1046 } 1047 1048 @java.lang.Override 1049 public final Builder mergeUnknownFields( 1050 final com.google.protobuf.UnknownFieldSet unknownFields) { 1051 return super.mergeUnknownFields(unknownFields); 1052 } 1053 1054 1055 // @@protoc_insertion_point(builder_scope:checktypes.CheckResult) 1056 } 1057 1058 // @@protoc_insertion_point(class_scope:checktypes.CheckResult) 1059 private static final com.baidu.bifromq.plugin.authprovider.type.CheckResult DEFAULT_INSTANCE; 1060 static { 1061 DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.CheckResult(); 1062 } 1063 1064 public static com.baidu.bifromq.plugin.authprovider.type.CheckResult getDefaultInstance() { 1065 return DEFAULT_INSTANCE; 1066 } 1067 1068 private static final com.google.protobuf.Parser<CheckResult> 1069 PARSER = new com.google.protobuf.AbstractParser<CheckResult>() { 1070 @java.lang.Override 1071 public CheckResult parsePartialFrom( 1072 com.google.protobuf.CodedInputStream input, 1073 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1074 throws com.google.protobuf.InvalidProtocolBufferException { 1075 Builder builder = newBuilder(); 1076 try { 1077 builder.mergeFrom(input, extensionRegistry); 1078 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1079 throw e.setUnfinishedMessage(builder.buildPartial()); 1080 } catch (com.google.protobuf.UninitializedMessageException e) { 1081 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1082 } catch (java.io.IOException e) { 1083 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1084 .setUnfinishedMessage(builder.buildPartial()); 1085 } 1086 return builder.buildPartial(); 1087 } 1088 }; 1089 1090 public static com.google.protobuf.Parser<CheckResult> parser() { 1091 return PARSER; 1092 } 1093 1094 @java.lang.Override 1095 public com.google.protobuf.Parser<CheckResult> getParserForType() { 1096 return PARSER; 1097 } 1098 1099 @java.lang.Override 1100 public com.baidu.bifromq.plugin.authprovider.type.CheckResult getDefaultInstanceForType() { 1101 return DEFAULT_INSTANCE; 1102 } 1103 1104} 1105