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

com.hedera.services.stream.proto.RecordStreamFile Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: record_stream_file.proto

package com.hedera.services.stream.proto;

/**
 * 
 **
 * RecordStreamFile is used to serialize all RecordStreamItems that are part of the
 * same period into record stream files.
 * This structure represents a block in Hedera (HIP-415).
 * 
* * Protobuf type {@code proto.RecordStreamFile} */ public final class RecordStreamFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RecordStreamFile) RecordStreamFileOrBuilder { private static final long serialVersionUID = 0L; // Use RecordStreamFile.newBuilder() to construct. private RecordStreamFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordStreamFile() { recordStreamItems_ = java.util.Collections.emptyList(); sidecars_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecordStreamFile(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordStreamFile( 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: { com.hederahashgraph.api.proto.java.SemanticVersion.Builder subBuilder = null; if (hapiProtoVersion_ != null) { subBuilder = hapiProtoVersion_.toBuilder(); } hapiProtoVersion_ = input.readMessage(com.hederahashgraph.api.proto.java.SemanticVersion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hapiProtoVersion_); hapiProtoVersion_ = subBuilder.buildPartial(); } break; } case 18: { com.hedera.services.stream.proto.HashObject.Builder subBuilder = null; if (startObjectRunningHash_ != null) { subBuilder = startObjectRunningHash_.toBuilder(); } startObjectRunningHash_ = input.readMessage(com.hedera.services.stream.proto.HashObject.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startObjectRunningHash_); startObjectRunningHash_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { recordStreamItems_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } recordStreamItems_.add( input.readMessage(com.hedera.services.stream.proto.RecordStreamItem.parser(), extensionRegistry)); break; } case 34: { com.hedera.services.stream.proto.HashObject.Builder subBuilder = null; if (endObjectRunningHash_ != null) { subBuilder = endObjectRunningHash_.toBuilder(); } endObjectRunningHash_ = input.readMessage(com.hedera.services.stream.proto.HashObject.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(endObjectRunningHash_); endObjectRunningHash_ = subBuilder.buildPartial(); } break; } case 40: { blockNumber_ = input.readInt64(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { sidecars_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } sidecars_.add( input.readMessage(com.hedera.services.stream.proto.SidecarMetadata.parser(), extensionRegistry)); 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)) { recordStreamItems_ = java.util.Collections.unmodifiableList(recordStreamItems_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { sidecars_ = java.util.Collections.unmodifiableList(sidecars_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.RecordStreamFile.class, com.hedera.services.stream.proto.RecordStreamFile.Builder.class); } public static final int HAPI_PROTO_VERSION_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.SemanticVersion hapiProtoVersion_; /** *
   **
   * Version of HAPI that was used to serialize the file.
   * 
* * .proto.SemanticVersion hapi_proto_version = 1; * @return Whether the hapiProtoVersion field is set. */ @java.lang.Override public boolean hasHapiProtoVersion() { return hapiProtoVersion_ != null; } /** *
   **
   * Version of HAPI that was used to serialize the file.
   * 
* * .proto.SemanticVersion hapi_proto_version = 1; * @return The hapiProtoVersion. */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersion getHapiProtoVersion() { return hapiProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : hapiProtoVersion_; } /** *
   **
   * Version of HAPI that was used to serialize the file.
   * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getHapiProtoVersionOrBuilder() { return getHapiProtoVersion(); } public static final int START_OBJECT_RUNNING_HASH_FIELD_NUMBER = 2; private com.hedera.services.stream.proto.HashObject startObjectRunningHash_; /** *
   **
   * Running Hash of all RecordStreamItems before writing this file.
   * 
* * .proto.HashObject start_object_running_hash = 2; * @return Whether the startObjectRunningHash field is set. */ @java.lang.Override public boolean hasStartObjectRunningHash() { return startObjectRunningHash_ != null; } /** *
   **
   * Running Hash of all RecordStreamItems before writing this file.
   * 
* * .proto.HashObject start_object_running_hash = 2; * @return The startObjectRunningHash. */ @java.lang.Override public com.hedera.services.stream.proto.HashObject getStartObjectRunningHash() { return startObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : startObjectRunningHash_; } /** *
   **
   * Running Hash of all RecordStreamItems before writing this file.
   * 
* * .proto.HashObject start_object_running_hash = 2; */ @java.lang.Override public com.hedera.services.stream.proto.HashObjectOrBuilder getStartObjectRunningHashOrBuilder() { return getStartObjectRunningHash(); } public static final int RECORD_STREAM_ITEMS_FIELD_NUMBER = 3; private java.util.List recordStreamItems_; /** *
   **
   * List of all the record stream items from that period.
   * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ @java.lang.Override public java.util.List getRecordStreamItemsList() { return recordStreamItems_; } /** *
   **
   * List of all the record stream items from that period.
   * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ @java.lang.Override public java.util.List getRecordStreamItemsOrBuilderList() { return recordStreamItems_; } /** *
   **
   * List of all the record stream items from that period.
   * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ @java.lang.Override public int getRecordStreamItemsCount() { return recordStreamItems_.size(); } /** *
   **
   * List of all the record stream items from that period.
   * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ @java.lang.Override public com.hedera.services.stream.proto.RecordStreamItem getRecordStreamItems(int index) { return recordStreamItems_.get(index); } /** *
   **
   * List of all the record stream items from that period.
   * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ @java.lang.Override public com.hedera.services.stream.proto.RecordStreamItemOrBuilder getRecordStreamItemsOrBuilder( int index) { return recordStreamItems_.get(index); } public static final int END_OBJECT_RUNNING_HASH_FIELD_NUMBER = 4; private com.hedera.services.stream.proto.HashObject endObjectRunningHash_; /** *
   **
   * Running Hash of all RecordStreamItems before closing this file.
   * 
* * .proto.HashObject end_object_running_hash = 4; * @return Whether the endObjectRunningHash field is set. */ @java.lang.Override public boolean hasEndObjectRunningHash() { return endObjectRunningHash_ != null; } /** *
   **
   * Running Hash of all RecordStreamItems before closing this file.
   * 
* * .proto.HashObject end_object_running_hash = 4; * @return The endObjectRunningHash. */ @java.lang.Override public com.hedera.services.stream.proto.HashObject getEndObjectRunningHash() { return endObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : endObjectRunningHash_; } /** *
   **
   * Running Hash of all RecordStreamItems before closing this file.
   * 
* * .proto.HashObject end_object_running_hash = 4; */ @java.lang.Override public com.hedera.services.stream.proto.HashObjectOrBuilder getEndObjectRunningHashOrBuilder() { return getEndObjectRunningHash(); } public static final int BLOCK_NUMBER_FIELD_NUMBER = 5; private long blockNumber_; /** *
   **
   * The block number associated with this period.
   * 
* * int64 block_number = 5; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } public static final int SIDECARS_FIELD_NUMBER = 6; private java.util.List sidecars_; /** *
   **
   * List of the hashes of all the sidecar record files created for the same period.
   * Allows multiple sidecar files to be linked to this RecordStreamFile.
   * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ @java.lang.Override public java.util.List getSidecarsList() { return sidecars_; } /** *
   **
   * List of the hashes of all the sidecar record files created for the same period.
   * Allows multiple sidecar files to be linked to this RecordStreamFile.
   * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ @java.lang.Override public java.util.List getSidecarsOrBuilderList() { return sidecars_; } /** *
   **
   * List of the hashes of all the sidecar record files created for the same period.
   * Allows multiple sidecar files to be linked to this RecordStreamFile.
   * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ @java.lang.Override public int getSidecarsCount() { return sidecars_.size(); } /** *
   **
   * List of the hashes of all the sidecar record files created for the same period.
   * Allows multiple sidecar files to be linked to this RecordStreamFile.
   * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadata getSidecars(int index) { return sidecars_.get(index); } /** *
   **
   * List of the hashes of all the sidecar record files created for the same period.
   * Allows multiple sidecar files to be linked to this RecordStreamFile.
   * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadataOrBuilder getSidecarsOrBuilder( int index) { return sidecars_.get(index); } 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 (hapiProtoVersion_ != null) { output.writeMessage(1, getHapiProtoVersion()); } if (startObjectRunningHash_ != null) { output.writeMessage(2, getStartObjectRunningHash()); } for (int i = 0; i < recordStreamItems_.size(); i++) { output.writeMessage(3, recordStreamItems_.get(i)); } if (endObjectRunningHash_ != null) { output.writeMessage(4, getEndObjectRunningHash()); } if (blockNumber_ != 0L) { output.writeInt64(5, blockNumber_); } for (int i = 0; i < sidecars_.size(); i++) { output.writeMessage(6, sidecars_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hapiProtoVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHapiProtoVersion()); } if (startObjectRunningHash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStartObjectRunningHash()); } for (int i = 0; i < recordStreamItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, recordStreamItems_.get(i)); } if (endObjectRunningHash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEndObjectRunningHash()); } if (blockNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, blockNumber_); } for (int i = 0; i < sidecars_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, sidecars_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.services.stream.proto.RecordStreamFile)) { return super.equals(obj); } com.hedera.services.stream.proto.RecordStreamFile other = (com.hedera.services.stream.proto.RecordStreamFile) obj; if (hasHapiProtoVersion() != other.hasHapiProtoVersion()) return false; if (hasHapiProtoVersion()) { if (!getHapiProtoVersion() .equals(other.getHapiProtoVersion())) return false; } if (hasStartObjectRunningHash() != other.hasStartObjectRunningHash()) return false; if (hasStartObjectRunningHash()) { if (!getStartObjectRunningHash() .equals(other.getStartObjectRunningHash())) return false; } if (!getRecordStreamItemsList() .equals(other.getRecordStreamItemsList())) return false; if (hasEndObjectRunningHash() != other.hasEndObjectRunningHash()) return false; if (hasEndObjectRunningHash()) { if (!getEndObjectRunningHash() .equals(other.getEndObjectRunningHash())) return false; } if (getBlockNumber() != other.getBlockNumber()) return false; if (!getSidecarsList() .equals(other.getSidecarsList())) 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(); if (hasHapiProtoVersion()) { hash = (37 * hash) + HAPI_PROTO_VERSION_FIELD_NUMBER; hash = (53 * hash) + getHapiProtoVersion().hashCode(); } if (hasStartObjectRunningHash()) { hash = (37 * hash) + START_OBJECT_RUNNING_HASH_FIELD_NUMBER; hash = (53 * hash) + getStartObjectRunningHash().hashCode(); } if (getRecordStreamItemsCount() > 0) { hash = (37 * hash) + RECORD_STREAM_ITEMS_FIELD_NUMBER; hash = (53 * hash) + getRecordStreamItemsList().hashCode(); } if (hasEndObjectRunningHash()) { hash = (37 * hash) + END_OBJECT_RUNNING_HASH_FIELD_NUMBER; hash = (53 * hash) + getEndObjectRunningHash().hashCode(); } hash = (37 * hash) + BLOCK_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); if (getSidecarsCount() > 0) { hash = (37 * hash) + SIDECARS_FIELD_NUMBER; hash = (53 * hash) + getSidecarsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamFile 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(com.hedera.services.stream.proto.RecordStreamFile 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; } /** *
   **
   * RecordStreamFile is used to serialize all RecordStreamItems that are part of the
   * same period into record stream files.
   * This structure represents a block in Hedera (HIP-415).
   * 
* * Protobuf type {@code proto.RecordStreamFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RecordStreamFile) com.hedera.services.stream.proto.RecordStreamFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.RecordStreamFile.class, com.hedera.services.stream.proto.RecordStreamFile.Builder.class); } // Construct using com.hedera.services.stream.proto.RecordStreamFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRecordStreamItemsFieldBuilder(); getSidecarsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (hapiProtoVersionBuilder_ == null) { hapiProtoVersion_ = null; } else { hapiProtoVersion_ = null; hapiProtoVersionBuilder_ = null; } if (startObjectRunningHashBuilder_ == null) { startObjectRunningHash_ = null; } else { startObjectRunningHash_ = null; startObjectRunningHashBuilder_ = null; } if (recordStreamItemsBuilder_ == null) { recordStreamItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { recordStreamItemsBuilder_.clear(); } if (endObjectRunningHashBuilder_ == null) { endObjectRunningHash_ = null; } else { endObjectRunningHash_ = null; endObjectRunningHashBuilder_ = null; } blockNumber_ = 0L; if (sidecarsBuilder_ == null) { sidecars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { sidecarsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamFile_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamFile getDefaultInstanceForType() { return com.hedera.services.stream.proto.RecordStreamFile.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamFile build() { com.hedera.services.stream.proto.RecordStreamFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamFile buildPartial() { com.hedera.services.stream.proto.RecordStreamFile result = new com.hedera.services.stream.proto.RecordStreamFile(this); int from_bitField0_ = bitField0_; if (hapiProtoVersionBuilder_ == null) { result.hapiProtoVersion_ = hapiProtoVersion_; } else { result.hapiProtoVersion_ = hapiProtoVersionBuilder_.build(); } if (startObjectRunningHashBuilder_ == null) { result.startObjectRunningHash_ = startObjectRunningHash_; } else { result.startObjectRunningHash_ = startObjectRunningHashBuilder_.build(); } if (recordStreamItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recordStreamItems_ = java.util.Collections.unmodifiableList(recordStreamItems_); bitField0_ = (bitField0_ & ~0x00000001); } result.recordStreamItems_ = recordStreamItems_; } else { result.recordStreamItems_ = recordStreamItemsBuilder_.build(); } if (endObjectRunningHashBuilder_ == null) { result.endObjectRunningHash_ = endObjectRunningHash_; } else { result.endObjectRunningHash_ = endObjectRunningHashBuilder_.build(); } result.blockNumber_ = blockNumber_; if (sidecarsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { sidecars_ = java.util.Collections.unmodifiableList(sidecars_); bitField0_ = (bitField0_ & ~0x00000002); } result.sidecars_ = sidecars_; } else { result.sidecars_ = sidecarsBuilder_.build(); } 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 com.hedera.services.stream.proto.RecordStreamFile) { return mergeFrom((com.hedera.services.stream.proto.RecordStreamFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.RecordStreamFile other) { if (other == com.hedera.services.stream.proto.RecordStreamFile.getDefaultInstance()) return this; if (other.hasHapiProtoVersion()) { mergeHapiProtoVersion(other.getHapiProtoVersion()); } if (other.hasStartObjectRunningHash()) { mergeStartObjectRunningHash(other.getStartObjectRunningHash()); } if (recordStreamItemsBuilder_ == null) { if (!other.recordStreamItems_.isEmpty()) { if (recordStreamItems_.isEmpty()) { recordStreamItems_ = other.recordStreamItems_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecordStreamItemsIsMutable(); recordStreamItems_.addAll(other.recordStreamItems_); } onChanged(); } } else { if (!other.recordStreamItems_.isEmpty()) { if (recordStreamItemsBuilder_.isEmpty()) { recordStreamItemsBuilder_.dispose(); recordStreamItemsBuilder_ = null; recordStreamItems_ = other.recordStreamItems_; bitField0_ = (bitField0_ & ~0x00000001); recordStreamItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecordStreamItemsFieldBuilder() : null; } else { recordStreamItemsBuilder_.addAllMessages(other.recordStreamItems_); } } } if (other.hasEndObjectRunningHash()) { mergeEndObjectRunningHash(other.getEndObjectRunningHash()); } if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } if (sidecarsBuilder_ == null) { if (!other.sidecars_.isEmpty()) { if (sidecars_.isEmpty()) { sidecars_ = other.sidecars_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSidecarsIsMutable(); sidecars_.addAll(other.sidecars_); } onChanged(); } } else { if (!other.sidecars_.isEmpty()) { if (sidecarsBuilder_.isEmpty()) { sidecarsBuilder_.dispose(); sidecarsBuilder_ = null; sidecars_ = other.sidecars_; bitField0_ = (bitField0_ & ~0x00000002); sidecarsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSidecarsFieldBuilder() : null; } else { sidecarsBuilder_.addAllMessages(other.sidecars_); } } } 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 { com.hedera.services.stream.proto.RecordStreamFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.RecordStreamFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hederahashgraph.api.proto.java.SemanticVersion hapiProtoVersion_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> hapiProtoVersionBuilder_; /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; * @return Whether the hapiProtoVersion field is set. */ public boolean hasHapiProtoVersion() { return hapiProtoVersionBuilder_ != null || hapiProtoVersion_ != null; } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; * @return The hapiProtoVersion. */ public com.hederahashgraph.api.proto.java.SemanticVersion getHapiProtoVersion() { if (hapiProtoVersionBuilder_ == null) { return hapiProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : hapiProtoVersion_; } else { return hapiProtoVersionBuilder_.getMessage(); } } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public Builder setHapiProtoVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (hapiProtoVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hapiProtoVersion_ = value; onChanged(); } else { hapiProtoVersionBuilder_.setMessage(value); } return this; } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public Builder setHapiProtoVersion( com.hederahashgraph.api.proto.java.SemanticVersion.Builder builderForValue) { if (hapiProtoVersionBuilder_ == null) { hapiProtoVersion_ = builderForValue.build(); onChanged(); } else { hapiProtoVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public Builder mergeHapiProtoVersion(com.hederahashgraph.api.proto.java.SemanticVersion value) { if (hapiProtoVersionBuilder_ == null) { if (hapiProtoVersion_ != null) { hapiProtoVersion_ = com.hederahashgraph.api.proto.java.SemanticVersion.newBuilder(hapiProtoVersion_).mergeFrom(value).buildPartial(); } else { hapiProtoVersion_ = value; } onChanged(); } else { hapiProtoVersionBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public Builder clearHapiProtoVersion() { if (hapiProtoVersionBuilder_ == null) { hapiProtoVersion_ = null; onChanged(); } else { hapiProtoVersion_ = null; hapiProtoVersionBuilder_ = null; } return this; } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public com.hederahashgraph.api.proto.java.SemanticVersion.Builder getHapiProtoVersionBuilder() { onChanged(); return getHapiProtoVersionFieldBuilder().getBuilder(); } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ public com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder getHapiProtoVersionOrBuilder() { if (hapiProtoVersionBuilder_ != null) { return hapiProtoVersionBuilder_.getMessageOrBuilder(); } else { return hapiProtoVersion_ == null ? com.hederahashgraph.api.proto.java.SemanticVersion.getDefaultInstance() : hapiProtoVersion_; } } /** *
     **
     * Version of HAPI that was used to serialize the file.
     * 
* * .proto.SemanticVersion hapi_proto_version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder> getHapiProtoVersionFieldBuilder() { if (hapiProtoVersionBuilder_ == null) { hapiProtoVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SemanticVersion, com.hederahashgraph.api.proto.java.SemanticVersion.Builder, com.hederahashgraph.api.proto.java.SemanticVersionOrBuilder>( getHapiProtoVersion(), getParentForChildren(), isClean()); hapiProtoVersion_ = null; } return hapiProtoVersionBuilder_; } private com.hedera.services.stream.proto.HashObject startObjectRunningHash_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> startObjectRunningHashBuilder_; /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; * @return Whether the startObjectRunningHash field is set. */ public boolean hasStartObjectRunningHash() { return startObjectRunningHashBuilder_ != null || startObjectRunningHash_ != null; } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; * @return The startObjectRunningHash. */ public com.hedera.services.stream.proto.HashObject getStartObjectRunningHash() { if (startObjectRunningHashBuilder_ == null) { return startObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : startObjectRunningHash_; } else { return startObjectRunningHashBuilder_.getMessage(); } } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public Builder setStartObjectRunningHash(com.hedera.services.stream.proto.HashObject value) { if (startObjectRunningHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startObjectRunningHash_ = value; onChanged(); } else { startObjectRunningHashBuilder_.setMessage(value); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public Builder setStartObjectRunningHash( com.hedera.services.stream.proto.HashObject.Builder builderForValue) { if (startObjectRunningHashBuilder_ == null) { startObjectRunningHash_ = builderForValue.build(); onChanged(); } else { startObjectRunningHashBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public Builder mergeStartObjectRunningHash(com.hedera.services.stream.proto.HashObject value) { if (startObjectRunningHashBuilder_ == null) { if (startObjectRunningHash_ != null) { startObjectRunningHash_ = com.hedera.services.stream.proto.HashObject.newBuilder(startObjectRunningHash_).mergeFrom(value).buildPartial(); } else { startObjectRunningHash_ = value; } onChanged(); } else { startObjectRunningHashBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public Builder clearStartObjectRunningHash() { if (startObjectRunningHashBuilder_ == null) { startObjectRunningHash_ = null; onChanged(); } else { startObjectRunningHash_ = null; startObjectRunningHashBuilder_ = null; } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public com.hedera.services.stream.proto.HashObject.Builder getStartObjectRunningHashBuilder() { onChanged(); return getStartObjectRunningHashFieldBuilder().getBuilder(); } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ public com.hedera.services.stream.proto.HashObjectOrBuilder getStartObjectRunningHashOrBuilder() { if (startObjectRunningHashBuilder_ != null) { return startObjectRunningHashBuilder_.getMessageOrBuilder(); } else { return startObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : startObjectRunningHash_; } } /** *
     **
     * Running Hash of all RecordStreamItems before writing this file.
     * 
* * .proto.HashObject start_object_running_hash = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> getStartObjectRunningHashFieldBuilder() { if (startObjectRunningHashBuilder_ == null) { startObjectRunningHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder>( getStartObjectRunningHash(), getParentForChildren(), isClean()); startObjectRunningHash_ = null; } return startObjectRunningHashBuilder_; } private java.util.List recordStreamItems_ = java.util.Collections.emptyList(); private void ensureRecordStreamItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recordStreamItems_ = new java.util.ArrayList(recordStreamItems_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.RecordStreamItem, com.hedera.services.stream.proto.RecordStreamItem.Builder, com.hedera.services.stream.proto.RecordStreamItemOrBuilder> recordStreamItemsBuilder_; /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public java.util.List getRecordStreamItemsList() { if (recordStreamItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(recordStreamItems_); } else { return recordStreamItemsBuilder_.getMessageList(); } } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public int getRecordStreamItemsCount() { if (recordStreamItemsBuilder_ == null) { return recordStreamItems_.size(); } else { return recordStreamItemsBuilder_.getCount(); } } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public com.hedera.services.stream.proto.RecordStreamItem getRecordStreamItems(int index) { if (recordStreamItemsBuilder_ == null) { return recordStreamItems_.get(index); } else { return recordStreamItemsBuilder_.getMessage(index); } } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder setRecordStreamItems( int index, com.hedera.services.stream.proto.RecordStreamItem value) { if (recordStreamItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordStreamItemsIsMutable(); recordStreamItems_.set(index, value); onChanged(); } else { recordStreamItemsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder setRecordStreamItems( int index, com.hedera.services.stream.proto.RecordStreamItem.Builder builderForValue) { if (recordStreamItemsBuilder_ == null) { ensureRecordStreamItemsIsMutable(); recordStreamItems_.set(index, builderForValue.build()); onChanged(); } else { recordStreamItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder addRecordStreamItems(com.hedera.services.stream.proto.RecordStreamItem value) { if (recordStreamItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordStreamItemsIsMutable(); recordStreamItems_.add(value); onChanged(); } else { recordStreamItemsBuilder_.addMessage(value); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder addRecordStreamItems( int index, com.hedera.services.stream.proto.RecordStreamItem value) { if (recordStreamItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordStreamItemsIsMutable(); recordStreamItems_.add(index, value); onChanged(); } else { recordStreamItemsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder addRecordStreamItems( com.hedera.services.stream.proto.RecordStreamItem.Builder builderForValue) { if (recordStreamItemsBuilder_ == null) { ensureRecordStreamItemsIsMutable(); recordStreamItems_.add(builderForValue.build()); onChanged(); } else { recordStreamItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder addRecordStreamItems( int index, com.hedera.services.stream.proto.RecordStreamItem.Builder builderForValue) { if (recordStreamItemsBuilder_ == null) { ensureRecordStreamItemsIsMutable(); recordStreamItems_.add(index, builderForValue.build()); onChanged(); } else { recordStreamItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder addAllRecordStreamItems( java.lang.Iterable values) { if (recordStreamItemsBuilder_ == null) { ensureRecordStreamItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recordStreamItems_); onChanged(); } else { recordStreamItemsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder clearRecordStreamItems() { if (recordStreamItemsBuilder_ == null) { recordStreamItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recordStreamItemsBuilder_.clear(); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public Builder removeRecordStreamItems(int index) { if (recordStreamItemsBuilder_ == null) { ensureRecordStreamItemsIsMutable(); recordStreamItems_.remove(index); onChanged(); } else { recordStreamItemsBuilder_.remove(index); } return this; } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public com.hedera.services.stream.proto.RecordStreamItem.Builder getRecordStreamItemsBuilder( int index) { return getRecordStreamItemsFieldBuilder().getBuilder(index); } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public com.hedera.services.stream.proto.RecordStreamItemOrBuilder getRecordStreamItemsOrBuilder( int index) { if (recordStreamItemsBuilder_ == null) { return recordStreamItems_.get(index); } else { return recordStreamItemsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public java.util.List getRecordStreamItemsOrBuilderList() { if (recordStreamItemsBuilder_ != null) { return recordStreamItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recordStreamItems_); } } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public com.hedera.services.stream.proto.RecordStreamItem.Builder addRecordStreamItemsBuilder() { return getRecordStreamItemsFieldBuilder().addBuilder( com.hedera.services.stream.proto.RecordStreamItem.getDefaultInstance()); } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public com.hedera.services.stream.proto.RecordStreamItem.Builder addRecordStreamItemsBuilder( int index) { return getRecordStreamItemsFieldBuilder().addBuilder( index, com.hedera.services.stream.proto.RecordStreamItem.getDefaultInstance()); } /** *
     **
     * List of all the record stream items from that period.
     * 
* * repeated .proto.RecordStreamItem record_stream_items = 3; */ public java.util.List getRecordStreamItemsBuilderList() { return getRecordStreamItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.RecordStreamItem, com.hedera.services.stream.proto.RecordStreamItem.Builder, com.hedera.services.stream.proto.RecordStreamItemOrBuilder> getRecordStreamItemsFieldBuilder() { if (recordStreamItemsBuilder_ == null) { recordStreamItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.RecordStreamItem, com.hedera.services.stream.proto.RecordStreamItem.Builder, com.hedera.services.stream.proto.RecordStreamItemOrBuilder>( recordStreamItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recordStreamItems_ = null; } return recordStreamItemsBuilder_; } private com.hedera.services.stream.proto.HashObject endObjectRunningHash_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> endObjectRunningHashBuilder_; /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; * @return Whether the endObjectRunningHash field is set. */ public boolean hasEndObjectRunningHash() { return endObjectRunningHashBuilder_ != null || endObjectRunningHash_ != null; } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; * @return The endObjectRunningHash. */ public com.hedera.services.stream.proto.HashObject getEndObjectRunningHash() { if (endObjectRunningHashBuilder_ == null) { return endObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : endObjectRunningHash_; } else { return endObjectRunningHashBuilder_.getMessage(); } } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public Builder setEndObjectRunningHash(com.hedera.services.stream.proto.HashObject value) { if (endObjectRunningHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endObjectRunningHash_ = value; onChanged(); } else { endObjectRunningHashBuilder_.setMessage(value); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public Builder setEndObjectRunningHash( com.hedera.services.stream.proto.HashObject.Builder builderForValue) { if (endObjectRunningHashBuilder_ == null) { endObjectRunningHash_ = builderForValue.build(); onChanged(); } else { endObjectRunningHashBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public Builder mergeEndObjectRunningHash(com.hedera.services.stream.proto.HashObject value) { if (endObjectRunningHashBuilder_ == null) { if (endObjectRunningHash_ != null) { endObjectRunningHash_ = com.hedera.services.stream.proto.HashObject.newBuilder(endObjectRunningHash_).mergeFrom(value).buildPartial(); } else { endObjectRunningHash_ = value; } onChanged(); } else { endObjectRunningHashBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public Builder clearEndObjectRunningHash() { if (endObjectRunningHashBuilder_ == null) { endObjectRunningHash_ = null; onChanged(); } else { endObjectRunningHash_ = null; endObjectRunningHashBuilder_ = null; } return this; } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public com.hedera.services.stream.proto.HashObject.Builder getEndObjectRunningHashBuilder() { onChanged(); return getEndObjectRunningHashFieldBuilder().getBuilder(); } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ public com.hedera.services.stream.proto.HashObjectOrBuilder getEndObjectRunningHashOrBuilder() { if (endObjectRunningHashBuilder_ != null) { return endObjectRunningHashBuilder_.getMessageOrBuilder(); } else { return endObjectRunningHash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : endObjectRunningHash_; } } /** *
     **
     * Running Hash of all RecordStreamItems before closing this file.
     * 
* * .proto.HashObject end_object_running_hash = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> getEndObjectRunningHashFieldBuilder() { if (endObjectRunningHashBuilder_ == null) { endObjectRunningHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder>( getEndObjectRunningHash(), getParentForChildren(), isClean()); endObjectRunningHash_ = null; } return endObjectRunningHashBuilder_; } private long blockNumber_ ; /** *
     **
     * The block number associated with this period.
     * 
* * int64 block_number = 5; * @return The blockNumber. */ @java.lang.Override public long getBlockNumber() { return blockNumber_; } /** *
     **
     * The block number associated with this period.
     * 
* * int64 block_number = 5; * @param value The blockNumber to set. * @return This builder for chaining. */ public Builder setBlockNumber(long value) { blockNumber_ = value; onChanged(); return this; } /** *
     **
     * The block number associated with this period.
     * 
* * int64 block_number = 5; * @return This builder for chaining. */ public Builder clearBlockNumber() { blockNumber_ = 0L; onChanged(); return this; } private java.util.List sidecars_ = java.util.Collections.emptyList(); private void ensureSidecarsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { sidecars_ = new java.util.ArrayList(sidecars_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SidecarMetadata, com.hedera.services.stream.proto.SidecarMetadata.Builder, com.hedera.services.stream.proto.SidecarMetadataOrBuilder> sidecarsBuilder_; /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public java.util.List getSidecarsList() { if (sidecarsBuilder_ == null) { return java.util.Collections.unmodifiableList(sidecars_); } else { return sidecarsBuilder_.getMessageList(); } } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public int getSidecarsCount() { if (sidecarsBuilder_ == null) { return sidecars_.size(); } else { return sidecarsBuilder_.getCount(); } } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public com.hedera.services.stream.proto.SidecarMetadata getSidecars(int index) { if (sidecarsBuilder_ == null) { return sidecars_.get(index); } else { return sidecarsBuilder_.getMessage(index); } } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder setSidecars( int index, com.hedera.services.stream.proto.SidecarMetadata value) { if (sidecarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSidecarsIsMutable(); sidecars_.set(index, value); onChanged(); } else { sidecarsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder setSidecars( int index, com.hedera.services.stream.proto.SidecarMetadata.Builder builderForValue) { if (sidecarsBuilder_ == null) { ensureSidecarsIsMutable(); sidecars_.set(index, builderForValue.build()); onChanged(); } else { sidecarsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder addSidecars(com.hedera.services.stream.proto.SidecarMetadata value) { if (sidecarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSidecarsIsMutable(); sidecars_.add(value); onChanged(); } else { sidecarsBuilder_.addMessage(value); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder addSidecars( int index, com.hedera.services.stream.proto.SidecarMetadata value) { if (sidecarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSidecarsIsMutable(); sidecars_.add(index, value); onChanged(); } else { sidecarsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder addSidecars( com.hedera.services.stream.proto.SidecarMetadata.Builder builderForValue) { if (sidecarsBuilder_ == null) { ensureSidecarsIsMutable(); sidecars_.add(builderForValue.build()); onChanged(); } else { sidecarsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder addSidecars( int index, com.hedera.services.stream.proto.SidecarMetadata.Builder builderForValue) { if (sidecarsBuilder_ == null) { ensureSidecarsIsMutable(); sidecars_.add(index, builderForValue.build()); onChanged(); } else { sidecarsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder addAllSidecars( java.lang.Iterable values) { if (sidecarsBuilder_ == null) { ensureSidecarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sidecars_); onChanged(); } else { sidecarsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder clearSidecars() { if (sidecarsBuilder_ == null) { sidecars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { sidecarsBuilder_.clear(); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public Builder removeSidecars(int index) { if (sidecarsBuilder_ == null) { ensureSidecarsIsMutable(); sidecars_.remove(index); onChanged(); } else { sidecarsBuilder_.remove(index); } return this; } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public com.hedera.services.stream.proto.SidecarMetadata.Builder getSidecarsBuilder( int index) { return getSidecarsFieldBuilder().getBuilder(index); } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public com.hedera.services.stream.proto.SidecarMetadataOrBuilder getSidecarsOrBuilder( int index) { if (sidecarsBuilder_ == null) { return sidecars_.get(index); } else { return sidecarsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public java.util.List getSidecarsOrBuilderList() { if (sidecarsBuilder_ != null) { return sidecarsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sidecars_); } } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public com.hedera.services.stream.proto.SidecarMetadata.Builder addSidecarsBuilder() { return getSidecarsFieldBuilder().addBuilder( com.hedera.services.stream.proto.SidecarMetadata.getDefaultInstance()); } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public com.hedera.services.stream.proto.SidecarMetadata.Builder addSidecarsBuilder( int index) { return getSidecarsFieldBuilder().addBuilder( index, com.hedera.services.stream.proto.SidecarMetadata.getDefaultInstance()); } /** *
     **
     * List of the hashes of all the sidecar record files created for the same period.
     * Allows multiple sidecar files to be linked to this RecordStreamFile.
     * 
* * repeated .proto.SidecarMetadata sidecars = 6; */ public java.util.List getSidecarsBuilderList() { return getSidecarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SidecarMetadata, com.hedera.services.stream.proto.SidecarMetadata.Builder, com.hedera.services.stream.proto.SidecarMetadataOrBuilder> getSidecarsFieldBuilder() { if (sidecarsBuilder_ == null) { sidecarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SidecarMetadata, com.hedera.services.stream.proto.SidecarMetadata.Builder, com.hedera.services.stream.proto.SidecarMetadataOrBuilder>( sidecars_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); sidecars_ = null; } return sidecarsBuilder_; } @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:proto.RecordStreamFile) } // @@protoc_insertion_point(class_scope:proto.RecordStreamFile) private static final com.hedera.services.stream.proto.RecordStreamFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.RecordStreamFile(); } public static com.hedera.services.stream.proto.RecordStreamFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordStreamFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordStreamFile(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 com.hedera.services.stream.proto.RecordStreamFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy