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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      getOffset in interface IngestionInvocationOrBuilder
      Returns:
      The offset.
    • hasScope

      public boolean hasScope()
      scope is limited to 36 bytes.
      
      optional string scope = 2;
      Specified by:
      hasScope in interface IngestionInvocationOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public String getScope()
      scope is limited to 36 bytes.
      
      optional string scope = 2;
      Specified by:
      getScope in interface IngestionInvocationOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes()
      scope is limited to 36 bytes.
      
      optional string scope = 2;
      Specified by:
      getScopeBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for scope.
    • hasLimitKey

      public boolean hasLimitKey()
      optional string limit_key = 3;
      Specified by:
      hasLimitKey in interface IngestionInvocationOrBuilder
      Returns:
      Whether the limitKey field is set.
    • getLimitKey

      public String getLimitKey()
      optional string limit_key = 3;
      Specified by:
      getLimitKey in interface IngestionInvocationOrBuilder
      Returns:
      The limitKey.
    • getLimitKeyBytes

      public com.google.protobuf.ByteString getLimitKeyBytes()
      optional string limit_key = 3;
      Specified by:
      getLimitKeyBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for limitKey.
    • hasService

      public boolean hasService()
      optional string service = 4;
      Specified by:
      hasService in interface IngestionInvocationOrBuilder
      Returns:
      Whether the service field is set.
    • getService

      public String getService()
      optional string service = 4;
      Specified by:
      getService in interface IngestionInvocationOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
      optional string service = 4;
      Specified by:
      getServiceBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for service.
    • hasHandler

      public boolean hasHandler()
      optional string handler = 5;
      Specified by:
      hasHandler in interface IngestionInvocationOrBuilder
      Returns:
      Whether the handler field is set.
    • getHandler

      public String getHandler()
      optional string handler = 5;
      Specified by:
      getHandler in interface IngestionInvocationOrBuilder
      Returns:
      The handler.
    • getHandlerBytes

      public com.google.protobuf.ByteString getHandlerBytes()
      optional string handler = 5;
      Specified by:
      getHandlerBytes in interface IngestionInvocationOrBuilder
      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:
      hasKey in interface IngestionInvocationOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public 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;
      Specified by:
      getKey in interface IngestionInvocationOrBuilder
      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:
      getKeyBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for key.
    • hasIdempotencyKey

      public boolean hasIdempotencyKey()
      optional string idempotency_key = 7;
      Specified by:
      hasIdempotencyKey in interface IngestionInvocationOrBuilder
      Returns:
      Whether the idempotencyKey field is set.
    • getIdempotencyKey

      public String getIdempotencyKey()
      optional string idempotency_key = 7;
      Specified by:
      getIdempotencyKey in interface IngestionInvocationOrBuilder
      Returns:
      The idempotencyKey.
    • getIdempotencyKeyBytes

      public com.google.protobuf.ByteString getIdempotencyKeyBytes()
      optional string idempotency_key = 7;
      Specified by:
      getIdempotencyKeyBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for idempotencyKey.
    • getAdditionalHeadersCount

      public int getAdditionalHeadersCount()
      Description copied from interface: IngestionInvocationOrBuilder
      IngestionDefaults::headers + IngestionInvocation::headers size
      should not exceed a max of 2KiB (keys + values)
      
      map<string, string> additional_headers = 8;
      Specified by:
      getAdditionalHeadersCount in interface IngestionInvocationOrBuilder
    • containsAdditionalHeaders

      public boolean containsAdditionalHeaders(String key)
      IngestionDefaults::headers + IngestionInvocation::headers size
      should not exceed a max of 2KiB (keys + values)
      
      map<string, string> additional_headers = 8;
      Specified by:
      containsAdditionalHeaders in interface IngestionInvocationOrBuilder
    • getAdditionalHeaders

      @Deprecated public Map<String,String> getAdditionalHeaders()
      Deprecated.
      Specified by:
      getAdditionalHeaders in interface IngestionInvocationOrBuilder
    • getAdditionalHeadersMap

      public Map<String,String> getAdditionalHeadersMap()
      IngestionDefaults::headers + IngestionInvocation::headers size
      should not exceed a max of 2KiB (keys + values)
      
      map<string, string> additional_headers = 8;
      Specified by:
      getAdditionalHeadersMap in interface IngestionInvocationOrBuilder
    • getAdditionalHeadersOrDefault

      public String getAdditionalHeadersOrDefault(String key, String defaultValue)
      IngestionDefaults::headers + IngestionInvocation::headers size
      should not exceed a max of 2KiB (keys + values)
      
      map<string, string> additional_headers = 8;
      Specified by:
      getAdditionalHeadersOrDefault in interface IngestionInvocationOrBuilder
    • getAdditionalHeadersOrThrow

      public String getAdditionalHeadersOrThrow(String key)
      IngestionDefaults::headers + IngestionInvocation::headers size
      should not exceed a max of 2KiB (keys + values)
      
      map<string, string> additional_headers = 8;
      Specified by:
      getAdditionalHeadersOrThrow in interface IngestionInvocationOrBuilder
    • hasInvokeTimeTsMs

      public boolean hasInvokeTimeTsMs()
      starttime timestamp in ms.
      
      optional uint64 invoke_time_ts_ms = 10;
      Specified by:
      hasInvokeTimeTsMs in interface IngestionInvocationOrBuilder
      Returns:
      Whether the invokeTimeTsMs field is set.
    • getInvokeTimeTsMs

      public long getInvokeTimeTsMs()
      starttime timestamp in ms.
      
      optional uint64 invoke_time_ts_ms = 10;
      Specified by:
      getInvokeTimeTsMs in interface IngestionInvocationOrBuilder
      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:
      hasTraceparent in interface IngestionInvocationOrBuilder
      Returns:
      Whether the traceparent field is set.
    • getTraceparent

      public String getTraceparent()
      This uses the w3c tracecontext format
      https://www.w3.org/TR/trace-context/
      
      optional string traceparent = 11;
      Specified by:
      getTraceparent in interface IngestionInvocationOrBuilder
      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:
      getTraceparentBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for traceparent.
    • hasTracestate

      public boolean hasTracestate()
      optional string tracestate = 12;
      Specified by:
      hasTracestate in interface IngestionInvocationOrBuilder
      Returns:
      Whether the tracestate field is set.
    • getTracestate

      public String getTracestate()
      optional string tracestate = 12;
      Specified by:
      getTracestate in interface IngestionInvocationOrBuilder
      Returns:
      The tracestate.
    • getTracestateBytes

      public com.google.protobuf.ByteString getTracestateBytes()
      optional string tracestate = 12;
      Specified by:
      getTracestateBytes in interface IngestionInvocationOrBuilder
      Returns:
      The bytes for tracestate.
    • getPayload

      public com.google.protobuf.ByteString getPayload()
      bytes payload = 13;
      Specified by:
      getPayload in interface IngestionInvocationOrBuilder
      Returns:
      The payload.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static IngestionInvocation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IngestionInvocation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IngestionInvocation parseDelimitedFrom(InputStream input) throws IOException
      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

      public IngestionInvocation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static IngestionInvocation.Builder newBuilder()
    • newBuilder

      public static IngestionInvocation.Builder newBuilder(IngestionInvocation prototype)
    • toBuilder

      public IngestionInvocation.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected IngestionInvocation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static IngestionInvocation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<IngestionInvocation> parser()
    • getParserForType

      public com.google.protobuf.Parser<IngestionInvocation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public IngestionInvocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder