Class Protocol.ErrorMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Protocol.ErrorMessage.Builder>
com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
dev.restate.sdk.core.generated.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, 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 + 2
 
Protobuf type dev.restate.service.protocol.ErrorMessage
  • Method Details Link icon

    • getDescriptor Link icon

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable Link icon

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
    • clear Link icon

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
    • getDescriptorForType Link icon

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
    • getDefaultInstanceForType Link icon

      public Protocol.ErrorMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build Link icon

      public Protocol.ErrorMessage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial Link icon

      public Protocol.ErrorMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom Link icon

      public Protocol.ErrorMessage.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protocol.ErrorMessage.Builder>
    • mergeFrom Link icon

    • isInitialized Link icon

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protocol.ErrorMessage.Builder>
    • mergeFrom Link icon

      public Protocol.ErrorMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protocol.ErrorMessage.Builder>
      Throws:
      IOException
    • getCode Link icon

      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:
      getCode in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The code.
    • setCode Link icon

      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 Link icon

      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 Link icon

      public String getMessage()
       Contains a concise error message, e.g. Throwable#getMessage() in Java.
       
      string message = 2;
      Specified by:
      getMessage in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The message.
    • getMessageBytes Link icon

      public com.google.protobuf.ByteString getMessageBytes()
       Contains a concise error message, e.g. Throwable#getMessage() in Java.
       
      string message = 2;
      Specified by:
      getMessageBytes in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The bytes for message.
    • setMessage Link icon

      public Protocol.ErrorMessage.Builder setMessage(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 Link icon

      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 Link icon

      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.
    • getStacktrace Link icon

      public String getStacktrace()
       The exception stacktrace, if available.
       
      string stacktrace = 3;
      Specified by:
      getStacktrace in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The stacktrace.
    • getStacktraceBytes Link icon

      public com.google.protobuf.ByteString getStacktraceBytes()
       The exception stacktrace, if available.
       
      string stacktrace = 3;
      Specified by:
      getStacktraceBytes in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The bytes for stacktrace.
    • setStacktrace Link icon

      public Protocol.ErrorMessage.Builder setStacktrace(String value)
       The exception stacktrace, if available.
       
      string stacktrace = 3;
      Parameters:
      value - The stacktrace to set.
      Returns:
      This builder for chaining.
    • clearStacktrace Link icon

      public Protocol.ErrorMessage.Builder clearStacktrace()
       The exception stacktrace, if available.
       
      string stacktrace = 3;
      Returns:
      This builder for chaining.
    • setStacktraceBytes Link icon

      public Protocol.ErrorMessage.Builder setStacktraceBytes(com.google.protobuf.ByteString value)
       The exception stacktrace, if available.
       
      string stacktrace = 3;
      Parameters:
      value - The bytes for stacktrace to set.
      Returns:
      This builder for chaining.
    • hasRelatedCommandIndex Link icon

      public boolean hasRelatedCommandIndex()
       Command 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_command_index = 4;
      Specified by:
      hasRelatedCommandIndex in interface Protocol.ErrorMessageOrBuilder
      Returns:
      Whether the relatedCommandIndex field is set.
    • getRelatedCommandIndex Link icon

      public int getRelatedCommandIndex()
       Command 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_command_index = 4;
      Specified by:
      getRelatedCommandIndex in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The relatedCommandIndex.
    • setRelatedCommandIndex Link icon

      public Protocol.ErrorMessage.Builder setRelatedCommandIndex(int value)
       Command 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_command_index = 4;
      Parameters:
      value - The relatedCommandIndex to set.
      Returns:
      This builder for chaining.
    • clearRelatedCommandIndex Link icon

      public Protocol.ErrorMessage.Builder clearRelatedCommandIndex()
       Command 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_command_index = 4;
      Returns:
      This builder for chaining.
    • hasRelatedCommandName Link icon

      public boolean hasRelatedCommandName()
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Specified by:
      hasRelatedCommandName in interface Protocol.ErrorMessageOrBuilder
      Returns:
      Whether the relatedCommandName field is set.
    • getRelatedCommandName Link icon

      public String getRelatedCommandName()
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Specified by:
      getRelatedCommandName in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The relatedCommandName.
    • getRelatedCommandNameBytes Link icon

      public com.google.protobuf.ByteString getRelatedCommandNameBytes()
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Specified by:
      getRelatedCommandNameBytes in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The bytes for relatedCommandName.
    • setRelatedCommandName Link icon

      public Protocol.ErrorMessage.Builder setRelatedCommandName(String value)
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Parameters:
      value - The relatedCommandName to set.
      Returns:
      This builder for chaining.
    • clearRelatedCommandName Link icon

      public Protocol.ErrorMessage.Builder clearRelatedCommandName()
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Returns:
      This builder for chaining.
    • setRelatedCommandNameBytes Link icon

      public Protocol.ErrorMessage.Builder setRelatedCommandNameBytes(com.google.protobuf.ByteString value)
       Name of the entry that caused the failure.
       
      optional string related_command_name = 5;
      Parameters:
      value - The bytes for relatedCommandName to set.
      Returns:
      This builder for chaining.
    • hasRelatedCommandType Link icon

      public boolean hasRelatedCommandType()
       Command type.
       
      optional uint32 related_command_type = 6;
      Specified by:
      hasRelatedCommandType in interface Protocol.ErrorMessageOrBuilder
      Returns:
      Whether the relatedCommandType field is set.
    • getRelatedCommandType Link icon

      public int getRelatedCommandType()
       Command type.
       
      optional uint32 related_command_type = 6;
      Specified by:
      getRelatedCommandType in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The relatedCommandType.
    • setRelatedCommandType Link icon

      public Protocol.ErrorMessage.Builder setRelatedCommandType(int value)
       Command type.
       
      optional uint32 related_command_type = 6;
      Parameters:
      value - The relatedCommandType to set.
      Returns:
      This builder for chaining.
    • clearRelatedCommandType Link icon

      public Protocol.ErrorMessage.Builder clearRelatedCommandType()
       Command type.
       
      optional uint32 related_command_type = 6;
      Returns:
      This builder for chaining.
    • hasNextRetryDelay Link icon

      public boolean hasNextRetryDelay()
       Delay before executing the next retry, specified as duration in milliseconds.
       If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
       
      optional uint64 next_retry_delay = 8;
      Specified by:
      hasNextRetryDelay in interface Protocol.ErrorMessageOrBuilder
      Returns:
      Whether the nextRetryDelay field is set.
    • getNextRetryDelay Link icon

      public long getNextRetryDelay()
       Delay before executing the next retry, specified as duration in milliseconds.
       If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
       
      optional uint64 next_retry_delay = 8;
      Specified by:
      getNextRetryDelay in interface Protocol.ErrorMessageOrBuilder
      Returns:
      The nextRetryDelay.
    • setNextRetryDelay Link icon

      public Protocol.ErrorMessage.Builder setNextRetryDelay(long value)
       Delay before executing the next retry, specified as duration in milliseconds.
       If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
       
      optional uint64 next_retry_delay = 8;
      Parameters:
      value - The nextRetryDelay to set.
      Returns:
      This builder for chaining.
    • clearNextRetryDelay Link icon

      public Protocol.ErrorMessage.Builder clearNextRetryDelay()
       Delay before executing the next retry, specified as duration in milliseconds.
       If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
       
      optional uint64 next_retry_delay = 8;
      Returns:
      This builder for chaining.