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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Lifecycle.InstanceMigration
build()
Lifecycle.InstanceMigration
buildPartial()
Lifecycle.InstanceMigration.Builder
clear()
Lifecycle.InstanceMigration.Builder
clearCompletedHash()
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.Builder
clearEndVersion()
Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Lifecycle.InstanceMigration.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Lifecycle.InstanceMigration.Builder
clearTarget()
Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.Builder
clone()
Types.Hash
getCompletedHash()
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Types.Hash.Builder
getCompletedHashBuilder()
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Types.HashOrBuilder
getCompletedHashOrBuilder()
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getEndVersion()
Version of the instance data after the migration is completed.com.google.protobuf.ByteString
getEndVersionBytes()
Version of the instance data after the migration is completed.Base.ArtifactId
getTarget()
Migration target to obtain migration scripts from.Base.ArtifactId.Builder
getTargetBuilder()
Migration target to obtain migration scripts from.Base.ArtifactIdOrBuilder
getTargetOrBuilder()
Migration target to obtain migration scripts from.boolean
hasCompletedHash()
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.boolean
hasTarget()
Migration target to obtain migration scripts from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Lifecycle.InstanceMigration.Builder
mergeCompletedHash(Types.Hash value)
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.Builder
mergeFrom(Lifecycle.InstanceMigration other)
Lifecycle.InstanceMigration.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lifecycle.InstanceMigration.Builder
mergeFrom(com.google.protobuf.Message other)
Lifecycle.InstanceMigration.Builder
mergeTarget(Base.ArtifactId value)
Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Lifecycle.InstanceMigration.Builder
setCompletedHash(Types.Hash value)
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.Builder
setCompletedHash(Types.Hash.Builder builderForValue)
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data.Lifecycle.InstanceMigration.Builder
setEndVersion(java.lang.String value)
Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.Builder
setEndVersionBytes(com.google.protobuf.ByteString value)
Version of the instance data after the migration is completed.Lifecycle.InstanceMigration.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Lifecycle.InstanceMigration.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Lifecycle.InstanceMigration.Builder
setTarget(Base.ArtifactId value)
Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.Builder
setTarget(Base.ArtifactId.Builder builderForValue)
Migration target to obtain migration scripts from.Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
setField
public Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
clearField
public Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
clearOneof
public Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
setRepeatedField
public Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
addRepeatedField
public Lifecycle.InstanceMigration.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<Lifecycle.InstanceMigration.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasTarget
in 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:
getTarget
in 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:
getTargetOrBuilder
in 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:
getEndVersion
in 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:
getEndVersionBytes
in 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:
hasCompletedHash
in 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:
getCompletedHash
in 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:
getCompletedHashOrBuilder
in interfaceLifecycle.InstanceMigrationOrBuilder
-
setUnknownFields
public final Lifecycle.InstanceMigration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-
mergeUnknownFields
public final Lifecycle.InstanceMigration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceMigration.Builder>
-