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