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

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

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

// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;

/**
 * Protobuf type {@code proto.EthereumTransactionBody}
 */
public  final class EthereumTransactionBody extends
    com.google.protobuf.GeneratedMessageLite<
        EthereumTransactionBody, EthereumTransactionBody.Builder> implements
    // @@protoc_insertion_point(message_implements:proto.EthereumTransactionBody)
    EthereumTransactionBodyOrBuilder {
  private EthereumTransactionBody() {
    ethereumData_ = com.google.protobuf.ByteString.EMPTY;
  }
  private int bitField0_;
  public static final int ETHEREUM_DATA_FIELD_NUMBER = 1;
  private com.google.protobuf.ByteString ethereumData_;
  /**
   * 
   **
   * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
   * unless the callData field is set.
   * 
* * bytes ethereum_data = 1; * @return The ethereumData. */ @java.lang.Override public com.google.protobuf.ByteString getEthereumData() { return ethereumData_; } /** *
   **
   * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
   * unless the callData field is set.
   * 
* * bytes ethereum_data = 1; * @param value The ethereumData to set. */ private void setEthereumData(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); ethereumData_ = value; } /** *
   **
   * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
   * unless the callData field is set.
   * 
* * bytes ethereum_data = 1; */ private void clearEthereumData() { ethereumData_ = getDefaultInstance().getEthereumData(); } public static final int CALL_DATA_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.FileID callData_; /** *
   **
   * For large transactions (for example contract create) this is the callData
   * of the ethereumData. The data in the ethereumData will be re-written with 
   * the callData element as a zero length string with the original contents in 
   * the referenced file at time of execution. The ethereumData will need to be 
   * "rehydrated" with the callData for signature validation to pass.
   * 
* * .proto.FileID call_data = 2; */ @java.lang.Override public boolean hasCallData() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * For large transactions (for example contract create) this is the callData
   * of the ethereumData. The data in the ethereumData will be re-written with 
   * the callData element as a zero length string with the original contents in 
   * the referenced file at time of execution. The ethereumData will need to be 
   * "rehydrated" with the callData for signature validation to pass.
   * 
* * .proto.FileID call_data = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getCallData() { return callData_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : callData_; } /** *
   **
   * For large transactions (for example contract create) this is the callData
   * of the ethereumData. The data in the ethereumData will be re-written with 
   * the callData element as a zero length string with the original contents in 
   * the referenced file at time of execution. The ethereumData will need to be 
   * "rehydrated" with the callData for signature validation to pass.
   * 
* * .proto.FileID call_data = 2; */ private void setCallData(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); callData_ = value; bitField0_ |= 0x00000001; } /** *
   **
   * For large transactions (for example contract create) this is the callData
   * of the ethereumData. The data in the ethereumData will be re-written with 
   * the callData element as a zero length string with the original contents in 
   * the referenced file at time of execution. The ethereumData will need to be 
   * "rehydrated" with the callData for signature validation to pass.
   * 
* * .proto.FileID call_data = 2; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeCallData(com.hedera.hashgraph.sdk.proto.FileID value) { value.getClass(); if (callData_ != null && callData_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) { callData_ = com.hedera.hashgraph.sdk.proto.FileID.newBuilder(callData_).mergeFrom(value).buildPartial(); } else { callData_ = value; } bitField0_ |= 0x00000001; } /** *
   **
   * For large transactions (for example contract create) this is the callData
   * of the ethereumData. The data in the ethereumData will be re-written with 
   * the callData element as a zero length string with the original contents in 
   * the referenced file at time of execution. The ethereumData will need to be 
   * "rehydrated" with the callData for signature validation to pass.
   * 
* * .proto.FileID call_data = 2; */ private void clearCallData() { callData_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int MAX_GAS_ALLOWANCE_FIELD_NUMBER = 3; private long maxGasAllowance_; /** *
   **
   * The maximum amount, in tinybars, that the payer of the hedera transaction 
   * is willing to pay to complete the transaction.
   *
   * Ordinarily the account with the ECDSA alias corresponding to the public 
   * key that is extracted from the ethereum_data signature is responsible for
   * fees that result from the execution of the transaction. If that amount of
   * authorized fees is not sufficient then the payer of the transaction can be
   * charged, up to but not exceeding this amount. If the ethereum_data 
   * transaction authorized an amount that was insufficient then the payer will
   * only be charged the amount needed to make up the difference. If the gas 
   * price in the transaction was set to zero then the payer will be assessed 
   * the entire fee.
   * 
* * int64 max_gas_allowance = 3; * @return The maxGasAllowance. */ @java.lang.Override public long getMaxGasAllowance() { return maxGasAllowance_; } /** *
   **
   * The maximum amount, in tinybars, that the payer of the hedera transaction 
   * is willing to pay to complete the transaction.
   *
   * Ordinarily the account with the ECDSA alias corresponding to the public 
   * key that is extracted from the ethereum_data signature is responsible for
   * fees that result from the execution of the transaction. If that amount of
   * authorized fees is not sufficient then the payer of the transaction can be
   * charged, up to but not exceeding this amount. If the ethereum_data 
   * transaction authorized an amount that was insufficient then the payer will
   * only be charged the amount needed to make up the difference. If the gas 
   * price in the transaction was set to zero then the payer will be assessed 
   * the entire fee.
   * 
* * int64 max_gas_allowance = 3; * @param value The maxGasAllowance to set. */ private void setMaxGasAllowance(long value) { maxGasAllowance_ = value; } /** *
   **
   * The maximum amount, in tinybars, that the payer of the hedera transaction 
   * is willing to pay to complete the transaction.
   *
   * Ordinarily the account with the ECDSA alias corresponding to the public 
   * key that is extracted from the ethereum_data signature is responsible for
   * fees that result from the execution of the transaction. If that amount of
   * authorized fees is not sufficient then the payer of the transaction can be
   * charged, up to but not exceeding this amount. If the ethereum_data 
   * transaction authorized an amount that was insufficient then the payer will
   * only be charged the amount needed to make up the difference. If the gas 
   * price in the transaction was set to zero then the payer will be assessed 
   * the entire fee.
   * 
* * int64 max_gas_allowance = 3; */ private void clearMaxGasAllowance() { maxGasAllowance_ = 0L; } public static com.hedera.hashgraph.sdk.proto.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody 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.EthereumTransactionBody prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code proto.EthereumTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.EthereumTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.EthereumTransactionBody) com.hedera.hashgraph.sdk.proto.EthereumTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.EthereumTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
     * unless the callData field is set.
     * 
