Class Error.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Error.Builder>
com.google.protobuf.GeneratedMessage.Builder<Error.Builder>
dev.restate.ingestion.v1.Error.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ErrorOrBuilder, Cloneable
- Enclosing class:
Error
public static final class Error.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Error.Builder>
implements ErrorOrBuilder
An error frame. It is always the last frame of the stream: whether the error is stream-scoped or record-scoped, the server tears the stream down right after sending it and processes no further messages. Record-scoped errors are the ones that carry `invocation_offset`: the record at that offset was rejected (for example a missing key, an unknown handler, or an internal ingestion failure) while the stream itself is still well-formed. Stream-scoped errors leave `invocation_offset` unset and describe a condition of the stream as a whole (shutdown, a protocol violation, or invalid `Start`/`IngestionDefaults`). Even a record-scoped error terminates the stream, on purpose. Skipping the faulty record and continuing would commit the records that follow it and move the deduplication high water mark past the failed offset, making it impossible to ever ingest that record afterwards. Terminating instead keeps the high water mark where it is and leaves the decision to the client. Recovery is therefore the client's responsibility: reconnect with the same producer ID, resume from the `last_committed` reported on the response that carried this error, and skip (or fix) the offending record before resending the rest. Note that records after the failed offset may have already been sent by the client but were not committed; they must be resent.Protobuf type
dev.restate.ingress.ingestion.v1.Error-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()if set, the error is associated with the invocation with that offset.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;string message = 3;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlongif set, the error is associated with the invocation with that offsetgetKind().dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;int.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;string message = 3;com.google.protobuf.ByteStringstring message = 3;booleanif set, the error is associated with the invocation with that offsetprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInvocationOffset(long value) if set, the error is associated with the invocation with that offset.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;setKindValue(int value) .dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;setMessage(String value) string message = 3;setMessageBytes(com.google.protobuf.ByteString value) string message = 3;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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<Error.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<Error.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<Error.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Error.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Error.Builder>
-
mergeFrom
public Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Error.Builder>- Throws:
IOException
-
hasInvocationOffset
public boolean hasInvocationOffset()if set, the error is associated with the invocation with that offset
optional uint64 invocation_offset = 1;- Specified by:
hasInvocationOffsetin interfaceErrorOrBuilder- Returns:
- Whether the invocationOffset field is set.
-
getInvocationOffset
public long getInvocationOffset()if set, the error is associated with the invocation with that offset
optional uint64 invocation_offset = 1;- Specified by:
getInvocationOffsetin interfaceErrorOrBuilder- Returns:
- The invocationOffset.
-
setInvocationOffset
if set, the error is associated with the invocation with that offset
optional uint64 invocation_offset = 1;- Parameters:
value- The invocationOffset to set.- Returns:
- This builder for chaining.
-
clearInvocationOffset
if set, the error is associated with the invocation with that offset
optional uint64 invocation_offset = 1;- Returns:
- This builder for chaining.
-
getKindValue
public int getKindValue().dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;- Specified by:
getKindValuein interfaceErrorOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
setKindValue
.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;- Parameters:
value- The enum numeric value on the wire for kind to set.- Returns:
- This builder for chaining.
-
getKind
.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;- Specified by:
getKindin interfaceErrorOrBuilder- Returns:
- The kind.
-
setKind
.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
.dev.restate.ingress.ingestion.v1.ErrorKind kind = 2;- Returns:
- This builder for chaining.
-
getMessage
string message = 3;- Specified by:
getMessagein interfaceErrorOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()string message = 3;- Specified by:
getMessageBytesin interfaceErrorOrBuilder- Returns:
- The bytes for message.
-
setMessage
string message = 3;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
-
setMessageBytes
string message = 3;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-