Package com.exonum.messages.core.runtime
Class Lifecycle.InstanceMigration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
com.exonum.messages.core.runtime.Lifecycle.InstanceMigration.Builder
- All Implemented Interfaces:
Lifecycle.InstanceMigrationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Lifecycle.InstanceMigration
public static final class Lifecycle.InstanceMigration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder> implements Lifecycle.InstanceMigrationOrBuilder
Protobuf type
exonum.runtime.InstanceMigration-
Method Summary
Modifier and Type Method Description Lifecycle.InstanceMigration.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Lifecycle.InstanceMigrationbuild()Lifecycle.InstanceMigrationbuildPartial()Lifecycle.InstanceMigration.Builderclear()Lifecycle.InstanceMigration.BuilderclearCompletedHash()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.BuilderclearEndVersion()Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Lifecycle.InstanceMigration.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Lifecycle.InstanceMigration.BuilderclearTarget()Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.Builderclone()Types.HashgetCompletedHash()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Types.Hash.BuildergetCompletedHashBuilder()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Types.HashOrBuildergetCompletedHashOrBuilder()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigrationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetEndVersion()Version of the instance data after the migration is completed.com.google.protobuf.ByteStringgetEndVersionBytes()Version of the instance data after the migration is completed.Base.ArtifactIdgetTarget()Migration target to obtain migration scripts from.Base.ArtifactId.BuildergetTargetBuilder()Migration target to obtain migration scripts from.Base.ArtifactIdOrBuildergetTargetOrBuilder()Migration target to obtain migration scripts from.booleanhasCompletedHash()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.booleanhasTarget()Migration target to obtain migration scripts from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Lifecycle.InstanceMigration.BuildermergeCompletedHash(Types.Hash value)Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.BuildermergeFrom(Lifecycle.InstanceMigration other)Lifecycle.InstanceMigration.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Lifecycle.InstanceMigration.BuildermergeFrom(com.google.protobuf.Message other)Lifecycle.InstanceMigration.BuildermergeTarget(Base.ArtifactId value)Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Lifecycle.InstanceMigration.BuildersetCompletedHash(Types.Hash value)Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.BuildersetCompletedHash(Types.Hash.Builder builderForValue)Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.BuildersetEndVersion(java.lang.String value)Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.BuildersetEndVersionBytes(com.google.protobuf.ByteString value)Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Lifecycle.InstanceMigration.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Lifecycle.InstanceMigration.BuildersetTarget(Base.ArtifactId value)Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.BuildersetTarget(Base.ArtifactId.Builder builderForValue)Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
setField
public Lifecycle.InstanceMigration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
clearField
public Lifecycle.InstanceMigration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
clearOneof
public Lifecycle.InstanceMigration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
setRepeatedField
public Lifecycle.InstanceMigration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
addRepeatedField
public Lifecycle.InstanceMigration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeFrom
public Lifecycle.InstanceMigration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lifecycle.InstanceMigration.Builder>- Throws:
java.io.IOException
-
hasTarget
public boolean hasTarget()Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1;- Specified by:
hasTargetin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- Whether the target field is set.
-
getTarget
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1;- Specified by:
getTargetin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- The target.
-
setTarget
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1; -
setTarget
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1; -
mergeTarget
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1; -
clearTarget
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1; -
getTargetBuilder
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1; -
getTargetOrBuilder
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
.exonum.runtime.ArtifactId target = 1;- Specified by:
getTargetOrBuilderin interfaceLifecycle.InstanceMigrationOrBuilder
-
getEndVersion
public java.lang.String getEndVersion()Version of the instance data after the migration is completed. Note that it does not necessarily match the version of `target`, but should be not greater.
string end_version = 2;- Specified by:
getEndVersionin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- The endVersion.
-
getEndVersionBytes
public com.google.protobuf.ByteString getEndVersionBytes()Version of the instance data after the migration is completed. Note that it does not necessarily match the version of `target`, but should be not greater.
string end_version = 2;- Specified by:
getEndVersionBytesin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- The bytes for endVersion.
-
setEndVersion
Version of the instance data after the migration is completed. Note that it does not necessarily match the version of `target`, but should be not greater.
string end_version = 2;- Parameters:
value- The endVersion to set.- Returns:
- This builder for chaining.
-
clearEndVersion
Version of the instance data after the migration is completed. Note that it does not necessarily match the version of `target`, but should be not greater.
string end_version = 2;- Returns:
- This builder for chaining.
-
setEndVersionBytes
public Lifecycle.InstanceMigration.Builder setEndVersionBytes(com.google.protobuf.ByteString value)Version of the instance data after the migration is completed. Note that it does not necessarily match the version of `target`, but should be not greater.
string end_version = 2;- Parameters:
value- The bytes for endVersion to set.- Returns:
- This builder for chaining.
-
hasCompletedHash
public boolean hasCompletedHash()Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3;- Specified by:
hasCompletedHashin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- Whether the completedHash field is set.
-
getCompletedHash
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3;- Specified by:
getCompletedHashin interfaceLifecycle.InstanceMigrationOrBuilder- Returns:
- The completedHash.
-
setCompletedHash
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3; -
setCompletedHash
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3; -
mergeCompletedHash
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3; -
clearCompletedHash
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3; -
getCompletedHashBuilder
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3; -
getCompletedHashOrBuilder
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the migration is not finished yet.
.exonum.crypto.Hash completed_hash = 3;- Specified by:
getCompletedHashOrBuilderin interfaceLifecycle.InstanceMigrationOrBuilder
-
setUnknownFields
public final Lifecycle.InstanceMigration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeUnknownFields
public final Lifecycle.InstanceMigration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-