java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractID,ContractID.Builder>
com.google.protobuf.GeneratedMessageLite<ContractID,ContractID.Builder>
com.hedera.hashgraph.sdk.proto.ContractID
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractIDOrBuilder
@Generated
public final class ContractID
extends com.google.protobuf.GeneratedMessageLite<ContractID,ContractID.Builder>
implements ContractIDOrBuilder
* An identifier for a smart contract within the network.Protobuf type
proto.ContractID-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* An identifier for a smart contract within the network.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) long* A whole number contract identifier, unique within its realm and shard.static ContractIDcom.google.protobuf.ByteString* A 20-byte EVM address of the contract to call.long* A whole number realm identifier.long* A whole number shard identifier.boolean* A whole number contract identifier, unique within its realm and shard.boolean* A 20-byte EVM address of the contract to call.static ContractID.Builderstatic ContractID.BuildernewBuilder(ContractID prototype) static ContractIDparseDelimitedFrom(InputStream input) static ContractIDparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractIDparseFrom(byte[] data) static ContractIDparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractIDparseFrom(com.google.protobuf.ByteString data) static ContractIDparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractIDparseFrom(com.google.protobuf.CodedInputStream input) static ContractIDparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractIDparseFrom(InputStream input) static ContractIDparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractIDparseFrom(ByteBuffer data) static ContractIDparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContractID> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
SHARDNUM_FIELD_NUMBER
public static final int SHARDNUM_FIELD_NUMBER- See Also:
-
REALMNUM_FIELD_NUMBER
public static final int REALMNUM_FIELD_NUMBER- See Also:
-
CONTRACTNUM_FIELD_NUMBER
public static final int CONTRACTNUM_FIELD_NUMBER- See Also:
-
EVM_ADDRESS_FIELD_NUMBER
public static final int EVM_ADDRESS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getContractCase
- Specified by:
getContractCasein interfaceContractIDOrBuilder
-
getShardNum
public long getShardNum()* A whole number shard identifier.
int64 shardNum = 1;- Specified by:
getShardNumin interfaceContractIDOrBuilder- Returns:
- The shardNum.
-
getRealmNum
public long getRealmNum()* A whole number realm identifier.
int64 realmNum = 2;- Specified by:
getRealmNumin interfaceContractIDOrBuilder- Returns:
- The realmNum.
-
hasContractNum
public boolean hasContractNum()* A whole number contract identifier, unique within its realm and shard.
int64 contractNum = 3;- Specified by:
hasContractNumin interfaceContractIDOrBuilder- Returns:
- Whether the contractNum field is set.
-
getContractNum
public long getContractNum()* A whole number contract identifier, unique within its realm and shard.
int64 contractNum = 3;- Specified by:
getContractNumin interfaceContractIDOrBuilder- Returns:
- The contractNum.
-
hasEvmAddress
public boolean hasEvmAddress()* A 20-byte EVM address of the contract to call. <p> A contract created via a HAPI `ContractCreate` call SHALL have an EVM address determined by its `shard.realm.num` identifier.<br/> This address is as follows <ol> <li>4 byte big-endian shard number</li> <li>8 byte big-endian realm number</li> <li>8 byte big-endian contract number</li> </ol> This address is not stored in state, but is computed when needed. <p> Contracts created by any other means, including a HAPI `EthereumTransaction` whose `to` address is the zero address, SHALL have the EVM address prescribed by the `CREATE` or `CREATE2` opcode, as applicable.
bytes evm_address = 4;- Specified by:
hasEvmAddressin interfaceContractIDOrBuilder- Returns:
- Whether the evmAddress field is set.
-
getEvmAddress
public com.google.protobuf.ByteString getEvmAddress()* A 20-byte EVM address of the contract to call. <p> A contract created via a HAPI `ContractCreate` call SHALL have an EVM address determined by its `shard.realm.num` identifier.<br/> This address is as follows <ol> <li>4 byte big-endian shard number</li> <li>8 byte big-endian realm number</li> <li>8 byte big-endian contract number</li> </ol> This address is not stored in state, but is computed when needed. <p> Contracts created by any other means, including a HAPI `EthereumTransaction` whose `to` address is the zero address, SHALL have the EVM address prescribed by the `CREATE` or `CREATE2` opcode, as applicable.
bytes evm_address = 4;- Specified by:
getEvmAddressin interfaceContractIDOrBuilder- Returns:
- The evmAddress.
-
parseFrom
public static ContractID parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractID parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractID parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractID parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractID parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractID parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ContractID parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractID parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractID,ContractID.Builder>
-
getDefaultInstance
-
parser
-