Package com.exonum.messages.core.runtime
Class Lifecycle.InstanceState.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
com.exonum.messages.core.runtime.Lifecycle.InstanceState.Builder
- All Implemented Interfaces:
Lifecycle.InstanceStateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Lifecycle.InstanceState
public static final class Lifecycle.InstanceState.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder> implements Lifecycle.InstanceStateOrBuilder
Current state of service instance in dispatcher.Protobuf type
exonum.runtime.InstanceState-
Method Summary
Modifier and Type Method Description Lifecycle.InstanceState.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Lifecycle.InstanceStatebuild()Lifecycle.InstanceStatebuildPartial()Lifecycle.InstanceState.Builderclear()Lifecycle.InstanceState.BuilderclearDataVersion()Version of the service data.Lifecycle.InstanceState.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Lifecycle.InstanceState.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Lifecycle.InstanceState.BuilderclearPendingStatus()Pending status of the instance.Lifecycle.InstanceState.BuilderclearSpec()Service instance specification.Lifecycle.InstanceState.BuilderclearStatus()Service instance activity status.Lifecycle.InstanceState.Builderclone()java.lang.StringgetDataVersion()Version of the service data.com.google.protobuf.ByteStringgetDataVersionBytes()Version of the service data.Lifecycle.InstanceStategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Lifecycle.InstanceStatusgetPendingStatus()Pending status of the instance.Lifecycle.InstanceStatus.BuildergetPendingStatusBuilder()Pending status of the instance.Lifecycle.InstanceStatusOrBuildergetPendingStatusOrBuilder()Pending status of the instance.Base.InstanceSpecgetSpec()Service instance specification.Base.InstanceSpec.BuildergetSpecBuilder()Service instance specification.Base.InstanceSpecOrBuildergetSpecOrBuilder()Service instance specification.Lifecycle.InstanceStatusgetStatus()Service instance activity status.Lifecycle.InstanceStatus.BuildergetStatusBuilder()Service instance activity status.Lifecycle.InstanceStatusOrBuildergetStatusOrBuilder()Service instance activity status.booleanhasPendingStatus()Pending status of the instance.booleanhasSpec()Service instance specification.booleanhasStatus()Service instance activity status.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Lifecycle.InstanceState.BuildermergeFrom(Lifecycle.InstanceState other)Lifecycle.InstanceState.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Lifecycle.InstanceState.BuildermergeFrom(com.google.protobuf.Message other)Lifecycle.InstanceState.BuildermergePendingStatus(Lifecycle.InstanceStatus value)Pending status of the instance.Lifecycle.InstanceState.BuildermergeSpec(Base.InstanceSpec value)Service instance specification.Lifecycle.InstanceState.BuildermergeStatus(Lifecycle.InstanceStatus value)Service instance activity status.Lifecycle.InstanceState.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Lifecycle.InstanceState.BuildersetDataVersion(java.lang.String value)Version of the service data.Lifecycle.InstanceState.BuildersetDataVersionBytes(com.google.protobuf.ByteString value)Version of the service data.Lifecycle.InstanceState.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Lifecycle.InstanceState.BuildersetPendingStatus(Lifecycle.InstanceStatus value)Pending status of the instance.Lifecycle.InstanceState.BuildersetPendingStatus(Lifecycle.InstanceStatus.Builder builderForValue)Pending status of the instance.Lifecycle.InstanceState.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Lifecycle.InstanceState.BuildersetSpec(Base.InstanceSpec value)Service instance specification.Lifecycle.InstanceState.BuildersetSpec(Base.InstanceSpec.Builder builderForValue)Service instance specification.Lifecycle.InstanceState.BuildersetStatus(Lifecycle.InstanceStatus value)Service instance activity status.Lifecycle.InstanceState.BuildersetStatus(Lifecycle.InstanceStatus.Builder builderForValue)Service instance activity status.Lifecycle.InstanceState.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.InstanceState.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.InstanceState.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.InstanceState.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.InstanceState.Builder>
-
setField
public Lifecycle.InstanceState.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.InstanceState.Builder>
-
clearField
public Lifecycle.InstanceState.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
-
clearOneof
public Lifecycle.InstanceState.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
-
setRepeatedField
public Lifecycle.InstanceState.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.InstanceState.Builder>
-
addRepeatedField
public Lifecycle.InstanceState.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.InstanceState.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lifecycle.InstanceState.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
-
mergeFrom
public Lifecycle.InstanceState.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.InstanceState.Builder>- Throws:
java.io.IOException
-
hasSpec
public boolean hasSpec()Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;- Specified by:
hasSpecin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- Whether the spec field is set.
-
getSpec
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;- Specified by:
getSpecin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- The spec.
-
setSpec
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1; -
setSpec
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1; -
mergeSpec
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1; -
clearSpec
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1; -
getSpecBuilder
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1; -
getSpecOrBuilder
Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;- Specified by:
getSpecOrBuilderin interfaceLifecycle.InstanceStateOrBuilder
-
hasStatus
public boolean hasStatus()Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;- Specified by:
hasStatusin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;- Specified by:
getStatusin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- The status.
-
setStatus
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2; -
setStatus
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2; -
mergeStatus
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2; -
clearStatus
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2; -
getStatusBuilder
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2; -
getStatusOrBuilder
Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;- Specified by:
getStatusOrBuilderin interfaceLifecycle.InstanceStateOrBuilder
-
hasPendingStatus
public boolean hasPendingStatus()Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;- Specified by:
hasPendingStatusin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- Whether the pendingStatus field is set.
-
getPendingStatus
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;- Specified by:
getPendingStatusin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- The pendingStatus.
-
setPendingStatus
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3; -
setPendingStatus
public Lifecycle.InstanceState.Builder setPendingStatus(Lifecycle.InstanceStatus.Builder builderForValue)Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3; -
mergePendingStatus
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3; -
clearPendingStatus
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3; -
getPendingStatusBuilder
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3; -
getPendingStatusOrBuilder
Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;- Specified by:
getPendingStatusOrBuilderin interfaceLifecycle.InstanceStateOrBuilder
-
getDataVersion
public java.lang.String getDataVersion()Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;- Specified by:
getDataVersionin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- The dataVersion.
-
getDataVersionBytes
public com.google.protobuf.ByteString getDataVersionBytes()Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;- Specified by:
getDataVersionBytesin interfaceLifecycle.InstanceStateOrBuilder- Returns:
- The bytes for dataVersion.
-
setDataVersion
Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;- Parameters:
value- The dataVersion to set.- Returns:
- This builder for chaining.
-
clearDataVersion
Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;- Returns:
- This builder for chaining.
-
setDataVersionBytes
Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;- Parameters:
value- The bytes for dataVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Lifecycle.InstanceState.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
-
mergeUnknownFields
public final Lifecycle.InstanceState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lifecycle.InstanceState.Builder>
-