implements
// @@protoc_insertion_point(builder_implements:proto.BlockInfo)
com.hederahashgraph.api.proto.java.BlockInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.BlockInfo.class, com.hederahashgraph.api.proto.java.BlockInfo.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.BlockInfo.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();
lastBlockNumber_ = 0L;
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = null;
} else {
firstConsTimeOfLastBlock_ = null;
firstConsTimeOfLastBlockBuilder_ = null;
}
blockHashes_ = com.google.protobuf.ByteString.EMPTY;
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = null;
} else {
consTimeOfLastHandledTxn_ = null;
consTimeOfLastHandledTxnBuilder_ = null;
}
migrationRecordsStreamed_ = false;
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = null;
} else {
firstConsTimeOfCurrentBlock_ = null;
firstConsTimeOfCurrentBlockBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo build() {
com.hederahashgraph.api.proto.java.BlockInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo buildPartial() {
com.hederahashgraph.api.proto.java.BlockInfo result = new com.hederahashgraph.api.proto.java.BlockInfo(this);
result.lastBlockNumber_ = lastBlockNumber_;
if (firstConsTimeOfLastBlockBuilder_ == null) {
result.firstConsTimeOfLastBlock_ = firstConsTimeOfLastBlock_;
} else {
result.firstConsTimeOfLastBlock_ = firstConsTimeOfLastBlockBuilder_.build();
}
result.blockHashes_ = blockHashes_;
if (consTimeOfLastHandledTxnBuilder_ == null) {
result.consTimeOfLastHandledTxn_ = consTimeOfLastHandledTxn_;
} else {
result.consTimeOfLastHandledTxn_ = consTimeOfLastHandledTxnBuilder_.build();
}
result.migrationRecordsStreamed_ = migrationRecordsStreamed_;
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
result.firstConsTimeOfCurrentBlock_ = firstConsTimeOfCurrentBlock_;
} else {
result.firstConsTimeOfCurrentBlock_ = firstConsTimeOfCurrentBlockBuilder_.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.hederahashgraph.api.proto.java.BlockInfo) {
return mergeFrom((com.hederahashgraph.api.proto.java.BlockInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.BlockInfo other) {
if (other == com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance()) return this;
if (other.getLastBlockNumber() != 0L) {
setLastBlockNumber(other.getLastBlockNumber());
}
if (other.hasFirstConsTimeOfLastBlock()) {
mergeFirstConsTimeOfLastBlock(other.getFirstConsTimeOfLastBlock());
}
if (other.getBlockHashes() != com.google.protobuf.ByteString.EMPTY) {
setBlockHashes(other.getBlockHashes());
}
if (other.hasConsTimeOfLastHandledTxn()) {
mergeConsTimeOfLastHandledTxn(other.getConsTimeOfLastHandledTxn());
}
if (other.getMigrationRecordsStreamed() != false) {
setMigrationRecordsStreamed(other.getMigrationRecordsStreamed());
}
if (other.hasFirstConsTimeOfCurrentBlock()) {
mergeFirstConsTimeOfCurrentBlock(other.getFirstConsTimeOfCurrentBlock());
}
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.hederahashgraph.api.proto.java.BlockInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.BlockInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long lastBlockNumber_ ;
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @return The lastBlockNumber.
*/
@java.lang.Override
public long getLastBlockNumber() {
return lastBlockNumber_;
}
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @param value The lastBlockNumber to set.
* @return This builder for chaining.
*/
public Builder setLastBlockNumber(long value) {
lastBlockNumber_ = value;
onChanged();
return this;
}
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @return This builder for chaining.
*/
public Builder clearLastBlockNumber() {
lastBlockNumber_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfLastBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> firstConsTimeOfLastBlockBuilder_;
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return Whether the firstConsTimeOfLastBlock field is set.
*/
public boolean hasFirstConsTimeOfLastBlock() {
return firstConsTimeOfLastBlockBuilder_ != null || firstConsTimeOfLastBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return The firstConsTimeOfLastBlock.
*/
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfLastBlock() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
return firstConsTimeOfLastBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfLastBlock_;
} else {
return firstConsTimeOfLastBlockBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder setFirstConsTimeOfLastBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstConsTimeOfLastBlock_ = value;
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder setFirstConsTimeOfLastBlock(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = builderForValue.build();
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder mergeFirstConsTimeOfLastBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
if (firstConsTimeOfLastBlock_ != null) {
firstConsTimeOfLastBlock_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(firstConsTimeOfLastBlock_).mergeFrom(value).buildPartial();
} else {
firstConsTimeOfLastBlock_ = value;
}
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder clearFirstConsTimeOfLastBlock() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = null;
onChanged();
} else {
firstConsTimeOfLastBlock_ = null;
firstConsTimeOfLastBlockBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getFirstConsTimeOfLastBlockBuilder() {
onChanged();
return getFirstConsTimeOfLastBlockFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfLastBlockOrBuilder() {
if (firstConsTimeOfLastBlockBuilder_ != null) {
return firstConsTimeOfLastBlockBuilder_.getMessageOrBuilder();
} else {
return firstConsTimeOfLastBlock_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfLastBlock_;
}
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getFirstConsTimeOfLastBlockFieldBuilder() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getFirstConsTimeOfLastBlock(),
getParentForChildren(),
isClean());
firstConsTimeOfLastBlock_ = null;
}
return firstConsTimeOfLastBlockBuilder_;
}
private com.google.protobuf.ByteString blockHashes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @return The blockHashes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockHashes() {
return blockHashes_;
}
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @param value The blockHashes to set.
* @return This builder for chaining.
*/
public Builder setBlockHashes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
blockHashes_ = value;
onChanged();
return this;
}
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @return This builder for chaining.
*/
public Builder clearBlockHashes() {
blockHashes_ = getDefaultInstance().getBlockHashes();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp consTimeOfLastHandledTxn_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> consTimeOfLastHandledTxnBuilder_;
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return Whether the consTimeOfLastHandledTxn field is set.
*/
public boolean hasConsTimeOfLastHandledTxn() {
return consTimeOfLastHandledTxnBuilder_ != null || consTimeOfLastHandledTxn_ != null;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return The consTimeOfLastHandledTxn.
*/
public com.hederahashgraph.api.proto.java.Timestamp getConsTimeOfLastHandledTxn() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
return consTimeOfLastHandledTxn_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consTimeOfLastHandledTxn_;
} else {
return consTimeOfLastHandledTxnBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder setConsTimeOfLastHandledTxn(com.hederahashgraph.api.proto.java.Timestamp value) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consTimeOfLastHandledTxn_ = value;
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder setConsTimeOfLastHandledTxn(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = builderForValue.build();
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder mergeConsTimeOfLastHandledTxn(com.hederahashgraph.api.proto.java.Timestamp value) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
if (consTimeOfLastHandledTxn_ != null) {
consTimeOfLastHandledTxn_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(consTimeOfLastHandledTxn_).mergeFrom(value).buildPartial();
} else {
consTimeOfLastHandledTxn_ = value;
}
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder clearConsTimeOfLastHandledTxn() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = null;
onChanged();
} else {
consTimeOfLastHandledTxn_ = null;
consTimeOfLastHandledTxnBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getConsTimeOfLastHandledTxnBuilder() {
onChanged();
return getConsTimeOfLastHandledTxnFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsTimeOfLastHandledTxnOrBuilder() {
if (consTimeOfLastHandledTxnBuilder_ != null) {
return consTimeOfLastHandledTxnBuilder_.getMessageOrBuilder();
} else {
return consTimeOfLastHandledTxn_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consTimeOfLastHandledTxn_;
}
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getConsTimeOfLastHandledTxnFieldBuilder() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getConsTimeOfLastHandledTxn(),
getParentForChildren(),
isClean());
consTimeOfLastHandledTxn_ = null;
}
return consTimeOfLastHandledTxnBuilder_;
}
private boolean migrationRecordsStreamed_ ;
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @return The migrationRecordsStreamed.
*/
@java.lang.Override
public boolean getMigrationRecordsStreamed() {
return migrationRecordsStreamed_;
}
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @param value The migrationRecordsStreamed to set.
* @return This builder for chaining.
*/
public Builder setMigrationRecordsStreamed(boolean value) {
migrationRecordsStreamed_ = value;
onChanged();
return this;
}
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @return This builder for chaining.
*/
public Builder clearMigrationRecordsStreamed() {
migrationRecordsStreamed_ = false;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfCurrentBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> firstConsTimeOfCurrentBlockBuilder_;
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return Whether the firstConsTimeOfCurrentBlock field is set.
*/
public boolean hasFirstConsTimeOfCurrentBlock() {
return firstConsTimeOfCurrentBlockBuilder_ != null || firstConsTimeOfCurrentBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return The firstConsTimeOfCurrentBlock.
*/
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfCurrentBlock() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
return firstConsTimeOfCurrentBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfCurrentBlock_;
} else {
return firstConsTimeOfCurrentBlockBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder setFirstConsTimeOfCurrentBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstConsTimeOfCurrentBlock_ = value;
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder setFirstConsTimeOfCurrentBlock(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = builderForValue.build();
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder mergeFirstConsTimeOfCurrentBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
if (firstConsTimeOfCurrentBlock_ != null) {
firstConsTimeOfCurrentBlock_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(firstConsTimeOfCurrentBlock_).mergeFrom(value).buildPartial();
} else {
firstConsTimeOfCurrentBlock_ = value;
}
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder clearFirstConsTimeOfCurrentBlock() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = null;
onChanged();
} else {
firstConsTimeOfCurrentBlock_ = null;
firstConsTimeOfCurrentBlockBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getFirstConsTimeOfCurrentBlockBuilder() {
onChanged();
return getFirstConsTimeOfCurrentBlockFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfCurrentBlockOrBuilder() {
if (firstConsTimeOfCurrentBlockBuilder_ != null) {
return firstConsTimeOfCurrentBlockBuilder_.getMessageOrBuilder();
} else {
return firstConsTimeOfCurrentBlock_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfCurrentBlock_;
}
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getFirstConsTimeOfCurrentBlockFieldBuilder() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getFirstConsTimeOfCurrentBlock(),
getParentForChildren(),
isClean());
firstConsTimeOfCurrentBlock_ = null;
}
return firstConsTimeOfCurrentBlockBuilder_;
}
@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.BlockInfo)
}
// @@protoc_insertion_point(class_scope:proto.BlockInfo)
private static final com.hederahashgraph.api.proto.java.BlockInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.BlockInfo();
}
public static com.hederahashgraph.api.proto.java.BlockInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockInfo(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.hederahashgraph.api.proto.java.BlockInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}