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