public static final class BlockchainInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder> implements BlockchainInfoOrBuilder
Contains information about the blockchain ledger such as height, current block hash, and previous block hash.Protobuf type
common.BlockchainInfo
Modifier and Type | Method and Description |
---|---|
BlockchainInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BlockchainInfo |
build() |
BlockchainInfo |
buildPartial() |
BlockchainInfo.Builder |
clear() |
BlockchainInfo.Builder |
clearBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BlockchainInfo.Builder |
clearCurrentBlockHash()
bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; |
BlockchainInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BlockchainInfo.Builder |
clearHeight()
uint64 height = 1 [json_name = "height"]; |
BlockchainInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BlockchainInfo.Builder |
clearPreviousBlockHash()
bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; |
BlockchainInfo.Builder |
clone() |
BootstrappingSnapshotInfo |
getBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BootstrappingSnapshotInfo.Builder |
getBootstrappingSnapshotInfoBuilder()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BootstrappingSnapshotInfoOrBuilder |
getBootstrappingSnapshotInfoOrBuilder()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
com.google.protobuf.ByteString |
getCurrentBlockHash()
bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; |
BlockchainInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getHeight()
uint64 height = 1 [json_name = "height"]; |
com.google.protobuf.ByteString |
getPreviousBlockHash()
bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; |
boolean |
hasBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
boolean |
isInitialized() |
BlockchainInfo.Builder |
mergeBootstrappingSnapshotInfo(BootstrappingSnapshotInfo value)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BlockchainInfo.Builder |
mergeFrom(BlockchainInfo other) |
BlockchainInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BlockchainInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
BlockchainInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BlockchainInfo.Builder |
setBootstrappingSnapshotInfo(BootstrappingSnapshotInfo.Builder builderForValue)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BlockchainInfo.Builder |
setBootstrappingSnapshotInfo(BootstrappingSnapshotInfo value)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
|
BlockchainInfo.Builder |
setCurrentBlockHash(com.google.protobuf.ByteString value)
bytes currentBlockHash = 2 [json_name = "currentBlockHash"]; |
BlockchainInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BlockchainInfo.Builder |
setHeight(long value)
uint64 height = 1 [json_name = "height"]; |
BlockchainInfo.Builder |
setPreviousBlockHash(com.google.protobuf.ByteString value)
bytes previousBlockHash = 3 [json_name = "previousBlockHash"]; |
BlockchainInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BlockchainInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public BlockchainInfo.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BlockchainInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BlockchainInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BlockchainInfo.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder mergeFrom(BlockchainInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public BlockchainInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BlockchainInfo.Builder>
IOException
public long getHeight()
uint64 height = 1 [json_name = "height"];
getHeight
in interface BlockchainInfoOrBuilder
public BlockchainInfo.Builder setHeight(long value)
uint64 height = 1 [json_name = "height"];
value
- The height to set.public BlockchainInfo.Builder clearHeight()
uint64 height = 1 [json_name = "height"];
public com.google.protobuf.ByteString getCurrentBlockHash()
bytes currentBlockHash = 2 [json_name = "currentBlockHash"];
getCurrentBlockHash
in interface BlockchainInfoOrBuilder
public BlockchainInfo.Builder setCurrentBlockHash(com.google.protobuf.ByteString value)
bytes currentBlockHash = 2 [json_name = "currentBlockHash"];
value
- The currentBlockHash to set.public BlockchainInfo.Builder clearCurrentBlockHash()
bytes currentBlockHash = 2 [json_name = "currentBlockHash"];
public com.google.protobuf.ByteString getPreviousBlockHash()
bytes previousBlockHash = 3 [json_name = "previousBlockHash"];
getPreviousBlockHash
in interface BlockchainInfoOrBuilder
public BlockchainInfo.Builder setPreviousBlockHash(com.google.protobuf.ByteString value)
bytes previousBlockHash = 3 [json_name = "previousBlockHash"];
value
- The previousBlockHash to set.public BlockchainInfo.Builder clearPreviousBlockHash()
bytes previousBlockHash = 3 [json_name = "previousBlockHash"];
public boolean hasBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
hasBootstrappingSnapshotInfo
in interface BlockchainInfoOrBuilder
public BootstrappingSnapshotInfo getBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
getBootstrappingSnapshotInfo
in interface BlockchainInfoOrBuilder
public BlockchainInfo.Builder setBootstrappingSnapshotInfo(BootstrappingSnapshotInfo value)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
public BlockchainInfo.Builder setBootstrappingSnapshotInfo(BootstrappingSnapshotInfo.Builder builderForValue)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
public BlockchainInfo.Builder mergeBootstrappingSnapshotInfo(BootstrappingSnapshotInfo value)
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
public BlockchainInfo.Builder clearBootstrappingSnapshotInfo()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
public BootstrappingSnapshotInfo.Builder getBootstrappingSnapshotInfoBuilder()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
public BootstrappingSnapshotInfoOrBuilder getBootstrappingSnapshotInfoOrBuilder()
Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. It is nil if the channel is not bootstrapped from a snapshot.
.common.BootstrappingSnapshotInfo bootstrappingSnapshotInfo = 4 [json_name = "bootstrappingSnapshotInfo"];
getBootstrappingSnapshotInfoOrBuilder
in interface BlockchainInfoOrBuilder
public final BlockchainInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
public final BlockchainInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BlockchainInfo.Builder>
Copyright © 2022. All rights reserved.