Class Protocol.ErrorMessage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
-
- dev.restate.generated.service.protocol.Protocol.ErrorMessage.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Protocol.ErrorMessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Protocol.ErrorMessage
public static final class Protocol.ErrorMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder> implements Protocol.ErrorMessageOrBuilder
Type: 0x0000 + 3
Protobuf typedev.restate.service.protocol.ErrorMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Protocol.ErrorMessagebuild()Protocol.ErrorMessagebuildPartial()Protocol.ErrorMessage.Builderclear()Protocol.ErrorMessage.BuilderclearCode()The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.Protocol.ErrorMessage.BuilderclearDescription()Contains a verbose error description, e.g.Protocol.ErrorMessage.BuilderclearMessage()Contains a concise error message, e.g.Protocol.ErrorMessage.BuilderclearRelatedEntryIndex()Entry that caused the failure.Protocol.ErrorMessage.BuilderclearRelatedEntryName()Name of the entry that caused the failure.Protocol.ErrorMessage.BuilderclearRelatedEntryType()Entry type.intgetCode()The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.Protocol.ErrorMessagegetDefaultInstanceForType()java.lang.StringgetDescription()Contains a verbose error description, e.g.com.google.protobuf.ByteStringgetDescriptionBytes()Contains a verbose error description, e.g.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetMessage()Contains a concise error message, e.g.com.google.protobuf.ByteStringgetMessageBytes()Contains a concise error message, e.g.intgetRelatedEntryIndex()Entry that caused the failure.java.lang.StringgetRelatedEntryName()Name of the entry that caused the failure.com.google.protobuf.ByteStringgetRelatedEntryNameBytes()Name of the entry that caused the failure.intgetRelatedEntryType()Entry type.booleanhasRelatedEntryIndex()Entry that caused the failure.booleanhasRelatedEntryName()Name of the entry that caused the failure.booleanhasRelatedEntryType()Entry type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Protocol.ErrorMessage.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Protocol.ErrorMessage.BuildermergeFrom(com.google.protobuf.Message other)Protocol.ErrorMessage.BuildermergeFrom(Protocol.ErrorMessage other)Protocol.ErrorMessage.BuildersetCode(int value)The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.Protocol.ErrorMessage.BuildersetDescription(java.lang.String value)Contains a verbose error description, e.g.Protocol.ErrorMessage.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Contains a verbose error description, e.g.Protocol.ErrorMessage.BuildersetMessage(java.lang.String value)Contains a concise error message, e.g.Protocol.ErrorMessage.BuildersetMessageBytes(com.google.protobuf.ByteString value)Contains a concise error message, e.g.Protocol.ErrorMessage.BuildersetRelatedEntryIndex(int value)Entry that caused the failure.Protocol.ErrorMessage.BuildersetRelatedEntryName(java.lang.String value)Name of the entry that caused the failure.Protocol.ErrorMessage.BuildersetRelatedEntryNameBytes(com.google.protobuf.ByteString value)Name of the entry that caused the failure.Protocol.ErrorMessage.BuildersetRelatedEntryType(int value)Entry type.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
-
clear
public Protocol.ErrorMessage.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.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.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
-
getDefaultInstanceForType
public Protocol.ErrorMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Protocol.ErrorMessage build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Protocol.ErrorMessage buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Protocol.ErrorMessage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Protocol.ErrorMessage.Builder>
-
mergeFrom
public Protocol.ErrorMessage.Builder mergeFrom(Protocol.ErrorMessage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
-
mergeFrom
public Protocol.ErrorMessage.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<Protocol.ErrorMessage.Builder>- Throws:
java.io.IOException
-
getCode
public int getCode()
The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. In addition, we define the following error codes that MAY be used by the SDK for better error reporting: * JOURNAL_MISMATCH = 570, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code. * PROTOCOL_VIOLATION = 571, that is when the SDK receives an unexpected message or an expected message variant, given its state.
uint32 code = 1;- Specified by:
getCodein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The code.
-
setCode
public Protocol.ErrorMessage.Builder setCode(int value)
The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. In addition, we define the following error codes that MAY be used by the SDK for better error reporting: * JOURNAL_MISMATCH = 570, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code. * PROTOCOL_VIOLATION = 571, that is when the SDK receives an unexpected message or an expected message variant, given its state.
uint32 code = 1;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public Protocol.ErrorMessage.Builder clearCode()
The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. In addition, we define the following error codes that MAY be used by the SDK for better error reporting: * JOURNAL_MISMATCH = 570, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code. * PROTOCOL_VIOLATION = 571, that is when the SDK receives an unexpected message or an expected message variant, given its state.
uint32 code = 1;- Returns:
- This builder for chaining.
-
getMessage
public java.lang.String getMessage()
Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;- Specified by:
getMessagein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;- Specified by:
getMessageBytesin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The bytes for message.
-
setMessage
public Protocol.ErrorMessage.Builder setMessage(java.lang.String value)
Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
public Protocol.ErrorMessage.Builder clearMessage()
Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;- Returns:
- This builder for chaining.
-
setMessageBytes
public Protocol.ErrorMessage.Builder setMessageBytes(com.google.protobuf.ByteString value)
Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Specified by:
getDescriptionin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Specified by:
getDescriptionBytesin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Protocol.ErrorMessage.Builder setDescription(java.lang.String value)
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Protocol.ErrorMessage.Builder clearDescription()
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Protocol.ErrorMessage.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasRelatedEntryIndex
public boolean hasRelatedEntryIndex()
Entry that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_entry_index = 4;- Specified by:
hasRelatedEntryIndexin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- Whether the relatedEntryIndex field is set.
-
getRelatedEntryIndex
public int getRelatedEntryIndex()
Entry that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_entry_index = 4;- Specified by:
getRelatedEntryIndexin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The relatedEntryIndex.
-
setRelatedEntryIndex
public Protocol.ErrorMessage.Builder setRelatedEntryIndex(int value)
Entry that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_entry_index = 4;- Parameters:
value- The relatedEntryIndex to set.- Returns:
- This builder for chaining.
-
clearRelatedEntryIndex
public Protocol.ErrorMessage.Builder clearRelatedEntryIndex()
Entry that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_entry_index = 4;- Returns:
- This builder for chaining.
-
hasRelatedEntryName
public boolean hasRelatedEntryName()
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Specified by:
hasRelatedEntryNamein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- Whether the relatedEntryName field is set.
-
getRelatedEntryName
public java.lang.String getRelatedEntryName()
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Specified by:
getRelatedEntryNamein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The relatedEntryName.
-
getRelatedEntryNameBytes
public com.google.protobuf.ByteString getRelatedEntryNameBytes()
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Specified by:
getRelatedEntryNameBytesin interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The bytes for relatedEntryName.
-
setRelatedEntryName
public Protocol.ErrorMessage.Builder setRelatedEntryName(java.lang.String value)
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Parameters:
value- The relatedEntryName to set.- Returns:
- This builder for chaining.
-
clearRelatedEntryName
public Protocol.ErrorMessage.Builder clearRelatedEntryName()
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Returns:
- This builder for chaining.
-
setRelatedEntryNameBytes
public Protocol.ErrorMessage.Builder setRelatedEntryNameBytes(com.google.protobuf.ByteString value)
Name of the entry that caused the failure.
optional string related_entry_name = 5;- Parameters:
value- The bytes for relatedEntryName to set.- Returns:
- This builder for chaining.
-
hasRelatedEntryType
public boolean hasRelatedEntryType()
Entry type.
optional uint32 related_entry_type = 6;- Specified by:
hasRelatedEntryTypein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- Whether the relatedEntryType field is set.
-
getRelatedEntryType
public int getRelatedEntryType()
Entry type.
optional uint32 related_entry_type = 6;- Specified by:
getRelatedEntryTypein interfaceProtocol.ErrorMessageOrBuilder- Returns:
- The relatedEntryType.
-
setRelatedEntryType
public Protocol.ErrorMessage.Builder setRelatedEntryType(int value)
Entry type.
optional uint32 related_entry_type = 6;- Parameters:
value- The relatedEntryType to set.- Returns:
- This builder for chaining.
-
clearRelatedEntryType
public Protocol.ErrorMessage.Builder clearRelatedEntryType()
Entry type.
optional uint32 related_entry_type = 6;- Returns:
- This builder for chaining.
-
-