Package com.exonum.messages.core.runtime
Class Errors.ExecutionError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
com.exonum.messages.core.runtime.Errors.ExecutionError.Builder
- All Implemented Interfaces:
Errors.ExecutionErrorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Errors.ExecutionError
public static final class Errors.ExecutionError.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder> implements Errors.ExecutionErrorOrBuilder
Result of unsuccessful runtime execution. `ExecutionError` message provides the information about the source of the error. The source of error is determined as following: - If both runtime ID and call site are set, then error is related to the service code. - If runtime ID is set, and call site is not set, then error is related to the runtime code. - If none of runtime ID and call site is set, then error originates in the core code. Option with set call site and unset runtime ID is not valid, receiving a message with such a combination means receiving a malformed message. Though in most cases `runtime_id` and `call_site` are enough to deduce the source of error, 'ErrorKind' type can be used to resolve ambiguity.Protobuf type
exonum.runtime.ExecutionError-
Method Summary
Modifier and Type Method Description Errors.ExecutionError.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Errors.ExecutionErrorbuild()Errors.ExecutionErrorbuildPartial()Errors.ExecutionError.Builderclear()Errors.ExecutionError.BuilderclearCallInfo()Errors.ExecutionError.BuilderclearCallSite()Information about service call associated with the error.Errors.ExecutionError.BuilderclearCode()User defined error code that can have different meanings for the different error kinds.Errors.ExecutionError.BuilderclearDescription()Optional error description.Errors.ExecutionError.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Errors.ExecutionError.BuilderclearKind()The kind of error that indicates its type.Errors.ExecutionError.BuilderclearNoCallSite()There was no service to process an erroneous call.Errors.ExecutionError.BuilderclearNoRuntimeId()There was no runtime to process an erroneous call.Errors.ExecutionError.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Errors.ExecutionError.BuilderclearRuntime()Errors.ExecutionError.BuilderclearRuntimeId()Identifier of runtime associated with the error.Errors.ExecutionError.Builderclone()Errors.ExecutionError.CallInfoCasegetCallInfoCase()Errors.CallSitegetCallSite()Information about service call associated with the error.Errors.CallSite.BuildergetCallSiteBuilder()Information about service call associated with the error.Errors.CallSiteOrBuildergetCallSiteOrBuilder()Information about service call associated with the error.intgetCode()User defined error code that can have different meanings for the different error kinds.Errors.ExecutionErrorgetDefaultInstanceForType()java.lang.StringgetDescription()Optional error description.com.google.protobuf.ByteStringgetDescriptionBytes()Optional error description.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Errors.ErrorKindgetKind()The kind of error that indicates its type.intgetKindValue()The kind of error that indicates its type.com.google.protobuf.EmptygetNoCallSite()There was no service to process an erroneous call.com.google.protobuf.Empty.BuildergetNoCallSiteBuilder()There was no service to process an erroneous call.com.google.protobuf.EmptyOrBuildergetNoCallSiteOrBuilder()There was no service to process an erroneous call.com.google.protobuf.EmptygetNoRuntimeId()There was no runtime to process an erroneous call.com.google.protobuf.Empty.BuildergetNoRuntimeIdBuilder()There was no runtime to process an erroneous call.com.google.protobuf.EmptyOrBuildergetNoRuntimeIdOrBuilder()There was no runtime to process an erroneous call.Errors.ExecutionError.RuntimeCasegetRuntimeCase()intgetRuntimeId()Identifier of runtime associated with the error.booleanhasCallSite()Information about service call associated with the error.booleanhasNoCallSite()There was no service to process an erroneous call.booleanhasNoRuntimeId()There was no runtime to process an erroneous call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Errors.ExecutionError.BuildermergeCallSite(Errors.CallSite value)Information about service call associated with the error.Errors.ExecutionError.BuildermergeFrom(Errors.ExecutionError other)Errors.ExecutionError.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Errors.ExecutionError.BuildermergeFrom(com.google.protobuf.Message other)Errors.ExecutionError.BuildermergeNoCallSite(com.google.protobuf.Empty value)There was no service to process an erroneous call.Errors.ExecutionError.BuildermergeNoRuntimeId(com.google.protobuf.Empty value)There was no runtime to process an erroneous call.Errors.ExecutionError.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Errors.ExecutionError.BuildersetCallSite(Errors.CallSite value)Information about service call associated with the error.Errors.ExecutionError.BuildersetCallSite(Errors.CallSite.Builder builderForValue)Information about service call associated with the error.Errors.ExecutionError.BuildersetCode(int value)User defined error code that can have different meanings for the different error kinds.Errors.ExecutionError.BuildersetDescription(java.lang.String value)Optional error description.Errors.ExecutionError.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Optional error description.Errors.ExecutionError.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Errors.ExecutionError.BuildersetKind(Errors.ErrorKind value)The kind of error that indicates its type.Errors.ExecutionError.BuildersetKindValue(int value)The kind of error that indicates its type.Errors.ExecutionError.BuildersetNoCallSite(com.google.protobuf.Empty value)There was no service to process an erroneous call.Errors.ExecutionError.BuildersetNoCallSite(com.google.protobuf.Empty.Builder builderForValue)There was no service to process an erroneous call.Errors.ExecutionError.BuildersetNoRuntimeId(com.google.protobuf.Empty value)There was no runtime to process an erroneous call.Errors.ExecutionError.BuildersetNoRuntimeId(com.google.protobuf.Empty.Builder builderForValue)There was no runtime to process an erroneous call.Errors.ExecutionError.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Errors.ExecutionError.BuildersetRuntimeId(int value)Identifier of runtime associated with the error.Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
setField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
clearField
public Errors.ExecutionError.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-
clearOneof
public Errors.ExecutionError.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-
setRepeatedField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
addRepeatedField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Errors.ExecutionError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-
mergeFrom
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>- Throws:
java.io.IOException
-
getRuntimeCase
- Specified by:
getRuntimeCasein interfaceErrors.ExecutionErrorOrBuilder
-
clearRuntime
-
getCallInfoCase
- Specified by:
getCallInfoCasein interfaceErrors.ExecutionErrorOrBuilder
-
clearCallInfo
-
getKindValue
public int getKindValue()The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;- Specified by:
getKindValuein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
setKindValue
The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;- Parameters:
value- The enum numeric value on the wire for kind to set.- Returns:
- This builder for chaining.
-
getKind
The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;- Specified by:
getKindin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The kind.
-
setKind
The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;- Returns:
- This builder for chaining.
-
getCode
public int getCode()User defined error code that can have different meanings for the different error kinds.
uint32 code = 2;- Specified by:
getCodein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The code.
-
setCode
User defined error code that can have different meanings for the different error kinds.
uint32 code = 2;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
User defined error code that can have different meanings for the different error kinds.
uint32 code = 2;- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()Optional error description. When one verifies proof of error authenticity, the description should not be included into error serialization.
string description = 3;- Specified by:
getDescriptionin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional error description. When one verifies proof of error authenticity, the description should not be included into error serialization.
string description = 3;- Specified by:
getDescriptionBytesin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional error description. When one verifies proof of error authenticity, the description should not be included into error serialization.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional error description. When one verifies proof of error authenticity, the description should not be included into error serialization.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional error description. When one verifies proof of error authenticity, the description should not be included into error serialization.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getRuntimeId
public int getRuntimeId()Identifier of runtime associated with the error.
uint32 runtime_id = 4;- Specified by:
getRuntimeIdin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The runtimeId.
-
setRuntimeId
Identifier of runtime associated with the error.
uint32 runtime_id = 4;- Parameters:
value- The runtimeId to set.- Returns:
- This builder for chaining.
-
clearRuntimeId
Identifier of runtime associated with the error.
uint32 runtime_id = 4;- Returns:
- This builder for chaining.
-
hasNoRuntimeId
public boolean hasNoRuntimeId()There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5;- Specified by:
hasNoRuntimeIdin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- Whether the noRuntimeId field is set.
-
getNoRuntimeId
public com.google.protobuf.Empty getNoRuntimeId()There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5;- Specified by:
getNoRuntimeIdin interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The noRuntimeId.
-
setNoRuntimeId
There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5; -
setNoRuntimeId
public Errors.ExecutionError.Builder setNoRuntimeId(com.google.protobuf.Empty.Builder builderForValue)There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5; -
mergeNoRuntimeId
There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5; -
clearNoRuntimeId
There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5; -
getNoRuntimeIdBuilder
public com.google.protobuf.Empty.Builder getNoRuntimeIdBuilder()There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5; -
getNoRuntimeIdOrBuilder
public com.google.protobuf.EmptyOrBuilder getNoRuntimeIdOrBuilder()There was no runtime to process an erroneous call.
.google.protobuf.Empty no_runtime_id = 5;- Specified by:
getNoRuntimeIdOrBuilderin interfaceErrors.ExecutionErrorOrBuilder
-
hasCallSite
public boolean hasCallSite()Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6;- Specified by:
hasCallSitein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- Whether the callSite field is set.
-
getCallSite
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6;- Specified by:
getCallSitein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The callSite.
-
setCallSite
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6; -
setCallSite
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6; -
mergeCallSite
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6; -
clearCallSite
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6; -
getCallSiteBuilder
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6; -
getCallSiteOrBuilder
Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6;- Specified by:
getCallSiteOrBuilderin interfaceErrors.ExecutionErrorOrBuilder
-
hasNoCallSite
public boolean hasNoCallSite()There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7;- Specified by:
hasNoCallSitein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- Whether the noCallSite field is set.
-
getNoCallSite
public com.google.protobuf.Empty getNoCallSite()There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7;- Specified by:
getNoCallSitein interfaceErrors.ExecutionErrorOrBuilder- Returns:
- The noCallSite.
-
setNoCallSite
There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7; -
setNoCallSite
public Errors.ExecutionError.Builder setNoCallSite(com.google.protobuf.Empty.Builder builderForValue)There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7; -
mergeNoCallSite
There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7; -
clearNoCallSite
There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7; -
getNoCallSiteBuilder
public com.google.protobuf.Empty.Builder getNoCallSiteBuilder()There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7; -
getNoCallSiteOrBuilder
public com.google.protobuf.EmptyOrBuilder getNoCallSiteOrBuilder()There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7;- Specified by:
getNoCallSiteOrBuilderin interfaceErrors.ExecutionErrorOrBuilder
-
setUnknownFields
public final Errors.ExecutionError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-
mergeUnknownFields
public final Errors.ExecutionError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-