public static final class Neutrino.GetBlockResponse extends com.google.protobuf.GeneratedMessageV3 implements Neutrino.GetBlockResponseOrBuilder
neutrinorpc.GetBlockResponse| Modifier and Type | Class and Description |
|---|---|
static class |
Neutrino.GetBlockResponse.Builder
Protobuf type
neutrinorpc.GetBlockResponse |
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 |
TX_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.GetBlockResponse |
getDefaultInstance() |
Neutrino.GetBlockResponse |
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.GetBlockResponse> |
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).
|
java.lang.String |
getTx(int index)
List of transaction ids.
|
com.google.protobuf.ByteString |
getTxBytes(int index)
List of transaction ids.
|
int |
getTxCount()
List of transaction ids.
|
com.google.protobuf.ProtocolStringList |
getTxList()
List of transaction ids.
|
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.GetBlockResponse.Builder |
newBuilder() |
static Neutrino.GetBlockResponse.Builder |
newBuilder(Neutrino.GetBlockResponse prototype) |
Neutrino.GetBlockResponse.Builder |
newBuilderForType() |
protected Neutrino.GetBlockResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Neutrino.GetBlockResponse |
parseDelimitedFrom(java.io.InputStream input) |
static Neutrino.GetBlockResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockResponse |
parseFrom(byte[] data) |
static Neutrino.GetBlockResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockResponse |
parseFrom(java.nio.ByteBuffer data) |
static Neutrino.GetBlockResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockResponse |
parseFrom(com.google.protobuf.ByteString data) |
static Neutrino.GetBlockResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Neutrino.GetBlockResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Neutrino.GetBlockResponse |
parseFrom(java.io.InputStream input) |
static Neutrino.GetBlockResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Neutrino.GetBlockResponse> |
parser() |
Neutrino.GetBlockResponse.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 TX_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.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getHashBytes()
The block hash (same as provided).
string hash = 1;getHashBytes in interface Neutrino.GetBlockResponseOrBuilderpublic long getConfirmations()
The number of confirmations.
int64 confirmations = 2;getConfirmations in interface Neutrino.GetBlockResponseOrBuilderpublic long getStrippedSize()
The block size excluding witness data.
int64 stripped_size = 3;getStrippedSize in interface Neutrino.GetBlockResponseOrBuilderpublic long getSize()
The block size (bytes).
int64 size = 4;getSize in interface Neutrino.GetBlockResponseOrBuilderpublic long getWeight()
The block weight as defined in BIP 141.
int64 weight = 5;getWeight in interface Neutrino.GetBlockResponseOrBuilderpublic int getHeight()
The block height or index.
int32 height = 6;getHeight in interface Neutrino.GetBlockResponseOrBuilderpublic int getVersion()
The block version.
int32 version = 7;getVersion in interface Neutrino.GetBlockResponseOrBuilderpublic java.lang.String getVersionHex()
The block version.
string version_hex = 8;getVersionHex in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getVersionHexBytes()
The block version.
string version_hex = 8;getVersionHexBytes in interface Neutrino.GetBlockResponseOrBuilderpublic java.lang.String getMerkleroot()
The merkle root.
string merkleroot = 9;getMerkleroot in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getMerklerootBytes()
The merkle root.
string merkleroot = 9;getMerklerootBytes in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ProtocolStringList getTxList()
List of transaction ids.
repeated string tx = 10;getTxList in interface Neutrino.GetBlockResponseOrBuilderpublic int getTxCount()
List of transaction ids.
repeated string tx = 10;getTxCount in interface Neutrino.GetBlockResponseOrBuilderpublic java.lang.String getTx(int index)
List of transaction ids.
repeated string tx = 10;getTx in interface Neutrino.GetBlockResponseOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTxBytes(int index)
List of transaction ids.
repeated string tx = 10;getTxBytes in interface Neutrino.GetBlockResponseOrBuilderindex - The index of the value to return.public long getTime()
The block time in seconds since epoch (Jan 1 1970 GMT).
int64 time = 11;getTime in interface Neutrino.GetBlockResponseOrBuilderpublic int getNonce()
The nonce.
uint32 nonce = 12;getNonce in interface Neutrino.GetBlockResponseOrBuilderpublic java.lang.String getBits()
The bits in hex notation.
string bits = 13;getBits in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getBitsBytes()
The bits in hex notation.
string bits = 13;getBitsBytes in interface Neutrino.GetBlockResponseOrBuilderpublic int getNtx()
The number of transactions in the block.
int32 ntx = 14;getNtx in interface Neutrino.GetBlockResponseOrBuilderpublic java.lang.String getPreviousBlockHash()
The hash of the previous block.
string previous_block_hash = 15;getPreviousBlockHash in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getPreviousBlockHashBytes()
The hash of the previous block.
string previous_block_hash = 15;getPreviousBlockHashBytes in interface Neutrino.GetBlockResponseOrBuilderpublic com.google.protobuf.ByteString getRawHex()
The raw hex of the block.
bytes raw_hex = 16;getRawHex in interface Neutrino.GetBlockResponseOrBuilderpublic 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.GetBlockResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Neutrino.GetBlockResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Neutrino.GetBlockResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Neutrino.GetBlockResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Neutrino.GetBlockResponse.Builder newBuilder()
public static Neutrino.GetBlockResponse.Builder newBuilder(Neutrino.GetBlockResponse prototype)
public Neutrino.GetBlockResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Neutrino.GetBlockResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Neutrino.GetBlockResponse getDefaultInstance()
public static com.google.protobuf.Parser<Neutrino.GetBlockResponse> parser()
public com.google.protobuf.Parser<Neutrino.GetBlockResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Neutrino.GetBlockResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder