Class IngestionInvocation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
dev.restate.ingestion.v1.IngestionInvocation
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionInvocationOrBuilder, Serializable
public final class IngestionInvocation
extends com.google.protobuf.GeneratedMessage
implements IngestionInvocationOrBuilder
Protobuf type
dev.restate.ingress.ingestion.v1.IngestionInvocation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedev.restate.ingress.ingestion.v1.IngestionInvocationNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanIngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)booleanDeprecated.intIngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)getAdditionalHeadersOrDefault(String key, String defaultValue) IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)static IngestionInvocationstatic final com.google.protobuf.Descriptors.Descriptoroptional string handler = 5;com.google.protobuf.ByteStringoptional string handler = 5;optional string idempotency_key = 7;com.google.protobuf.ByteStringoptional string idempotency_key = 7;longstarttime timestamp in ms.getKey()Required when the target service is a virtual object (VO).com.google.protobuf.ByteStringRequired when the target service is a virtual object (VO).optional string limit_key = 3;com.google.protobuf.ByteStringoptional string limit_key = 3;longPosition of this record within the producer's sequence, and the value deduplication is based on.com.google.protobuf.Parser<IngestionInvocation> com.google.protobuf.ByteStringbytes payload = 13;getScope()scope is limited to 36 bytes.com.google.protobuf.ByteStringscope is limited to 36 bytes.intoptional string service = 4;com.google.protobuf.ByteStringoptional string service = 4;This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/com.google.protobuf.ByteStringThis uses the w3c tracecontext format https://www.w3.org/TR/trace-context/optional string tracestate = 12;com.google.protobuf.ByteStringoptional string tracestate = 12;booleanoptional string handler = 5;inthashCode()booleanoptional string idempotency_key = 7;booleanstarttime timestamp in ms.booleanhasKey()Required when the target service is a virtual object (VO).booleanoptional string limit_key = 3;booleanhasScope()scope is limited to 36 bytes.booleanoptional string service = 4;booleanThis uses the w3c tracecontext format https://www.w3.org/TR/trace-context/booleanoptional string tracestate = 12;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic IngestionInvocation.Builderstatic IngestionInvocation.BuildernewBuilder(IngestionInvocation prototype) protected IngestionInvocation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static IngestionInvocationparseDelimitedFrom(InputStream input) static IngestionInvocationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionInvocationparseFrom(byte[] data) static IngestionInvocationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionInvocationparseFrom(com.google.protobuf.ByteString data) static IngestionInvocationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionInvocationparseFrom(com.google.protobuf.CodedInputStream input) static IngestionInvocationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionInvocationparseFrom(InputStream input) static IngestionInvocationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionInvocationparseFrom(ByteBuffer data) static IngestionInvocationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<IngestionInvocation> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
LIMIT_KEY_FIELD_NUMBER
public static final int LIMIT_KEY_FIELD_NUMBER- See Also:
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
HANDLER_FIELD_NUMBER
public static final int HANDLER_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
IDEMPOTENCY_KEY_FIELD_NUMBER
public static final int IDEMPOTENCY_KEY_FIELD_NUMBER- See Also:
-
ADDITIONAL_HEADERS_FIELD_NUMBER
public static final int ADDITIONAL_HEADERS_FIELD_NUMBER- See Also:
-
INVOKE_TIME_TS_MS_FIELD_NUMBER
public static final int INVOKE_TIME_TS_MS_FIELD_NUMBER- See Also:
-
TRACEPARENT_FIELD_NUMBER
public static final int TRACEPARENT_FIELD_NUMBER- See Also:
-
TRACESTATE_FIELD_NUMBER
public static final int TRACESTATE_FIELD_NUMBER- See Also:
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getOffset
public long getOffset()Position of this record within the producer's sequence, and the value deduplication is based on. It must increase monotonically for a given producer ID, across the whole lifetime of that producer and not just within a single stream. On reconnect, resume from the `Response.last_committed` reported for the producer rather than restarting the numbering. Offsets do not have to be contiguous; gaps are allowed, so it is fine to skip records. Only the ordering matters. Offsets are 0-based, so 0 is a valid first offset. Within a single stream the server enforces this: sending an offset lower than one already sent on the same stream is a protocol violation and fails the stream with `GO_AWAY`. Across streams nothing is enforced, since the server does not remember what a previous stream sent. Reusing an offset already committed by an earlier stream of the same producer is not reported as an error: the record is treated as a duplicate and silently dropped, meaning it does not become an invocation and produces no `Error` frame. A client that restarts its numbering after a reconnect will therefore see its records disappear without any signal.
uint64 offset = 1;- Specified by:
getOffsetin interfaceIngestionInvocationOrBuilder- Returns:
- The offset.
-
hasScope
public boolean hasScope()scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
hasScopein interfaceIngestionInvocationOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
getScopein interfaceIngestionInvocationOrBuilder- Returns:
- The scope.
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
getScopeBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for scope.
-
hasLimitKey
public boolean hasLimitKey()optional string limit_key = 3;- Specified by:
hasLimitKeyin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the limitKey field is set.
-
getLimitKey
optional string limit_key = 3;- Specified by:
getLimitKeyin interfaceIngestionInvocationOrBuilder- Returns:
- The limitKey.
-
getLimitKeyBytes
public com.google.protobuf.ByteString getLimitKeyBytes()optional string limit_key = 3;- Specified by:
getLimitKeyBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for limitKey.
-
hasService
public boolean hasService()optional string service = 4;- Specified by:
hasServicein interfaceIngestionInvocationOrBuilder- Returns:
- Whether the service field is set.
-
getService
optional string service = 4;- Specified by:
getServicein interfaceIngestionInvocationOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()optional string service = 4;- Specified by:
getServiceBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for service.
-
hasHandler
public boolean hasHandler()optional string handler = 5;- Specified by:
hasHandlerin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the handler field is set.
-
getHandler
optional string handler = 5;- Specified by:
getHandlerin interfaceIngestionInvocationOrBuilder- Returns:
- The handler.
-
getHandlerBytes
public com.google.protobuf.ByteString getHandlerBytes()optional string handler = 5;- Specified by:
getHandlerBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for handler.
-
hasKey
public boolean hasKey()Required when the target service is a virtual object (VO). or workflow. This can also be set via a preceding IngestionDefaults message.
optional string key = 6;- Specified by:
hasKeyin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the key field is set.
-
getKey
Required when the target service is a virtual object (VO). or workflow. This can also be set via a preceding IngestionDefaults message.
optional string key = 6;- Specified by:
getKeyin interfaceIngestionInvocationOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Required when the target service is a virtual object (VO). or workflow. This can also be set via a preceding IngestionDefaults message.
optional string key = 6;- Specified by:
getKeyBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for key.
-
hasIdempotencyKey
public boolean hasIdempotencyKey()optional string idempotency_key = 7;- Specified by:
hasIdempotencyKeyin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the idempotencyKey field is set.
-
getIdempotencyKey
optional string idempotency_key = 7;- Specified by:
getIdempotencyKeyin interfaceIngestionInvocationOrBuilder- Returns:
- The idempotencyKey.
-
getIdempotencyKeyBytes
public com.google.protobuf.ByteString getIdempotencyKeyBytes()optional string idempotency_key = 7;- Specified by:
getIdempotencyKeyBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for idempotencyKey.
-
getAdditionalHeadersCount
public int getAdditionalHeadersCount()Description copied from interface:IngestionInvocationOrBuilderIngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8;- Specified by:
getAdditionalHeadersCountin interfaceIngestionInvocationOrBuilder
-
containsAdditionalHeaders
IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8;- Specified by:
containsAdditionalHeadersin interfaceIngestionInvocationOrBuilder
-
getAdditionalHeaders
Deprecated.UsegetAdditionalHeadersMap()instead.- Specified by:
getAdditionalHeadersin interfaceIngestionInvocationOrBuilder
-
getAdditionalHeadersMap
IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8;- Specified by:
getAdditionalHeadersMapin interfaceIngestionInvocationOrBuilder
-
getAdditionalHeadersOrDefault
IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8;- Specified by:
getAdditionalHeadersOrDefaultin interfaceIngestionInvocationOrBuilder
-
getAdditionalHeadersOrThrow
IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8;- Specified by:
getAdditionalHeadersOrThrowin interfaceIngestionInvocationOrBuilder
-
hasInvokeTimeTsMs
public boolean hasInvokeTimeTsMs()starttime timestamp in ms.
optional uint64 invoke_time_ts_ms = 10;- Specified by:
hasInvokeTimeTsMsin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the invokeTimeTsMs field is set.
-
getInvokeTimeTsMs
public long getInvokeTimeTsMs()starttime timestamp in ms.
optional uint64 invoke_time_ts_ms = 10;- Specified by:
getInvokeTimeTsMsin interfaceIngestionInvocationOrBuilder- Returns:
- The invokeTimeTsMs.
-
hasTraceparent
public boolean hasTraceparent()This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Specified by:
hasTraceparentin interfaceIngestionInvocationOrBuilder- Returns:
- Whether the traceparent field is set.
-
getTraceparent
This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Specified by:
getTraceparentin interfaceIngestionInvocationOrBuilder- Returns:
- The traceparent.
-
getTraceparentBytes
public com.google.protobuf.ByteString getTraceparentBytes()This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Specified by:
getTraceparentBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for traceparent.
-
hasTracestate
public boolean hasTracestate()optional string tracestate = 12;- Specified by:
hasTracestatein interfaceIngestionInvocationOrBuilder- Returns:
- Whether the tracestate field is set.
-
getTracestate
optional string tracestate = 12;- Specified by:
getTracestatein interfaceIngestionInvocationOrBuilder- Returns:
- The tracestate.
-
getTracestateBytes
public com.google.protobuf.ByteString getTracestateBytes()optional string tracestate = 12;- Specified by:
getTracestateBytesin interfaceIngestionInvocationOrBuilder- Returns:
- The bytes for tracestate.
-
getPayload
public com.google.protobuf.ByteString getPayload()bytes payload = 13;- Specified by:
getPayloadin interfaceIngestionInvocationOrBuilder- Returns:
- The payload.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static IngestionInvocation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IngestionInvocation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IngestionInvocation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IngestionInvocation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IngestionInvocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IngestionInvocation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static IngestionInvocation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static IngestionInvocation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static IngestionInvocation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static IngestionInvocation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IngestionInvocation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-