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