DevSplit.java 19.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
package cn.com.glsx.kafka.protocol;// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: dev_split.proto

public final class DevSplit {
  private DevSplit() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface devSplitOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required int32 vid = 1;
    boolean hasVid();
    int getVid();

    // required string standno = 2;
    boolean hasStandno();
    String getStandno();

    // required int32 issplit = 3;
    boolean hasIssplit();
    int getIssplit();

    // required string sendtime = 4;
    boolean hasSendtime();
    String getSendtime();
  }
  public static final class devSplit extends
      com.google.protobuf.GeneratedMessage
      implements devSplitOrBuilder {
    // Use devSplit.newBuilder() to construct.
    private devSplit(Builder builder) {
      super(builder);
    }
    private devSplit(boolean noInit) {}

    private static final devSplit defaultInstance;
    public static devSplit getDefaultInstance() {
      return defaultInstance;
    }

    public devSplit getDefaultInstanceForType() {
      return defaultInstance;
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return DevSplit.internal_static_devSplit_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return DevSplit.internal_static_devSplit_fieldAccessorTable;
    }

    private int bitField0_;
    // required int32 vid = 1;
    public static final int VID_FIELD_NUMBER = 1;
    private int vid_;
    public boolean hasVid() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public int getVid() {
      return vid_;
    }

    // required string standno = 2;
    public static final int STANDNO_FIELD_NUMBER = 2;
    private Object standno_;
    public boolean hasStandno() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public String getStandno() {
      Object ref = standno_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          standno_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getStandnoBytes() {
      Object ref = standno_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        standno_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // required int32 issplit = 3;
    public static final int ISSPLIT_FIELD_NUMBER = 3;
    private int issplit_;
    public boolean hasIssplit() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public int getIssplit() {
      return issplit_;
    }

    // required string sendtime = 4;
    public static final int SENDTIME_FIELD_NUMBER = 4;
    private Object sendtime_;
    public boolean hasSendtime() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    public String getSendtime() {
      Object ref = sendtime_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          sendtime_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getSendtimeBytes() {
      Object ref = sendtime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        sendtime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      vid_ = 0;
      standno_ = "";
      issplit_ = 0;
      sendtime_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasVid()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStandno()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIssplit()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSendtime()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(1, vid_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getStandnoBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeInt32(3, issplit_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getSendtimeBytes());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, vid_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getStandnoBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, issplit_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getSendtimeBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @Override
    protected Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static devSplit parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static devSplit parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static devSplit parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static devSplit parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static devSplit parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static devSplit parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static devSplit parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static devSplit parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static devSplit parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static devSplit parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(devSplit prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @Override
    protected Builder newBuilderForType(
        BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements devSplitOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return DevSplit.internal_static_devSplit_descriptor;
      }

      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return DevSplit.internal_static_devSplit_fieldAccessorTable;
      }

      // Construct using DevSplit.devSplit.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        vid_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        standno_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        issplit_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        sendtime_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return devSplit.getDescriptor();
      }

      public devSplit getDefaultInstanceForType() {
        return devSplit.getDefaultInstance();
      }

      public devSplit build() {
        devSplit result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      private devSplit buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        devSplit result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }

      public devSplit buildPartial() {
        devSplit result = new devSplit(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.vid_ = vid_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.standno_ = standno_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.issplit_ = issplit_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.sendtime_ = sendtime_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof devSplit) {
          return mergeFrom((devSplit)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(devSplit other) {
        if (other == devSplit.getDefaultInstance()) return this;
        if (other.hasVid()) {
          setVid(other.getVid());
        }
        if (other.hasStandno()) {
          setStandno(other.getStandno());
        }
        if (other.hasIssplit()) {
          setIssplit(other.getIssplit());
        }
        if (other.hasSendtime()) {
          setSendtime(other.getSendtime());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasVid()) {

          return false;
        }
        if (!hasStandno()) {

          return false;
        }
        if (!hasIssplit()) {

          return false;
        }
        if (!hasSendtime()) {

          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              onChanged();
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              vid_ = input.readInt32();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              standno_ = input.readBytes();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              issplit_ = input.readInt32();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              sendtime_ = input.readBytes();
              break;
            }
          }
        }
      }

      private int bitField0_;

      // required int32 vid = 1;
      private int vid_ ;
      public boolean hasVid() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public int getVid() {
        return vid_;
      }
      public Builder setVid(int value) {
        bitField0_ |= 0x00000001;
        vid_ = value;
        onChanged();
        return this;
      }
      public Builder clearVid() {
        bitField0_ = (bitField0_ & ~0x00000001);
        vid_ = 0;
        onChanged();
        return this;
      }

      // required string standno = 2;
      private Object standno_ = "";
      public boolean hasStandno() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public String getStandno() {
        Object ref = standno_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          standno_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setStandno(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        standno_ = value;
        onChanged();
        return this;
      }
      public Builder clearStandno() {
        bitField0_ = (bitField0_ & ~0x00000002);
        standno_ = getDefaultInstance().getStandno();
        onChanged();
        return this;
      }
      void setStandno(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000002;
        standno_ = value;
        onChanged();
      }

      // required int32 issplit = 3;
      private int issplit_ ;
      public boolean hasIssplit() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public int getIssplit() {
        return issplit_;
      }
      public Builder setIssplit(int value) {
        bitField0_ |= 0x00000004;
        issplit_ = value;
        onChanged();
        return this;
      }
      public Builder clearIssplit() {
        bitField0_ = (bitField0_ & ~0x00000004);
        issplit_ = 0;
        onChanged();
        return this;
      }

      // required string sendtime = 4;
      private Object sendtime_ = "";
      public boolean hasSendtime() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      public String getSendtime() {
        Object ref = sendtime_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          sendtime_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setSendtime(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        sendtime_ = value;
        onChanged();
        return this;
      }
      public Builder clearSendtime() {
        bitField0_ = (bitField0_ & ~0x00000008);
        sendtime_ = getDefaultInstance().getSendtime();
        onChanged();
        return this;
      }
      void setSendtime(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000008;
        sendtime_ = value;
        onChanged();
      }

      // @@protoc_insertion_point(builder_scope:devSplit)
    }

    static {
      defaultInstance = new devSplit(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:devSplit)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_devSplit_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_devSplit_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\017dev_split.proto\"K\n\010devSplit\022\013\n\003vid\030\001 \002" +
      "(\005\022\017\n\007standno\030\002 \002(\t\022\017\n\007issplit\030\003 \002(\005\022\020\n\010" +
      "sendtime\030\004 \002(\t"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_devSplit_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_devSplit_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_devSplit_descriptor,
              new String[] { "Vid", "Standno", "Issplit", "Sendtime", },
              devSplit.class,
              devSplit.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}