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