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

main.org.onflow.protobuf.entities.BlockHeaderOuterClass Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: flow/entities/block_header.proto

package org.onflow.protobuf.entities;

public final class BlockHeaderOuterClass {
  private BlockHeaderOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface BlockHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:flow.entities.BlockHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes id = 1;
     * @return The id.
     */
    com.google.protobuf.ByteString getId();

    /**
     * bytes parent_id = 2;
     * @return The parentId.
     */
    com.google.protobuf.ByteString getParentId();

    /**
     * uint64 height = 3;
     * @return The height.
     */
    long getHeight();

    /**
     * .google.protobuf.Timestamp timestamp = 4;
     * @return Whether the timestamp field is set.
     */
    boolean hasTimestamp();
    /**
     * .google.protobuf.Timestamp timestamp = 4;
     * @return The timestamp.
     */
    com.google.protobuf.Timestamp getTimestamp();
    /**
     * .google.protobuf.Timestamp timestamp = 4;
     */
    com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();

    /**
     * bytes payload_hash = 5;
     * @return The payloadHash.
     */
    com.google.protobuf.ByteString getPayloadHash();

    /**
     * uint64 view = 6;
     * @return The view.
     */
    long getView();

    /**
     * 
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @return A list containing the parentVoterIds. */ java.util.List getParentVoterIdsList(); /** *
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @return The count of parentVoterIds. */ int getParentVoterIdsCount(); /** *
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @param index The index of the element to return. * @return The parentVoterIds at the given index. */ com.google.protobuf.ByteString getParentVoterIds(int index); /** * bytes parent_voter_sig_data = 8; * @return The parentVoterSigData. */ com.google.protobuf.ByteString getParentVoterSigData(); /** * bytes proposer_id = 9; * @return The proposerId. */ com.google.protobuf.ByteString getProposerId(); /** * bytes proposer_sig_data = 10; * @return The proposerSigData. */ com.google.protobuf.ByteString getProposerSigData(); /** * string chain_id = 11; * @return The chainId. */ java.lang.String getChainId(); /** * string chain_id = 11; * @return The bytes for chainId. */ com.google.protobuf.ByteString getChainIdBytes(); /** * bytes parent_voter_indices = 12; * @return The parentVoterIndices. */ com.google.protobuf.ByteString getParentVoterIndices(); /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return Whether the lastViewTc field is set. */ boolean hasLastViewTc(); /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return The lastViewTc. */ org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getLastViewTc(); /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder getLastViewTcOrBuilder(); /** * uint64 parent_view = 14; * @return The parentView. */ long getParentView(); } /** * Protobuf type {@code flow.entities.BlockHeader} */ public static final class BlockHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flow.entities.BlockHeader) BlockHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use BlockHeader.newBuilder() to construct. private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockHeader() { id_ = com.google.protobuf.ByteString.EMPTY; parentId_ = com.google.protobuf.ByteString.EMPTY; payloadHash_ = com.google.protobuf.ByteString.EMPTY; parentVoterIds_ = java.util.Collections.emptyList(); parentVoterSigData_ = com.google.protobuf.ByteString.EMPTY; proposerId_ = com.google.protobuf.ByteString.EMPTY; proposerSigData_ = com.google.protobuf.ByteString.EMPTY; chainId_ = ""; parentVoterIndices_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockHeader( 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; case 10: { id_ = input.readBytes(); break; } case 18: { parentId_ = input.readBytes(); break; } case 24: { height_ = input.readUInt64(); break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 42: { payloadHash_ = input.readBytes(); break; } case 48: { view_ = input.readUInt64(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parentVoterIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } parentVoterIds_.add(input.readBytes()); break; } case 66: { parentVoterSigData_ = input.readBytes(); break; } case 74: { proposerId_ = input.readBytes(); break; } case 82: { proposerSigData_ = input.readBytes(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); chainId_ = s; break; } case 98: { parentVoterIndices_ = input.readBytes(); break; } case 106: { org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder subBuilder = null; if (lastViewTc_ != null) { subBuilder = lastViewTc_.toBuilder(); } lastViewTc_ = input.readMessage(org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastViewTc_); lastViewTc_ = subBuilder.buildPartial(); } break; } case 112: { parentView_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { parentVoterIds_ = java.util.Collections.unmodifiableList(parentVoterIds_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_BlockHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString id_; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } public static final int PARENT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString parentId_; /** * bytes parent_id = 2; * @return The parentId. */ @java.lang.Override public com.google.protobuf.ByteString getParentId() { return parentId_; } public static final int HEIGHT_FIELD_NUMBER = 3; private long height_; /** * uint64 height = 3; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int TIMESTAMP_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 4; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 4; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int PAYLOAD_HASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString payloadHash_; /** * bytes payload_hash = 5; * @return The payloadHash. */ @java.lang.Override public com.google.protobuf.ByteString getPayloadHash() { return payloadHash_; } public static final int VIEW_FIELD_NUMBER = 6; private long view_; /** * uint64 view = 6; * @return The view. */ @java.lang.Override public long getView() { return view_; } public static final int PARENT_VOTER_IDS_FIELD_NUMBER = 7; private java.util.List parentVoterIds_; /** *
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @return A list containing the parentVoterIds. */ @java.lang.Override public java.util.List getParentVoterIdsList() { return parentVoterIds_; } /** *
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @return The count of parentVoterIds. */ public int getParentVoterIdsCount() { return parentVoterIds_.size(); } /** *
     * deprecated!! value will be empty. replaced by parent_vote_indices
     * 
* * repeated bytes parent_voter_ids = 7; * @param index The index of the element to return. * @return The parentVoterIds at the given index. */ public com.google.protobuf.ByteString getParentVoterIds(int index) { return parentVoterIds_.get(index); } public static final int PARENT_VOTER_SIG_DATA_FIELD_NUMBER = 8; private com.google.protobuf.ByteString parentVoterSigData_; /** * bytes parent_voter_sig_data = 8; * @return The parentVoterSigData. */ @java.lang.Override public com.google.protobuf.ByteString getParentVoterSigData() { return parentVoterSigData_; } public static final int PROPOSER_ID_FIELD_NUMBER = 9; private com.google.protobuf.ByteString proposerId_; /** * bytes proposer_id = 9; * @return The proposerId. */ @java.lang.Override public com.google.protobuf.ByteString getProposerId() { return proposerId_; } public static final int PROPOSER_SIG_DATA_FIELD_NUMBER = 10; private com.google.protobuf.ByteString proposerSigData_; /** * bytes proposer_sig_data = 10; * @return The proposerSigData. */ @java.lang.Override public com.google.protobuf.ByteString getProposerSigData() { return proposerSigData_; } public static final int CHAIN_ID_FIELD_NUMBER = 11; private volatile java.lang.Object chainId_; /** * string chain_id = 11; * @return The chainId. */ @java.lang.Override public java.lang.String getChainId() { java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainId_ = s; return s; } } /** * string chain_id = 11; * @return The bytes for chainId. */ @java.lang.Override public com.google.protobuf.ByteString getChainIdBytes() { java.lang.Object ref = chainId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_VOTER_INDICES_FIELD_NUMBER = 12; private com.google.protobuf.ByteString parentVoterIndices_; /** * bytes parent_voter_indices = 12; * @return The parentVoterIndices. */ @java.lang.Override public com.google.protobuf.ByteString getParentVoterIndices() { return parentVoterIndices_; } public static final int LAST_VIEW_TC_FIELD_NUMBER = 13; private org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate lastViewTc_; /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return Whether the lastViewTc field is set. */ @java.lang.Override public boolean hasLastViewTc() { return lastViewTc_ != null; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return The lastViewTc. */ @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getLastViewTc() { return lastViewTc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.getDefaultInstance() : lastViewTc_; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder getLastViewTcOrBuilder() { return getLastViewTc(); } public static final int PARENT_VIEW_FIELD_NUMBER = 14; private long parentView_; /** * uint64 parent_view = 14; * @return The parentView. */ @java.lang.Override public long getParentView() { return parentView_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!id_.isEmpty()) { output.writeBytes(1, id_); } if (!parentId_.isEmpty()) { output.writeBytes(2, parentId_); } if (height_ != 0L) { output.writeUInt64(3, height_); } if (timestamp_ != null) { output.writeMessage(4, getTimestamp()); } if (!payloadHash_.isEmpty()) { output.writeBytes(5, payloadHash_); } if (view_ != 0L) { output.writeUInt64(6, view_); } for (int i = 0; i < parentVoterIds_.size(); i++) { output.writeBytes(7, parentVoterIds_.get(i)); } if (!parentVoterSigData_.isEmpty()) { output.writeBytes(8, parentVoterSigData_); } if (!proposerId_.isEmpty()) { output.writeBytes(9, proposerId_); } if (!proposerSigData_.isEmpty()) { output.writeBytes(10, proposerSigData_); } if (!getChainIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, chainId_); } if (!parentVoterIndices_.isEmpty()) { output.writeBytes(12, parentVoterIndices_); } if (lastViewTc_ != null) { output.writeMessage(13, getLastViewTc()); } if (parentView_ != 0L) { output.writeUInt64(14, parentView_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, id_); } if (!parentId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, parentId_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, height_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTimestamp()); } if (!payloadHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, payloadHash_); } if (view_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, view_); } { int dataSize = 0; for (int i = 0; i < parentVoterIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(parentVoterIds_.get(i)); } size += dataSize; size += 1 * getParentVoterIdsList().size(); } if (!parentVoterSigData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, parentVoterSigData_); } if (!proposerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, proposerId_); } if (!proposerSigData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, proposerSigData_); } if (!getChainIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, chainId_); } if (!parentVoterIndices_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, parentVoterIndices_); } if (lastViewTc_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getLastViewTc()); } if (parentView_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, parentView_); } 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader)) { return super.equals(obj); } org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader other = (org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader) obj; if (!getId() .equals(other.getId())) return false; if (!getParentId() .equals(other.getParentId())) return false; if (getHeight() != other.getHeight()) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getPayloadHash() .equals(other.getPayloadHash())) return false; if (getView() != other.getView()) return false; if (!getParentVoterIdsList() .equals(other.getParentVoterIdsList())) return false; if (!getParentVoterSigData() .equals(other.getParentVoterSigData())) return false; if (!getProposerId() .equals(other.getProposerId())) return false; if (!getProposerSigData() .equals(other.getProposerSigData())) return false; if (!getChainId() .equals(other.getChainId())) return false; if (!getParentVoterIndices() .equals(other.getParentVoterIndices())) return false; if (hasLastViewTc() != other.hasLastViewTc()) return false; if (hasLastViewTc()) { if (!getLastViewTc() .equals(other.getLastViewTc())) return false; } if (getParentView() != other.getParentView()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PARENT_ID_FIELD_NUMBER; hash = (53 * hash) + getParentId().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + PAYLOAD_HASH_FIELD_NUMBER; hash = (53 * hash) + getPayloadHash().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getView()); if (getParentVoterIdsCount() > 0) { hash = (37 * hash) + PARENT_VOTER_IDS_FIELD_NUMBER; hash = (53 * hash) + getParentVoterIdsList().hashCode(); } hash = (37 * hash) + PARENT_VOTER_SIG_DATA_FIELD_NUMBER; hash = (53 * hash) + getParentVoterSigData().hashCode(); hash = (37 * hash) + PROPOSER_ID_FIELD_NUMBER; hash = (53 * hash) + getProposerId().hashCode(); hash = (37 * hash) + PROPOSER_SIG_DATA_FIELD_NUMBER; hash = (53 * hash) + getProposerSigData().hashCode(); hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; hash = (53 * hash) + getChainId().hashCode(); hash = (37 * hash) + PARENT_VOTER_INDICES_FIELD_NUMBER; hash = (53 * hash) + getParentVoterIndices().hashCode(); if (hasLastViewTc()) { hash = (37 * hash) + LAST_VIEW_TC_FIELD_NUMBER; hash = (53 * hash) + getLastViewTc().hashCode(); } hash = (37 * hash) + PARENT_VIEW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getParentView()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 flow.entities.BlockHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flow.entities.BlockHeader) org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_BlockHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_BlockHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder.class); } // Construct using org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = com.google.protobuf.ByteString.EMPTY; parentId_ = com.google.protobuf.ByteString.EMPTY; height_ = 0L; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } payloadHash_ = com.google.protobuf.ByteString.EMPTY; view_ = 0L; parentVoterIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); parentVoterSigData_ = com.google.protobuf.ByteString.EMPTY; proposerId_ = com.google.protobuf.ByteString.EMPTY; proposerSigData_ = com.google.protobuf.ByteString.EMPTY; chainId_ = ""; parentVoterIndices_ = com.google.protobuf.ByteString.EMPTY; if (lastViewTcBuilder_ == null) { lastViewTc_ = null; } else { lastViewTc_ = null; lastViewTcBuilder_ = null; } parentView_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_BlockHeader_descriptor; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstanceForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance(); } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader build() { org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader buildPartial() { org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader result = new org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.parentId_ = parentId_; result.height_ = height_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.payloadHash_ = payloadHash_; result.view_ = view_; if (((bitField0_ & 0x00000001) != 0)) { parentVoterIds_ = java.util.Collections.unmodifiableList(parentVoterIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.parentVoterIds_ = parentVoterIds_; result.parentVoterSigData_ = parentVoterSigData_; result.proposerId_ = proposerId_; result.proposerSigData_ = proposerSigData_; result.chainId_ = chainId_; result.parentVoterIndices_ = parentVoterIndices_; if (lastViewTcBuilder_ == null) { result.lastViewTc_ = lastViewTc_; } else { result.lastViewTc_ = lastViewTcBuilder_.build(); } result.parentView_ = parentView_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader) { return mergeFrom((org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader other) { if (other == org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance()) return this; if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId()); } if (other.getParentId() != com.google.protobuf.ByteString.EMPTY) { setParentId(other.getParentId()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getPayloadHash() != com.google.protobuf.ByteString.EMPTY) { setPayloadHash(other.getPayloadHash()); } if (other.getView() != 0L) { setView(other.getView()); } if (!other.parentVoterIds_.isEmpty()) { if (parentVoterIds_.isEmpty()) { parentVoterIds_ = other.parentVoterIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParentVoterIdsIsMutable(); parentVoterIds_.addAll(other.parentVoterIds_); } onChanged(); } if (other.getParentVoterSigData() != com.google.protobuf.ByteString.EMPTY) { setParentVoterSigData(other.getParentVoterSigData()); } if (other.getProposerId() != com.google.protobuf.ByteString.EMPTY) { setProposerId(other.getProposerId()); } if (other.getProposerSigData() != com.google.protobuf.ByteString.EMPTY) { setProposerSigData(other.getProposerSigData()); } if (!other.getChainId().isEmpty()) { chainId_ = other.chainId_; onChanged(); } if (other.getParentVoterIndices() != com.google.protobuf.ByteString.EMPTY) { setParentVoterIndices(other.getParentVoterIndices()); } if (other.hasLastViewTc()) { mergeLastViewTc(other.getLastViewTc()); } if (other.getParentView() != 0L) { setParentView(other.getParentView()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } /** * bytes id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * bytes id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } private com.google.protobuf.ByteString parentId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parent_id = 2; * @return The parentId. */ @java.lang.Override public com.google.protobuf.ByteString getParentId() { return parentId_; } /** * bytes parent_id = 2; * @param value The parentId to set. * @return This builder for chaining. */ public Builder setParentId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentId_ = value; onChanged(); return this; } /** * bytes parent_id = 2; * @return This builder for chaining. */ public Builder clearParentId() { parentId_ = getDefaultInstance().getParentId(); onChanged(); return this; } private long height_ ; /** * uint64 height = 3; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * uint64 height = 3; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** * uint64 height = 3; * @return This builder for chaining. */ public Builder clearHeight() { height_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 4; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 4; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 4; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 4; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 4; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 4; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 4; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 4; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString payloadHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload_hash = 5; * @return The payloadHash. */ @java.lang.Override public com.google.protobuf.ByteString getPayloadHash() { return payloadHash_; } /** * bytes payload_hash = 5; * @param value The payloadHash to set. * @return This builder for chaining. */ public Builder setPayloadHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payloadHash_ = value; onChanged(); return this; } /** * bytes payload_hash = 5; * @return This builder for chaining. */ public Builder clearPayloadHash() { payloadHash_ = getDefaultInstance().getPayloadHash(); onChanged(); return this; } private long view_ ; /** * uint64 view = 6; * @return The view. */ @java.lang.Override public long getView() { return view_; } /** * uint64 view = 6; * @param value The view to set. * @return This builder for chaining. */ public Builder setView(long value) { view_ = value; onChanged(); return this; } /** * uint64 view = 6; * @return This builder for chaining. */ public Builder clearView() { view_ = 0L; onChanged(); return this; } private java.util.List parentVoterIds_ = java.util.Collections.emptyList(); private void ensureParentVoterIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parentVoterIds_ = new java.util.ArrayList(parentVoterIds_); bitField0_ |= 0x00000001; } } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @return A list containing the parentVoterIds. */ public java.util.List getParentVoterIdsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(parentVoterIds_) : parentVoterIds_; } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @return The count of parentVoterIds. */ public int getParentVoterIdsCount() { return parentVoterIds_.size(); } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @param index The index of the element to return. * @return The parentVoterIds at the given index. */ public com.google.protobuf.ByteString getParentVoterIds(int index) { return parentVoterIds_.get(index); } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @param index The index to set the value at. * @param value The parentVoterIds to set. * @return This builder for chaining. */ public Builder setParentVoterIds( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureParentVoterIdsIsMutable(); parentVoterIds_.set(index, value); onChanged(); return this; } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @param value The parentVoterIds to add. * @return This builder for chaining. */ public Builder addParentVoterIds(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureParentVoterIdsIsMutable(); parentVoterIds_.add(value); onChanged(); return this; } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @param values The parentVoterIds to add. * @return This builder for chaining. */ public Builder addAllParentVoterIds( java.lang.Iterable values) { ensureParentVoterIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parentVoterIds_); onChanged(); return this; } /** *
       * deprecated!! value will be empty. replaced by parent_vote_indices
       * 
