Package net.corda.data
Class AvroEnvelope.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class AvroEnvelope.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for AvroEnvelope instances.
-
-
Field Summary
Fields Modifier and Type Field Description public Magic
magic
public Fingerprint
fingerprint
public int
flags
public ByteBuffer
payload
-
Method Summary
Modifier and Type Method Description Magic
getMagic()
Gets the value of the 'magic' field. AvroEnvelope.Builder
setMagic(Magic value)
Sets the value of the 'magic' field. Fingerprint
getFingerprint()
Gets the value of the 'fingerprint' field. AvroEnvelope.Builder
setFingerprint(Fingerprint value)
Sets the value of the 'fingerprint' field. int
getFlags()
Gets the value of the 'flags' field. AvroEnvelope.Builder
setFlags(int value)
Sets the value of the 'flags' field. ByteBuffer
getPayload()
Gets the value of the 'payload' field. AvroEnvelope.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. boolean
hasMagic()
Checks whether the 'magic' field has been set. AvroEnvelope.Builder
clearMagic()
Clears the value of the 'magic' field. boolean
hasFingerprint()
Checks whether the 'fingerprint' field has been set. AvroEnvelope.Builder
clearFingerprint()
Clears the value of the 'fingerprint' field. boolean
hasFlags()
Checks whether the 'flags' field has been set. AvroEnvelope.Builder
clearFlags()
Clears the value of the 'flags' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. AvroEnvelope.Builder
clearPayload()
Clears the value of the 'payload' field. AvroEnvelope
build()
-
-
Method Detail
-
setMagic
AvroEnvelope.Builder setMagic(Magic value)
Sets the value of the 'magic' field.
- Parameters:
value
- The value of 'magic'.
-
getFingerprint
Fingerprint getFingerprint()
Gets the value of the 'fingerprint' field.
-
setFingerprint
AvroEnvelope.Builder setFingerprint(Fingerprint value)
Sets the value of the 'fingerprint' field.
- Parameters:
value
- The value of 'fingerprint'.
-
getFlags
int getFlags()
Gets the value of the 'flags' field.
-
setFlags
AvroEnvelope.Builder setFlags(int value)
Sets the value of the 'flags' field.
- Parameters:
value
- The value of 'flags'.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field.
-
setPayload
AvroEnvelope.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
hasMagic
boolean hasMagic()
Checks whether the 'magic' field has been set.
-
clearMagic
AvroEnvelope.Builder clearMagic()
Clears the value of the 'magic' field.
-
hasFingerprint
boolean hasFingerprint()
Checks whether the 'fingerprint' field has been set.
-
clearFingerprint
AvroEnvelope.Builder clearFingerprint()
Clears the value of the 'fingerprint' field.
-
hasFlags
boolean hasFlags()
Checks whether the 'flags' field has been set.
-
clearFlags
AvroEnvelope.Builder clearFlags()
Clears the value of the 'flags' field.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
AvroEnvelope.Builder clearPayload()
Clears the value of the 'payload' field.
-
build
AvroEnvelope build()
-
-
-
-