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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Errors.ExecutionError
build()
Errors.ExecutionError
buildPartial()
Errors.ExecutionError.Builder
clear()
Errors.ExecutionError.Builder
clearCallInfo()
Errors.ExecutionError.Builder
clearCallSite()
Information about service call associated with the error.Errors.ExecutionError.Builder
clearCode()
User defined error code that can have different meanings for the different error kinds.Errors.ExecutionError.Builder
clearDescription()
Optional error description.Errors.ExecutionError.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Errors.ExecutionError.Builder
clearKind()
The kind of error that indicates its type.Errors.ExecutionError.Builder
clearNoCallSite()
There was no service to process an erroneous call.Errors.ExecutionError.Builder
clearNoRuntimeId()
There was no runtime to process an erroneous call.Errors.ExecutionError.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Errors.ExecutionError.Builder
clearRuntime()
Errors.ExecutionError.Builder
clearRuntimeId()
Identifier of runtime associated with the error.Errors.ExecutionError.Builder
clone()
Errors.ExecutionError.CallInfoCase
getCallInfoCase()
Errors.CallSite
getCallSite()
Information about service call associated with the error.Errors.CallSite.Builder
getCallSiteBuilder()
Information about service call associated with the error.Errors.CallSiteOrBuilder
getCallSiteOrBuilder()
Information about service call associated with the error.int
getCode()
User defined error code that can have different meanings for the different error kinds.Errors.ExecutionError
getDefaultInstanceForType()
java.lang.String
getDescription()
Optional error description.com.google.protobuf.ByteString
getDescriptionBytes()
Optional error description.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Errors.ErrorKind
getKind()
The kind of error that indicates its type.int
getKindValue()
The kind of error that indicates its type.com.google.protobuf.Empty
getNoCallSite()
There was no service to process an erroneous call.com.google.protobuf.Empty.Builder
getNoCallSiteBuilder()
There was no service to process an erroneous call.com.google.protobuf.EmptyOrBuilder
getNoCallSiteOrBuilder()
There was no service to process an erroneous call.com.google.protobuf.Empty
getNoRuntimeId()
There was no runtime to process an erroneous call.com.google.protobuf.Empty.Builder
getNoRuntimeIdBuilder()
There was no runtime to process an erroneous call.com.google.protobuf.EmptyOrBuilder
getNoRuntimeIdOrBuilder()
There was no runtime to process an erroneous call.Errors.ExecutionError.RuntimeCase
getRuntimeCase()
int
getRuntimeId()
Identifier of runtime associated with the error.boolean
hasCallSite()
Information about service call associated with the error.boolean
hasNoCallSite()
There was no service to process an erroneous call.boolean
hasNoRuntimeId()
There was no runtime to process an erroneous call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Errors.ExecutionError.Builder
mergeCallSite(Errors.CallSite value)
Information about service call associated with the error.Errors.ExecutionError.Builder
mergeFrom(Errors.ExecutionError other)
Errors.ExecutionError.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Errors.ExecutionError.Builder
mergeFrom(com.google.protobuf.Message other)
Errors.ExecutionError.Builder
mergeNoCallSite(com.google.protobuf.Empty value)
There was no service to process an erroneous call.Errors.ExecutionError.Builder
mergeNoRuntimeId(com.google.protobuf.Empty value)
There was no runtime to process an erroneous call.Errors.ExecutionError.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Errors.ExecutionError.Builder
setCallSite(Errors.CallSite value)
Information about service call associated with the error.Errors.ExecutionError.Builder
setCallSite(Errors.CallSite.Builder builderForValue)
Information about service call associated with the error.Errors.ExecutionError.Builder
setCode(int value)
User defined error code that can have different meanings for the different error kinds.Errors.ExecutionError.Builder
setDescription(java.lang.String value)
Optional error description.Errors.ExecutionError.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional error description.Errors.ExecutionError.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Errors.ExecutionError.Builder
setKind(Errors.ErrorKind value)
The kind of error that indicates its type.Errors.ExecutionError.Builder
setKindValue(int value)
The kind of error that indicates its type.Errors.ExecutionError.Builder
setNoCallSite(com.google.protobuf.Empty value)
There was no service to process an erroneous call.Errors.ExecutionError.Builder
setNoCallSite(com.google.protobuf.Empty.Builder builderForValue)
There was no service to process an erroneous call.Errors.ExecutionError.Builder
setNoRuntimeId(com.google.protobuf.Empty value)
There was no runtime to process an erroneous call.Errors.ExecutionError.Builder
setNoRuntimeId(com.google.protobuf.Empty.Builder builderForValue)
There was no runtime to process an erroneous call.Errors.ExecutionError.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Errors.ExecutionError.Builder
setRuntimeId(int value)
Identifier of runtime associated with the error.Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
setField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
clearField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
clearOneof
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
setRepeatedField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
addRepeatedField
public Errors.ExecutionError.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<Errors.ExecutionError.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.ExecutionError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.ExecutionError.Builder>
- Throws:
java.io.IOException
-
getRuntimeCase
- Specified by:
getRuntimeCase
in interfaceErrors.ExecutionErrorOrBuilder
-
clearRuntime
-
getCallInfoCase
- Specified by:
getCallInfoCase
in interfaceErrors.ExecutionErrorOrBuilder
-
clearCallInfo
-
getKindValue
public int getKindValue()The kind of error that indicates its type.
.exonum.runtime.ErrorKind kind = 1;
- Specified by:
getKindValue
in 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:
getKind
in 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:
getCode
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getRuntimeId
in 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:
hasNoRuntimeId
in 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:
getNoRuntimeId
in 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:
getNoRuntimeIdOrBuilder
in interfaceErrors.ExecutionErrorOrBuilder
-
hasCallSite
public boolean hasCallSite()Information about service call associated with the error.
.exonum.runtime.CallSite call_site = 6;
- Specified by:
hasCallSite
in 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:
getCallSite
in 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:
getCallSiteOrBuilder
in interfaceErrors.ExecutionErrorOrBuilder
-
hasNoCallSite
public boolean hasNoCallSite()There was no service to process an erroneous call.
.google.protobuf.Empty no_call_site = 7;
- Specified by:
hasNoCallSite
in 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:
getNoCallSite
in 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:
getNoCallSiteOrBuilder
in interfaceErrors.ExecutionErrorOrBuilder
-
setUnknownFields
public final Errors.ExecutionError.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-
mergeUnknownFields
public final Errors.ExecutionError.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.ExecutionError.Builder>
-