* * repeated bytes parent_voter_ids = 7; * @return This builder for chaining. */ public Builder clearParentVoterIds() { parentVoterIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString parentVoterSigData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parent_voter_sig_data = 8; * @return The parentVoterSigData. */ @java.lang.Override public com.google.protobuf.ByteString getParentVoterSigData() { return parentVoterSigData_; } /** * bytes parent_voter_sig_data = 8; * @param value The parentVoterSigData to set. * @return This builder for chaining. */ public Builder setParentVoterSigData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentVoterSigData_ = value; onChanged(); return this; } /** * bytes parent_voter_sig_data = 8; * @return This builder for chaining. */ public Builder clearParentVoterSigData() { parentVoterSigData_ = getDefaultInstance().getParentVoterSigData(); onChanged(); return this; } private com.google.protobuf.ByteString proposerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes proposer_id = 9; * @return The proposerId. */ @java.lang.Override public com.google.protobuf.ByteString getProposerId() { return proposerId_; } /** * bytes proposer_id = 9; * @param value The proposerId to set. * @return This builder for chaining. */ public Builder setProposerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposerId_ = value; onChanged(); return this; } /** * bytes proposer_id = 9; * @return This builder for chaining. */ public Builder clearProposerId() { proposerId_ = getDefaultInstance().getProposerId(); onChanged(); return this; } private com.google.protobuf.ByteString proposerSigData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes proposer_sig_data = 10; * @return The proposerSigData. */ @java.lang.Override public com.google.protobuf.ByteString getProposerSigData() { return proposerSigData_; } /** * bytes proposer_sig_data = 10; * @param value The proposerSigData to set. * @return This builder for chaining. */ public Builder setProposerSigData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposerSigData_ = value; onChanged(); return this; } /** * bytes proposer_sig_data = 10; * @return This builder for chaining. */ public Builder clearProposerSigData() { proposerSigData_ = getDefaultInstance().getProposerSigData(); onChanged(); return this; } private java.lang.Object chainId_ = ""; /** * string chain_id = 11; * @return The chainId. */ public java.lang.String getChainId() { java.lang.Object ref = chainId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string chain_id = 11; * @return The bytes for chainId. */ public com.google.protobuf.ByteString getChainIdBytes() { java.lang.Object ref = chainId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string chain_id = 11; * @param value The chainId to set. * @return This builder for chaining. */ public Builder setChainId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chainId_ = value; onChanged(); return this; } /** * string chain_id = 11; * @return This builder for chaining. */ public Builder clearChainId() { chainId_ = getDefaultInstance().getChainId(); onChanged(); return this; } /** * string chain_id = 11; * @param value The bytes for chainId to set. * @return This builder for chaining. */ public Builder setChainIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chainId_ = value; onChanged(); return this; } private com.google.protobuf.ByteString parentVoterIndices_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parent_voter_indices = 12; * @return The parentVoterIndices. */ @java.lang.Override public com.google.protobuf.ByteString getParentVoterIndices() { return parentVoterIndices_; } /** * bytes parent_voter_indices = 12; * @param value The parentVoterIndices to set. * @return This builder for chaining. */ public Builder setParentVoterIndices(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentVoterIndices_ = value; onChanged(); return this; } /** * bytes parent_voter_indices = 12; * @return This builder for chaining. */ public Builder clearParentVoterIndices() { parentVoterIndices_ = getDefaultInstance().getParentVoterIndices(); onChanged(); return this; } private org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate lastViewTc_; private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder> lastViewTcBuilder_; /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return Whether the lastViewTc field is set. */ public boolean hasLastViewTc() { return lastViewTcBuilder_ != null || lastViewTc_ != null; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; * @return The lastViewTc. */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getLastViewTc() { if (lastViewTcBuilder_ == null) { return lastViewTc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.getDefaultInstance() : lastViewTc_; } else { return lastViewTcBuilder_.getMessage(); } } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public Builder setLastViewTc(org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate value) { if (lastViewTcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastViewTc_ = value; onChanged(); } else { lastViewTcBuilder_.setMessage(value); } return this; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public Builder setLastViewTc( org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder builderForValue) { if (lastViewTcBuilder_ == null) { lastViewTc_ = builderForValue.build(); onChanged(); } else { lastViewTcBuilder_.setMessage(builderForValue.build()); } return this; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public Builder mergeLastViewTc(org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate value) { if (lastViewTcBuilder_ == null) { if (lastViewTc_ != null) { lastViewTc_ = org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.newBuilder(lastViewTc_).mergeFrom(value).buildPartial(); } else { lastViewTc_ = value; } onChanged(); } else { lastViewTcBuilder_.mergeFrom(value); } return this; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public Builder clearLastViewTc() { if (lastViewTcBuilder_ == null) { lastViewTc_ = null; onChanged(); } else { lastViewTc_ = null; lastViewTcBuilder_ = null; } return this; } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder getLastViewTcBuilder() { onChanged(); return getLastViewTcFieldBuilder().getBuilder(); } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder getLastViewTcOrBuilder() { if (lastViewTcBuilder_ != null) { return lastViewTcBuilder_.getMessageOrBuilder(); } else { return lastViewTc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.getDefaultInstance() : lastViewTc_; } } /** * .flow.entities.TimeoutCertificate last_view_tc = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder> getLastViewTcFieldBuilder() { if (lastViewTcBuilder_ == null) { lastViewTcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder>( getLastViewTc(), getParentForChildren(), isClean()); lastViewTc_ = null; } return lastViewTcBuilder_; } private long parentView_ ; /** * uint64 parent_view = 14; * @return The parentView. */ @java.lang.Override public long getParentView() { return parentView_; } /** * uint64 parent_view = 14; * @param value The parentView to set. * @return This builder for chaining. */ public Builder setParentView(long value) { parentView_ = value; onChanged(); return this; } /** * uint64 parent_view = 14; * @return This builder for chaining. */ public Builder clearParentView() { parentView_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:flow.entities.BlockHeader) } // @@protoc_insertion_point(class_scope:flow.entities.BlockHeader) private static final org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader(); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockHeader(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeoutCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:flow.entities.TimeoutCertificate) com.google.protobuf.MessageOrBuilder { /** * uint64 view = 1; * @return The view. */ long getView(); /** * repeated uint64 high_qc_views = 2; * @return A list containing the highQcViews. */ java.util.List getHighQcViewsList(); /** * repeated uint64 high_qc_views = 2; * @return The count of highQcViews. */ int getHighQcViewsCount(); /** * repeated uint64 high_qc_views = 2; * @param index The index of the element to return. * @return The highQcViews at the given index. */ long getHighQcViews(int index); /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return Whether the highestQc field is set. */ boolean hasHighestQc(); /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return The highestQc. */ org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getHighestQc(); /** * .flow.entities.QuorumCertificate highest_qc = 3; */ org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder getHighestQcOrBuilder(); /** * bytes signer_indices = 4; * @return The signerIndices. */ com.google.protobuf.ByteString getSignerIndices(); /** * bytes sig_data = 5; * @return The sigData. */ com.google.protobuf.ByteString getSigData(); } /** * Protobuf type {@code flow.entities.TimeoutCertificate} */ public static final class TimeoutCertificate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flow.entities.TimeoutCertificate) TimeoutCertificateOrBuilder { private static final long serialVersionUID = 0L; // Use TimeoutCertificate.newBuilder() to construct. private TimeoutCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeoutCertificate() { highQcViews_ = emptyLongList(); signerIndices_ = com.google.protobuf.ByteString.EMPTY; sigData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TimeoutCertificate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeoutCertificate( 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; case 8: { view_ = input.readUInt64(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { highQcViews_ = newLongList(); mutable_bitField0_ |= 0x00000001; } highQcViews_.addLong(input.readUInt64()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { highQcViews_ = newLongList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { highQcViews_.addLong(input.readUInt64()); } input.popLimit(limit); break; } case 26: { org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder subBuilder = null; if (highestQc_ != null) { subBuilder = highestQc_.toBuilder(); } highestQc_ = input.readMessage(org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(highestQc_); highestQc_ = subBuilder.buildPartial(); } break; } case 34: { signerIndices_ = input.readBytes(); break; } case 42: { sigData_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { highQcViews_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_TimeoutCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_TimeoutCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder.class); } public static final int VIEW_FIELD_NUMBER = 1; private long view_; /** * uint64 view = 1; * @return The view. */ @java.lang.Override public long getView() { return view_; } public static final int HIGH_QC_VIEWS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.LongList highQcViews_; /** * repeated uint64 high_qc_views = 2; * @return A list containing the highQcViews. */ @java.lang.Override public java.util.List getHighQcViewsList() { return highQcViews_; } /** * repeated uint64 high_qc_views = 2; * @return The count of highQcViews. */ public int getHighQcViewsCount() { return highQcViews_.size(); } /** * repeated uint64 high_qc_views = 2; * @param index The index of the element to return. * @return The highQcViews at the given index. */ public long getHighQcViews(int index) { return highQcViews_.getLong(index); } private int highQcViewsMemoizedSerializedSize = -1; public static final int HIGHEST_QC_FIELD_NUMBER = 3; private org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate highestQc_; /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return Whether the highestQc field is set. */ @java.lang.Override public boolean hasHighestQc() { return highestQc_ != null; } /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return The highestQc. */ @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getHighestQc() { return highestQc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.getDefaultInstance() : highestQc_; } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder getHighestQcOrBuilder() { return getHighestQc(); } public static final int SIGNER_INDICES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString signerIndices_; /** * bytes signer_indices = 4; * @return The signerIndices. */ @java.lang.Override public com.google.protobuf.ByteString getSignerIndices() { return signerIndices_; } public static final int SIG_DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString sigData_; /** * bytes sig_data = 5; * @return The sigData. */ @java.lang.Override public com.google.protobuf.ByteString getSigData() { return sigData_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (view_ != 0L) { output.writeUInt64(1, view_); } if (getHighQcViewsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(highQcViewsMemoizedSerializedSize); } for (int i = 0; i < highQcViews_.size(); i++) { output.writeUInt64NoTag(highQcViews_.getLong(i)); } if (highestQc_ != null) { output.writeMessage(3, getHighestQc()); } if (!signerIndices_.isEmpty()) { output.writeBytes(4, signerIndices_); } if (!sigData_.isEmpty()) { output.writeBytes(5, sigData_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (view_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, view_); } { int dataSize = 0; for (int i = 0; i < highQcViews_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(highQcViews_.getLong(i)); } size += dataSize; if (!getHighQcViewsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } highQcViewsMemoizedSerializedSize = dataSize; } if (highestQc_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHighestQc()); } if (!signerIndices_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, signerIndices_); } if (!sigData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, sigData_); } 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate)) { return super.equals(obj); } org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate other = (org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate) obj; if (getView() != other.getView()) return false; if (!getHighQcViewsList() .equals(other.getHighQcViewsList())) return false; if (hasHighestQc() != other.hasHighestQc()) return false; if (hasHighestQc()) { if (!getHighestQc() .equals(other.getHighestQc())) return false; } if (!getSignerIndices() .equals(other.getSignerIndices())) return false; if (!getSigData() .equals(other.getSigData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getView()); if (getHighQcViewsCount() > 0) { hash = (37 * hash) + HIGH_QC_VIEWS_FIELD_NUMBER; hash = (53 * hash) + getHighQcViewsList().hashCode(); } if (hasHighestQc()) { hash = (37 * hash) + HIGHEST_QC_FIELD_NUMBER; hash = (53 * hash) + getHighestQc().hashCode(); } hash = (37 * hash) + SIGNER_INDICES_FIELD_NUMBER; hash = (53 * hash) + getSignerIndices().hashCode(); hash = (37 * hash) + SIG_DATA_FIELD_NUMBER; hash = (53 * hash) + getSigData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 flow.entities.TimeoutCertificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flow.entities.TimeoutCertificate) org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_TimeoutCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_TimeoutCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.Builder.class); } // Construct using org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); view_ = 0L; highQcViews_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); if (highestQcBuilder_ == null) { highestQc_ = null; } else { highestQc_ = null; highestQcBuilder_ = null; } signerIndices_ = com.google.protobuf.ByteString.EMPTY; sigData_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_TimeoutCertificate_descriptor; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getDefaultInstanceForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.getDefaultInstance(); } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate build() { org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate buildPartial() { org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate result = new org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate(this); int from_bitField0_ = bitField0_; result.view_ = view_; if (((bitField0_ & 0x00000001) != 0)) { highQcViews_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.highQcViews_ = highQcViews_; if (highestQcBuilder_ == null) { result.highestQc_ = highestQc_; } else { result.highestQc_ = highestQcBuilder_.build(); } result.signerIndices_ = signerIndices_; result.sigData_ = sigData_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate) { return mergeFrom((org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate other) { if (other == org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate.getDefaultInstance()) return this; if (other.getView() != 0L) { setView(other.getView()); } if (!other.highQcViews_.isEmpty()) { if (highQcViews_.isEmpty()) { highQcViews_ = other.highQcViews_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHighQcViewsIsMutable(); highQcViews_.addAll(other.highQcViews_); } onChanged(); } if (other.hasHighestQc()) { mergeHighestQc(other.getHighestQc()); } if (other.getSignerIndices() != com.google.protobuf.ByteString.EMPTY) { setSignerIndices(other.getSignerIndices()); } if (other.getSigData() != com.google.protobuf.ByteString.EMPTY) { setSigData(other.getSigData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long view_ ; /** * uint64 view = 1; * @return The view. */ @java.lang.Override public long getView() { return view_; } /** * uint64 view = 1; * @param value The view to set. * @return This builder for chaining. */ public Builder setView(long value) { view_ = value; onChanged(); return this; } /** * uint64 view = 1; * @return This builder for chaining. */ public Builder clearView() { view_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.LongList highQcViews_ = emptyLongList(); private void ensureHighQcViewsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { highQcViews_ = mutableCopy(highQcViews_); bitField0_ |= 0x00000001; } } /** * repeated uint64 high_qc_views = 2; * @return A list containing the highQcViews. */ public java.util.List getHighQcViewsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(highQcViews_) : highQcViews_; } /** * repeated uint64 high_qc_views = 2; * @return The count of highQcViews. */ public int getHighQcViewsCount() { return highQcViews_.size(); } /** * repeated uint64 high_qc_views = 2; * @param index The index of the element to return. * @return The highQcViews at the given index. */ public long getHighQcViews(int index) { return highQcViews_.getLong(index); } /** * repeated uint64 high_qc_views = 2; * @param index The index to set the value at. * @param value The highQcViews to set. * @return This builder for chaining. */ public Builder setHighQcViews( int index, long value) { ensureHighQcViewsIsMutable(); highQcViews_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 high_qc_views = 2; * @param value The highQcViews to add. * @return This builder for chaining. */ public Builder addHighQcViews(long value) { ensureHighQcViewsIsMutable(); highQcViews_.addLong(value); onChanged(); return this; } /** * repeated uint64 high_qc_views = 2; * @param values The highQcViews to add. * @return This builder for chaining. */ public Builder addAllHighQcViews( java.lang.Iterable values) { ensureHighQcViewsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, highQcViews_); onChanged(); return this; } /** * repeated uint64 high_qc_views = 2; * @return This builder for chaining. */ public Builder clearHighQcViews() { highQcViews_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate highestQc_; private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder> highestQcBuilder_; /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return Whether the highestQc field is set. */ public boolean hasHighestQc() { return highestQcBuilder_ != null || highestQc_ != null; } /** * .flow.entities.QuorumCertificate highest_qc = 3; * @return The highestQc. */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getHighestQc() { if (highestQcBuilder_ == null) { return highestQc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.getDefaultInstance() : highestQc_; } else { return highestQcBuilder_.getMessage(); } } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public Builder setHighestQc(org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate value) { if (highestQcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } highestQc_ = value; onChanged(); } else { highestQcBuilder_.setMessage(value); } return this; } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public Builder setHighestQc( org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder builderForValue) { if (highestQcBuilder_ == null) { highestQc_ = builderForValue.build(); onChanged(); } else { highestQcBuilder_.setMessage(builderForValue.build()); } return this; } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public Builder mergeHighestQc(org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate value) { if (highestQcBuilder_ == null) { if (highestQc_ != null) { highestQc_ = org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.newBuilder(highestQc_).mergeFrom(value).buildPartial(); } else { highestQc_ = value; } onChanged(); } else { highestQcBuilder_.mergeFrom(value); } return this; } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public Builder clearHighestQc() { if (highestQcBuilder_ == null) { highestQc_ = null; onChanged(); } else { highestQc_ = null; highestQcBuilder_ = null; } return this; } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder getHighestQcBuilder() { onChanged(); return getHighestQcFieldBuilder().getBuilder(); } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder getHighestQcOrBuilder() { if (highestQcBuilder_ != null) { return highestQcBuilder_.getMessageOrBuilder(); } else { return highestQc_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.getDefaultInstance() : highestQc_; } } /** * .flow.entities.QuorumCertificate highest_qc = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder> getHighestQcFieldBuilder() { if (highestQcBuilder_ == null) { highestQcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder>( getHighestQc(), getParentForChildren(), isClean()); highestQc_ = null; } return highestQcBuilder_; } private com.google.protobuf.ByteString signerIndices_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signer_indices = 4; * @return The signerIndices. */ @java.lang.Override public com.google.protobuf.ByteString getSignerIndices() { return signerIndices_; } /** * bytes signer_indices = 4; * @param value The signerIndices to set. * @return This builder for chaining. */ public Builder setSignerIndices(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signerIndices_ = value; onChanged(); return this; } /** * bytes signer_indices = 4; * @return This builder for chaining. */ public Builder clearSignerIndices() { signerIndices_ = getDefaultInstance().getSignerIndices(); onChanged(); return this; } private com.google.protobuf.ByteString sigData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sig_data = 5; * @return The sigData. */ @java.lang.Override public com.google.protobuf.ByteString getSigData() { return sigData_; } /** * bytes sig_data = 5; * @param value The sigData to set. * @return This builder for chaining. */ public Builder setSigData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sigData_ = value; onChanged(); return this; } /** * bytes sig_data = 5; * @return This builder for chaining. */ public Builder clearSigData() { sigData_ = getDefaultInstance().getSigData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:flow.entities.TimeoutCertificate) } // @@protoc_insertion_point(class_scope:flow.entities.TimeoutCertificate) private static final org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate(); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeoutCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeoutCertificate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.TimeoutCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QuorumCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:flow.entities.QuorumCertificate) com.google.protobuf.MessageOrBuilder { /** * uint64 view = 1; * @return The view. */ long getView(); /** * bytes block_id = 2; * @return The blockId. */ com.google.protobuf.ByteString getBlockId(); /** * bytes signer_indices = 3; * @return The signerIndices. */ com.google.protobuf.ByteString getSignerIndices(); /** * bytes sig_data = 4; * @return The sigData. */ com.google.protobuf.ByteString getSigData(); } /** * Protobuf type {@code flow.entities.QuorumCertificate} */ public static final class QuorumCertificate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:flow.entities.QuorumCertificate) QuorumCertificateOrBuilder { private static final long serialVersionUID = 0L; // Use QuorumCertificate.newBuilder() to construct. private QuorumCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QuorumCertificate() { blockId_ = com.google.protobuf.ByteString.EMPTY; signerIndices_ = com.google.protobuf.ByteString.EMPTY; sigData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QuorumCertificate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QuorumCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 8: { view_ = input.readUInt64(); break; } case 18: { blockId_ = input.readBytes(); break; } case 26: { signerIndices_ = input.readBytes(); break; } case 34: { sigData_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_QuorumCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_QuorumCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder.class); } public static final int VIEW_FIELD_NUMBER = 1; private long view_; /** * uint64 view = 1; * @return The view. */ @java.lang.Override public long getView() { return view_; } public static final int BLOCK_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString blockId_; /** * bytes block_id = 2; * @return The blockId. */ @java.lang.Override public com.google.protobuf.ByteString getBlockId() { return blockId_; } public static final int SIGNER_INDICES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString signerIndices_; /** * bytes signer_indices = 3; * @return The signerIndices. */ @java.lang.Override public com.google.protobuf.ByteString getSignerIndices() { return signerIndices_; } public static final int SIG_DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString sigData_; /** * bytes sig_data = 4; * @return The sigData. */ @java.lang.Override public com.google.protobuf.ByteString getSigData() { return sigData_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (view_ != 0L) { output.writeUInt64(1, view_); } if (!blockId_.isEmpty()) { output.writeBytes(2, blockId_); } if (!signerIndices_.isEmpty()) { output.writeBytes(3, signerIndices_); } if (!sigData_.isEmpty()) { output.writeBytes(4, sigData_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (view_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, view_); } if (!blockId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, blockId_); } if (!signerIndices_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, signerIndices_); } if (!sigData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, sigData_); } 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate)) { return super.equals(obj); } org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate other = (org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate) obj; if (getView() != other.getView()) return false; if (!getBlockId() .equals(other.getBlockId())) return false; if (!getSignerIndices() .equals(other.getSignerIndices())) return false; if (!getSigData() .equals(other.getSigData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getView()); hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); hash = (37 * hash) + SIGNER_INDICES_FIELD_NUMBER; hash = (53 * hash) + getSignerIndices().hashCode(); hash = (37 * hash) + SIG_DATA_FIELD_NUMBER; hash = (53 * hash) + getSigData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate 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 org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 flow.entities.QuorumCertificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:flow.entities.QuorumCertificate) org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_QuorumCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_QuorumCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.class, org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.Builder.class); } // Construct using org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); view_ = 0L; blockId_ = com.google.protobuf.ByteString.EMPTY; signerIndices_ = com.google.protobuf.ByteString.EMPTY; sigData_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.internal_static_flow_entities_QuorumCertificate_descriptor; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getDefaultInstanceForType() { return org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.getDefaultInstance(); } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate build() { org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate buildPartial() { org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate result = new org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate(this); result.view_ = view_; result.blockId_ = blockId_; result.signerIndices_ = signerIndices_; result.sigData_ = sigData_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate) { return mergeFrom((org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate other) { if (other == org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate.getDefaultInstance()) return this; if (other.getView() != 0L) { setView(other.getView()); } if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) { setBlockId(other.getBlockId()); } if (other.getSignerIndices() != com.google.protobuf.ByteString.EMPTY) { setSignerIndices(other.getSignerIndices()); } if (other.getSigData() != com.google.protobuf.ByteString.EMPTY) { setSigData(other.getSigData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long view_ ; /** * uint64 view = 1; * @return The view. */ @java.lang.Override public long getView() { return view_; } /** * uint64 view = 1; * @param value The view to set. * @return This builder for chaining. */ public Builder setView(long value) { view_ = value; onChanged(); return this; } /** * uint64 view = 1; * @return This builder for chaining. */ public Builder clearView() { view_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes block_id = 2; * @return The blockId. */ @java.lang.Override public com.google.protobuf.ByteString getBlockId() { return blockId_; } /** * bytes block_id = 2; * @param value The blockId to set. * @return This builder for chaining. */ public Builder setBlockId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } blockId_ = value; onChanged(); return this; } /** * bytes block_id = 2; * @return This builder for chaining. */ public Builder clearBlockId() { blockId_ = getDefaultInstance().getBlockId(); onChanged(); return this; } private com.google.protobuf.ByteString signerIndices_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signer_indices = 3; * @return The signerIndices. */ @java.lang.Override public com.google.protobuf.ByteString getSignerIndices() { return signerIndices_; } /** * bytes signer_indices = 3; * @param value The signerIndices to set. * @return This builder for chaining. */ public Builder setSignerIndices(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signerIndices_ = value; onChanged(); return this; } /** * bytes signer_indices = 3; * @return This builder for chaining. */ public Builder clearSignerIndices() { signerIndices_ = getDefaultInstance().getSignerIndices(); onChanged(); return this; } private com.google.protobuf.ByteString sigData_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sig_data = 4; * @return The sigData. */ @java.lang.Override public com.google.protobuf.ByteString getSigData() { return sigData_; } /** * bytes sig_data = 4; * @param value The sigData to set. * @return This builder for chaining. */ public Builder setSigData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sigData_ = value; onChanged(); return this; } /** * bytes sig_data = 4; * @return This builder for chaining. */ public Builder clearSigData() { sigData_ = getDefaultInstance().getSigData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:flow.entities.QuorumCertificate) } // @@protoc_insertion_point(class_scope:flow.entities.QuorumCertificate) private static final org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate(); } public static org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QuorumCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QuorumCertificate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.onflow.protobuf.entities.BlockHeaderOuterClass.QuorumCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_flow_entities_BlockHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flow_entities_BlockHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flow_entities_TimeoutCertificate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flow_entities_TimeoutCertificate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flow_entities_QuorumCertificate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flow_entities_QuorumCertificate_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n flow/entities/block_header.proto\022\rflow" + ".entities\032\037google/protobuf/timestamp.pro" + "to\"\366\002\n\013BlockHeader\022\n\n\002id\030\001 \001(\014\022\021\n\tparent" + "_id\030\002 \001(\014\022\016\n\006height\030\003 \001(\004\022-\n\ttimestamp\030\004" + " \001(\0132\032.google.protobuf.Timestamp\022\024\n\014payl" + "oad_hash\030\005 \001(\014\022\014\n\004view\030\006 \001(\004\022\030\n\020parent_v" + "oter_ids\030\007 \003(\014\022\035\n\025parent_voter_sig_data\030" + "\010 \001(\014\022\023\n\013proposer_id\030\t \001(\014\022\031\n\021proposer_s" + "ig_data\030\n \001(\014\022\020\n\010chain_id\030\013 \001(\t\022\034\n\024paren" + "t_voter_indices\030\014 \001(\014\0227\n\014last_view_tc\030\r " + "\001(\0132!.flow.entities.TimeoutCertificate\022\023" + "\n\013parent_view\030\016 \001(\004\"\231\001\n\022TimeoutCertifica" + "te\022\014\n\004view\030\001 \001(\004\022\025\n\rhigh_qc_views\030\002 \003(\004\022" + "4\n\nhighest_qc\030\003 \001(\0132 .flow.entities.Quor" + "umCertificate\022\026\n\016signer_indices\030\004 \001(\014\022\020\n" + "\010sig_data\030\005 \001(\014\"]\n\021QuorumCertificate\022\014\n\004" + "view\030\001 \001(\004\022\020\n\010block_id\030\002 \001(\014\022\026\n\016signer_i" + "ndices\030\003 \001(\014\022\020\n\010sig_data\030\004 \001(\014BP\n\034org.on" + "flow.protobuf.entitiesZ0github.com/onflo" + "w/flow/protobuf/go/flow/entitiesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_flow_entities_BlockHeader_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_flow_entities_BlockHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flow_entities_BlockHeader_descriptor, new java.lang.String[] { "Id", "ParentId", "Height", "Timestamp", "PayloadHash", "View", "ParentVoterIds", "ParentVoterSigData", "ProposerId", "ProposerSigData", "ChainId", "ParentVoterIndices", "LastViewTc", "ParentView", }); internal_static_flow_entities_TimeoutCertificate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_flow_entities_TimeoutCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flow_entities_TimeoutCertificate_descriptor, new java.lang.String[] { "View", "HighQcViews", "HighestQc", "SignerIndices", "SigData", }); internal_static_flow_entities_QuorumCertificate_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_flow_entities_QuorumCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flow_entities_QuorumCertificate_descriptor, new java.lang.String[] { "View", "BlockId", "SignerIndices", "SigData", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy