Class Protocol.SuspensionMessage.Builder

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

public static final class Protocol.SuspensionMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protocol.SuspensionMessage.Builder> implements Protocol.SuspensionMessageOrBuilder
 Type: 0x0000 + 1
 Implementations MUST send this message when suspending an invocation.

 These lists represent any of the notification_idx and/or notification_name the invocation is waiting on to progress.
 The runtime will resume the invocation as soon as either one of the given notification_idx or notification_name is completed.
 Between the two lists there MUST be at least one element.
 
Protobuf type dev.restate.service.protocol.SuspensionMessage
  • Method Details

    • getDescriptor

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

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

      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.SuspensionMessage.Builder>
    • getDescriptorForType

      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.SuspensionMessage.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Protocol.SuspensionMessage.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.SuspensionMessage.Builder>
    • mergeFrom

    • isInitialized

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

      public Protocol.SuspensionMessage.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.SuspensionMessage.Builder>
      Throws:
      IOException
    • getWaitingCompletionsList

      public List<Integer> getWaitingCompletionsList()
      repeated uint32 waiting_completions = 1;
      Specified by:
      getWaitingCompletionsList in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      A list containing the waitingCompletions.
    • getWaitingCompletionsCount

      public int getWaitingCompletionsCount()
      repeated uint32 waiting_completions = 1;
      Specified by:
      getWaitingCompletionsCount in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      The count of waitingCompletions.
    • getWaitingCompletions

      public int getWaitingCompletions(int index)
      repeated uint32 waiting_completions = 1;
      Specified by:
      getWaitingCompletions in interface Protocol.SuspensionMessageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The waitingCompletions at the given index.
    • setWaitingCompletions

      public Protocol.SuspensionMessage.Builder setWaitingCompletions(int index, int value)
      repeated uint32 waiting_completions = 1;
      Parameters:
      index - The index to set the value at.
      value - The waitingCompletions to set.
      Returns:
      This builder for chaining.
    • addWaitingCompletions

      public Protocol.SuspensionMessage.Builder addWaitingCompletions(int value)
      repeated uint32 waiting_completions = 1;
      Parameters:
      value - The waitingCompletions to add.
      Returns:
      This builder for chaining.
    • addAllWaitingCompletions

      public Protocol.SuspensionMessage.Builder addAllWaitingCompletions(Iterable<? extends Integer> values)
      repeated uint32 waiting_completions = 1;
      Parameters:
      values - The waitingCompletions to add.
      Returns:
      This builder for chaining.
    • clearWaitingCompletions

      public Protocol.SuspensionMessage.Builder clearWaitingCompletions()
      repeated uint32 waiting_completions = 1;
      Returns:
      This builder for chaining.
    • getWaitingSignalsList

      public List<Integer> getWaitingSignalsList()
      repeated uint32 waiting_signals = 2;
      Specified by:
      getWaitingSignalsList in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      A list containing the waitingSignals.
    • getWaitingSignalsCount

      public int getWaitingSignalsCount()
      repeated uint32 waiting_signals = 2;
      Specified by:
      getWaitingSignalsCount in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      The count of waitingSignals.
    • getWaitingSignals

      public int getWaitingSignals(int index)
      repeated uint32 waiting_signals = 2;
      Specified by:
      getWaitingSignals in interface Protocol.SuspensionMessageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The waitingSignals at the given index.
    • setWaitingSignals

      public Protocol.SuspensionMessage.Builder setWaitingSignals(int index, int value)
      repeated uint32 waiting_signals = 2;
      Parameters:
      index - The index to set the value at.
      value - The waitingSignals to set.
      Returns:
      This builder for chaining.
    • addWaitingSignals

      public Protocol.SuspensionMessage.Builder addWaitingSignals(int value)
      repeated uint32 waiting_signals = 2;
      Parameters:
      value - The waitingSignals to add.
      Returns:
      This builder for chaining.
    • addAllWaitingSignals

      public Protocol.SuspensionMessage.Builder addAllWaitingSignals(Iterable<? extends Integer> values)
      repeated uint32 waiting_signals = 2;
      Parameters:
      values - The waitingSignals to add.
      Returns:
      This builder for chaining.
    • clearWaitingSignals

      public Protocol.SuspensionMessage.Builder clearWaitingSignals()
      repeated uint32 waiting_signals = 2;
      Returns:
      This builder for chaining.
    • getWaitingNamedSignalsList

      public com.google.protobuf.ProtocolStringList getWaitingNamedSignalsList()
      repeated string waiting_named_signals = 3;
      Specified by:
      getWaitingNamedSignalsList in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      A list containing the waitingNamedSignals.
    • getWaitingNamedSignalsCount

      public int getWaitingNamedSignalsCount()
      repeated string waiting_named_signals = 3;
      Specified by:
      getWaitingNamedSignalsCount in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      The count of waitingNamedSignals.
    • getWaitingNamedSignals

      public String getWaitingNamedSignals(int index)
      repeated string waiting_named_signals = 3;
      Specified by:
      getWaitingNamedSignals in interface Protocol.SuspensionMessageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The waitingNamedSignals at the given index.
    • getWaitingNamedSignalsBytes

      public com.google.protobuf.ByteString getWaitingNamedSignalsBytes(int index)
      repeated string waiting_named_signals = 3;
      Specified by:
      getWaitingNamedSignalsBytes in interface Protocol.SuspensionMessageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the waitingNamedSignals at the given index.
    • setWaitingNamedSignals

      public Protocol.SuspensionMessage.Builder setWaitingNamedSignals(int index, String value)
      repeated string waiting_named_signals = 3;
      Parameters:
      index - The index to set the value at.
      value - The waitingNamedSignals to set.
      Returns:
      This builder for chaining.
    • addWaitingNamedSignals

      public Protocol.SuspensionMessage.Builder addWaitingNamedSignals(String value)
      repeated string waiting_named_signals = 3;
      Parameters:
      value - The waitingNamedSignals to add.
      Returns:
      This builder for chaining.
    • addAllWaitingNamedSignals

      public Protocol.SuspensionMessage.Builder addAllWaitingNamedSignals(Iterable<String> values)
      repeated string waiting_named_signals = 3;
      Parameters:
      values - The waitingNamedSignals to add.
      Returns:
      This builder for chaining.
    • clearWaitingNamedSignals

      public Protocol.SuspensionMessage.Builder clearWaitingNamedSignals()
      repeated string waiting_named_signals = 3;
      Returns:
      This builder for chaining.
    • addWaitingNamedSignalsBytes

      public Protocol.SuspensionMessage.Builder addWaitingNamedSignalsBytes(com.google.protobuf.ByteString value)
      repeated string waiting_named_signals = 3;
      Parameters:
      value - The bytes of the waitingNamedSignals to add.
      Returns:
      This builder for chaining.