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

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

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Call a function of the given smart contract instance, giving it functionParameters as its inputs.
 * The call can use at maximum the given amount of gas – the paying account will not be charged for
 * any unspent gas.
 *
 * If this function results in data being stored, an amount of gas is calculated that reflects this
 * storage burden.
 *
 * The amount of gas used, as well as other attributes of the transaction, e.g. size, number of
 * signatures to be verified, determine the fee for the transaction – which is charged to the paying
 * account.
 * 
* * Protobuf type {@code proto.ContractCallTransactionBody} */ public final class ContractCallTransactionBody extends com.google.protobuf.GeneratedMessageLite< ContractCallTransactionBody, ContractCallTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.ContractCallTransactionBody) ContractCallTransactionBodyOrBuilder { private ContractCallTransactionBody() { functionParameters_ = com.google.protobuf.ByteString.EMPTY; } public static final int CONTRACTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ContractID contractID_; /** *
   **
   * The contract to call
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public boolean hasContractID() { return contractID_ != null; } /** *
   **
   * The contract to call
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_; } /** *
   **
   * The contract to call
   * 
* * .proto.ContractID contractID = 1; */ private void setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); contractID_ = value; } /** *
   **
   * The contract to call
   * 
* * .proto.ContractID contractID = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { value.getClass(); if (contractID_ != null && contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) { contractID_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial(); } else { contractID_ = value; } } /** *
   **
   * The contract to call
   * 
* * .proto.ContractID contractID = 1; */ private void clearContractID() { contractID_ = null; } public static final int GAS_FIELD_NUMBER = 2; private long gas_; /** *
   **
   * the maximum amount of gas to use for the call
   * 
* * int64 gas = 2; * @return The gas. */ @java.lang.Override public long getGas() { return gas_; } /** *
   **
   * the maximum amount of gas to use for the call
   * 
* * int64 gas = 2; * @param value The gas to set. */ private void setGas(long value) { gas_ = value; } /** *
   **
   * the maximum amount of gas to use for the call
   * 
* * int64 gas = 2; */ private void clearGas() { gas_ = 0L; } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** *
   **
   * number of tinybars sent (the function must be payable if this is nonzero)
   * 
* * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** *
   **
   * number of tinybars sent (the function must be payable if this is nonzero)
   * 
* * int64 amount = 3; * @param value The amount to set. */ private void setAmount(long value) { amount_ = value; } /** *
   **
   * number of tinybars sent (the function must be payable if this is nonzero)
   * 
* * int64 amount = 3; */ private void clearAmount() { amount_ = 0L; } public static final int FUNCTIONPARAMETERS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString functionParameters_; /** *
   **
   * which function to call, and the parameters to pass to the function
   * 
* * bytes functionParameters = 4; * @return The functionParameters. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionParameters() { return functionParameters_; } /** *
   **
   * which function to call, and the parameters to pass to the function
   * 
* * bytes functionParameters = 4; * @param value The functionParameters to set. */ private void setFunctionParameters(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); functionParameters_ = value; } /** *
   **
   * which function to call, and the parameters to pass to the function
   * 
* * bytes functionParameters = 4; */ private void clearFunctionParameters() { functionParameters_ = getDefaultInstance().getFunctionParameters(); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Call a function of the given smart contract instance, giving it functionParameters as its inputs.
   * The call can use at maximum the given amount of gas – the paying account will not be charged for
   * any unspent gas.
   *
   * If this function results in data being stored, an amount of gas is calculated that reflects this
   * storage burden.
   *
   * The amount of gas used, as well as other attributes of the transaction, e.g. size, number of
   * signatures to be verified, determine the fee for the transaction – which is charged to the paying
   * account.
   * 
* * Protobuf type {@code proto.ContractCallTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.ContractCallTransactionBody) com.hedera.hashgraph.sdk.proto.ContractCallTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public boolean hasContractID() { return instance.hasContractID(); } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ContractID getContractID() { return instance.getContractID(); } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.setContractID(value); return this; } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ public Builder setContractID( com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) { copyOnWrite(); instance.setContractID(builderForValue.build()); return this; } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) { copyOnWrite(); instance.mergeContractID(value); return this; } /** *
     **
     * The contract to call
     * 
* * .proto.ContractID contractID = 1; */ public Builder clearContractID() { copyOnWrite(); instance.clearContractID(); return this; } /** *
     **
     * the maximum amount of gas to use for the call
     * 
* * int64 gas = 2; * @return The gas. */ @java.lang.Override public long getGas() { return instance.getGas(); } /** *
     **
     * the maximum amount of gas to use for the call
     * 
* * int64 gas = 2; * @param value The gas to set. * @return This builder for chaining. */ public Builder setGas(long value) { copyOnWrite(); instance.setGas(value); return this; } /** *
     **
     * the maximum amount of gas to use for the call
     * 
* * int64 gas = 2; * @return This builder for chaining. */ public Builder clearGas() { copyOnWrite(); instance.clearGas(); return this; } /** *
     **
     * number of tinybars sent (the function must be payable if this is nonzero)
     * 
* * int64 amount = 3; * @return The amount. */ @java.lang.Override public long getAmount() { return instance.getAmount(); } /** *
     **
     * number of tinybars sent (the function must be payable if this is nonzero)
     * 
* * int64 amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { copyOnWrite(); instance.setAmount(value); return this; } /** *
     **
     * number of tinybars sent (the function must be payable if this is nonzero)
     * 
* * int64 amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { copyOnWrite(); instance.clearAmount(); return this; } /** *
     **
     * which function to call, and the parameters to pass to the function
     * 
* * bytes functionParameters = 4; * @return The functionParameters. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionParameters() { return instance.getFunctionParameters(); } /** *
     **
     * which function to call, and the parameters to pass to the function
     * 
* * bytes functionParameters = 4; * @param value The functionParameters to set. * @return This builder for chaining. */ public Builder setFunctionParameters(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setFunctionParameters(value); return this; } /** *
     **
     * which function to call, and the parameters to pass to the function
     * 
* * bytes functionParameters = 4; * @return This builder for chaining. */ public Builder clearFunctionParameters() { copyOnWrite(); instance.clearFunctionParameters(); return this; } // @@protoc_insertion_point(builder_scope:proto.ContractCallTransactionBody) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "contractID_", "gas_", "amount_", "functionParameters_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\t\u0002\u0002" + "\u0003\u0002\u0004\n"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.ContractCallTransactionBody) private static final com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody DEFAULT_INSTANCE; static { ContractCallTransactionBody defaultInstance = new ContractCallTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ContractCallTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy