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.generated.service.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 + 0Protobuf type
dev.restate.service.protocol.StartMessage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllStateMap
(Iterable<? extends Protocol.StartMessage.StateEntry> values) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDaddStateMap
(int index, Protocol.StartMessage.StateEntry value) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDaddStateMap
(int index, Protocol.StartMessage.StateEntry.Builder builderForValue) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDprotolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDaddStateMap
(Protocol.StartMessage.StateEntry.Builder builderForValue) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDprotolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDaddStateMapBuilder
(int index) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDbuild()
clear()
Invocation id that can be used for logging.Duration since the last stored entry, in milliseconds.clearId()
Unique id of the invocation.clearKey()
If this invocation has a key associated (e.g.uint32 known_entries = 3;
bool partial_state = 5;
Retry count since the last stored entry.protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDInvocation id that can be used for logging.com.google.protobuf.ByteString
Invocation id that can be used for logging.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Duration since the last stored entry, in milliseconds.com.google.protobuf.ByteString
getId()
Unique id of the invocation.getKey()
If this invocation has a key associated (e.g.com.google.protobuf.ByteString
If this invocation has a key associated (e.g.int
uint32 known_entries = 3;
boolean
bool partial_state = 5;
int
Retry count since the last stored entry.getStateMap
(int index) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDgetStateMapBuilder
(int index) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDprotolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDint
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDprotolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDgetStateMapOrBuilder
(int index) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDList
<? extends Protocol.StartMessage.StateEntryOrBuilder> protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Protocol.StartMessage other) removeStateMap
(int index) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDsetDebugId
(String value) Invocation id that can be used for logging.setDebugIdBytes
(com.google.protobuf.ByteString value) Invocation id that can be used for logging.setDurationSinceLastStoredEntry
(long value) Duration since the last stored entry, in milliseconds.setId
(com.google.protobuf.ByteString value) Unique id of the invocation.If this invocation has a key associated (e.g.setKeyBytes
(com.google.protobuf.ByteString value) If this invocation has a key associated (e.g.setKnownEntries
(int value) uint32 known_entries = 3;
setPartialState
(boolean value) bool partial_state = 5;
setRetryCountSinceLastStoredEntry
(int value) Retry count since the last stored entry.setStateMap
(int index, Protocol.StartMessage.StateEntry value) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDsetStateMap
(int index, Protocol.StartMessage.StateEntry.Builder builderForValue) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZEDMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Protocol.StartMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Protocol.StartMessage.Builder>
-
mergeFrom
public Protocol.StartMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Protocol.StartMessage.Builder>
- Throws:
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 interfaceProtocol.StartMessageOrBuilder
- Returns:
- The id.
-
setId
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
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
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 interfaceProtocol.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 interfaceProtocol.StartMessageOrBuilder
- Returns:
- The bytes for debugId.
-
setDebugId
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
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
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
public int getKnownEntries()uint32 known_entries = 3;
- Specified by:
getKnownEntries
in interfaceProtocol.StartMessageOrBuilder
- Returns:
- The knownEntries.
-
setKnownEntries
uint32 known_entries = 3;
- Parameters:
value
- The knownEntries to set.- Returns:
- This builder for chaining.
-
clearKnownEntries
uint32 known_entries = 3;
- Returns:
- This builder for chaining.
-
getStateMapList
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
- Specified by:
getStateMapList
in interfaceProtocol.StartMessageOrBuilder
-
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 interfaceProtocol.StartMessageOrBuilder
-
getStateMap
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
- Specified by:
getStateMap
in interfaceProtocol.StartMessageOrBuilder
-
setStateMap
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
setStateMap
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
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
addStateMap
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
addStateMap
public Protocol.StartMessage.Builder addStateMap(Protocol.StartMessage.StateEntry.Builder builderForValue) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
addStateMap
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
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
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
removeStateMap
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
getStateMapBuilder
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
getStateMapOrBuilder
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
- Specified by:
getStateMapOrBuilder
in interfaceProtocol.StartMessageOrBuilder
-
getStateMapOrBuilderList
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
- Specified by:
getStateMapOrBuilderList
in interfaceProtocol.StartMessageOrBuilder
-
addStateMapBuilder
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
addStateMapBuilder
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
getStateMapBuilderList
protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
repeated .dev.restate.service.protocol.StartMessage.StateEntry state_map = 4;
-
getPartialState
public boolean getPartialState()bool partial_state = 5;
- Specified by:
getPartialState
in interfaceProtocol.StartMessageOrBuilder
- Returns:
- The partialState.
-
setPartialState
bool partial_state = 5;
- Parameters:
value
- The partialState to set.- Returns:
- This builder for chaining.
-
clearPartialState
bool partial_state = 5;
- Returns:
- This builder for chaining.
-
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 interfaceProtocol.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 interfaceProtocol.StartMessageOrBuilder
- Returns:
- The bytes for key.
-
setKey
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
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
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
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 interfaceProtocol.StartMessageOrBuilder
- Returns:
- The retryCountSinceLastStoredEntry.
-
setRetryCountSinceLastStoredEntry
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
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
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 interfaceProtocol.StartMessageOrBuilder
- Returns:
- The durationSinceLastStoredEntry.
-
setDurationSinceLastStoredEntry
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
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.
-