All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.EntityID Maven / Gradle / Ivy

There is a newer version: 2.40.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: get_by_key.proto

// Protobuf Java Version: 3.25.3
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.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.EntityID) EntityIDOrBuilder { private static final long serialVersionUID = 0L; // Use EntityID.newBuilder() to construct. private EntityID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntityID() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EntityID(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.GetByKey.internal_static_proto_EntityID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.EntityID.class, com.hedera.hashgraph.sdk.proto.EntityID.Builder.class); } private int entityCase_ = 0; @SuppressWarnings("serial") private java.lang.Object entity_; public enum EntityCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCOUNTID(1), LIVEHASH(2), FILEID(3), CONTRACTID(4), ENTITY_NOT_SET(0); private final int value; private EntityCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; } }; public EntityCase getEntityCase() { return EntityCase.forNumber( entityCase_); } public static final int ACCOUNTID_FIELD_NUMBER = 1; /** *
   **
   * The Account ID for the cryptocurrency account
   * 
* * .proto.AccountID accountID = 1; * @return Whether the accountID field is set. */ @java.lang.Override public boolean hasAccountID() { return entityCase_ == 1; } /** *
   **
   * The Account ID for the cryptocurrency account
   * 
* * .proto.AccountID accountID = 1; * @return The accountID. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() { if (entityCase_ == 1) { return (com.hedera.hashgraph.sdk.proto.AccountID) entity_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } public static final int LIVEHASH_FIELD_NUMBER = 2; /** *
   **
   * A uniquely identifying livehash of an acount
   * 
* * .proto.LiveHash liveHash = 2; * @return Whether the liveHash field is set. */ @java.lang.Override public boolean hasLiveHash() { return entityCase_ == 2; } /** *
   **
   * A uniquely identifying livehash of an acount
   * 
* * .proto.LiveHash liveHash = 2; * @return The liveHash. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder getLiveHashOrBuilder() { if (entityCase_ == 2) { return (com.hedera.hashgraph.sdk.proto.LiveHash) entity_; } return com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance(); } public static final int FILEID_FIELD_NUMBER = 3; /** *
   **
   * The file ID of the file
   * 
* * .proto.FileID fileID = 3; * @return Whether the fileID field is set. */ @java.lang.Override public boolean hasFileID() { return entityCase_ == 3; } /** *
   **
   * The file ID of the file
   * 
* * .proto.FileID fileID = 3; * @return The fileID. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() { if (entityCase_ == 3) { return (com.hedera.hashgraph.sdk.proto.FileID) entity_; } return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance(); } public static final int CONTRACTID_FIELD_NUMBER = 4; /** *
   **
   * The smart contract ID that identifies instance
   * 
* * .proto.ContractID contractID = 4; * @return Whether the contractID field is set. */ @java.lang.Override public boolean hasContractID() { return entityCase_ == 4; } /** *
   **
   * The smart contract ID that identifies instance
   * 
* * .proto.ContractID contractID = 4; * @return The contractID. */ @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; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { if (entityCase_ == 4) { return (com.hedera.hashgraph.sdk.proto.ContractID) entity_; } return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (entityCase_ == 1) { output.writeMessage(1, (com.hedera.hashgraph.sdk.proto.AccountID) entity_); } if (entityCase_ == 2) { output.writeMessage(2, (com.hedera.hashgraph.sdk.proto.LiveHash) entity_); } if (entityCase_ == 3) { output.writeMessage(3, (com.hedera.hashgraph.sdk.proto.FileID) entity_); } if (entityCase_ == 4) { output.writeMessage(4, (com.hedera.hashgraph.sdk.proto.ContractID) entity_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (entityCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.hedera.hashgraph.sdk.proto.AccountID) entity_); } if (entityCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.hedera.hashgraph.sdk.proto.LiveHash) entity_); } if (entityCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.hedera.hashgraph.sdk.proto.FileID) entity_); } if (entityCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.hedera.hashgraph.sdk.proto.ContractID) entity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.EntityID)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.EntityID other = (com.hedera.hashgraph.sdk.proto.EntityID) obj; if (!getEntityCase().equals(other.getEntityCase())) return false; switch (entityCase_) { case 1: if (!getAccountID() .equals(other.getAccountID())) return false; break; case 2: if (!getLiveHash() .equals(other.getLiveHash())) return false; break; case 3: if (!getFileID() .equals(other.getFileID())) return false; break; case 4: if (!getContractID() .equals(other.getContractID())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (entityCase_) { case 1: hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getAccountID().hashCode(); break; case 2: hash = (37 * hash) + LIVEHASH_FIELD_NUMBER; hash = (53 * hash) + getLiveHash().hashCode(); break; case 3: hash = (37 * hash) + FILEID_FIELD_NUMBER; hash = (53 * hash) + getFileID().hashCode(); break; case 4: hash = (37 * hash) + CONTRACTID_FIELD_NUMBER; hash = (53 * hash) + getContractID().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.EntityID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.EntityID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.EntityID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, 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.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.EntityID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.EntityID) com.hedera.hashgraph.sdk.proto.EntityIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.GetByKey.internal_static_proto_EntityID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.EntityID.class, com.hedera.hashgraph.sdk.proto.EntityID.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.EntityID.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (accountIDBuilder_ != null) { accountIDBuilder_.clear(); } if (liveHashBuilder_ != null) { liveHashBuilder_.clear(); } if (fileIDBuilder_ != null) { fileIDBuilder_.clear(); } if (contractIDBuilder_ != null) { contractIDBuilder_.clear(); } entityCase_ = 0; entity_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.EntityID getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.EntityID.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.EntityID build() { com.hedera.hashgraph.sdk.proto.EntityID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.EntityID buildPartial() { com.hedera.hashgraph.sdk.proto.EntityID result = new com.hedera.hashgraph.sdk.proto.EntityID(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.EntityID result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.EntityID result) { result.entityCase_ = entityCase_; result.entity_ = this.entity_; if (entityCase_ == 1 && accountIDBuilder_ != null) { result.entity_ = accountIDBuilder_.build(); } if (entityCase_ == 2 && liveHashBuilder_ != null) { result.entity_ = liveHashBuilder_.build(); } if (entityCase_ == 3 && fileIDBuilder_ != null) { result.entity_ = fileIDBuilder_.build(); } if (entityCase_ == 4 && contractIDBuilder_ != null) { result.entity_ = contractIDBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.EntityID) { return mergeFrom((com.hedera.hashgraph.sdk.proto.EntityID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.EntityID other) { if (other == com.hedera.hashgraph.sdk.proto.EntityID.getDefaultInstance()) return this; switch (other.getEntityCase()) { case ACCOUNTID: { mergeAccountID(other.getAccountID()); break; } case LIVEHASH: { mergeLiveHash(other.getLiveHash()); break; } case FILEID: { mergeFileID(other.getFileID()); break; } case CONTRACTID: { mergeContractID(other.getContractID()); break; } case ENTITY_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAccountIDFieldBuilder().getBuilder(), extensionRegistry); entityCase_ = 1; break; } // case 10 case 18: { input.readMessage( getLiveHashFieldBuilder().getBuilder(), extensionRegistry); entityCase_ = 2; break; } // case 18 case 26: { input.readMessage( getFileIDFieldBuilder().getBuilder(), extensionRegistry); entityCase_ = 3; break; } // case 26 case 34: { input.readMessage( getContractIDFieldBuilder().getBuilder(), extensionRegistry); entityCase_ = 4; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int entityCase_ = 0; private java.lang.Object entity_; public EntityCase getEntityCase() { return EntityCase.forNumber( entityCase_); } public Builder clearEntity() { entityCase_ = 0; entity_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDBuilder_; /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; * @return Whether the accountID field is set. */ @java.lang.Override public boolean hasAccountID() { return entityCase_ == 1; } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; * @return The accountID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() { if (accountIDBuilder_ == null) { if (entityCase_ == 1) { return (com.hedera.hashgraph.sdk.proto.AccountID) entity_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } else { if (entityCase_ == 1) { return accountIDBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { accountIDBuilder_.setMessage(value); } entityCase_ = 1; return this; } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public Builder setAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIDBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { accountIDBuilder_.setMessage(builderForValue.build()); } entityCase_ = 1; return this; } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIDBuilder_ == null) { 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; } onChanged(); } else { if (entityCase_ == 1) { accountIDBuilder_.mergeFrom(value); } else { accountIDBuilder_.setMessage(value); } } entityCase_ = 1; return this; } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public Builder clearAccountID() { if (accountIDBuilder_ == null) { if (entityCase_ == 1) { entityCase_ = 0; entity_ = null; onChanged(); } } else { if (entityCase_ == 1) { entityCase_ = 0; entity_ = null; } accountIDBuilder_.clear(); } return this; } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDBuilder() { return getAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() { if ((entityCase_ == 1) && (accountIDBuilder_ != null)) { return accountIDBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIDFieldBuilder() { if (accountIDBuilder_ == null) { if (!(entityCase_ == 1)) { entity_ = com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( (com.hedera.hashgraph.sdk.proto.AccountID) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 1; onChanged(); return accountIDBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder> liveHashBuilder_; /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; * @return Whether the liveHash field is set. */ @java.lang.Override public boolean hasLiveHash() { return entityCase_ == 2; } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; * @return The liveHash. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHash() { if (liveHashBuilder_ == null) { if (entityCase_ == 2) { return (com.hedera.hashgraph.sdk.proto.LiveHash) entity_; } return com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance(); } else { if (entityCase_ == 2) { return liveHashBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance(); } } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public Builder setLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) { if (liveHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { liveHashBuilder_.setMessage(value); } entityCase_ = 2; return this; } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public Builder setLiveHash( com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) { if (liveHashBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { liveHashBuilder_.setMessage(builderForValue.build()); } entityCase_ = 2; return this; } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public Builder mergeLiveHash(com.hedera.hashgraph.sdk.proto.LiveHash value) { if (liveHashBuilder_ == null) { 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; } onChanged(); } else { if (entityCase_ == 2) { liveHashBuilder_.mergeFrom(value); } else { liveHashBuilder_.setMessage(value); } } entityCase_ = 2; return this; } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public Builder clearLiveHash() { if (liveHashBuilder_ == null) { if (entityCase_ == 2) { entityCase_ = 0; entity_ = null; onChanged(); } } else { if (entityCase_ == 2) { entityCase_ = 0; entity_ = null; } liveHashBuilder_.clear(); } return this; } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public com.hedera.hashgraph.sdk.proto.LiveHash.Builder getLiveHashBuilder() { return getLiveHashFieldBuilder().getBuilder(); } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder getLiveHashOrBuilder() { if ((entityCase_ == 2) && (liveHashBuilder_ != null)) { return liveHashBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder> getLiveHashFieldBuilder() { if (liveHashBuilder_ == null) { if (!(entityCase_ == 2)) { entity_ = com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance(); } liveHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>( (com.hedera.hashgraph.sdk.proto.LiveHash) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 2; onChanged(); return liveHashBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> fileIDBuilder_; /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; * @return Whether the fileID field is set. */ @java.lang.Override public boolean hasFileID() { return entityCase_ == 3; } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; * @return The fileID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getFileID() { if (fileIDBuilder_ == null) { if (entityCase_ == 3) { return (com.hedera.hashgraph.sdk.proto.FileID) entity_; } return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance(); } else { if (entityCase_ == 3) { return fileIDBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance(); } } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) { if (fileIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { fileIDBuilder_.setMessage(value); } entityCase_ = 3; return this; } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public Builder setFileID( com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) { if (fileIDBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { fileIDBuilder_.setMessage(builderForValue.build()); } entityCase_ = 3; return this; } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) { if (fileIDBuilder_ == null) { 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; } onChanged(); } else { if (entityCase_ == 3) { fileIDBuilder_.mergeFrom(value); } else { fileIDBuilder_.setMessage(value); } } entityCase_ = 3; return this; } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public Builder clearFileID() { if (fileIDBuilder_ == null) { if (entityCase_ == 3) { entityCase_ = 0; entity_ = null; onChanged(); } } else { if (entityCase_ == 3) { entityCase_ = 0; entity_ = null; } fileIDBuilder_.clear(); } return this; } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() { return getFileIDFieldBuilder().getBuilder(); } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() { if ((entityCase_ == 3) && (fileIDBuilder_ != null)) { return fileIDBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { if (!(entityCase_ == 3)) { entity_ = com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance(); } fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>( (com.hedera.hashgraph.sdk.proto.FileID) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 3; onChanged(); return fileIDBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_; /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; * @return Whether the contractID field is set. */ @java.lang.Override public boolean hasContractID() { return entityCase_ == 4; } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; * @return The contractID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { if (contractIDBuilder_ == null) { if (entityCase_ == 4) { return (com.hedera.hashgraph.sdk.proto.ContractID) entity_; } return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } else { if (entityCase_ == 4) { return contractIDBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { contractIDBuilder_.setMessage(value); } entityCase_ = 4; return this; } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { if (contractIDBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { contractIDBuilder_.setMessage(builderForValue.build()); } entityCase_ = 4; return this; } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { if (contractIDBuilder_ == null) { 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; } onChanged(); } else { if (entityCase_ == 4) { contractIDBuilder_.mergeFrom(value); } else { contractIDBuilder_.setMessage(value); } } entityCase_ = 4; return this; } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public Builder clearContractID() { if (contractIDBuilder_ == null) { if (entityCase_ == 4) { entityCase_ = 0; entity_ = null; onChanged(); } } else { if (entityCase_ == 4) { entityCase_ = 0; entity_ = null; } contractIDBuilder_.clear(); } return this; } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() { return getContractIDFieldBuilder().getBuilder(); } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() { if ((entityCase_ == 4) && (contractIDBuilder_ != null)) { return contractIDBuilder_.getMessageOrBuilder(); } else { 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 com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> getContractIDFieldBuilder() { if (contractIDBuilder_ == null) { if (!(entityCase_ == 4)) { entity_ = com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance(); } contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>( (com.hedera.hashgraph.sdk.proto.ContractID) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 4; onChanged(); return contractIDBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.EntityID) } // @@protoc_insertion_point(class_scope:proto.EntityID) private static final com.hedera.hashgraph.sdk.proto.EntityID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.EntityID(); } public static com.hedera.hashgraph.sdk.proto.EntityID getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntityID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.EntityID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy