Class CommonHeader.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CommonHeader.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CommonHeader instances.
-
-
Field Summary
Fields Modifier and Type Field Description public MessageType
messageType
public int
protocolVersion
public String
sessionId
public long
sequenceNo
public long
timestamp
-
Method Summary
Modifier and Type Method Description MessageType
getMessageType()
Gets the value of the 'messageType' field. CommonHeader.Builder
setMessageType(MessageType value)
Sets the value of the 'messageType' field. int
getProtocolVersion()
Gets the value of the 'protocolVersion' field. CommonHeader.Builder
setProtocolVersion(int value)
Sets the value of the 'protocolVersion' field. String
getSessionId()
Gets the value of the 'sessionId' field. CommonHeader.Builder
setSessionId(String value)
Sets the value of the 'sessionId' field. long
getSequenceNo()
Gets the value of the 'sequenceNo' field. CommonHeader.Builder
setSequenceNo(long value)
Sets the value of the 'sequenceNo' field. long
getTimestamp()
Gets the value of the 'timestamp' field. CommonHeader.Builder
setTimestamp(long value)
Sets the value of the 'timestamp' field. boolean
hasMessageType()
Checks whether the 'messageType' field has been set. CommonHeader.Builder
clearMessageType()
Clears the value of the 'messageType' field. boolean
hasProtocolVersion()
Checks whether the 'protocolVersion' field has been set. CommonHeader.Builder
clearProtocolVersion()
Clears the value of the 'protocolVersion' field. boolean
hasSessionId()
Checks whether the 'sessionId' field has been set. CommonHeader.Builder
clearSessionId()
Clears the value of the 'sessionId' field. boolean
hasSequenceNo()
Checks whether the 'sequenceNo' field has been set. CommonHeader.Builder
clearSequenceNo()
Clears the value of the 'sequenceNo' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. CommonHeader.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. CommonHeader
build()
-
-
Method Detail
-
getMessageType
MessageType getMessageType()
Gets the value of the 'messageType' field.
-
setMessageType
CommonHeader.Builder setMessageType(MessageType value)
Sets the value of the 'messageType' field.
- Parameters:
value
- The value of 'messageType'.
-
getProtocolVersion
int getProtocolVersion()
Gets the value of the 'protocolVersion' field.
-
setProtocolVersion
CommonHeader.Builder setProtocolVersion(int value)
Sets the value of the 'protocolVersion' field.
- Parameters:
value
- The value of 'protocolVersion'.
-
getSessionId
String getSessionId()
Gets the value of the 'sessionId' field.
-
setSessionId
CommonHeader.Builder setSessionId(String value)
Sets the value of the 'sessionId' field.
- Parameters:
value
- The value of 'sessionId'.
-
getSequenceNo
long getSequenceNo()
Gets the value of the 'sequenceNo' field.
-
setSequenceNo
CommonHeader.Builder setSequenceNo(long value)
Sets the value of the 'sequenceNo' field.
- Parameters:
value
- The value of 'sequenceNo'.
-
getTimestamp
long getTimestamp()
Gets the value of the 'timestamp' field.
-
setTimestamp
CommonHeader.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field.
- Parameters:
value
- The value of 'timestamp'.
-
hasMessageType
boolean hasMessageType()
Checks whether the 'messageType' field has been set.
-
clearMessageType
CommonHeader.Builder clearMessageType()
Clears the value of the 'messageType' field.
-
hasProtocolVersion
boolean hasProtocolVersion()
Checks whether the 'protocolVersion' field has been set.
-
clearProtocolVersion
CommonHeader.Builder clearProtocolVersion()
Clears the value of the 'protocolVersion' field.
-
hasSessionId
boolean hasSessionId()
Checks whether the 'sessionId' field has been set.
-
clearSessionId
CommonHeader.Builder clearSessionId()
Clears the value of the 'sessionId' field.
-
hasSequenceNo
boolean hasSequenceNo()
Checks whether the 'sequenceNo' field has been set.
-
clearSequenceNo
CommonHeader.Builder clearSequenceNo()
Clears the value of the 'sequenceNo' field.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set.
-
clearTimestamp
CommonHeader.Builder clearTimestamp()
Clears the value of the 'timestamp' field.
-
build
CommonHeader build()
-
-
-
-