public static final class Chainkit.GetBestBlockResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Chainkit.GetBestBlockResponse.Builder> implements Chainkit.GetBestBlockResponseOrBuilder
chainrpc.GetBestBlockResponse
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Chainkit.GetBestBlockResponse.Builder>
public Chainkit.GetBestBlockResponse.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<Chainkit.GetBestBlockResponse.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<Chainkit.GetBestBlockResponse.Builder>
public Chainkit.GetBestBlockResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Chainkit.GetBestBlockResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Chainkit.GetBestBlockResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Chainkit.GetBestBlockResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Chainkit.GetBestBlockResponse.Builder>
public Chainkit.GetBestBlockResponse.Builder mergeFrom(Chainkit.GetBestBlockResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Chainkit.GetBestBlockResponse.Builder>
public Chainkit.GetBestBlockResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<Chainkit.GetBestBlockResponse.Builder>
java.io.IOException
public com.google.protobuf.ByteString getBlockHash()
The hash of the best block.
bytes block_hash = 1;
getBlockHash
in interface Chainkit.GetBestBlockResponseOrBuilder
public Chainkit.GetBestBlockResponse.Builder setBlockHash(com.google.protobuf.ByteString value)
The hash of the best block.
bytes block_hash = 1;
value
- The blockHash to set.public Chainkit.GetBestBlockResponse.Builder clearBlockHash()
The hash of the best block.
bytes block_hash = 1;
public int getBlockHeight()
The height of the best block.
int32 block_height = 2;
getBlockHeight
in interface Chainkit.GetBestBlockResponseOrBuilder
public Chainkit.GetBestBlockResponse.Builder setBlockHeight(int value)
The height of the best block.
int32 block_height = 2;
value
- The blockHeight to set.public Chainkit.GetBestBlockResponse.Builder clearBlockHeight()
The height of the best block.
int32 block_height = 2;
public final Chainkit.GetBestBlockResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Chainkit.GetBestBlockResponse.Builder>
public final Chainkit.GetBestBlockResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Chainkit.GetBestBlockResponse.Builder>