Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRangein interfaceUtilPrngTransactionBodyOrBuilder- Returns:
- The range.
-
setRange
* 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
* 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.
-