Class SessionData.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SessionData.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SessionData instances.
-
-
Field Summary
Fields Modifier and Type Field Description public Object
payload
public SessionInit
sessionInit
public SessionInit.Builder
sessionInitBuilder
-
Method Summary
Modifier and Type Method Description Object
getPayload()
Gets the value of the 'payload' field. SessionData.Builder
setPayload(Object value)
Sets the value of the 'payload' field. SessionInit
getSessionInit()
Gets the value of the 'sessionInit' field. SessionData.Builder
setSessionInit(SessionInit value)
Sets the value of the 'sessionInit' field. SessionInit.Builder
getSessionInitBuilder()
Gets the Builder instance for the 'sessionInit' field and creates one if it doesn't exist yet. SessionData.Builder
setSessionInitBuilder(SessionInit.Builder value)
Sets the Builder instance for the 'sessionInit' field Contains information that can be used to start an initiated flow, piggybacked on initial data messages. boolean
hasPayload()
Checks whether the 'payload' field has been set. SessionData.Builder
clearPayload()
Clears the value of the 'payload' field. boolean
hasSessionInit()
Checks whether the 'sessionInit' field has been set. boolean
hasSessionInitBuilder()
Checks whether the 'sessionInit' field has an active Builder instance Contains information that can be used to start an initiated flow, piggybacked on initial data messages. SessionData.Builder
clearSessionInit()
Clears the value of the 'sessionInit' field. SessionData
build()
-
-
Method Detail
-
getPayload
Object getPayload()
Gets the value of the 'payload' field.
-
setPayload
SessionData.Builder setPayload(Object value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
getSessionInit
SessionInit getSessionInit()
Gets the value of the 'sessionInit' field. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
-
setSessionInit
SessionData.Builder setSessionInit(SessionInit value)
Sets the value of the 'sessionInit' field. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
- Parameters:
value
- The value of 'sessionInit'.
-
getSessionInitBuilder
SessionInit.Builder getSessionInitBuilder()
Gets the Builder instance for the 'sessionInit' field and creates one if it doesn't exist yet. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
-
setSessionInitBuilder
SessionData.Builder setSessionInitBuilder(SessionInit.Builder value)
Sets the Builder instance for the 'sessionInit' field Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
- Parameters:
value
- The builder instance that must be set.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
SessionData.Builder clearPayload()
Clears the value of the 'payload' field.
-
hasSessionInit
boolean hasSessionInit()
Checks whether the 'sessionInit' field has been set. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
-
hasSessionInitBuilder
boolean hasSessionInitBuilder()
Checks whether the 'sessionInit' field has an active Builder instance Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
-
clearSessionInit
SessionData.Builder clearSessionInit()
Clears the value of the 'sessionInit' field. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.
-
build
SessionData build()
-
-
-
-