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