Interface IngestionInvocationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
IngestionInvocation, IngestionInvocation.Builder
public interface IngestionInvocationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)Deprecated.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)optional 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.ByteStringbytes payload = 13;getScope()scope is limited to 36 bytes.com.google.protobuf.ByteStringscope is limited to 36 bytes.optional 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;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;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getOffset
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;- Returns:
- The offset.
-
hasScope
boolean hasScope()scope is limited to 36 bytes.
optional string scope = 2;- Returns:
- Whether the scope field is set.
-
getScope
-
getScopeBytes
com.google.protobuf.ByteString getScopeBytes()scope is limited to 36 bytes.
optional string scope = 2;- Returns:
- The bytes for scope.
-
hasLimitKey
boolean hasLimitKey()optional string limit_key = 3;- Returns:
- Whether the limitKey field is set.
-
getLimitKey
-
getLimitKeyBytes
com.google.protobuf.ByteString getLimitKeyBytes()optional string limit_key = 3;- Returns:
- The bytes for limitKey.
-
hasService
boolean hasService()optional string service = 4;- Returns:
- Whether the service field is set.
-
getService
-
getServiceBytes
com.google.protobuf.ByteString getServiceBytes()optional string service = 4;- Returns:
- The bytes for service.
-
hasHandler
boolean hasHandler()optional string handler = 5;- Returns:
- Whether the handler field is set.
-
getHandler
-
getHandlerBytes
com.google.protobuf.ByteString getHandlerBytes()optional string handler = 5;- Returns:
- The bytes for handler.
-
hasKey
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;- Returns:
- Whether the key field is set.
-
getKey
String 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;- Returns:
- The key.
-
getKeyBytes
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;- Returns:
- The bytes for key.
-
hasIdempotencyKey
boolean hasIdempotencyKey()optional string idempotency_key = 7;- Returns:
- Whether the idempotencyKey field is set.
-
getIdempotencyKey
-
getIdempotencyKeyBytes
com.google.protobuf.ByteString getIdempotencyKeyBytes()optional string idempotency_key = 7;- Returns:
- The bytes for idempotencyKey.
-
getAdditionalHeadersCount
int getAdditionalHeadersCount()IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8; -
containsAdditionalHeaders
IngestionDefaults::headers + IngestionInvocation::headers size should not exceed a max of 2KiB (keys + values)
map<string, string> additional_headers = 8; -
getAdditionalHeaders
Deprecated.UsegetAdditionalHeadersMap()instead. -
getAdditionalHeadersMap
-
getAdditionalHeadersOrDefault
-
getAdditionalHeadersOrThrow
-
hasInvokeTimeTsMs
boolean hasInvokeTimeTsMs()starttime timestamp in ms.
optional uint64 invoke_time_ts_ms = 10;- Returns:
- Whether the invokeTimeTsMs field is set.
-
getInvokeTimeTsMs
long getInvokeTimeTsMs()starttime timestamp in ms.
optional uint64 invoke_time_ts_ms = 10;- Returns:
- The invokeTimeTsMs.
-
hasTraceparent
boolean hasTraceparent()This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Returns:
- Whether the traceparent field is set.
-
getTraceparent
String getTraceparent()This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Returns:
- The traceparent.
-
getTraceparentBytes
com.google.protobuf.ByteString getTraceparentBytes()This uses the w3c tracecontext format https://www.w3.org/TR/trace-context/
optional string traceparent = 11;- Returns:
- The bytes for traceparent.
-
hasTracestate
boolean hasTracestate()optional string tracestate = 12;- Returns:
- Whether the tracestate field is set.
-
getTracestate
-
getTracestateBytes
com.google.protobuf.ByteString getTracestateBytes()optional string tracestate = 12;- Returns:
- The bytes for tracestate.
-
getPayload
com.google.protobuf.ByteString getPayload()bytes payload = 13;- Returns:
- The payload.
-