All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ConsensusSubmitMessage.proto

package com.hederahashgraph.api.proto.java;

/**
 * Protobuf type {@code proto.ConsensusMessageChunkInfo}
 */
public  final class ConsensusMessageChunkInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:proto.ConsensusMessageChunkInfo)
    ConsensusMessageChunkInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ConsensusMessageChunkInfo.newBuilder() to construct.
  private ConsensusMessageChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ConsensusMessageChunkInfo() {
    total_ = 0;
    number_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ConsensusMessageChunkInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.hederahashgraph.api.proto.java.TransactionID.Builder subBuilder = null;
            if (initialTransactionID_ != null) {
              subBuilder = initialTransactionID_.toBuilder();
            }
            initialTransactionID_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionID.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(initialTransactionID_);
              initialTransactionID_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            total_ = input.readInt32();
            break;
          }
          case 24: {

            number_ = input.readInt32();
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.hederahashgraph.api.proto.java.ConsensusSubmitMessage.internal_static_proto_ConsensusMessageChunkInfo_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.hederahashgraph.api.proto.java.ConsensusSubmitMessage.internal_static_proto_ConsensusMessageChunkInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.class, com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.Builder.class);
  }

  public static final int INITIALTRANSACTIONID_FIELD_NUMBER = 1;
  private com.hederahashgraph.api.proto.java.TransactionID initialTransactionID_;
  /**
   * 
   * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
   * 
* * .proto.TransactionID initialTransactionID = 1; */ public boolean hasInitialTransactionID() { return initialTransactionID_ != null; } /** *
   * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
   * 
* * .proto.TransactionID initialTransactionID = 1; */ public com.hederahashgraph.api.proto.java.TransactionID getInitialTransactionID() { return initialTransactionID_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : initialTransactionID_; } /** *
   * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
   * 
* * .proto.TransactionID initialTransactionID = 1; */ public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getInitialTransactionIDOrBuilder() { return getInitialTransactionID(); } public static final int TOTAL_FIELD_NUMBER = 2; private int total_; /** *
   * The total number of chunks in the message.
   * 
* * int32 total = 2; */ public int getTotal() { return total_; } public static final int NUMBER_FIELD_NUMBER = 3; private int number_; /** *
   * The sequence number (from 1 to total) of the current chunk in the message.
   * 
* * int32 number = 3; */ public int getNumber() { return number_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (initialTransactionID_ != null) { output.writeMessage(1, getInitialTransactionID()); } if (total_ != 0) { output.writeInt32(2, total_); } if (number_ != 0) { output.writeInt32(3, number_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (initialTransactionID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInitialTransactionID()); } if (total_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, total_); } if (number_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, number_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo other = (com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo) obj; boolean result = true; result = result && (hasInitialTransactionID() == other.hasInitialTransactionID()); if (hasInitialTransactionID()) { result = result && getInitialTransactionID() .equals(other.getInitialTransactionID()); } result = result && (getTotal() == other.getTotal()); result = result && (getNumber() == other.getNumber()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInitialTransactionID()) { hash = (37 * hash) + INITIALTRANSACTIONID_FIELD_NUMBER; hash = (53 * hash) + getInitialTransactionID().hashCode(); } hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotal(); hash = (37 * hash) + NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNumber(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto.ConsensusMessageChunkInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConsensusMessageChunkInfo) com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ConsensusSubmitMessage.internal_static_proto_ConsensusMessageChunkInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ConsensusSubmitMessage.internal_static_proto_ConsensusMessageChunkInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.class, com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (initialTransactionIDBuilder_ == null) { initialTransactionID_ = null; } else { initialTransactionID_ = null; initialTransactionIDBuilder_ = null; } total_ = 0; number_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.ConsensusSubmitMessage.internal_static_proto_ConsensusMessageChunkInfo_descriptor; } public com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.getDefaultInstance(); } public com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo build() { com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo buildPartial() { com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo result = new com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo(this); if (initialTransactionIDBuilder_ == null) { result.initialTransactionID_ = initialTransactionID_; } else { result.initialTransactionID_ = initialTransactionIDBuilder_.build(); } result.total_ = total_; result.number_ = number_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo) { return mergeFrom((com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo other) { if (other == com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo.getDefaultInstance()) return this; if (other.hasInitialTransactionID()) { mergeInitialTransactionID(other.getInitialTransactionID()); } if (other.getTotal() != 0) { setTotal(other.getTotal()); } if (other.getNumber() != 0) { setNumber(other.getNumber()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.TransactionID initialTransactionID_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder> initialTransactionIDBuilder_; /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public boolean hasInitialTransactionID() { return initialTransactionIDBuilder_ != null || initialTransactionID_ != null; } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public com.hederahashgraph.api.proto.java.TransactionID getInitialTransactionID() { if (initialTransactionIDBuilder_ == null) { return initialTransactionID_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : initialTransactionID_; } else { return initialTransactionIDBuilder_.getMessage(); } } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public Builder setInitialTransactionID(com.hederahashgraph.api.proto.java.TransactionID value) { if (initialTransactionIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initialTransactionID_ = value; onChanged(); } else { initialTransactionIDBuilder_.setMessage(value); } return this; } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public Builder setInitialTransactionID( com.hederahashgraph.api.proto.java.TransactionID.Builder builderForValue) { if (initialTransactionIDBuilder_ == null) { initialTransactionID_ = builderForValue.build(); onChanged(); } else { initialTransactionIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public Builder mergeInitialTransactionID(com.hederahashgraph.api.proto.java.TransactionID value) { if (initialTransactionIDBuilder_ == null) { if (initialTransactionID_ != null) { initialTransactionID_ = com.hederahashgraph.api.proto.java.TransactionID.newBuilder(initialTransactionID_).mergeFrom(value).buildPartial(); } else { initialTransactionID_ = value; } onChanged(); } else { initialTransactionIDBuilder_.mergeFrom(value); } return this; } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public Builder clearInitialTransactionID() { if (initialTransactionIDBuilder_ == null) { initialTransactionID_ = null; onChanged(); } else { initialTransactionID_ = null; initialTransactionIDBuilder_ = null; } return this; } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public com.hederahashgraph.api.proto.java.TransactionID.Builder getInitialTransactionIDBuilder() { onChanged(); return getInitialTransactionIDFieldBuilder().getBuilder(); } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getInitialTransactionIDOrBuilder() { if (initialTransactionIDBuilder_ != null) { return initialTransactionIDBuilder_.getMessageOrBuilder(); } else { return initialTransactionID_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : initialTransactionID_; } } /** *
     * TransactionID of the first chunk, gets copied to every subsequent chunk in a fragmented message.
     * 
* * .proto.TransactionID initialTransactionID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder> getInitialTransactionIDFieldBuilder() { if (initialTransactionIDBuilder_ == null) { initialTransactionIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>( getInitialTransactionID(), getParentForChildren(), isClean()); initialTransactionID_ = null; } return initialTransactionIDBuilder_; } private int total_ ; /** *
     * The total number of chunks in the message.
     * 
* * int32 total = 2; */ public int getTotal() { return total_; } /** *
     * The total number of chunks in the message.
     * 
* * int32 total = 2; */ public Builder setTotal(int value) { total_ = value; onChanged(); return this; } /** *
     * The total number of chunks in the message.
     * 
* * int32 total = 2; */ public Builder clearTotal() { total_ = 0; onChanged(); return this; } private int number_ ; /** *
     * The sequence number (from 1 to total) of the current chunk in the message.
     * 
* * int32 number = 3; */ public int getNumber() { return number_; } /** *
     * The sequence number (from 1 to total) of the current chunk in the message.
     * 
* * int32 number = 3; */ public Builder setNumber(int value) { number_ = value; onChanged(); return this; } /** *
     * The sequence number (from 1 to total) of the current chunk in the message.
     * 
* * int32 number = 3; */ public Builder clearNumber() { number_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ConsensusMessageChunkInfo) } // @@protoc_insertion_point(class_scope:proto.ConsensusMessageChunkInfo) private static final com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo(); } public static com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConsensusMessageChunkInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusMessageChunkInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.hederahashgraph.api.proto.java.ConsensusMessageChunkInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy