Enum Class SubType

java.lang.Object
java.lang.Enum<SubType>
com.hedera.hashgraph.sdk.proto.SubType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<SubType>, Constable

@Generated public enum SubType extends Enum<SubType> implements com.google.protobuf.Internal.EnumLite
 *
 A transaction sub type.<br/>
 This enumeration enables a set of transaction base fees to be broadly
 defined for a type of operation and also be modified, when necessary,
 based on specifics of the operation.

 ### Explanation
 The resource cost for a TokenMint operation is different between minting
 fungible/common and non-fungible/unique tokens. This `enum` is used to
 "mark" a cost as applying to one or the other.<br/>
 Similarly, the resource cost for a basic `tokenCreate` without a custom
 fee schedule may yield a _base_ fee of $1. The resource cost for a
 `tokenCreate` _with_ a custom fee schedule is different and may yield a
 _base_ fee of $2 or more.
 
Protobuf enum proto.SubType
  • Enum Constant Details

    • DEFAULT

      public static final SubType DEFAULT
       *
       The resource cost for the transaction type has no additional attributes
       
      DEFAULT = 0;
    • TOKEN_FUNGIBLE_COMMON

      public static final SubType TOKEN_FUNGIBLE_COMMON
       *
       The resource cost for the transaction type includes an operation on a
       fungible/common token
       
      TOKEN_FUNGIBLE_COMMON = 1;
    • TOKEN_NON_FUNGIBLE_UNIQUE

      public static final SubType TOKEN_NON_FUNGIBLE_UNIQUE
       *
       The resource cost for the transaction type includes an operation on
       a non-fungible/unique token
       
      TOKEN_NON_FUNGIBLE_UNIQUE = 2;
    • TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES

      public static final SubType TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES
       *
       The resource cost for the transaction type includes an operation on a
       fungible/common token with a custom fee schedule
       
      TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES = 3;
    • TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES

      public static final SubType TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES
       *
       The resource cost for the transaction type includes an operation on a
       non-fungible/unique token with a custom fee schedule
       
      TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES = 4;
    • SCHEDULE_CREATE_CONTRACT_CALL

      public static final SubType SCHEDULE_CREATE_CONTRACT_CALL
       *
       The resource cost for the transaction type includes a ScheduleCreate
       containing a ContractCall.
       
      SCHEDULE_CREATE_CONTRACT_CALL = 5;
    • TOPIC_CREATE_WITH_CUSTOM_FEES

      public static final SubType TOPIC_CREATE_WITH_CUSTOM_FEES
       *
       The resource cost for the transaction type includes a TopicCreate
       with custom fees.
       
      TOPIC_CREATE_WITH_CUSTOM_FEES = 6;
    • SUBMIT_MESSAGE_WITH_CUSTOM_FEES

      public static final SubType SUBMIT_MESSAGE_WITH_CUSTOM_FEES
       *
       The resource cost for the transaction type includes a ConsensusSubmitMessage
       for a topic with custom fees.
       
      SUBMIT_MESSAGE_WITH_CUSTOM_FEES = 7;
    • CRYPTO_TRANSFER_WITH_HOOKS

      public static final SubType CRYPTO_TRANSFER_WITH_HOOKS
       *
       The resource cost for the transaction type that includes a CryptoTransfer with hook invocations
       
      CRYPTO_TRANSFER_WITH_HOOKS = 8;
    • UNRECOGNIZED

      public static final SubType UNRECOGNIZED
  • Field Details

    • DEFAULT_VALUE

      public static final int DEFAULT_VALUE
       *
       The resource cost for the transaction type has no additional attributes
       
      DEFAULT = 0;
      See Also:
    • TOKEN_FUNGIBLE_COMMON_VALUE

      public static final int TOKEN_FUNGIBLE_COMMON_VALUE
       *
       The resource cost for the transaction type includes an operation on a
       fungible/common token
       
      TOKEN_FUNGIBLE_COMMON = 1;
      See Also:
    • TOKEN_NON_FUNGIBLE_UNIQUE_VALUE

      public static final int TOKEN_NON_FUNGIBLE_UNIQUE_VALUE
       *
       The resource cost for the transaction type includes an operation on
       a non-fungible/unique token
       
      TOKEN_NON_FUNGIBLE_UNIQUE = 2;
      See Also:
    • TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES_VALUE

      public static final int TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES_VALUE
       *
       The resource cost for the transaction type includes an operation on a
       fungible/common token with a custom fee schedule
       
      TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES = 3;
      See Also:
    • TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES_VALUE

      public static final int TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES_VALUE
       *
       The resource cost for the transaction type includes an operation on a
       non-fungible/unique token with a custom fee schedule
       
      TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES = 4;
      See Also:
    • SCHEDULE_CREATE_CONTRACT_CALL_VALUE

      public static final int SCHEDULE_CREATE_CONTRACT_CALL_VALUE
       *
       The resource cost for the transaction type includes a ScheduleCreate
       containing a ContractCall.
       
      SCHEDULE_CREATE_CONTRACT_CALL = 5;
      See Also:
    • TOPIC_CREATE_WITH_CUSTOM_FEES_VALUE

      public static final int TOPIC_CREATE_WITH_CUSTOM_FEES_VALUE
       *
       The resource cost for the transaction type includes a TopicCreate
       with custom fees.
       
      TOPIC_CREATE_WITH_CUSTOM_FEES = 6;
      See Also:
    • SUBMIT_MESSAGE_WITH_CUSTOM_FEES_VALUE

      public static final int SUBMIT_MESSAGE_WITH_CUSTOM_FEES_VALUE
       *
       The resource cost for the transaction type includes a ConsensusSubmitMessage
       for a topic with custom fees.
       
      SUBMIT_MESSAGE_WITH_CUSTOM_FEES = 7;
      See Also:
    • CRYPTO_TRANSFER_WITH_HOOKS_VALUE

      public static final int CRYPTO_TRANSFER_WITH_HOOKS_VALUE
       *
       The resource cost for the transaction type that includes a CryptoTransfer with hook invocations
       
      CRYPTO_TRANSFER_WITH_HOOKS = 8;
      See Also:
  • Method Details

    • values

      public static SubType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static SubType valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static SubType forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<SubType> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()