Class UtilPrngTransactionBody.Builder

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

public static final class UtilPrngTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<UtilPrngTransactionBody,UtilPrngTransactionBody.Builder> implements UtilPrngTransactionBodyOrBuilder
 *
 Request a deterministic pseudo-random number.

 The value returned SHALL be deterministic, but not easily predicted.
 The value returned SHALL NOT be suitable for cryptographic use.

 ### Block Stream Effects
 The result of this transaction is reported in a `UtilPrngOutput` message.
 
Protobuf type proto.UtilPrngTransactionBody
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A range for the requested value.
    int
    * A range for the requested value.
    setRange(int value)
    * A range for the requested value.

    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

    • getRange

      public int getRange()
       *
       A range for the requested value.
       <p>
       If this is greater than `0`, the service SHALL return a 32-bit
       pseudo-random number between 0 and the value provided in the
       transaction record.<br/>
       If this is unset, zero, or negative; the service SHALL return a
       384-bit unsigned pseudo-random number in the record.
       
      int32 range = 1;
      Specified by:
      getRange in interface UtilPrngTransactionBodyOrBuilder
      Returns:
      The range.
    • setRange

      public UtilPrngTransactionBody.Builder setRange(int value)
       *
       A range for the requested value.
       <p>
       If this is greater than `0`, the service SHALL return a 32-bit
       pseudo-random number between 0 and the value provided in the
       transaction record.<br/>
       If this is unset, zero, or negative; the service SHALL return a
       384-bit unsigned pseudo-random number in the record.
       
      int32 range = 1;
      Parameters:
      value - The range to set.
      Returns:
      This builder for chaining.
    • clearRange

      public UtilPrngTransactionBody.Builder clearRange()
       *
       A range for the requested value.
       <p>
       If this is greater than `0`, the service SHALL return a 32-bit
       pseudo-random number between 0 and the value provided in the
       transaction record.<br/>
       If this is unset, zero, or negative; the service SHALL return a
       384-bit unsigned pseudo-random number in the record.
       
      int32 range = 1;
      Returns:
      This builder for chaining.