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.generated.service.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 + 2
 Implementations MUST send this message when suspending an invocation.
 
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
    • getEntryIndexesList

      public List<Integer> getEntryIndexesList()
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Specified by:
      getEntryIndexesList in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      A list containing the entryIndexes.
    • getEntryIndexesCount

      public int getEntryIndexesCount()
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Specified by:
      getEntryIndexesCount in interface Protocol.SuspensionMessageOrBuilder
      Returns:
      The count of entryIndexes.
    • getEntryIndexes

      public int getEntryIndexes(int index)
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Specified by:
      getEntryIndexes in interface Protocol.SuspensionMessageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entryIndexes at the given index.
    • setEntryIndexes

      public Protocol.SuspensionMessage.Builder setEntryIndexes(int index, int value)
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Parameters:
      index - The index to set the value at.
      value - The entryIndexes to set.
      Returns:
      This builder for chaining.
    • addEntryIndexes

      public Protocol.SuspensionMessage.Builder addEntryIndexes(int value)
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Parameters:
      value - The entryIndexes to add.
      Returns:
      This builder for chaining.
    • addAllEntryIndexes

      public Protocol.SuspensionMessage.Builder addAllEntryIndexes(Iterable<? extends Integer> values)
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Parameters:
      values - The entryIndexes to add.
      Returns:
      This builder for chaining.
    • clearEntryIndexes

      public Protocol.SuspensionMessage.Builder clearEntryIndexes()
       This list represents any of the entry_index the invocation is waiting on to progress.
       The runtime will resume the invocation as soon as one of the given entry_index is completed.
       This list MUST not be empty.
       False positive, entry_indexes is a valid plural of entry_indices.
       https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
       
      repeated uint32 entry_indexes = 1;
      Returns:
      This builder for chaining.