com.hedera.hashgraph.sdk.proto.EntityID Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: get_by_key.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* the ID for a single entity (account, livehash, file, or smart contract instance)
*
*
* Protobuf type {@code proto.EntityID}
*/
public final class EntityID extends
com.google.protobuf.GeneratedMessageLite<
EntityID, EntityID.Builder> implements
// @@protoc_insertion_point(message_implements:proto.EntityID)
EntityIDOrBuilder {
private EntityID() {
}
private int entityCase_ = 0;
private java.lang.Object entity_;
public enum EntityCase {
ACCOUNTID(1),
LIVEHASH(2),
FILEID(3),
CONTRACTID(4),
ENTITY_NOT_SET(0);
private final int value;
private EntityCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EntityCase valueOf(int value) {
return forNumber(value);
}
public static EntityCase forNumber(int value) {
switch (value) {
case 1: return ACCOUNTID;
case 2: return LIVEHASH;
case 3: return FILEID;
case 4: return CONTRACTID;
case 0: return ENTITY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public EntityCase
getEntityCase() {
return EntityCase.forNumber(
entityCase_);
}
private void clearEntity() {
entityCase_ = 0;
entity_ = null;
}
public static final int ACCOUNTID_FIELD_NUMBER = 1;
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
@java.lang.Override
public boolean hasAccountID() {
return entityCase_ == 1;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
if (entityCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.AccountID) entity_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
private void setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
entity_ = value;
entityCase_ = 1;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
private void mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (entityCase_ == 1 &&
entity_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
entity_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) entity_)
.mergeFrom(value).buildPartial();
} else {
entity_ = value;
}
entityCase_ = 1;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
private void clearAccountID() {
if (entityCase_ == 1) {
entityCase_ = 0;
entity_ = null;
}
}
public static final int LIVEHASH_FIELD_NUMBER = 2;
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
@java.lang.Override
public boolean hasLiveHash() {
return entityCase_ == 2;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHash() {
if (entityCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.LiveHash) entity_;
}
return com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance();
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
private void setLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
value.getClass();
entity_ = value;
entityCase_ = 2;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
private void mergeLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
value.getClass();
if (entityCase_ == 2 &&
entity_ != com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance()) {
entity_ = com.hedera.hashgraph.sdk.proto.LiveHash.newBuilder((com.hedera.hashgraph.sdk.proto.LiveHash) entity_)
.mergeFrom(value).buildPartial();
} else {
entity_ = value;
}
entityCase_ = 2;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
private void clearLiveHash() {
if (entityCase_ == 2) {
entityCase_ = 0;
entity_ = null;
}
}
public static final int FILEID_FIELD_NUMBER = 3;
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public boolean hasFileID() {
return entityCase_ == 3;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (entityCase_ == 3) {
return (com.hedera.hashgraph.sdk.proto.FileID) entity_;
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
private void setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
entity_ = value;
entityCase_ = 3;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
private void mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
if (entityCase_ == 3 &&
entity_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
entity_ = com.hedera.hashgraph.sdk.proto.FileID.newBuilder((com.hedera.hashgraph.sdk.proto.FileID) entity_)
.mergeFrom(value).buildPartial();
} else {
entity_ = value;
}
entityCase_ = 3;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
private void clearFileID() {
if (entityCase_ == 3) {
entityCase_ = 0;
entity_ = null;
}
}
public static final int CONTRACTID_FIELD_NUMBER = 4;
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public boolean hasContractID() {
return entityCase_ == 4;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (entityCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.ContractID) entity_;
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
private void setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
value.getClass();
entity_ = value;
entityCase_ = 4;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
private void mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
value.getClass();
if (entityCase_ == 4 &&
entity_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) {
entity_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder((com.hedera.hashgraph.sdk.proto.ContractID) entity_)
.mergeFrom(value).buildPartial();
} else {
entity_ = value;
}
entityCase_ = 4;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
private void clearContractID() {
if (entityCase_ == 4) {
entityCase_ = 0;
entity_ = null;
}
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.EntityID prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* the ID for a single entity (account, livehash, file, or smart contract instance)
*
*
* Protobuf type {@code proto.EntityID}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.EntityID, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.EntityID)
com.hedera.hashgraph.sdk.proto.EntityIDOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.EntityID.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public EntityCase
getEntityCase() {
return instance.getEntityCase();
}
public Builder clearEntity() {
copyOnWrite();
instance.clearEntity();
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
@java.lang.Override
public boolean hasAccountID() {
return instance.hasAccountID();
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
return instance.getAccountID();
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setAccountID(value);
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
public Builder setAccountID(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setAccountID(builderForValue.build());
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeAccountID(value);
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 1;
*/
public Builder clearAccountID() {
copyOnWrite();
instance.clearAccountID();
return this;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
@java.lang.Override
public boolean hasLiveHash() {
return instance.hasLiveHash();
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHash() {
return instance.getLiveHash();
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
public Builder setLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
copyOnWrite();
instance.setLiveHash(value);
return this;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
public Builder setLiveHash(
com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) {
copyOnWrite();
instance.setLiveHash(builderForValue.build());
return this;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
public Builder mergeLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) {
copyOnWrite();
instance.mergeLiveHash(value);
return this;
}
/**
*
**
* A uniquely identifying livehash of an acount
*
*
* .proto.LiveHash liveHash = 2;
*/
public Builder clearLiveHash() {
copyOnWrite();
instance.clearLiveHash();
return this;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public boolean hasFileID() {
return instance.hasFileID();
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return instance.getFileID();
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.setFileID(value);
return this;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
copyOnWrite();
instance.setFileID(builderForValue.build());
return this;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.mergeFileID(value);
return this;
}
/**
*
**
* The file ID of the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder clearFileID() {
copyOnWrite();
instance.clearFileID();
return this;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public boolean hasContractID() {
return instance.hasContractID();
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
return instance.getContractID();
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
copyOnWrite();
instance.setContractID(value);
return this;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
copyOnWrite();
instance.setContractID(builderForValue.build());
return this;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
copyOnWrite();
instance.mergeContractID(value);
return this;
}
/**
*
**
* The smart contract ID that identifies instance
*
*
* .proto.ContractID contractID = 4;
*/
public Builder clearContractID() {
copyOnWrite();
instance.clearContractID();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.EntityID)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.EntityID();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"entity_",
"entityCase_",
com.hedera.hashgraph.sdk.proto.AccountID.class,
com.hedera.hashgraph.sdk.proto.LiveHash.class,
com.hedera.hashgraph.sdk.proto.FileID.class,
com.hedera.hashgraph.sdk.proto.ContractID.class,
};
java.lang.String info =
"\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001<\u0000\u0002<" +
"\u0000\u0003<\u0000\u0004<\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.EntityID.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.EntityID)
private static final com.hedera.hashgraph.sdk.proto.EntityID DEFAULT_INSTANCE;
static {
EntityID defaultInstance = new EntityID();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
EntityID.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.EntityID getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy