Package com.exonum.messages.core.runtime
Class Lifecycle.MigrationStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.MigrationStatus.Builder>
com.exonum.messages.core.runtime.Lifecycle.MigrationStatus.Builder
- All Implemented Interfaces:
Lifecycle.MigrationStatusOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Lifecycle.MigrationStatus
public static final class Lifecycle.MigrationStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.MigrationStatus.Builder> implements Lifecycle.MigrationStatusOrBuilder
Local result of a migration.Protobuf type
exonum.runtime.MigrationStatus
-
Method Summary
Modifier and Type Method Description Lifecycle.MigrationStatus.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Lifecycle.MigrationStatus
build()
Lifecycle.MigrationStatus
buildPartial()
Lifecycle.MigrationStatus.Builder
clear()
Lifecycle.MigrationStatus.Builder
clearError()
Human-readable description of an error that has occurred during migration.Lifecycle.MigrationStatus.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Lifecycle.MigrationStatus.Builder
clearHash()
Hash of the successfully migrated data.Lifecycle.MigrationStatus.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Lifecycle.MigrationStatus.Builder
clearResult()
Lifecycle.MigrationStatus.Builder
clone()
Lifecycle.MigrationStatus
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getError()
Human-readable description of an error that has occurred during migration.com.google.protobuf.ByteString
getErrorBytes()
Human-readable description of an error that has occurred during migration.Types.Hash
getHash()
Hash of the successfully migrated data.Types.Hash.Builder
getHashBuilder()
Hash of the successfully migrated data.Types.HashOrBuilder
getHashOrBuilder()
Hash of the successfully migrated data.Lifecycle.MigrationStatus.ResultCase
getResultCase()
boolean
hasHash()
Hash of the successfully migrated data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Lifecycle.MigrationStatus.Builder
mergeFrom(Lifecycle.MigrationStatus other)
Lifecycle.MigrationStatus.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lifecycle.MigrationStatus.Builder
mergeFrom(com.google.protobuf.Message other)
Lifecycle.MigrationStatus.Builder
mergeHash(Types.Hash value)
Hash of the successfully migrated data.Lifecycle.MigrationStatus.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Lifecycle.MigrationStatus.Builder
setError(java.lang.String value)
Human-readable description of an error that has occurred during migration.Lifecycle.MigrationStatus.Builder
setErrorBytes(com.google.protobuf.ByteString value)
Human-readable description of an error that has occurred during migration.Lifecycle.MigrationStatus.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Lifecycle.MigrationStatus.Builder
setHash(Types.Hash value)
Hash of the successfully migrated data.Lifecycle.MigrationStatus.Builder
setHash(Types.Hash.Builder builderForValue)
Hash of the successfully migrated data.Lifecycle.MigrationStatus.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Lifecycle.MigrationStatus.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.MigrationStatus.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.MigrationStatus.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.MigrationStatus.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.MigrationStatus.Builder>
-
setField
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
clearField
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
clearOneof
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
setRepeatedField
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
addRepeatedField
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Lifecycle.MigrationStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.MigrationStatus.Builder>
-
mergeFrom
public Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
- Throws:
java.io.IOException
-
getResultCase
- Specified by:
getResultCase
in interfaceLifecycle.MigrationStatusOrBuilder
-
clearResult
-
hasHash
public boolean hasHash()Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
- Specified by:
hasHash
in interfaceLifecycle.MigrationStatusOrBuilder
- Returns:
- Whether the hash field is set.
-
getHash
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
- Specified by:
getHash
in interfaceLifecycle.MigrationStatusOrBuilder
- Returns:
- The hash.
-
setHash
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
-
setHash
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
-
mergeHash
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
-
clearHash
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
-
getHashBuilder
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
-
getHashOrBuilder
Hash of the successfully migrated data.
.exonum.crypto.Hash hash = 1;
- Specified by:
getHashOrBuilder
in interfaceLifecycle.MigrationStatusOrBuilder
-
getError
public java.lang.String getError()Human-readable description of an error that has occurred during migration.
string error = 2;
- Specified by:
getError
in interfaceLifecycle.MigrationStatusOrBuilder
- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()Human-readable description of an error that has occurred during migration.
string error = 2;
- Specified by:
getErrorBytes
in interfaceLifecycle.MigrationStatusOrBuilder
- Returns:
- The bytes for error.
-
setError
Human-readable description of an error that has occurred during migration.
string error = 2;
- Parameters:
value
- The error to set.- Returns:
- This builder for chaining.
-
clearError
Human-readable description of an error that has occurred during migration.
string error = 2;
- Returns:
- This builder for chaining.
-
setErrorBytes
Human-readable description of an error that has occurred during migration.
string error = 2;
- Parameters:
value
- The bytes for error to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-
mergeUnknownFields
public final Lifecycle.MigrationStatus.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.MigrationStatus.Builder>
-