Class ScheduledOrder.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ScheduledOrder,ScheduledOrder.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ScheduledOrder,ScheduledOrder.Builder>
com.hedera.hashgraph.sdk.proto.ScheduledOrder.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ScheduledOrderOrBuilder, Cloneable
Enclosing class:
ScheduledOrder

public static final class ScheduledOrder.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ScheduledOrder,ScheduledOrder.Builder> implements ScheduledOrderOrBuilder
 *
 An ordering for a scheduled transaction.<br/>
 This establishes the order in which scheduled transactions intended to
 execute at a particular consensus second will be executed.

 Scheduled transactions that have the same `expiry_second` SHALL execute
 in ascending order of `order_number`.
 
Protobuf type proto.ScheduledOrder
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A consensus second in which the transaction is to be executed.
    An ordered position within a conceptual list.<br/> This is the ordered position within the consensus second when the associated transaction will be executed.
    long
    * A consensus second in which the transaction is to be executed.
    int
    An ordered position within a conceptual list.<br/> This is the ordered position within the consensus second when the associated transaction will be executed.
    setExpirySecond(long value)
    * A consensus second in which the transaction is to be executed.
    setOrderNumber(int value)
    An ordered position within a conceptual list.<br/> This is the ordered position within the consensus second when the associated transaction will be executed.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getExpirySecond

      public long getExpirySecond()
       *
       A consensus second in which the transaction is to be executed.
       This is _also_ the consensus time when the transaction will expire
       if it has not gathered enough signatures in time.
       
      uint64 expiry_second = 1;
      Specified by:
      getExpirySecond in interface ScheduledOrderOrBuilder
      Returns:
      The expirySecond.
    • setExpirySecond

      public ScheduledOrder.Builder setExpirySecond(long value)
       *
       A consensus second in which the transaction is to be executed.
       This is _also_ the consensus time when the transaction will expire
       if it has not gathered enough signatures in time.
       
      uint64 expiry_second = 1;
      Parameters:
      value - The expirySecond to set.
      Returns:
      This builder for chaining.
    • clearExpirySecond

      public ScheduledOrder.Builder clearExpirySecond()
       *
       A consensus second in which the transaction is to be executed.
       This is _also_ the consensus time when the transaction will expire
       if it has not gathered enough signatures in time.
       
      uint64 expiry_second = 1;
      Returns:
      This builder for chaining.
    • getOrderNumber

      public int getOrderNumber()
      
       An ordered position within a conceptual list.<br/>
       This is the ordered position within the consensus second when
       the associated transaction will be executed.
       
      uint32 order_number = 2;
      Specified by:
      getOrderNumber in interface ScheduledOrderOrBuilder
      Returns:
      The orderNumber.
    • setOrderNumber

      public ScheduledOrder.Builder setOrderNumber(int value)
      
       An ordered position within a conceptual list.<br/>
       This is the ordered position within the consensus second when
       the associated transaction will be executed.
       
      uint32 order_number = 2;
      Parameters:
      value - The orderNumber to set.
      Returns:
      This builder for chaining.
    • clearOrderNumber

      public ScheduledOrder.Builder clearOrderNumber()
      
       An ordered position within a conceptual list.<br/>
       This is the ordered position within the consensus second when
       the associated transaction will be executed.
       
      uint32 order_number = 2;
      Returns:
      This builder for chaining.