Class Protocol.StartMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Protocol.StartMessage.Builder>
com.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder>
dev.restate.sdk.core.generated.protocol.Protocol.StartMessage.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Protocol.StartMessageOrBuilder, Cloneable
Enclosing class:
Protocol.StartMessage

public static final class Protocol.StartMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder> implements Protocol.StartMessageOrBuilder
 Type: 0x0000 + 0
 
Protobuf type dev.restate.service.protocol.StartMessage
  • 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.StartMessage.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.StartMessage.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.StartMessage.Builder>
    • getDefaultInstanceForType Link icon

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

      public Protocol.StartMessage 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.StartMessage 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.StartMessage.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.StartMessage.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.StartMessage.Builder>
    • mergeFrom Link icon

      public Protocol.StartMessage.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.StartMessage.Builder>
      Throws:
      IOException
    • getId Link icon

      public com.google.protobuf.ByteString getId()
       Unique id of the invocation. This id is unique across invocations and won't change when replaying the journal.
       
      bytes id = 1;
      Specified by:
      getId in interface Protocol.StartMessageOrBuilder
      Returns:
      The id.
    • setId Link icon

      public Protocol.StartMessage.Builder setId(com.google.protobuf.ByteString value)
       Unique id of the invocation. This id is unique across invocations and won't change when replaying the journal.
       
      bytes id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId Link icon

       Unique id of the invocation. This id is unique across invocations and won't change when replaying the journal.
       
      bytes id = 1;
      Returns:
      This builder for chaining.
    • getDebugId Link icon

      public String getDebugId()
       Invocation id that can be used for logging.
       The user can use this id to address this invocation in admin and status introspection apis.
       
      string debug_id = 2;
      Specified by:
      getDebugId in interface Protocol.StartMessageOrBuilder
      Returns:
      The debugId.
    • getDebugIdBytes Link icon

      public com.google.protobuf.ByteString getDebugIdBytes()
       Invocation id that can be used for logging.
       The user can use this id to address this invocation in admin and status introspection apis.
       
      string debug_id = 2;
      Specified by:
      getDebugIdBytes in interface Protocol.StartMessageOrBuilder
      Returns:
      The bytes for debugId.
    • setDebugId Link icon

      public Protocol.StartMessage.Builder setDebugId(String value)
       Invocation id that can be used for logging.
       The user can use this id to address this invocation in admin and status introspection apis.
       
      string debug_id = 2;
      Parameters:
      value - The debugId to set.
      Returns:
      This builder for chaining.
    • clearDebugId Link icon

      public Protocol.StartMessage.Builder clearDebugId()
       Invocation id that can be used for logging.
       The user can use this id to address this invocation in admin and status introspection apis.
       
      string debug_id = 2;
      Returns:
      This builder for chaining.
    • setDebugIdBytes Link icon

      public Protocol.StartMessage.Builder setDebugIdBytes(com.google.protobuf.ByteString value)
       Invocation id that can be used for logging.
       The user can use this id to address this invocation in admin and status introspection apis.
       
      string debug_id = 2;
      Parameters:
      value - The bytes for debugId to set.
      Returns:
      This builder for chaining.
    • getKnownEntries Link icon

      public int getKnownEntries()
       This is the sum of known commands + notifications
       
      uint32 known_entries = 3;
      Specified by:
      getKnownEntries in interface Protocol.StartMessageOrBuilder
      Returns:
      The knownEntries.
    • setKnownEntries Link icon

      public Protocol.StartMessage.Builder setKnownEntries(int value)
       This is the sum of known commands + notifications
       
      uint32 known_entries = 3;
      Parameters:
      value - The knownEntries to set.
      Returns:
      This builder for chaining.
    • clearKnownEntries Link icon

      public Protocol.StartMessage.Builder clearKnownEntries()
       This is the sum of known commands + notifications
       
      uint32 known_entries = 3;
      Returns:
      This builder for chaining.
    • getStateMapList Link icon

      public List<Protocol.StartMessage.StateEntry> getStateMapList()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
      Specified by:
      getStateMapList in interface Protocol.StartMessageOrBuilder
    • getStateMapCount Link icon

      public int getStateMapCount()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
      Specified by:
      getStateMapCount in interface Protocol.StartMessageOrBuilder
    • getStateMap Link icon

      public Protocol.StartMessage.StateEntry getStateMap(int index)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
      Specified by:
      getStateMap in interface Protocol.StartMessageOrBuilder
    • setStateMap Link icon

      public Protocol.StartMessage.Builder setStateMap(int index, Protocol.StartMessage.StateEntry value)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • setStateMap Link icon

      public Protocol.StartMessage.Builder setStateMap(int index, Protocol.StartMessage.StateEntry.Builder builderForValue)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addStateMap Link icon

       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addStateMap Link icon

      public Protocol.StartMessage.Builder addStateMap(int index, Protocol.StartMessage.StateEntry value)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addStateMap Link icon

       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addStateMap Link icon

      public Protocol.StartMessage.Builder addStateMap(int index, Protocol.StartMessage.StateEntry.Builder builderForValue)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addAllStateMap Link icon

      public Protocol.StartMessage.Builder addAllStateMap(Iterable<? extends Protocol.StartMessage.StateEntry> values)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • clearStateMap Link icon

      public Protocol.StartMessage.Builder clearStateMap()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • removeStateMap Link icon

      public Protocol.StartMessage.Builder removeStateMap(int index)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • getStateMapBuilder Link icon

      public Protocol.StartMessage.StateEntry.Builder getStateMapBuilder(int index)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • getStateMapOrBuilder Link icon

      public Protocol.StartMessage.StateEntryOrBuilder getStateMapOrBuilder(int index)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
      Specified by:
      getStateMapOrBuilder in interface Protocol.StartMessageOrBuilder
    • getStateMapOrBuilderList Link icon

      public List<? extends Protocol.StartMessage.StateEntryOrBuilder> getStateMapOrBuilderList()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
      Specified by:
      getStateMapOrBuilderList in interface Protocol.StartMessageOrBuilder
    • addStateMapBuilder Link icon

      public Protocol.StartMessage.StateEntry.Builder addStateMapBuilder()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • addStateMapBuilder Link icon

      public Protocol.StartMessage.StateEntry.Builder addStateMapBuilder(int index)
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • getStateMapBuilderList Link icon

      public List<Protocol.StartMessage.StateEntry.Builder> getStateMapBuilderList()
       protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
       
      repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
    • getPartialState Link icon

      public boolean getPartialState()
      bool partial_state = 5;
      Specified by:
      getPartialState in interface Protocol.StartMessageOrBuilder
      Returns:
      The partialState.
    • setPartialState Link icon

      public Protocol.StartMessage.Builder setPartialState(boolean value)
      bool partial_state = 5;
      Parameters:
      value - The partialState to set.
      Returns:
      This builder for chaining.
    • clearPartialState Link icon

      public Protocol.StartMessage.Builder clearPartialState()
      bool partial_state = 5;
      Returns:
      This builder for chaining.
    • getKey Link icon

      public String getKey()
       If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
       
      string key = 6;
      Specified by:
      getKey in interface Protocol.StartMessageOrBuilder
      Returns:
      The key.
    • getKeyBytes Link icon

      public com.google.protobuf.ByteString getKeyBytes()
       If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
       
      string key = 6;
      Specified by:
      getKeyBytes in interface Protocol.StartMessageOrBuilder
      Returns:
      The bytes for key.
    • setKey Link icon

      public Protocol.StartMessage.Builder setKey(String value)
       If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
       
      string key = 6;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey Link icon

      public Protocol.StartMessage.Builder clearKey()
       If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
       
      string key = 6;
      Returns:
      This builder for chaining.
    • setKeyBytes Link icon

      public Protocol.StartMessage.Builder setKeyBytes(com.google.protobuf.ByteString value)
       If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
       
      string key = 6;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getRetryCountSinceLastStoredEntry Link icon

      public int getRetryCountSinceLastStoredEntry()
       Retry count since the last stored entry.
      
       Please note that this count might not be accurate, as it's not durably stored,
       thus it might get reset in case Restate crashes/changes leader.
       
      uint32 retry_count_since_last_stored_entry = 7;
      Specified by:
      getRetryCountSinceLastStoredEntry in interface Protocol.StartMessageOrBuilder
      Returns:
      The retryCountSinceLastStoredEntry.
    • setRetryCountSinceLastStoredEntry Link icon

      public Protocol.StartMessage.Builder setRetryCountSinceLastStoredEntry(int value)
       Retry count since the last stored entry.
      
       Please note that this count might not be accurate, as it's not durably stored,
       thus it might get reset in case Restate crashes/changes leader.
       
      uint32 retry_count_since_last_stored_entry = 7;
      Parameters:
      value - The retryCountSinceLastStoredEntry to set.
      Returns:
      This builder for chaining.
    • clearRetryCountSinceLastStoredEntry Link icon

      public Protocol.StartMessage.Builder clearRetryCountSinceLastStoredEntry()
       Retry count since the last stored entry.
      
       Please note that this count might not be accurate, as it's not durably stored,
       thus it might get reset in case Restate crashes/changes leader.
       
      uint32 retry_count_since_last_stored_entry = 7;
      Returns:
      This builder for chaining.
    • getDurationSinceLastStoredEntry Link icon

      public long getDurationSinceLastStoredEntry()
       Duration since the last stored entry, in milliseconds.
      
       Please note this duration might not be accurate,
       and might change depending on which Restate replica executes the request.
       
      uint64 duration_since_last_stored_entry = 8;
      Specified by:
      getDurationSinceLastStoredEntry in interface Protocol.StartMessageOrBuilder
      Returns:
      The durationSinceLastStoredEntry.
    • setDurationSinceLastStoredEntry Link icon

      public Protocol.StartMessage.Builder setDurationSinceLastStoredEntry(long value)
       Duration since the last stored entry, in milliseconds.
      
       Please note this duration might not be accurate,
       and might change depending on which Restate replica executes the request.
       
      uint64 duration_since_last_stored_entry = 8;
      Parameters:
      value - The durationSinceLastStoredEntry to set.
      Returns:
      This builder for chaining.
    • clearDurationSinceLastStoredEntry Link icon

      public Protocol.StartMessage.Builder clearDurationSinceLastStoredEntry()
       Duration since the last stored entry, in milliseconds.
      
       Please note this duration might not be accurate,
       and might change depending on which Restate replica executes the request.
       
      uint64 duration_since_last_stored_entry = 8;
      Returns:
      This builder for chaining.