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

com.hedera.services.stream.proto.ContractAction Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contract_action.proto

package com.hedera.services.stream.proto;

/**
 * 
 **
 * A finer grained action with a function result. Sometimes called "internal transactions." The function call itself
 * will be the first action in a list, followed by sub-action in the order they were executed.
 * 
* * Protobuf type {@code proto.ContractAction} */ public final class ContractAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ContractAction) ContractActionOrBuilder { private static final long serialVersionUID = 0L; // Use ContractAction.newBuilder() to construct. private ContractAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractAction() { callType_ = 0; input_ = com.google.protobuf.ByteString.EMPTY; callOperationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContractAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContractAction( 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 8: { int rawValue = input.readEnum(); callType_ = rawValue; break; } case 18: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (callerCase_ == 2) { subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) caller_).toBuilder(); } caller_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) caller_); caller_ = subBuilder.buildPartial(); } callerCase_ = 2; break; } case 26: { com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; if (callerCase_ == 3) { subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) caller_).toBuilder(); } caller_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) caller_); caller_ = subBuilder.buildPartial(); } callerCase_ = 3; break; } case 32: { gas_ = input.readInt64(); break; } case 42: { input_ = input.readBytes(); break; } case 50: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (recipientCase_ == 6) { subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) recipient_).toBuilder(); } recipient_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) recipient_); recipient_ = subBuilder.buildPartial(); } recipientCase_ = 6; break; } case 58: { com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null; if (recipientCase_ == 7) { subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) recipient_).toBuilder(); } recipient_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) recipient_); recipient_ = subBuilder.buildPartial(); } recipientCase_ = 7; break; } case 66: { recipientCase_ = 8; recipient_ = input.readBytes(); break; } case 72: { value_ = input.readInt64(); break; } case 80: { gasUsed_ = input.readInt64(); break; } case 90: { resultDataCase_ = 11; resultData_ = input.readBytes(); break; } case 98: { resultDataCase_ = 12; resultData_ = input.readBytes(); break; } case 106: { resultDataCase_ = 13; resultData_ = input.readBytes(); break; } case 112: { callDepth_ = input.readInt32(); break; } case 120: { int rawValue = input.readEnum(); callOperationType_ = rawValue; 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.hedera.services.stream.proto.ContractActionOuterClass.internal_static_proto_ContractAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.ContractActionOuterClass.internal_static_proto_ContractAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.ContractAction.class, com.hedera.services.stream.proto.ContractAction.Builder.class); } private int callerCase_ = 0; private java.lang.Object caller_; public enum CallerCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CALLING_ACCOUNT(2), CALLING_CONTRACT(3), CALLER_NOT_SET(0); private final int value; private CallerCase(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 CallerCase valueOf(int value) { return forNumber(value); } public static CallerCase forNumber(int value) { switch (value) { case 2: return CALLING_ACCOUNT; case 3: return CALLING_CONTRACT; case 0: return CALLER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CallerCase getCallerCase() { return CallerCase.forNumber( callerCase_); } private int recipientCase_ = 0; private java.lang.Object recipient_; public enum RecipientCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECIPIENT_ACCOUNT(6), RECIPIENT_CONTRACT(7), TARGETED_ADDRESS(8), RECIPIENT_NOT_SET(0); private final int value; private RecipientCase(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 RecipientCase valueOf(int value) { return forNumber(value); } public static RecipientCase forNumber(int value) { switch (value) { case 6: return RECIPIENT_ACCOUNT; case 7: return RECIPIENT_CONTRACT; case 8: return TARGETED_ADDRESS; case 0: return RECIPIENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RecipientCase getRecipientCase() { return RecipientCase.forNumber( recipientCase_); } private int resultDataCase_ = 0; private java.lang.Object resultData_; public enum ResultDataCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OUTPUT(11), REVERT_REASON(12), ERROR(13), RESULTDATA_NOT_SET(0); private final int value; private ResultDataCase(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 ResultDataCase valueOf(int value) { return forNumber(value); } public static ResultDataCase forNumber(int value) { switch (value) { case 11: return OUTPUT; case 12: return REVERT_REASON; case 13: return ERROR; case 0: return RESULTDATA_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResultDataCase getResultDataCase() { return ResultDataCase.forNumber( resultDataCase_); } public static final int CALL_TYPE_FIELD_NUMBER = 1; private int callType_; /** *
   **
   * The type of this action.
   * 
* * .proto.ContractActionType call_type = 1; * @return The enum numeric value on the wire for callType. */ @java.lang.Override public int getCallTypeValue() { return callType_; } /** *
   **
   * The type of this action.
   * 
* * .proto.ContractActionType call_type = 1; * @return The callType. */ @java.lang.Override public com.hedera.services.stream.proto.ContractActionType getCallType() { @SuppressWarnings("deprecation") com.hedera.services.stream.proto.ContractActionType result = com.hedera.services.stream.proto.ContractActionType.valueOf(callType_); return result == null ? com.hedera.services.stream.proto.ContractActionType.UNRECOGNIZED : result; } public static final int CALLING_ACCOUNT_FIELD_NUMBER = 2; /** *
   **
   * If the caller was a regular account, the AccountID.
   * 
* * .proto.AccountID calling_account = 2; * @return Whether the callingAccount field is set. */ @java.lang.Override public boolean hasCallingAccount() { return callerCase_ == 2; } /** *
   **
   * If the caller was a regular account, the AccountID.
   * 
* * .proto.AccountID calling_account = 2; * @return The callingAccount. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getCallingAccount() { if (callerCase_ == 2) { return (com.hederahashgraph.api.proto.java.AccountID) caller_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } /** *
   **
   * If the caller was a regular account, the AccountID.
   * 
* * .proto.AccountID calling_account = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getCallingAccountOrBuilder() { if (callerCase_ == 2) { return (com.hederahashgraph.api.proto.java.AccountID) caller_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } public static final int CALLING_CONTRACT_FIELD_NUMBER = 3; /** *
   **
   * If the caller was a smart contract account, the ContractID.
   * 
* * .proto.ContractID calling_contract = 3; * @return Whether the callingContract field is set. */ @java.lang.Override public boolean hasCallingContract() { return callerCase_ == 3; } /** *
   **
   * If the caller was a smart contract account, the ContractID.
   * 
* * .proto.ContractID calling_contract = 3; * @return The callingContract. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractID getCallingContract() { if (callerCase_ == 3) { return (com.hederahashgraph.api.proto.java.ContractID) caller_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } /** *
   **
   * If the caller was a smart contract account, the ContractID.
   * 
* * .proto.ContractID calling_contract = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getCallingContractOrBuilder() { if (callerCase_ == 3) { return (com.hederahashgraph.api.proto.java.ContractID) caller_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } public static final int GAS_FIELD_NUMBER = 4; private long gas_; /** *
   **
   * The upper limit of gas this action can spend.
   * 
* * int64 gas = 4; * @return The gas. */ @java.lang.Override public long getGas() { return gas_; } public static final int INPUT_FIELD_NUMBER = 5; private com.google.protobuf.ByteString input_; /** *
   **
   * Bytes passed in as input data to this action.
   * 
* * bytes input = 5; * @return The input. */ @java.lang.Override public com.google.protobuf.ByteString getInput() { return input_; } public static final int RECIPIENT_ACCOUNT_FIELD_NUMBER = 6; /** *
   **
   * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
   * effects should be expected.
   * 
* * .proto.AccountID recipient_account = 6; * @return Whether the recipientAccount field is set. */ @java.lang.Override public boolean hasRecipientAccount() { return recipientCase_ == 6; } /** *
   **
   * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
   * effects should be expected.
   * 
* * .proto.AccountID recipient_account = 6; * @return The recipientAccount. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getRecipientAccount() { if (recipientCase_ == 6) { return (com.hederahashgraph.api.proto.java.AccountID) recipient_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } /** *
   **
   * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
   * effects should be expected.
   * 
* * .proto.AccountID recipient_account = 6; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getRecipientAccountOrBuilder() { if (recipientCase_ == 6) { return (com.hederahashgraph.api.proto.java.AccountID) recipient_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } public static final int RECIPIENT_CONTRACT_FIELD_NUMBER = 7; /** *
   **
   * The ContractID of the recipient if the recipient is a smart contract.
   * 
* * .proto.ContractID recipient_contract = 7; * @return Whether the recipientContract field is set. */ @java.lang.Override public boolean hasRecipientContract() { return recipientCase_ == 7; } /** *
   **
   * The ContractID of the recipient if the recipient is a smart contract.
   * 
* * .proto.ContractID recipient_contract = 7; * @return The recipientContract. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractID getRecipientContract() { if (recipientCase_ == 7) { return (com.hederahashgraph.api.proto.java.ContractID) recipient_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } /** *
   **
   * The ContractID of the recipient if the recipient is a smart contract.
   * 
* * .proto.ContractID recipient_contract = 7; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getRecipientContractOrBuilder() { if (recipientCase_ == 7) { return (com.hederahashgraph.api.proto.java.ContractID) recipient_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } public static final int TARGETED_ADDRESS_FIELD_NUMBER = 8; /** *
   **
   * The bytes of the targeted by the action address.
   * Only set on failed executions. If set, denotes that the address did not
   * correspond to any account or contract at the time of finalization of
   * this action.
   * An example would be a failed lazy create as per HIP-583.
   * 
* * bytes targeted_address = 8; * @return Whether the targetedAddress field is set. */ @java.lang.Override public boolean hasTargetedAddress() { return recipientCase_ == 8; } /** *
   **
   * The bytes of the targeted by the action address.
   * Only set on failed executions. If set, denotes that the address did not
   * correspond to any account or contract at the time of finalization of
   * this action.
   * An example would be a failed lazy create as per HIP-583.
   * 
* * bytes targeted_address = 8; * @return The targetedAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTargetedAddress() { if (recipientCase_ == 8) { return (com.google.protobuf.ByteString) recipient_; } return com.google.protobuf.ByteString.EMPTY; } public static final int VALUE_FIELD_NUMBER = 9; private long value_; /** *
   **
   * The value (in tinybars) that is associated with this action.
   * 
* * int64 value = 9; * @return The value. */ @java.lang.Override public long getValue() { return value_; } public static final int GAS_USED_FIELD_NUMBER = 10; private long gasUsed_; /** *
   **
   * The actual gas spent by this action.
   * 
* * int64 gas_used = 10; * @return The gasUsed. */ @java.lang.Override public long getGasUsed() { return gasUsed_; } public static final int OUTPUT_FIELD_NUMBER = 11; /** *
   **
   * If successful, the output bytes of the action.
   * 
* * bytes output = 11; * @return Whether the output field is set. */ @java.lang.Override public boolean hasOutput() { return resultDataCase_ == 11; } /** *
   **
   * If successful, the output bytes of the action.
   * 
* * bytes output = 11; * @return The output. */ @java.lang.Override public com.google.protobuf.ByteString getOutput() { if (resultDataCase_ == 11) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } public static final int REVERT_REASON_FIELD_NUMBER = 12; /** *
   **
   * The contract itself caused the transaction to fail via the `REVERT` operation
   * 
* * bytes revert_reason = 12; * @return Whether the revertReason field is set. */ @java.lang.Override public boolean hasRevertReason() { return resultDataCase_ == 12; } /** *
   **
   * The contract itself caused the transaction to fail via the `REVERT` operation
   * 
* * bytes revert_reason = 12; * @return The revertReason. */ @java.lang.Override public com.google.protobuf.ByteString getRevertReason() { if (resultDataCase_ == 12) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ERROR_FIELD_NUMBER = 13; /** *
   **
   * The transaction itself failed without an explicit `REVERT`
   * 
* * bytes error = 13; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return resultDataCase_ == 13; } /** *
   **
   * The transaction itself failed without an explicit `REVERT`
   * 
* * bytes error = 13; * @return The error. */ @java.lang.Override public com.google.protobuf.ByteString getError() { if (resultDataCase_ == 13) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } public static final int CALL_DEPTH_FIELD_NUMBER = 14; private int callDepth_; /** *
   **
   * The nesting depth of this call. The original action is at depth=0.
   * 
* * int32 call_depth = 14; * @return The callDepth. */ @java.lang.Override public int getCallDepth() { return callDepth_; } public static final int CALL_OPERATION_TYPE_FIELD_NUMBER = 15; private int callOperationType_; /** *
   **
   * The call operation type
   * 
* * .proto.CallOperationType call_operation_type = 15; * @return The enum numeric value on the wire for callOperationType. */ @java.lang.Override public int getCallOperationTypeValue() { return callOperationType_; } /** *
   **
   * The call operation type
   * 
* * .proto.CallOperationType call_operation_type = 15; * @return The callOperationType. */ @java.lang.Override public com.hedera.services.stream.proto.CallOperationType getCallOperationType() { @SuppressWarnings("deprecation") com.hedera.services.stream.proto.CallOperationType result = com.hedera.services.stream.proto.CallOperationType.valueOf(callOperationType_); return result == null ? com.hedera.services.stream.proto.CallOperationType.UNRECOGNIZED : result; } 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 (callType_ != com.hedera.services.stream.proto.ContractActionType.NO_ACTION.getNumber()) { output.writeEnum(1, callType_); } if (callerCase_ == 2) { output.writeMessage(2, (com.hederahashgraph.api.proto.java.AccountID) caller_); } if (callerCase_ == 3) { output.writeMessage(3, (com.hederahashgraph.api.proto.java.ContractID) caller_); } if (gas_ != 0L) { output.writeInt64(4, gas_); } if (!input_.isEmpty()) { output.writeBytes(5, input_); } if (recipientCase_ == 6) { output.writeMessage(6, (com.hederahashgraph.api.proto.java.AccountID) recipient_); } if (recipientCase_ == 7) { output.writeMessage(7, (com.hederahashgraph.api.proto.java.ContractID) recipient_); } if (recipientCase_ == 8) { output.writeBytes( 8, (com.google.protobuf.ByteString) recipient_); } if (value_ != 0L) { output.writeInt64(9, value_); } if (gasUsed_ != 0L) { output.writeInt64(10, gasUsed_); } if (resultDataCase_ == 11) { output.writeBytes( 11, (com.google.protobuf.ByteString) resultData_); } if (resultDataCase_ == 12) { output.writeBytes( 12, (com.google.protobuf.ByteString) resultData_); } if (resultDataCase_ == 13) { output.writeBytes( 13, (com.google.protobuf.ByteString) resultData_); } if (callDepth_ != 0) { output.writeInt32(14, callDepth_); } if (callOperationType_ != com.hedera.services.stream.proto.CallOperationType.OP_UNKNOWN.getNumber()) { output.writeEnum(15, callOperationType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (callType_ != com.hedera.services.stream.proto.ContractActionType.NO_ACTION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, callType_); } if (callerCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.hederahashgraph.api.proto.java.AccountID) caller_); } if (callerCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.hederahashgraph.api.proto.java.ContractID) caller_); } if (gas_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, gas_); } if (!input_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, input_); } if (recipientCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.hederahashgraph.api.proto.java.AccountID) recipient_); } if (recipientCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.hederahashgraph.api.proto.java.ContractID) recipient_); } if (recipientCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 8, (com.google.protobuf.ByteString) recipient_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, value_); } if (gasUsed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, gasUsed_); } if (resultDataCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 11, (com.google.protobuf.ByteString) resultData_); } if (resultDataCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 12, (com.google.protobuf.ByteString) resultData_); } if (resultDataCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 13, (com.google.protobuf.ByteString) resultData_); } if (callDepth_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, callDepth_); } if (callOperationType_ != com.hedera.services.stream.proto.CallOperationType.OP_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(15, callOperationType_); } 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.hedera.services.stream.proto.ContractAction)) { return super.equals(obj); } com.hedera.services.stream.proto.ContractAction other = (com.hedera.services.stream.proto.ContractAction) obj; if (callType_ != other.callType_) return false; if (getGas() != other.getGas()) return false; if (!getInput() .equals(other.getInput())) return false; if (getValue() != other.getValue()) return false; if (getGasUsed() != other.getGasUsed()) return false; if (getCallDepth() != other.getCallDepth()) return false; if (callOperationType_ != other.callOperationType_) return false; if (!getCallerCase().equals(other.getCallerCase())) return false; switch (callerCase_) { case 2: if (!getCallingAccount() .equals(other.getCallingAccount())) return false; break; case 3: if (!getCallingContract() .equals(other.getCallingContract())) return false; break; case 0: default: } if (!getRecipientCase().equals(other.getRecipientCase())) return false; switch (recipientCase_) { case 6: if (!getRecipientAccount() .equals(other.getRecipientAccount())) return false; break; case 7: if (!getRecipientContract() .equals(other.getRecipientContract())) return false; break; case 8: if (!getTargetedAddress() .equals(other.getTargetedAddress())) return false; break; case 0: default: } if (!getResultDataCase().equals(other.getResultDataCase())) return false; switch (resultDataCase_) { case 11: if (!getOutput() .equals(other.getOutput())) return false; break; case 12: if (!getRevertReason() .equals(other.getRevertReason())) return false; break; case 13: if (!getError() .equals(other.getError())) 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(); hash = (37 * hash) + CALL_TYPE_FIELD_NUMBER; hash = (53 * hash) + callType_; hash = (37 * hash) + GAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGas()); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); hash = (37 * hash) + GAS_USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGasUsed()); hash = (37 * hash) + CALL_DEPTH_FIELD_NUMBER; hash = (53 * hash) + getCallDepth(); hash = (37 * hash) + CALL_OPERATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + callOperationType_; switch (callerCase_) { case 2: hash = (37 * hash) + CALLING_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getCallingAccount().hashCode(); break; case 3: hash = (37 * hash) + CALLING_CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getCallingContract().hashCode(); break; case 0: default: } switch (recipientCase_) { case 6: hash = (37 * hash) + RECIPIENT_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getRecipientAccount().hashCode(); break; case 7: hash = (37 * hash) + RECIPIENT_CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getRecipientContract().hashCode(); break; case 8: hash = (37 * hash) + TARGETED_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTargetedAddress().hashCode(); break; case 0: default: } switch (resultDataCase_) { case 11: hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getOutput().hashCode(); break; case 12: hash = (37 * hash) + REVERT_REASON_FIELD_NUMBER; hash = (53 * hash) + getRevertReason().hashCode(); break; case 13: hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.ContractAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.ContractAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.ContractAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.ContractAction 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.services.stream.proto.ContractAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.ContractAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.ContractAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.ContractAction 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.services.stream.proto.ContractAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.ContractAction 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.services.stream.proto.ContractAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.ContractAction 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.services.stream.proto.ContractAction 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; } /** *
   **
   * A finer grained action with a function result. Sometimes called "internal transactions." The function call itself
   * will be the first action in a list, followed by sub-action in the order they were executed.
   * 
* * Protobuf type {@code proto.ContractAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ContractAction) com.hedera.services.stream.proto.ContractActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.ContractActionOuterClass.internal_static_proto_ContractAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.ContractActionOuterClass.internal_static_proto_ContractAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.ContractAction.class, com.hedera.services.stream.proto.ContractAction.Builder.class); } // Construct using com.hedera.services.stream.proto.ContractAction.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(); callType_ = 0; gas_ = 0L; input_ = com.google.protobuf.ByteString.EMPTY; value_ = 0L; gasUsed_ = 0L; callDepth_ = 0; callOperationType_ = 0; callerCase_ = 0; caller_ = null; recipientCase_ = 0; recipient_ = null; resultDataCase_ = 0; resultData_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.ContractActionOuterClass.internal_static_proto_ContractAction_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.ContractAction getDefaultInstanceForType() { return com.hedera.services.stream.proto.ContractAction.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.ContractAction build() { com.hedera.services.stream.proto.ContractAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.ContractAction buildPartial() { com.hedera.services.stream.proto.ContractAction result = new com.hedera.services.stream.proto.ContractAction(this); result.callType_ = callType_; if (callerCase_ == 2) { if (callingAccountBuilder_ == null) { result.caller_ = caller_; } else { result.caller_ = callingAccountBuilder_.build(); } } if (callerCase_ == 3) { if (callingContractBuilder_ == null) { result.caller_ = caller_; } else { result.caller_ = callingContractBuilder_.build(); } } result.gas_ = gas_; result.input_ = input_; if (recipientCase_ == 6) { if (recipientAccountBuilder_ == null) { result.recipient_ = recipient_; } else { result.recipient_ = recipientAccountBuilder_.build(); } } if (recipientCase_ == 7) { if (recipientContractBuilder_ == null) { result.recipient_ = recipient_; } else { result.recipient_ = recipientContractBuilder_.build(); } } if (recipientCase_ == 8) { result.recipient_ = recipient_; } result.value_ = value_; result.gasUsed_ = gasUsed_; if (resultDataCase_ == 11) { result.resultData_ = resultData_; } if (resultDataCase_ == 12) { result.resultData_ = resultData_; } if (resultDataCase_ == 13) { result.resultData_ = resultData_; } result.callDepth_ = callDepth_; result.callOperationType_ = callOperationType_; result.callerCase_ = callerCase_; result.recipientCase_ = recipientCase_; result.resultDataCase_ = resultDataCase_; 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.hedera.services.stream.proto.ContractAction) { return mergeFrom((com.hedera.services.stream.proto.ContractAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.ContractAction other) { if (other == com.hedera.services.stream.proto.ContractAction.getDefaultInstance()) return this; if (other.callType_ != 0) { setCallTypeValue(other.getCallTypeValue()); } if (other.getGas() != 0L) { setGas(other.getGas()); } if (other.getInput() != com.google.protobuf.ByteString.EMPTY) { setInput(other.getInput()); } if (other.getValue() != 0L) { setValue(other.getValue()); } if (other.getGasUsed() != 0L) { setGasUsed(other.getGasUsed()); } if (other.getCallDepth() != 0) { setCallDepth(other.getCallDepth()); } if (other.callOperationType_ != 0) { setCallOperationTypeValue(other.getCallOperationTypeValue()); } switch (other.getCallerCase()) { case CALLING_ACCOUNT: { mergeCallingAccount(other.getCallingAccount()); break; } case CALLING_CONTRACT: { mergeCallingContract(other.getCallingContract()); break; } case CALLER_NOT_SET: { break; } } switch (other.getRecipientCase()) { case RECIPIENT_ACCOUNT: { mergeRecipientAccount(other.getRecipientAccount()); break; } case RECIPIENT_CONTRACT: { mergeRecipientContract(other.getRecipientContract()); break; } case TARGETED_ADDRESS: { setTargetedAddress(other.getTargetedAddress()); break; } case RECIPIENT_NOT_SET: { break; } } switch (other.getResultDataCase()) { case OUTPUT: { setOutput(other.getOutput()); break; } case REVERT_REASON: { setRevertReason(other.getRevertReason()); break; } case ERROR: { setError(other.getError()); break; } case RESULTDATA_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.hedera.services.stream.proto.ContractAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.ContractAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int callerCase_ = 0; private java.lang.Object caller_; public CallerCase getCallerCase() { return CallerCase.forNumber( callerCase_); } public Builder clearCaller() { callerCase_ = 0; caller_ = null; onChanged(); return this; } private int recipientCase_ = 0; private java.lang.Object recipient_; public RecipientCase getRecipientCase() { return RecipientCase.forNumber( recipientCase_); } public Builder clearRecipient() { recipientCase_ = 0; recipient_ = null; onChanged(); return this; } private int resultDataCase_ = 0; private java.lang.Object resultData_; public ResultDataCase getResultDataCase() { return ResultDataCase.forNumber( resultDataCase_); } public Builder clearResultData() { resultDataCase_ = 0; resultData_ = null; onChanged(); return this; } private int callType_ = 0; /** *
     **
     * The type of this action.
     * 
* * .proto.ContractActionType call_type = 1; * @return The enum numeric value on the wire for callType. */ @java.lang.Override public int getCallTypeValue() { return callType_; } /** *
     **
     * The type of this action.
     * 
* * .proto.ContractActionType call_type = 1; * @param value The enum numeric value on the wire for callType to set. * @return This builder for chaining. */ public Builder setCallTypeValue(int value) { callType_ = value; onChanged(); return this; } /** *
     **
     * The type of this action.
     * 
* * .proto.ContractActionType call_type = 1; * @return The callType. */ @java.lang.Override public com.hedera.services.stream.proto.ContractActionType getCallType() { @SuppressWarnings("deprecation") com.hedera.services.stream.proto.ContractActionType result = com.hedera.services.stream.proto.ContractActionType.valueOf(callType_); return result == null ? com.hedera.services.stream.proto.ContractActionType.UNRECOGNIZED : result; } /** *
     **
     * The type of this action.
     * 
* * .proto.ContractActionType call_type = 1; * @param value The callType to set. * @return This builder for chaining. */ public Builder setCallType(com.hedera.services.stream.proto.ContractActionType value) { if (value == null) { throw new NullPointerException(); } callType_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The type of this action.
     * 
* * .proto.ContractActionType call_type = 1; * @return This builder for chaining. */ public Builder clearCallType() { callType_ = 0; 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> callingAccountBuilder_; /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; * @return Whether the callingAccount field is set. */ @java.lang.Override public boolean hasCallingAccount() { return callerCase_ == 2; } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; * @return The callingAccount. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getCallingAccount() { if (callingAccountBuilder_ == null) { if (callerCase_ == 2) { return (com.hederahashgraph.api.proto.java.AccountID) caller_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } else { if (callerCase_ == 2) { return callingAccountBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ public Builder setCallingAccount(com.hederahashgraph.api.proto.java.AccountID value) { if (callingAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } caller_ = value; onChanged(); } else { callingAccountBuilder_.setMessage(value); } callerCase_ = 2; return this; } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ public Builder setCallingAccount( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (callingAccountBuilder_ == null) { caller_ = builderForValue.build(); onChanged(); } else { callingAccountBuilder_.setMessage(builderForValue.build()); } callerCase_ = 2; return this; } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ public Builder mergeCallingAccount(com.hederahashgraph.api.proto.java.AccountID value) { if (callingAccountBuilder_ == null) { if (callerCase_ == 2 && caller_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) { caller_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) caller_) .mergeFrom(value).buildPartial(); } else { caller_ = value; } onChanged(); } else { if (callerCase_ == 2) { callingAccountBuilder_.mergeFrom(value); } callingAccountBuilder_.setMessage(value); } callerCase_ = 2; return this; } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ public Builder clearCallingAccount() { if (callingAccountBuilder_ == null) { if (callerCase_ == 2) { callerCase_ = 0; caller_ = null; onChanged(); } } else { if (callerCase_ == 2) { callerCase_ = 0; caller_ = null; } callingAccountBuilder_.clear(); } return this; } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getCallingAccountBuilder() { return getCallingAccountFieldBuilder().getBuilder(); } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getCallingAccountOrBuilder() { if ((callerCase_ == 2) && (callingAccountBuilder_ != null)) { return callingAccountBuilder_.getMessageOrBuilder(); } else { if (callerCase_ == 2) { return (com.hederahashgraph.api.proto.java.AccountID) caller_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * If the caller was a regular account, the AccountID.
     * 
* * .proto.AccountID calling_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getCallingAccountFieldBuilder() { if (callingAccountBuilder_ == null) { if (!(callerCase_ == 2)) { caller_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } callingAccountBuilder_ = 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) caller_, getParentForChildren(), isClean()); caller_ = null; } callerCase_ = 2; onChanged();; return callingAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> callingContractBuilder_; /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; * @return Whether the callingContract field is set. */ @java.lang.Override public boolean hasCallingContract() { return callerCase_ == 3; } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; * @return The callingContract. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractID getCallingContract() { if (callingContractBuilder_ == null) { if (callerCase_ == 3) { return (com.hederahashgraph.api.proto.java.ContractID) caller_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } else { if (callerCase_ == 3) { return callingContractBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ public Builder setCallingContract(com.hederahashgraph.api.proto.java.ContractID value) { if (callingContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } caller_ = value; onChanged(); } else { callingContractBuilder_.setMessage(value); } callerCase_ = 3; return this; } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ public Builder setCallingContract( com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { if (callingContractBuilder_ == null) { caller_ = builderForValue.build(); onChanged(); } else { callingContractBuilder_.setMessage(builderForValue.build()); } callerCase_ = 3; return this; } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ public Builder mergeCallingContract(com.hederahashgraph.api.proto.java.ContractID value) { if (callingContractBuilder_ == null) { if (callerCase_ == 3 && caller_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { caller_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) caller_) .mergeFrom(value).buildPartial(); } else { caller_ = value; } onChanged(); } else { if (callerCase_ == 3) { callingContractBuilder_.mergeFrom(value); } callingContractBuilder_.setMessage(value); } callerCase_ = 3; return this; } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ public Builder clearCallingContract() { if (callingContractBuilder_ == null) { if (callerCase_ == 3) { callerCase_ = 0; caller_ = null; onChanged(); } } else { if (callerCase_ == 3) { callerCase_ = 0; caller_ = null; } callingContractBuilder_.clear(); } return this; } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ public com.hederahashgraph.api.proto.java.ContractID.Builder getCallingContractBuilder() { return getCallingContractFieldBuilder().getBuilder(); } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getCallingContractOrBuilder() { if ((callerCase_ == 3) && (callingContractBuilder_ != null)) { return callingContractBuilder_.getMessageOrBuilder(); } else { if (callerCase_ == 3) { return (com.hederahashgraph.api.proto.java.ContractID) caller_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * If the caller was a smart contract account, the ContractID.
     * 
* * .proto.ContractID calling_contract = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> getCallingContractFieldBuilder() { if (callingContractBuilder_ == null) { if (!(callerCase_ == 3)) { caller_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } callingContractBuilder_ = 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) caller_, getParentForChildren(), isClean()); caller_ = null; } callerCase_ = 3; onChanged();; return callingContractBuilder_; } private long gas_ ; /** *
     **
     * The upper limit of gas this action can spend.
     * 
* * int64 gas = 4; * @return The gas. */ @java.lang.Override public long getGas() { return gas_; } /** *
     **
     * The upper limit of gas this action can spend.
     * 
* * int64 gas = 4; * @param value The gas to set. * @return This builder for chaining. */ public Builder setGas(long value) { gas_ = value; onChanged(); return this; } /** *
     **
     * The upper limit of gas this action can spend.
     * 
* * int64 gas = 4; * @return This builder for chaining. */ public Builder clearGas() { gas_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString input_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * Bytes passed in as input data to this action.
     * 
* * bytes input = 5; * @return The input. */ @java.lang.Override public com.google.protobuf.ByteString getInput() { return input_; } /** *
     **
     * Bytes passed in as input data to this action.
     * 
* * bytes input = 5; * @param value The input to set. * @return This builder for chaining. */ public Builder setInput(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); return this; } /** *
     **
     * Bytes passed in as input data to this action.
     * 
* * bytes input = 5; * @return This builder for chaining. */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); 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> recipientAccountBuilder_; /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; * @return Whether the recipientAccount field is set. */ @java.lang.Override public boolean hasRecipientAccount() { return recipientCase_ == 6; } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; * @return The recipientAccount. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getRecipientAccount() { if (recipientAccountBuilder_ == null) { if (recipientCase_ == 6) { return (com.hederahashgraph.api.proto.java.AccountID) recipient_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } else { if (recipientCase_ == 6) { return recipientAccountBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ public Builder setRecipientAccount(com.hederahashgraph.api.proto.java.AccountID value) { if (recipientAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recipient_ = value; onChanged(); } else { recipientAccountBuilder_.setMessage(value); } recipientCase_ = 6; return this; } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ public Builder setRecipientAccount( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (recipientAccountBuilder_ == null) { recipient_ = builderForValue.build(); onChanged(); } else { recipientAccountBuilder_.setMessage(builderForValue.build()); } recipientCase_ = 6; return this; } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ public Builder mergeRecipientAccount(com.hederahashgraph.api.proto.java.AccountID value) { if (recipientAccountBuilder_ == null) { if (recipientCase_ == 6 && recipient_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) { recipient_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) recipient_) .mergeFrom(value).buildPartial(); } else { recipient_ = value; } onChanged(); } else { if (recipientCase_ == 6) { recipientAccountBuilder_.mergeFrom(value); } recipientAccountBuilder_.setMessage(value); } recipientCase_ = 6; return this; } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ public Builder clearRecipientAccount() { if (recipientAccountBuilder_ == null) { if (recipientCase_ == 6) { recipientCase_ = 0; recipient_ = null; onChanged(); } } else { if (recipientCase_ == 6) { recipientCase_ = 0; recipient_ = null; } recipientAccountBuilder_.clear(); } return this; } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getRecipientAccountBuilder() { return getRecipientAccountFieldBuilder().getBuilder(); } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getRecipientAccountOrBuilder() { if ((recipientCase_ == 6) && (recipientAccountBuilder_ != null)) { return recipientAccountBuilder_.getMessageOrBuilder(); } else { if (recipientCase_ == 6) { return (com.hederahashgraph.api.proto.java.AccountID) recipient_; } return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } } /** *
     **
     * The AccountID of the recipient if the recipient is an account. Only HBars will be transferred, no other side
     * effects should be expected.
     * 
* * .proto.AccountID recipient_account = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getRecipientAccountFieldBuilder() { if (recipientAccountBuilder_ == null) { if (!(recipientCase_ == 6)) { recipient_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance(); } recipientAccountBuilder_ = 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) recipient_, getParentForChildren(), isClean()); recipient_ = null; } recipientCase_ = 6; onChanged();; return recipientAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> recipientContractBuilder_; /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; * @return Whether the recipientContract field is set. */ @java.lang.Override public boolean hasRecipientContract() { return recipientCase_ == 7; } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; * @return The recipientContract. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractID getRecipientContract() { if (recipientContractBuilder_ == null) { if (recipientCase_ == 7) { return (com.hederahashgraph.api.proto.java.ContractID) recipient_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } else { if (recipientCase_ == 7) { return recipientContractBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ public Builder setRecipientContract(com.hederahashgraph.api.proto.java.ContractID value) { if (recipientContractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recipient_ = value; onChanged(); } else { recipientContractBuilder_.setMessage(value); } recipientCase_ = 7; return this; } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ public Builder setRecipientContract( com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) { if (recipientContractBuilder_ == null) { recipient_ = builderForValue.build(); onChanged(); } else { recipientContractBuilder_.setMessage(builderForValue.build()); } recipientCase_ = 7; return this; } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ public Builder mergeRecipientContract(com.hederahashgraph.api.proto.java.ContractID value) { if (recipientContractBuilder_ == null) { if (recipientCase_ == 7 && recipient_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) { recipient_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) recipient_) .mergeFrom(value).buildPartial(); } else { recipient_ = value; } onChanged(); } else { if (recipientCase_ == 7) { recipientContractBuilder_.mergeFrom(value); } recipientContractBuilder_.setMessage(value); } recipientCase_ = 7; return this; } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ public Builder clearRecipientContract() { if (recipientContractBuilder_ == null) { if (recipientCase_ == 7) { recipientCase_ = 0; recipient_ = null; onChanged(); } } else { if (recipientCase_ == 7) { recipientCase_ = 0; recipient_ = null; } recipientContractBuilder_.clear(); } return this; } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ public com.hederahashgraph.api.proto.java.ContractID.Builder getRecipientContractBuilder() { return getRecipientContractFieldBuilder().getBuilder(); } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getRecipientContractOrBuilder() { if ((recipientCase_ == 7) && (recipientContractBuilder_ != null)) { return recipientContractBuilder_.getMessageOrBuilder(); } else { if (recipientCase_ == 7) { return (com.hederahashgraph.api.proto.java.ContractID) recipient_; } return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } } /** *
     **
     * The ContractID of the recipient if the recipient is a smart contract.
     * 
* * .proto.ContractID recipient_contract = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> getRecipientContractFieldBuilder() { if (recipientContractBuilder_ == null) { if (!(recipientCase_ == 7)) { recipient_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance(); } recipientContractBuilder_ = 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) recipient_, getParentForChildren(), isClean()); recipient_ = null; } recipientCase_ = 7; onChanged();; return recipientContractBuilder_; } /** *
     **
     * The bytes of the targeted by the action address.
     * Only set on failed executions. If set, denotes that the address did not
     * correspond to any account or contract at the time of finalization of
     * this action.
     * An example would be a failed lazy create as per HIP-583.
     * 
* * bytes targeted_address = 8; * @return Whether the targetedAddress field is set. */ public boolean hasTargetedAddress() { return recipientCase_ == 8; } /** *
     **
     * The bytes of the targeted by the action address.
     * Only set on failed executions. If set, denotes that the address did not
     * correspond to any account or contract at the time of finalization of
     * this action.
     * An example would be a failed lazy create as per HIP-583.
     * 
* * bytes targeted_address = 8; * @return The targetedAddress. */ public com.google.protobuf.ByteString getTargetedAddress() { if (recipientCase_ == 8) { return (com.google.protobuf.ByteString) recipient_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * The bytes of the targeted by the action address.
     * Only set on failed executions. If set, denotes that the address did not
     * correspond to any account or contract at the time of finalization of
     * this action.
     * An example would be a failed lazy create as per HIP-583.
     * 
* * bytes targeted_address = 8; * @param value The targetedAddress to set. * @return This builder for chaining. */ public Builder setTargetedAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recipientCase_ = 8; recipient_ = value; onChanged(); return this; } /** *
     **
     * The bytes of the targeted by the action address.
     * Only set on failed executions. If set, denotes that the address did not
     * correspond to any account or contract at the time of finalization of
     * this action.
     * An example would be a failed lazy create as per HIP-583.
     * 
* * bytes targeted_address = 8; * @return This builder for chaining. */ public Builder clearTargetedAddress() { if (recipientCase_ == 8) { recipientCase_ = 0; recipient_ = null; onChanged(); } return this; } private long value_ ; /** *
     **
     * The value (in tinybars) that is associated with this action.
     * 
* * int64 value = 9; * @return The value. */ @java.lang.Override public long getValue() { return value_; } /** *
     **
     * The value (in tinybars) that is associated with this action.
     * 
* * int64 value = 9; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(long value) { value_ = value; onChanged(); return this; } /** *
     **
     * The value (in tinybars) that is associated with this action.
     * 
* * int64 value = 9; * @return This builder for chaining. */ public Builder clearValue() { value_ = 0L; onChanged(); return this; } private long gasUsed_ ; /** *
     **
     * The actual gas spent by this action.
     * 
* * int64 gas_used = 10; * @return The gasUsed. */ @java.lang.Override public long getGasUsed() { return gasUsed_; } /** *
     **
     * The actual gas spent by this action.
     * 
* * int64 gas_used = 10; * @param value The gasUsed to set. * @return This builder for chaining. */ public Builder setGasUsed(long value) { gasUsed_ = value; onChanged(); return this; } /** *
     **
     * The actual gas spent by this action.
     * 
* * int64 gas_used = 10; * @return This builder for chaining. */ public Builder clearGasUsed() { gasUsed_ = 0L; onChanged(); return this; } /** *
     **
     * If successful, the output bytes of the action.
     * 
* * bytes output = 11; * @return Whether the output field is set. */ public boolean hasOutput() { return resultDataCase_ == 11; } /** *
     **
     * If successful, the output bytes of the action.
     * 
* * bytes output = 11; * @return The output. */ public com.google.protobuf.ByteString getOutput() { if (resultDataCase_ == 11) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * If successful, the output bytes of the action.
     * 
* * bytes output = 11; * @param value The output to set. * @return This builder for chaining. */ public Builder setOutput(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resultDataCase_ = 11; resultData_ = value; onChanged(); return this; } /** *
     **
     * If successful, the output bytes of the action.
     * 
* * bytes output = 11; * @return This builder for chaining. */ public Builder clearOutput() { if (resultDataCase_ == 11) { resultDataCase_ = 0; resultData_ = null; onChanged(); } return this; } /** *
     **
     * The contract itself caused the transaction to fail via the `REVERT` operation
     * 
* * bytes revert_reason = 12; * @return Whether the revertReason field is set. */ public boolean hasRevertReason() { return resultDataCase_ == 12; } /** *
     **
     * The contract itself caused the transaction to fail via the `REVERT` operation
     * 
* * bytes revert_reason = 12; * @return The revertReason. */ public com.google.protobuf.ByteString getRevertReason() { if (resultDataCase_ == 12) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * The contract itself caused the transaction to fail via the `REVERT` operation
     * 
* * bytes revert_reason = 12; * @param value The revertReason to set. * @return This builder for chaining. */ public Builder setRevertReason(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resultDataCase_ = 12; resultData_ = value; onChanged(); return this; } /** *
     **
     * The contract itself caused the transaction to fail via the `REVERT` operation
     * 
* * bytes revert_reason = 12; * @return This builder for chaining. */ public Builder clearRevertReason() { if (resultDataCase_ == 12) { resultDataCase_ = 0; resultData_ = null; onChanged(); } return this; } /** *
     **
     * The transaction itself failed without an explicit `REVERT`
     * 
* * bytes error = 13; * @return Whether the error field is set. */ public boolean hasError() { return resultDataCase_ == 13; } /** *
     **
     * The transaction itself failed without an explicit `REVERT`
     * 
* * bytes error = 13; * @return The error. */ public com.google.protobuf.ByteString getError() { if (resultDataCase_ == 13) { return (com.google.protobuf.ByteString) resultData_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * The transaction itself failed without an explicit `REVERT`
     * 
* * bytes error = 13; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resultDataCase_ = 13; resultData_ = value; onChanged(); return this; } /** *
     **
     * The transaction itself failed without an explicit `REVERT`
     * 
* * bytes error = 13; * @return This builder for chaining. */ public Builder clearError() { if (resultDataCase_ == 13) { resultDataCase_ = 0; resultData_ = null; onChanged(); } return this; } private int callDepth_ ; /** *
     **
     * The nesting depth of this call. The original action is at depth=0.
     * 
* * int32 call_depth = 14; * @return The callDepth. */ @java.lang.Override public int getCallDepth() { return callDepth_; } /** *
     **
     * The nesting depth of this call. The original action is at depth=0.
     * 
* * int32 call_depth = 14; * @param value The callDepth to set. * @return This builder for chaining. */ public Builder setCallDepth(int value) { callDepth_ = value; onChanged(); return this; } /** *
     **
     * The nesting depth of this call. The original action is at depth=0.
     * 
* * int32 call_depth = 14; * @return This builder for chaining. */ public Builder clearCallDepth() { callDepth_ = 0; onChanged(); return this; } private int callOperationType_ = 0; /** *
     **
     * The call operation type
     * 
* * .proto.CallOperationType call_operation_type = 15; * @return The enum numeric value on the wire for callOperationType. */ @java.lang.Override public int getCallOperationTypeValue() { return callOperationType_; } /** *
     **
     * The call operation type
     * 
* * .proto.CallOperationType call_operation_type = 15; * @param value The enum numeric value on the wire for callOperationType to set. * @return This builder for chaining. */ public Builder setCallOperationTypeValue(int value) { callOperationType_ = value; onChanged(); return this; } /** *
     **
     * The call operation type
     * 
* * .proto.CallOperationType call_operation_type = 15; * @return The callOperationType. */ @java.lang.Override public com.hedera.services.stream.proto.CallOperationType getCallOperationType() { @SuppressWarnings("deprecation") com.hedera.services.stream.proto.CallOperationType result = com.hedera.services.stream.proto.CallOperationType.valueOf(callOperationType_); return result == null ? com.hedera.services.stream.proto.CallOperationType.UNRECOGNIZED : result; } /** *
     **
     * The call operation type
     * 
* * .proto.CallOperationType call_operation_type = 15; * @param value The callOperationType to set. * @return This builder for chaining. */ public Builder setCallOperationType(com.hedera.services.stream.proto.CallOperationType value) { if (value == null) { throw new NullPointerException(); } callOperationType_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The call operation type
     * 
* * .proto.CallOperationType call_operation_type = 15; * @return This builder for chaining. */ public Builder clearCallOperationType() { callOperationType_ = 0; onChanged(); return this; } @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.ContractAction) } // @@protoc_insertion_point(class_scope:proto.ContractAction) private static final com.hedera.services.stream.proto.ContractAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.ContractAction(); } public static com.hedera.services.stream.proto.ContractAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContractAction(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.hedera.services.stream.proto.ContractAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy