java.lang.Object
com.hedera.hashgraph.sdk.NetworkVersionInfo
Internal utility class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SemanticVersionVersion of the protobuf schema in use by the networkfinal SemanticVersionVersion of the Hedera services in use by the network -
Constructor Summary
ConstructorsConstructorDescriptionNetworkVersionInfo(SemanticVersion hapi, SemanticVersion hedera) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkVersionInfofromBytes(byte[] bytes) Create a network version info object from a byte array.protected static NetworkVersionInfoCreate a network version info object from a protobuf.byte[]toBytes()Create the byte array.protected NetworkGetVersionInfoResponseCreate the protobuf.
-
Field Details
-
protobufVersion
Version of the protobuf schema in use by the network -
servicesVersion
Version of the Hedera services in use by the network
-
-
Constructor Details
-
NetworkVersionInfo
NetworkVersionInfo(SemanticVersion hapi, SemanticVersion hedera) Constructor.- Parameters:
hapi- the protobuf versionhedera- the hedera version
-
-
Method Details
-
fromProtobuf
Create a network version info object from a protobuf.- Parameters:
proto- the protobuf- Returns:
- the new network version object
-
fromBytes
public static NetworkVersionInfo fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create a network version info object from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new network version object
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
toProtobuf
Create the protobuf.- Returns:
- the protobuf representation
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- the byte array representation
-