Package net.corda.data.p2p.app
Class AppMessage.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class AppMessage.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for AppMessage instances.
-
-
Method Summary
Modifier and Type Method Description Object
getMessage()
Gets the value of the 'message' field. AppMessage.Builder
setMessage(Object value)
Sets the value of the 'message' field. boolean
hasMessage()
Checks whether the 'message' field has been set. AppMessage.Builder
clearMessage()
Clears the value of the 'message' field. AppMessage
build()
-
-
Method Detail
-
getMessage
Object getMessage()
Gets the value of the 'message' field.
- Returns:
The value.
-
setMessage
AppMessage.Builder setMessage(Object value)
Sets the value of the 'message' field.
- Parameters:
value
- The value of 'message'.- Returns:
This builder.
-
hasMessage
boolean hasMessage()
Checks whether the 'message' field has been set.
- Returns:
True if the 'message' field has been set, false otherwise.
-
clearMessage
AppMessage.Builder clearMessage()
Clears the value of the 'message' field.
- Returns:
This builder.
-
build
AppMessage build()
-
-
-
-