public static final class Neutrino.GetBlockHeaderResponse extends com.google.protobuf.GeneratedMessageV3 implements Neutrino.GetBlockHeaderResponseOrBuilder
neutrinorpc.GetBlockHeaderResponse| Modifier and Type | Class and Description |
|---|---|
static class |
Neutrino.GetBlockHeaderResponse.Builder
Protobuf type
neutrinorpc.GetBlockHeaderResponse |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BITS_FIELD_NUMBER |
static int |
CONFIRMATIONS_FIELD_NUMBER |
static int |
HASH_FIELD_NUMBER |
static int |
HEIGHT_FIELD_NUMBER |
static int |
MERKLEROOT_FIELD_NUMBER |
static int |
NONCE_FIELD_NUMBER |
static int |
NTX_FIELD_NUMBER |
static int |
PREVIOUS_BLOCK_HASH_FIELD_NUMBER |
static int |
RAW_HEX_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
static int |
STRIPPED_SIZE_FIELD_NUMBER |
static int |
TIME_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
static int |
VERSION_HEX_FIELD_NUMBER |
static int |
WEIGHT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBits()
The bits in hex notation.
|
com.google.protobuf.ByteString |
getBitsBytes()
The bits in hex notation.
|
long |
getConfirmations()
The number of confirmations.
|
static Neutrino.GetBlockHeaderResponse |
getDefaultInstance() |
Neutrino.GetBlockHeaderResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getHash()
The block hash (same as provided).
|
com.google.protobuf.ByteString |
getHashBytes()
The block hash (same as provided).
|
int |
getHeight()
The block height or index.
|
java.lang.String |
getMerkleroot()
The merkle root.
|
com.google.protobuf.ByteString |
getMerklerootBytes()
The merkle root.
|
int |
getNonce()
The nonce.
|
int |
getNtx()
The number of transactions in the block.
|
com.google.protobuf.Parser<Neutrino.GetBlockHeaderResponse> |
getParserForType() |
java.lang.String |
getPreviousBlockHash()
The hash of the previous block.
|
com.google.protobuf.ByteString |
getPreviousBlockHashBytes()
The hash of the previous block.
|
com.google.protobuf.ByteString |
getRawHex()
The raw hex of the block.
|
int |
getSerializedSize() |
long |
getSize()
The block size (bytes).
|
long |
getStrippedSize()
The block size excluding witness data.
|
long |
getTime()
The block time in seconds since epoch (Jan 1 1970 GMT).
|
int |
getVersion()
The block version.
|
java.lang.String |
getVersionHex()
The block version.
|
com.google.protobuf.ByteString |
getVersionHexBytes()
The block version.
|
long |
getWeight()
The block weight as defined in BIP 141.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Neutrino.GetBlockHeaderResponse.Builder |
newBuilder() |
static Neutrino.GetBlockHeaderResponse.Builder |
newBuilder(Neutrino.GetBlockHeaderResponse prototype) |
Neutrino.GetBlockHeaderResponse.Builder |
newBuilderForType() |
protected Neutrino.GetBlockHeaderResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Neutrino.GetBlockHeaderResponse |
parseDelimitedFrom(java.io.InputStream input) |
static Neutrino.GetBlockHeaderResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(byte[] data) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(java.nio.ByteBuffer data) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(com.google.protobuf.ByteString data) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(java.io.InputStream input) |
static Neutrino.GetBlockHeaderResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Neutrino.GetBlockHeaderResponse> |
parser() |
Neutrino.GetBlockHeaderResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HASH_FIELD_NUMBER
public static final int CONFIRMATIONS_FIELD_NUMBER
public static final int STRIPPED_SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int VERSION_HEX_FIELD_NUMBER
public static final int MERKLEROOT_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
public static final int BITS_FIELD_NUMBER
public static final int NTX_FIELD_NUMBER
public static final int PREVIOUS_BLOCK_HASH_FIELD_NUMBER
public static final int RAW_HEX_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getHash()
The block hash (same as provided).
string hash = 1;getHash in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getHashBytes()
The block hash (same as provided).
string hash = 1;getHashBytes in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic long getConfirmations()
The number of confirmations.
int64 confirmations = 2;getConfirmations in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic long getStrippedSize()
The block size excluding witness data.
int64 stripped_size = 3;getStrippedSize in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic long getSize()
The block size (bytes).
int64 size = 4;getSize in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic long getWeight()
The block weight as defined in BIP 141.
int64 weight = 5;getWeight in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic int getHeight()
The block height or index.
int32 height = 6;getHeight in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic int getVersion()
The block version.
int32 version = 7;getVersion in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic java.lang.String getVersionHex()
The block version.
string version_hex = 8;getVersionHex in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getVersionHexBytes()
The block version.
string version_hex = 8;getVersionHexBytes in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic java.lang.String getMerkleroot()
The merkle root.
string merkleroot = 9;getMerkleroot in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getMerklerootBytes()
The merkle root.
string merkleroot = 9;getMerklerootBytes in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic long getTime()
The block time in seconds since epoch (Jan 1 1970 GMT).
int64 time = 10;getTime in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic int getNonce()
The nonce.
uint32 nonce = 11;getNonce in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic java.lang.String getBits()
The bits in hex notation.
string bits = 12;getBits in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getBitsBytes()
The bits in hex notation.
string bits = 12;getBitsBytes in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic int getNtx()
The number of transactions in the block.
int32 ntx = 13;getNtx in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic java.lang.String getPreviousBlockHash()
The hash of the previous block.
string previous_block_hash = 14;getPreviousBlockHash in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getPreviousBlockHashBytes()
The hash of the previous block.
string previous_block_hash = 14;getPreviousBlockHashBytes in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic com.google.protobuf.ByteString getRawHex()
The raw hex of the block.
bytes raw_hex = 15;getRawHex in interface Neutrino.GetBlockHeaderResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Neutrino.GetBlockHeaderResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockHeaderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockHeaderResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockHeaderResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Neutrino.GetBlockHeaderResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Neutrino.GetBlockHeaderResponse.Builder newBuilder()
public static Neutrino.GetBlockHeaderResponse.Builder newBuilder(Neutrino.GetBlockHeaderResponse prototype)
public Neutrino.GetBlockHeaderResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Neutrino.GetBlockHeaderResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Neutrino.GetBlockHeaderResponse getDefaultInstance()
public static com.google.protobuf.Parser<Neutrino.GetBlockHeaderResponse> parser()
public com.google.protobuf.Parser<Neutrino.GetBlockHeaderResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Neutrino.GetBlockHeaderResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder