Package com.exonum.messages.core
Class Messages.SignedMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
com.exonum.messages.core.Messages.SignedMessage.Builder
- All Implemented Interfaces:
Messages.SignedMessageOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Messages.SignedMessage
public static final class Messages.SignedMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder> implements Messages.SignedMessageOrBuilder
Container for the signed messages.Protobuf type
exonum.SignedMessage
-
Method Summary
Modifier and Type Method Description Messages.SignedMessage.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Messages.SignedMessage
build()
Messages.SignedMessage
buildPartial()
Messages.SignedMessage.Builder
clear()
Messages.SignedMessage.Builder
clearAuthor()
Public key of the author of the message.Messages.SignedMessage.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Messages.SignedMessage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Messages.SignedMessage.Builder
clearPayload()
Payload of the message as a serialized `ExonumMessage`.Messages.SignedMessage.Builder
clearSignature()
Digital signature over the payload created with a secret key of the author of the message.Messages.SignedMessage.Builder
clone()
Types.PublicKey
getAuthor()
Public key of the author of the message.Types.PublicKey.Builder
getAuthorBuilder()
Public key of the author of the message.Types.PublicKeyOrBuilder
getAuthorOrBuilder()
Public key of the author of the message.Messages.SignedMessage
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getPayload()
Payload of the message as a serialized `ExonumMessage`.Types.Signature
getSignature()
Digital signature over the payload created with a secret key of the author of the message.Types.Signature.Builder
getSignatureBuilder()
Digital signature over the payload created with a secret key of the author of the message.Types.SignatureOrBuilder
getSignatureOrBuilder()
Digital signature over the payload created with a secret key of the author of the message.boolean
hasAuthor()
Public key of the author of the message.boolean
hasSignature()
Digital signature over the payload created with a secret key of the author of the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Messages.SignedMessage.Builder
mergeAuthor(Types.PublicKey value)
Public key of the author of the message.Messages.SignedMessage.Builder
mergeFrom(Messages.SignedMessage other)
Messages.SignedMessage.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Messages.SignedMessage.Builder
mergeFrom(com.google.protobuf.Message other)
Messages.SignedMessage.Builder
mergeSignature(Types.Signature value)
Digital signature over the payload created with a secret key of the author of the message.Messages.SignedMessage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Messages.SignedMessage.Builder
setAuthor(Types.PublicKey value)
Public key of the author of the message.Messages.SignedMessage.Builder
setAuthor(Types.PublicKey.Builder builderForValue)
Public key of the author of the message.Messages.SignedMessage.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Messages.SignedMessage.Builder
setPayload(com.google.protobuf.ByteString value)
Payload of the message as a serialized `ExonumMessage`.Messages.SignedMessage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Messages.SignedMessage.Builder
setSignature(Types.Signature value)
Digital signature over the payload created with a secret key of the author of the message.Messages.SignedMessage.Builder
setSignature(Types.Signature.Builder builderForValue)
Digital signature over the payload created with a secret key of the author of the message.Messages.SignedMessage.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
setField
public Messages.SignedMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
clearField
public Messages.SignedMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
clearOneof
public Messages.SignedMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
setRepeatedField
public Messages.SignedMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
addRepeatedField
public Messages.SignedMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Messages.SignedMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
mergeFrom
public Messages.SignedMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Messages.SignedMessage.Builder>
- Throws:
java.io.IOException
-
getPayload
public com.google.protobuf.ByteString getPayload()Payload of the message as a serialized `ExonumMessage`.
bytes payload = 1;
- Specified by:
getPayload
in interfaceMessages.SignedMessageOrBuilder
- Returns:
- The payload.
-
setPayload
Payload of the message as a serialized `ExonumMessage`.
bytes payload = 1;
- Parameters:
value
- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
Payload of the message as a serialized `ExonumMessage`.
bytes payload = 1;
- Returns:
- This builder for chaining.
-
hasAuthor
public boolean hasAuthor()Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
- Specified by:
hasAuthor
in interfaceMessages.SignedMessageOrBuilder
- Returns:
- Whether the author field is set.
-
getAuthor
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
- Specified by:
getAuthor
in interfaceMessages.SignedMessageOrBuilder
- Returns:
- The author.
-
setAuthor
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
-
setAuthor
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
-
mergeAuthor
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
-
clearAuthor
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
-
getAuthorBuilder
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
-
getAuthorOrBuilder
Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;
- Specified by:
getAuthorOrBuilder
in interfaceMessages.SignedMessageOrBuilder
-
hasSignature
public boolean hasSignature()Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
- Specified by:
hasSignature
in interfaceMessages.SignedMessageOrBuilder
- Returns:
- Whether the signature field is set.
-
getSignature
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
- Specified by:
getSignature
in interfaceMessages.SignedMessageOrBuilder
- Returns:
- The signature.
-
setSignature
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-
setSignature
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-
mergeSignature
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-
clearSignature
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-
getSignatureBuilder
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-
getSignatureOrBuilder
Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
- Specified by:
getSignatureOrBuilder
in interfaceMessages.SignedMessageOrBuilder
-
setUnknownFields
public final Messages.SignedMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-
mergeUnknownFields
public final Messages.SignedMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.SignedMessage.Builder>
-