Class FixedCustomFee

java.lang.Object
com.google.protobuf.AbstractMessageLite<FixedCustomFee,FixedCustomFee.Builder>
com.google.protobuf.GeneratedMessageLite<FixedCustomFee,FixedCustomFee.Builder>
com.hedera.hashgraph.sdk.proto.FixedCustomFee
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, FixedCustomFeeOrBuilder

@Generated public final class FixedCustomFee extends com.google.protobuf.GeneratedMessageLite<FixedCustomFee,FixedCustomFee.Builder> implements FixedCustomFeeOrBuilder
 *
 A custom fee definition for a consensus topic.
 <p>
 This fee definition is specific to an Hedera Consensus Service (HCS) topic
 and SHOULD NOT be used in any other context.<br/>
 All fields for this message are REQUIRED.<br/>
 Only "fixed" fee definitions are supported because there is no basis for
 a fractional fee on a consensus submit transaction.
 
Protobuf type proto.FixedCustomFee
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A custom fee definition for a consensus topic.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    * A collection account identifier.
    * A fixed custom fee.
    boolean
    * A collection account identifier.
    boolean
    * A fixed custom fee.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FixedCustomFee>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • FIXED_FEE_FIELD_NUMBER

      public static final int FIXED_FEE_FIELD_NUMBER
      See Also:
    • FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER

      public static final int FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER
      See Also:
  • Method Details

    • hasFixedFee

      public boolean hasFixedFee()
       *
       A fixed custom fee.
       <p>
       The amount of HBAR or other token described by this `FixedFee` SHALL
       be charged to the transction payer for each message submitted to a
       topic that assigns this consensus custom fee.
       
      .proto.FixedFee fixed_fee = 1;
      Specified by:
      hasFixedFee in interface FixedCustomFeeOrBuilder
      Returns:
      Whether the fixedFee field is set.
    • getFixedFee

      public FixedFee getFixedFee()
       *
       A fixed custom fee.
       <p>
       The amount of HBAR or other token described by this `FixedFee` SHALL
       be charged to the transction payer for each message submitted to a
       topic that assigns this consensus custom fee.
       
      .proto.FixedFee fixed_fee = 1;
      Specified by:
      getFixedFee in interface FixedCustomFeeOrBuilder
      Returns:
      The fixedFee.
    • hasFeeCollectorAccountId

      public boolean hasFeeCollectorAccountId()
       *
       A collection account identifier.
       <p>
       All amounts collected for this consensus custom fee SHALL be transferred
       to the account identified by this field.
       
      .proto.AccountID fee_collector_account_id = 2;
      Specified by:
      hasFeeCollectorAccountId in interface FixedCustomFeeOrBuilder
      Returns:
      Whether the feeCollectorAccountId field is set.
    • getFeeCollectorAccountId

      public AccountID getFeeCollectorAccountId()
       *
       A collection account identifier.
       <p>
       All amounts collected for this consensus custom fee SHALL be transferred
       to the account identified by this field.
       
      .proto.AccountID fee_collector_account_id = 2;
      Specified by:
      getFeeCollectorAccountId in interface FixedCustomFeeOrBuilder
      Returns:
      The feeCollectorAccountId.
    • parseFrom

      public static FixedCustomFee parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FixedCustomFee parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedCustomFee parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FixedCustomFee parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FixedCustomFee parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedCustomFee parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedCustomFee parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static FixedCustomFee.Builder newBuilder()
    • newBuilder

      public static FixedCustomFee.Builder newBuilder(FixedCustomFee prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<FixedCustomFee,FixedCustomFee.Builder>
    • getDefaultInstance

      public static FixedCustomFee getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FixedCustomFee> parser()