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

com.hederahashgraph.api.proto.java.EntityID Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EntityID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (entityCase_ == 1) { subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) entity_).toBuilder(); } entity_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) entity_); entity_ = subBuilder.buildPartial(); } entityCase_ = 1; break; } case 18: { com.hederahashgraph.api.proto.java.LiveHash.Builder subBuilder = null; if (entityCase_ == 2) { subBuilder = ((com.hederahashgraph.api.proto.java.LiveHash) entity_).toBuilder(); } entity_ = input.readMessage(com.hederahashgraph.api.proto.java.LiveHash.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.LiveHash) entity_); entity_ = subBuilder.buildPartial(); } entityCase_ = 2; break; } case 26: { com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null; if (entityCase_ == 3) { subBuilder = ((com.hederahashgraph.api.proto.java.FileID) entity_).toBuilder(); } entity_ = input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.FileID) entity_); entity_ = subBuilder.buildPartial(); } entityCase_ = 3; break; } case 34: { com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; if (entityCase_ == 4) { subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) entity_).toBuilder(); } entity_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) entity_); entity_ = subBuilder.buildPartial(); } entityCase_ = 4; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.GetByKey.internal_static_proto_EntityID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.EntityID.class, com.hederahashgraph.api.proto.java.EntityID.Builder.class); } private int entityCase_ = 0; 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.hederahashgraph.api.proto.java.AccountID getAccountID() { if (entityCase_ == 1) { return (com.hederahashgraph.api.proto.java.AccountID) entity_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } /** *
   **
   * The Account ID for the cryptocurrency account
   * 
* * .proto.AccountID accountID = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() { if (entityCase_ == 1) { return (com.hederahashgraph.api.proto.java.AccountID) entity_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash getLiveHash() { if (entityCase_ == 2) { return (com.hederahashgraph.api.proto.java.LiveHash) entity_; } return com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } /** *
   **
   * A uniquely identifying livehash of an acount
   * 
* * .proto.LiveHash liveHash = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.LiveHashOrBuilder getLiveHashOrBuilder() { if (entityCase_ == 2) { return (com.hederahashgraph.api.proto.java.LiveHash) entity_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID getFileID() { if (entityCase_ == 3) { return (com.hederahashgraph.api.proto.java.FileID) entity_; } return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); } /** *
   **
   * The file ID of the file
   * 
* * .proto.FileID fileID = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { if (entityCase_ == 3) { return (com.hederahashgraph.api.proto.java.FileID) entity_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID getContractID() { if (entityCase_ == 4) { return (com.hederahashgraph.api.proto.java.ContractID) entity_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } /** *
   **
   * The smart contract ID that identifies instance
   * 
* * .proto.ContractID contractID = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { if (entityCase_ == 4) { return (com.hederahashgraph.api.proto.java.ContractID) entity_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID) entity_); } if (entityCase_ == 2) { output.writeMessage(2, (com.hederahashgraph.api.proto.java.LiveHash) entity_); } if (entityCase_ == 3) { output.writeMessage(3, (com.hederahashgraph.api.proto.java.FileID) entity_); } if (entityCase_ == 4) { output.writeMessage(4, (com.hederahashgraph.api.proto.java.ContractID) entity_); } unknownFields.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.hederahashgraph.api.proto.java.AccountID) entity_); } if (entityCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.hederahashgraph.api.proto.java.LiveHash) entity_); } if (entityCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.hederahashgraph.api.proto.java.FileID) entity_); } if (entityCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.hederahashgraph.api.proto.java.ContractID) entity_); } size += unknownFields.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.hederahashgraph.api.proto.java.EntityID)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.EntityID other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.EntityID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.EntityID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.EntityID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.EntityID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.EntityID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.EntityID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.EntityID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.EntityID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.EntityIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.GetByKey.internal_static_proto_EntityID_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.EntityID.class, com.hederahashgraph.api.proto.java.EntityID.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.EntityID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); entityCase_ = 0; entity_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.GetByKey.internal_static_proto_EntityID_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.EntityID getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.EntityID.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.EntityID build() { com.hederahashgraph.api.proto.java.EntityID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.EntityID buildPartial() { com.hederahashgraph.api.proto.java.EntityID result = new com.hederahashgraph.api.proto.java.EntityID(this); if (entityCase_ == 1) { if (accountIDBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = accountIDBuilder_.build(); } } if (entityCase_ == 2) { if (liveHashBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = liveHashBuilder_.build(); } } if (entityCase_ == 3) { if (fileIDBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = fileIDBuilder_.build(); } } if (entityCase_ == 4) { if (contractIDBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = contractIDBuilder_.build(); } } result.entityCase_ = entityCase_; onBuilt(); return result; } @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.hederahashgraph.api.proto.java.EntityID) { return mergeFrom((com.hederahashgraph.api.proto.java.EntityID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.EntityID other) { if (other == com.hederahashgraph.api.proto.java.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.unknownFields); 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 { com.hederahashgraph.api.proto.java.EntityID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.EntityID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID getAccountID() { if (accountIDBuilder_ == null) { if (entityCase_ == 1) { return (com.hederahashgraph.api.proto.java.AccountID) entity_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } else { if (entityCase_ == 1) { return accountIDBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ public Builder setAccountID(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (accountIDBuilder_ == null) { if (entityCase_ == 1 && entity_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) { entity_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) entity_) .mergeFrom(value).buildPartial(); } else { entity_ = value; } onChanged(); } else { if (entityCase_ == 1) { accountIDBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder getAccountIDBuilder() { return getAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() { if ((entityCase_ == 1) && (accountIDBuilder_ != null)) { return accountIDBuilder_.getMessageOrBuilder(); } else { if (entityCase_ == 1) { return (com.hederahashgraph.api.proto.java.AccountID) entity_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * The Account ID for the cryptocurrency account
     * 
* * .proto.AccountID accountID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getAccountIDFieldBuilder() { if (accountIDBuilder_ == null) { if (!(entityCase_ == 1)) { entity_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( (com.hederahashgraph.api.proto.java.AccountID) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 1; onChanged();; return accountIDBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.LiveHash, com.hederahashgraph.api.proto.java.LiveHash.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash getLiveHash() { if (liveHashBuilder_ == null) { if (entityCase_ == 2) { return (com.hederahashgraph.api.proto.java.LiveHash) entity_; } return com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } else { if (entityCase_ == 2) { return liveHashBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ public Builder setLiveHash(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.LiveHash value) { if (liveHashBuilder_ == null) { if (entityCase_ == 2 && entity_ != com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance()) { entity_ = com.hederahashgraph.api.proto.java.LiveHash.newBuilder((com.hederahashgraph.api.proto.java.LiveHash) entity_) .mergeFrom(value).buildPartial(); } else { entity_ = value; } onChanged(); } else { if (entityCase_ == 2) { liveHashBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.LiveHash.Builder getLiveHashBuilder() { return getLiveHashFieldBuilder().getBuilder(); } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.LiveHashOrBuilder getLiveHashOrBuilder() { if ((entityCase_ == 2) && (liveHashBuilder_ != null)) { return liveHashBuilder_.getMessageOrBuilder(); } else { if (entityCase_ == 2) { return (com.hederahashgraph.api.proto.java.LiveHash) entity_; } return com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } } /** *
     **
     * A uniquely identifying livehash of an acount
     * 
* * .proto.LiveHash liveHash = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.LiveHash, com.hederahashgraph.api.proto.java.LiveHash.Builder, com.hederahashgraph.api.proto.java.LiveHashOrBuilder> getLiveHashFieldBuilder() { if (liveHashBuilder_ == null) { if (!(entityCase_ == 2)) { entity_ = com.hederahashgraph.api.proto.java.LiveHash.getDefaultInstance(); } liveHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.LiveHash, com.hederahashgraph.api.proto.java.LiveHash.Builder, com.hederahashgraph.api.proto.java.LiveHashOrBuilder>( (com.hederahashgraph.api.proto.java.LiveHash) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 2; onChanged();; return liveHashBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID getFileID() { if (fileIDBuilder_ == null) { if (entityCase_ == 3) { return (com.hederahashgraph.api.proto.java.FileID) entity_; } return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); } else { if (entityCase_ == 3) { return fileIDBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); } } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ public Builder setFileID(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (entityCase_ == 3 && entity_ != com.hederahashgraph.api.proto.java.FileID.getDefaultInstance()) { entity_ = com.hederahashgraph.api.proto.java.FileID.newBuilder((com.hederahashgraph.api.proto.java.FileID) entity_) .mergeFrom(value).buildPartial(); } else { entity_ = value; } onChanged(); } else { if (entityCase_ == 3) { fileIDBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { return getFileIDFieldBuilder().getBuilder(); } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { if ((entityCase_ == 3) && (fileIDBuilder_ != null)) { return fileIDBuilder_.getMessageOrBuilder(); } else { if (entityCase_ == 3) { return (com.hederahashgraph.api.proto.java.FileID) entity_; } return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); } } /** *
     **
     * The file ID of the file
     * 
* * .proto.FileID fileID = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { if (!(entityCase_ == 3)) { entity_ = com.hederahashgraph.api.proto.java.FileID.getDefaultInstance(); } fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>( (com.hederahashgraph.api.proto.java.FileID) entity_, getParentForChildren(), isClean()); entity_ = null; } entityCase_ = 3; onChanged();; return fileIDBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID getContractID() { if (contractIDBuilder_ == null) { if (entityCase_ == 4) { return (com.hederahashgraph.api.proto.java.ContractID) entity_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } else { if (entityCase_ == 4) { return contractIDBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ public Builder setContractID(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID value) { if (contractIDBuilder_ == null) { if (entityCase_ == 4 && entity_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { entity_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) entity_) .mergeFrom(value).buildPartial(); } else { entity_ = value; } onChanged(); } else { if (entityCase_ == 4) { contractIDBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() { return getContractIDFieldBuilder().getBuilder(); } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() { if ((entityCase_ == 4) && (contractIDBuilder_ != null)) { return contractIDBuilder_.getMessageOrBuilder(); } else { if (entityCase_ == 4) { return (com.hederahashgraph.api.proto.java.ContractID) entity_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * The smart contract ID that identifies instance
     * 
* * .proto.ContractID contractID = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> getContractIDFieldBuilder() { if (contractIDBuilder_ == null) { if (!(entityCase_ == 4)) { entity_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>( (com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.EntityID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.EntityID(); } public static com.hederahashgraph.api.proto.java.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 { return new EntityID(input, extensionRegistry); } }; 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.hederahashgraph.api.proto.java.EntityID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy