Class StateRef.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class StateRef.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for StateRef instances.
-
-
Field Summary
Fields Modifier and Type Field Description public SecureHash
transactionId
public SecureHash.Builder
transactionIdBuilder
public int
index
-
Method Summary
Modifier and Type Method Description SecureHash
getTransactionId()
Gets the value of the 'transactionId' field. StateRef.Builder
setTransactionId(SecureHash value)
Sets the value of the 'transactionId' field. SecureHash.Builder
getTransactionIdBuilder()
Gets the Builder instance for the 'transactionId' field and creates one if it doesn't exist yet. StateRef.Builder
setTransactionIdBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'transactionId' field The id of the transaction in which the referenced state was created. int
getIndex()
Gets the value of the 'index' field. StateRef.Builder
setIndex(int value)
Sets the value of the 'index' field. boolean
hasTransactionId()
Checks whether the 'transactionId' field has been set. boolean
hasTransactionIdBuilder()
Checks whether the 'transactionId' field has an active Builder instance The id of the transaction in which the referenced state was created. StateRef.Builder
clearTransactionId()
Clears the value of the 'transactionId' field. boolean
hasIndex()
Checks whether the 'index' field has been set. StateRef.Builder
clearIndex()
Clears the value of the 'index' field. StateRef
build()
-
-
Method Detail
-
getTransactionId
SecureHash getTransactionId()
Gets the value of the 'transactionId' field. The id of the transaction in which the referenced state was created.
-
setTransactionId
StateRef.Builder setTransactionId(SecureHash value)
Sets the value of the 'transactionId' field. The id of the transaction in which the referenced state was created.
- Parameters:
value
- The value of 'transactionId'.
-
getTransactionIdBuilder
SecureHash.Builder getTransactionIdBuilder()
Gets the Builder instance for the 'transactionId' field and creates one if it doesn't exist yet. The id of the transaction in which the referenced state was created.
-
setTransactionIdBuilder
StateRef.Builder setTransactionIdBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'transactionId' field The id of the transaction in which the referenced state was created.
- Parameters:
value
- The builder instance that must be set.
-
getIndex
int getIndex()
Gets the value of the 'index' field. The index of the state in the transaction's outputs in which the referenced state was created.
-
setIndex
StateRef.Builder setIndex(int value)
Sets the value of the 'index' field. The index of the state in the transaction's outputs in which the referenced state was created.
- Parameters:
value
- The value of 'index'.
-
hasTransactionId
boolean hasTransactionId()
Checks whether the 'transactionId' field has been set. The id of the transaction in which the referenced state was created.
-
hasTransactionIdBuilder
boolean hasTransactionIdBuilder()
Checks whether the 'transactionId' field has an active Builder instance The id of the transaction in which the referenced state was created.
-
clearTransactionId
StateRef.Builder clearTransactionId()
Clears the value of the 'transactionId' field. The id of the transaction in which the referenced state was created.
-
hasIndex
boolean hasIndex()
Checks whether the 'index' field has been set. The index of the state in the transaction's outputs in which the referenced state was created.
-
clearIndex
StateRef.Builder clearIndex()
Clears the value of the 'index' field. The index of the state in the transaction's outputs in which the referenced state was created.
-
-
-
-