Package net.corda.data.p2p
Class AuthenticatedMessageAndKey.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class AuthenticatedMessageAndKey.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for AuthenticatedMessageAndKey instances.
-
-
Field Summary
Fields Modifier and Type Field Description public AuthenticatedMessage
message
public AuthenticatedMessage.Builder
messageBuilder
public String
key
-
Method Summary
Modifier and Type Method Description AuthenticatedMessage
getMessage()
Gets the value of the 'message' field. AuthenticatedMessageAndKey.Builder
setMessage(AuthenticatedMessage value)
Sets the value of the 'message' field. AuthenticatedMessage.Builder
getMessageBuilder()
Gets the Builder instance for the 'message' field and creates one if it doesn't exist yet. AuthenticatedMessageAndKey.Builder
setMessageBuilder(AuthenticatedMessage.Builder value)
Sets the Builder instance for the 'message' field String
getKey()
Gets the value of the 'key' field. AuthenticatedMessageAndKey.Builder
setKey(String value)
Sets the value of the 'key' field. boolean
hasMessage()
Checks whether the 'message' field has been set. boolean
hasMessageBuilder()
Checks whether the 'message' field has an active Builder instance AuthenticatedMessageAndKey.Builder
clearMessage()
Clears the value of the 'message' field. boolean
hasKey()
Checks whether the 'key' field has been set. AuthenticatedMessageAndKey.Builder
clearKey()
Clears the value of the 'key' field. AuthenticatedMessageAndKey
build()
-
-
Method Detail
-
getMessage
AuthenticatedMessage getMessage()
Gets the value of the 'message' field.
-
setMessage
AuthenticatedMessageAndKey.Builder setMessage(AuthenticatedMessage value)
Sets the value of the 'message' field.
- Parameters:
value
- The value of 'message'.
-
getMessageBuilder
AuthenticatedMessage.Builder getMessageBuilder()
Gets the Builder instance for the 'message' field and creates one if it doesn't exist yet.
-
setMessageBuilder
AuthenticatedMessageAndKey.Builder setMessageBuilder(AuthenticatedMessage.Builder value)
Sets the Builder instance for the 'message' field
- Parameters:
value
- The builder instance that must be set.
-
setKey
AuthenticatedMessageAndKey.Builder setKey(String value)
Sets the value of the 'key' field.
- Parameters:
value
- The value of 'key'.
-
hasMessage
boolean hasMessage()
Checks whether the 'message' field has been set.
-
hasMessageBuilder
boolean hasMessageBuilder()
Checks whether the 'message' field has an active Builder instance
-
clearMessage
AuthenticatedMessageAndKey.Builder clearMessage()
Clears the value of the 'message' field.
-
hasKey
boolean hasKey()
Checks whether the 'key' field has been set.
-
clearKey
AuthenticatedMessageAndKey.Builder clearKey()
Clears the value of the 'key' field.
-
build
AuthenticatedMessageAndKey build()
-
-
-
-