Package com.exonum.core.messages
Class Runtime.ExecutionError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder>
com.exonum.core.messages.Runtime.ExecutionError.Builder
- All Implemented Interfaces:
Runtime.ExecutionErrorOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Runtime.ExecutionError
public static final class Runtime.ExecutionError.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder> implements Runtime.ExecutionErrorOrBuilder
Result of unsuccessful runtime execution.Protobuf type
exonum.runtime.ExecutionError
-
Method Summary
Modifier and Type Method Description Runtime.ExecutionError.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Runtime.ExecutionError
build()
Runtime.ExecutionError
buildPartial()
Runtime.ExecutionError.Builder
clear()
Runtime.ExecutionError.Builder
clearCode()
User defined error code that can have different meanings for the different error kinds.Runtime.ExecutionError.Builder
clearDescription()
Optional description which doesn't affect `object_hash`.Runtime.ExecutionError.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Runtime.ExecutionError.Builder
clearKind()
The kind of error that indicates in which module the error occurred.Runtime.ExecutionError.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Runtime.ExecutionError.Builder
clone()
int
getCode()
User defined error code that can have different meanings for the different error kinds.Runtime.ExecutionError
getDefaultInstanceForType()
String
getDescription()
Optional description which doesn't affect `object_hash`.com.google.protobuf.ByteString
getDescriptionBytes()
Optional description which doesn't affect `object_hash`.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Runtime.ErrorKind
getKind()
The kind of error that indicates in which module the error occurred.int
getKindValue()
The kind of error that indicates in which module the error occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Runtime.ExecutionError.Builder
mergeFrom(Runtime.ExecutionError other)
Runtime.ExecutionError.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Runtime.ExecutionError.Builder
mergeFrom(com.google.protobuf.Message other)
Runtime.ExecutionError.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Runtime.ExecutionError.Builder
setCode(int value)
User defined error code that can have different meanings for the different error kinds.Runtime.ExecutionError.Builder
setDescription(String value)
Optional description which doesn't affect `object_hash`.Runtime.ExecutionError.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional description which doesn't affect `object_hash`.Runtime.ExecutionError.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Runtime.ExecutionError.Builder
setKind(Runtime.ErrorKind value)
The kind of error that indicates in which module the error occurred.Runtime.ExecutionError.Builder
setKindValue(int value)
The kind of error that indicates in which module the error occurred.Runtime.ExecutionError.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Runtime.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<Runtime.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<Runtime.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<Runtime.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<Runtime.ExecutionError.Builder>
-
setField
public Runtime.ExecutionError.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder>
-
clearField
public Runtime.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<Runtime.ExecutionError.Builder>
-
clearOneof
public Runtime.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<Runtime.ExecutionError.Builder>
-
setRepeatedField
public Runtime.ExecutionError.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder>
-
addRepeatedField
public Runtime.ExecutionError.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Runtime.ExecutionError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runtime.ExecutionError.Builder>
-
mergeFrom
public Runtime.ExecutionError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Runtime.ExecutionError.Builder>
- Throws:
IOException
-
getKindValue
public int getKindValue()The kind of error that indicates in which module the error occurred.
.exonum.runtime.ErrorKind kind = 1;
- Specified by:
getKindValue
in interfaceRuntime.ExecutionErrorOrBuilder
- Returns:
- The enum numeric value on the wire for kind.
-
setKindValue
The kind of error that indicates in which module the error occurred.
.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 in which module the error occurred.
.exonum.runtime.ErrorKind kind = 1;
- Specified by:
getKind
in interfaceRuntime.ExecutionErrorOrBuilder
- Returns:
- The kind.
-
setKind
The kind of error that indicates in which module the error occurred.
.exonum.runtime.ErrorKind kind = 1;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
The kind of error that indicates in which module the error occurred.
.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 interfaceRuntime.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
Optional description which doesn't affect `object_hash`.
string description = 3;
- Specified by:
getDescription
in interfaceRuntime.ExecutionErrorOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional description which doesn't affect `object_hash`.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceRuntime.ExecutionErrorOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Optional description which doesn't affect `object_hash`.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional description which doesn't affect `object_hash`.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional description which doesn't affect `object_hash`.
string description = 3;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Runtime.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<Runtime.ExecutionError.Builder>
-
mergeUnknownFields
public final Runtime.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<Runtime.ExecutionError.Builder>
-