Package com.exonum.messages.core
Class Messages.CoreMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Messages.CoreMessage.Builder>
com.exonum.messages.core.Messages.CoreMessage.Builder
- All Implemented Interfaces:
Messages.CoreMessageOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Messages.CoreMessage
public static final class Messages.CoreMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Messages.CoreMessage.Builder> implements Messages.CoreMessageOrBuilder
Subset of Exonum messages defined in the Exonum core.Protobuf type
exonum.CoreMessage
-
Method Summary
Modifier and Type Method Description Messages.CoreMessage.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Messages.CoreMessage
build()
Messages.CoreMessage
buildPartial()
Messages.CoreMessage.Builder
clear()
Messages.CoreMessage.Builder
clearAnyTx()
Transaction message.Messages.CoreMessage.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Messages.CoreMessage.Builder
clearKind()
Messages.CoreMessage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Messages.CoreMessage.Builder
clearPrecommit()
Precommit (block endorsement) message.Messages.CoreMessage.Builder
clone()
Base.AnyTx
getAnyTx()
Transaction message.Base.AnyTx.Builder
getAnyTxBuilder()
Transaction message.Base.AnyTxOrBuilder
getAnyTxOrBuilder()
Transaction message.Messages.CoreMessage
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Messages.CoreMessage.KindCase
getKindCase()
Messages.Precommit
getPrecommit()
Precommit (block endorsement) message.Messages.Precommit.Builder
getPrecommitBuilder()
Precommit (block endorsement) message.Messages.PrecommitOrBuilder
getPrecommitOrBuilder()
Precommit (block endorsement) message.boolean
hasAnyTx()
Transaction message.boolean
hasPrecommit()
Precommit (block endorsement) message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Messages.CoreMessage.Builder
mergeAnyTx(Base.AnyTx value)
Transaction message.Messages.CoreMessage.Builder
mergeFrom(Messages.CoreMessage other)
Messages.CoreMessage.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Messages.CoreMessage.Builder
mergeFrom(com.google.protobuf.Message other)
Messages.CoreMessage.Builder
mergePrecommit(Messages.Precommit value)
Precommit (block endorsement) message.Messages.CoreMessage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Messages.CoreMessage.Builder
setAnyTx(Base.AnyTx value)
Transaction message.Messages.CoreMessage.Builder
setAnyTx(Base.AnyTx.Builder builderForValue)
Transaction message.Messages.CoreMessage.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Messages.CoreMessage.Builder
setPrecommit(Messages.Precommit value)
Precommit (block endorsement) message.Messages.CoreMessage.Builder
setPrecommit(Messages.Precommit.Builder builderForValue)
Precommit (block endorsement) message.Messages.CoreMessage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Messages.CoreMessage.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.CoreMessage.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.CoreMessage.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.CoreMessage.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.CoreMessage.Builder>
-
setField
public Messages.CoreMessage.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.CoreMessage.Builder>
-
clearField
public Messages.CoreMessage.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.CoreMessage.Builder>
-
clearOneof
public Messages.CoreMessage.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.CoreMessage.Builder>
-
setRepeatedField
public Messages.CoreMessage.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.CoreMessage.Builder>
-
addRepeatedField
public Messages.CoreMessage.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.CoreMessage.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Messages.CoreMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.CoreMessage.Builder>
-
mergeFrom
public Messages.CoreMessage.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.CoreMessage.Builder>
- Throws:
java.io.IOException
-
getKindCase
- Specified by:
getKindCase
in interfaceMessages.CoreMessageOrBuilder
-
clearKind
-
hasAnyTx
public boolean hasAnyTx()Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
- Specified by:
hasAnyTx
in interfaceMessages.CoreMessageOrBuilder
- Returns:
- Whether the anyTx field is set.
-
getAnyTx
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
- Specified by:
getAnyTx
in interfaceMessages.CoreMessageOrBuilder
- Returns:
- The anyTx.
-
setAnyTx
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
-
setAnyTx
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
-
mergeAnyTx
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
-
clearAnyTx
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
-
getAnyTxBuilder
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
-
getAnyTxOrBuilder
Transaction message.
.exonum.runtime.AnyTx any_tx = 1;
- Specified by:
getAnyTxOrBuilder
in interfaceMessages.CoreMessageOrBuilder
-
hasPrecommit
public boolean hasPrecommit()Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
- Specified by:
hasPrecommit
in interfaceMessages.CoreMessageOrBuilder
- Returns:
- Whether the precommit field is set.
-
getPrecommit
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
- Specified by:
getPrecommit
in interfaceMessages.CoreMessageOrBuilder
- Returns:
- The precommit.
-
setPrecommit
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
-
setPrecommit
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
-
mergePrecommit
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
-
clearPrecommit
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
-
getPrecommitBuilder
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
-
getPrecommitOrBuilder
Precommit (block endorsement) message.
.exonum.Precommit precommit = 2;
- Specified by:
getPrecommitOrBuilder
in interfaceMessages.CoreMessageOrBuilder
-
setUnknownFields
public final Messages.CoreMessage.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.CoreMessage.Builder>
-
mergeUnknownFields
public final Messages.CoreMessage.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.CoreMessage.Builder>
-