* * bytes ethereum_data = 1; * @return The ethereumData. */ @java.lang.Override public com.google.protobuf.ByteString getEthereumData() { return instance.getEthereumData(); } /** *
     **
     * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
     * unless the callData field is set.
     * 
* * bytes ethereum_data = 1; * @param value The ethereumData to set. * @return This builder for chaining. */ public Builder setEthereumData(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setEthereumData(value); return this; } /** *
     **
     * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete 
     * unless the callData field is set.
     * 
* * bytes ethereum_data = 1; * @return This builder for chaining. */ public Builder clearEthereumData() { copyOnWrite(); instance.clearEthereumData(); return this; } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ @java.lang.Override public boolean hasCallData() { return instance.hasCallData(); } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.FileID getCallData() { return instance.getCallData(); } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ public Builder setCallData(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.setCallData(value); return this; } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ public Builder setCallData( com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) { copyOnWrite(); instance.setCallData(builderForValue.build()); return this; } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ public Builder mergeCallData(com.hedera.hashgraph.sdk.proto.FileID value) { copyOnWrite(); instance.mergeCallData(value); return this; } /** *
     **
     * For large transactions (for example contract create) this is the callData
     * of the ethereumData. The data in the ethereumData will be re-written with 
     * the callData element as a zero length string with the original contents in 
     * the referenced file at time of execution. The ethereumData will need to be 
     * "rehydrated" with the callData for signature validation to pass.
     * 
* * .proto.FileID call_data = 2; */ public Builder clearCallData() { copyOnWrite(); instance.clearCallData(); return this; } /** *
     **
     * The maximum amount, in tinybars, that the payer of the hedera transaction 
     * is willing to pay to complete the transaction.
     *
     * Ordinarily the account with the ECDSA alias corresponding to the public 
     * key that is extracted from the ethereum_data signature is responsible for
     * fees that result from the execution of the transaction. If that amount of
     * authorized fees is not sufficient then the payer of the transaction can be
     * charged, up to but not exceeding this amount. If the ethereum_data 
     * transaction authorized an amount that was insufficient then the payer will
     * only be charged the amount needed to make up the difference. If the gas 
     * price in the transaction was set to zero then the payer will be assessed 
     * the entire fee.
     * 
* * int64 max_gas_allowance = 3; * @return The maxGasAllowance. */ @java.lang.Override public long getMaxGasAllowance() { return instance.getMaxGasAllowance(); } /** *
     **
     * The maximum amount, in tinybars, that the payer of the hedera transaction 
     * is willing to pay to complete the transaction.
     *
     * Ordinarily the account with the ECDSA alias corresponding to the public 
     * key that is extracted from the ethereum_data signature is responsible for
     * fees that result from the execution of the transaction. If that amount of
     * authorized fees is not sufficient then the payer of the transaction can be
     * charged, up to but not exceeding this amount. If the ethereum_data 
     * transaction authorized an amount that was insufficient then the payer will
     * only be charged the amount needed to make up the difference. If the gas 
     * price in the transaction was set to zero then the payer will be assessed 
     * the entire fee.
     * 
* * int64 max_gas_allowance = 3; * @param value The maxGasAllowance to set. * @return This builder for chaining. */ public Builder setMaxGasAllowance(long value) { copyOnWrite(); instance.setMaxGasAllowance(value); return this; } /** *
     **
     * The maximum amount, in tinybars, that the payer of the hedera transaction 
     * is willing to pay to complete the transaction.
     *
     * Ordinarily the account with the ECDSA alias corresponding to the public 
     * key that is extracted from the ethereum_data signature is responsible for
     * fees that result from the execution of the transaction. If that amount of
     * authorized fees is not sufficient then the payer of the transaction can be
     * charged, up to but not exceeding this amount. If the ethereum_data 
     * transaction authorized an amount that was insufficient then the payer will
     * only be charged the amount needed to make up the difference. If the gas 
     * price in the transaction was set to zero then the payer will be assessed 
     * the entire fee.
     * 
* * int64 max_gas_allowance = 3; * @return This builder for chaining. */ public Builder clearMaxGasAllowance() { copyOnWrite(); instance.clearMaxGasAllowance(); return this; } // @@protoc_insertion_point(builder_scope:proto.EthereumTransactionBody) } @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.EthereumTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "ethereumData_", "callData_", "maxGasAllowance_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\n\u0002\u1009" + "\u0000\u0003\u0002"; 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.EthereumTransactionBody.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.EthereumTransactionBody) private static final com.hedera.hashgraph.sdk.proto.EthereumTransactionBody DEFAULT_INSTANCE; static { EthereumTransactionBody defaultInstance = new EthereumTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( EthereumTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.EthereumTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy