Package net.corda.data.p2p.app
Class InboundUnauthenticatedMessage.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class InboundUnauthenticatedMessage.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for InboundUnauthenticatedMessage instances.
-
-
Field Summary
Fields Modifier and Type Field Description public InboundUnauthenticatedMessageHeader
header
public InboundUnauthenticatedMessageHeader.Builder
headerBuilder
public ByteBuffer
payload
-
Method Summary
Modifier and Type Method Description InboundUnauthenticatedMessageHeader
getHeader()
Gets the value of the 'header' field. InboundUnauthenticatedMessage.Builder
setHeader(InboundUnauthenticatedMessageHeader value)
Sets the value of the 'header' field. InboundUnauthenticatedMessageHeader.Builder
getHeaderBuilder()
Gets the Builder instance for the 'header' field and creates one if it doesn't exist yet. InboundUnauthenticatedMessage.Builder
setHeaderBuilder(InboundUnauthenticatedMessageHeader.Builder value)
Sets the Builder instance for the 'header' field ByteBuffer
getPayload()
Gets the value of the 'payload' field. InboundUnauthenticatedMessage.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. boolean
hasHeader()
Checks whether the 'header' field has been set. boolean
hasHeaderBuilder()
Checks whether the 'header' field has an active Builder instance InboundUnauthenticatedMessage.Builder
clearHeader()
Clears the value of the 'header' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. InboundUnauthenticatedMessage.Builder
clearPayload()
Clears the value of the 'payload' field. InboundUnauthenticatedMessage
build()
-
-
Method Detail
-
getHeader
InboundUnauthenticatedMessageHeader getHeader()
Gets the value of the 'header' field.
-
setHeader
InboundUnauthenticatedMessage.Builder setHeader(InboundUnauthenticatedMessageHeader value)
Sets the value of the 'header' field.
- Parameters:
value
- The value of 'header'.
-
getHeaderBuilder
InboundUnauthenticatedMessageHeader.Builder getHeaderBuilder()
Gets the Builder instance for the 'header' field and creates one if it doesn't exist yet.
-
setHeaderBuilder
InboundUnauthenticatedMessage.Builder setHeaderBuilder(InboundUnauthenticatedMessageHeader.Builder value)
Sets the Builder instance for the 'header' field
- Parameters:
value
- The builder instance that must be set.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field.
-
setPayload
InboundUnauthenticatedMessage.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
hasHeader
boolean hasHeader()
Checks whether the 'header' field has been set.
-
hasHeaderBuilder
boolean hasHeaderBuilder()
Checks whether the 'header' field has an active Builder instance
-
clearHeader
InboundUnauthenticatedMessage.Builder clearHeader()
Clears the value of the 'header' field.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
InboundUnauthenticatedMessage.Builder clearPayload()
Clears the value of the 'payload' field.
-
build
InboundUnauthenticatedMessage build()
-
-
-
-