Class Protocol.StartMessage.Builder

    • Method Detail

      • 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.StartMessage.Builder>
      • clear

        public Protocol.StartMessage.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.StartMessage.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.StartMessage.Builder>
      • getDefaultInstanceForType

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

        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

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

        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

        public Protocol.StartMessage.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.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:
        java.io.IOException
      • getId

        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

        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

        public Protocol.StartMessage.Builder clearId()
         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

        public java.lang.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

        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

        public Protocol.StartMessage.Builder setDebugId​(java.lang.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

        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

        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.
      • setKnownEntries

        public Protocol.StartMessage.Builder setKnownEntries​(int value)
        uint32 known_entries = 3;
        Parameters:
        value - The knownEntries to set.
        Returns:
        This builder for chaining.
      • getStateMapCount

        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
      • clearStateMap

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

        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

        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;
      • addStateMapBuilder

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

        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

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

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

        public java.lang.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

        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

        public Protocol.StartMessage.Builder setKey​(java.lang.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

        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

        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.