Class IngestionDefaults

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
dev.restate.ingestion.v1.IngestionDefaults
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionDefaultsOrBuilder, Serializable

public final class IngestionDefaults extends com.google.protobuf.GeneratedMessage implements IngestionDefaultsOrBuilder
An IngestionDefaults message defines the default values applied to all
subsequent records in the stream.
Each IngestionDefaults message must specify every field it wants to set.
Each IngestionDefaults message overwrites the values set by previous IngestionDefaults messages.
Leaving an optional field unset clears any previously established
default, so later records must supply the value explicitly if needed.

It's okay to send IngestionDefaults more than once to tweak and change the defaults
during the life time of the stream.

Every field here has a matching field on `Invocation`. For those fields the
per-record value wins: if the `Invocation` sets the field, its value is used
and the default from `IngestionDefaults` is ignored; if it leaves the field unset, the
current default from `IngestionDefaults` is used instead. If neither is set, the field
is treated as absent, which may be an error for fields that are required for
the given target (e.g. `key` for virtual objects and workflows).

`headers` are extended with the Invocation's `additional_headers`
overriding existing keys.

Note: Keep the field tags uniform with the Invocation message
This allows parsing IngestionInvocation message as IngestionDefaults.
Protobuf type dev.restate.ingress.ingestion.v1.IngestionDefaults
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An IngestionDefaults message defines the default values applied to all subsequent records in the stream.

    Nested 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Total headers size should not exceed a max of 2KiB (keys + values)
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    optional string handler = 5;
    com.google.protobuf.ByteString
    optional string handler = 5;
    Deprecated.
    int
    Total headers size should not exceed a max of 2KiB (keys + values)
    Total headers size should not exceed a max of 2KiB (keys + values)
    getHeadersOrDefault(String key, String defaultValue)
    Total headers size should not exceed a max of 2KiB (keys + values)
    Total headers size should not exceed a max of 2KiB (keys + values)
    optional string key = 6;
    com.google.protobuf.ByteString
    optional string key = 6;
    optional string limit_key = 3;
    com.google.protobuf.ByteString
    optional string limit_key = 3;
    com.google.protobuf.Parser<IngestionDefaults>
     
    scope is limited to 36 bytes.
    com.google.protobuf.ByteString
    scope is limited to 36 bytes.
    int
     
    optional string service = 4;
    com.google.protobuf.ByteString
    optional string service = 4;
    boolean
    optional string handler = 5;
    int
     
    boolean
    optional string key = 6;
    boolean
    optional string limit_key = 3;
    boolean
    scope is limited to 36 bytes.
    boolean
    optional string service = 4;
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<IngestionDefaults>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

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

      public boolean hasScope()
      scope is limited to 36 bytes.
      
      optional string scope = 2;
      Specified by:
      hasScope in interface IngestionDefaultsOrBuilder
      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 IngestionDefaultsOrBuilder
      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 IngestionDefaultsOrBuilder
      Returns:
      The bytes for scope.
    • hasLimitKey

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

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

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

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

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

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

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

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

      public com.google.protobuf.ByteString getHandlerBytes()
      optional string handler = 5;
      Specified by:
      getHandlerBytes in interface IngestionDefaultsOrBuilder
      Returns:
      The bytes for handler.
    • hasKey

      public boolean hasKey()
      optional string key = 6;
      Specified by:
      hasKey in interface IngestionDefaultsOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
      optional string key = 6;
      Specified by:
      getKey in interface IngestionDefaultsOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
      optional string key = 6;
      Specified by:
      getKeyBytes in interface IngestionDefaultsOrBuilder
      Returns:
      The bytes for key.
    • getHeadersCount

      public int getHeadersCount()
      Description copied from interface: IngestionDefaultsOrBuilder
      Total headers size should not exceed a max of 2KiB (keys + values)
      
      map<string, string> headers = 8;
      Specified by:
      getHeadersCount in interface IngestionDefaultsOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
      Total headers size should not exceed a max of 2KiB (keys + values)
      
      map<string, string> headers = 8;
      Specified by:
      containsHeaders in interface IngestionDefaultsOrBuilder
    • getHeaders

      @Deprecated public Map<String,String> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface IngestionDefaultsOrBuilder
    • getHeadersMap

      public Map<String,String> getHeadersMap()
      Total headers size should not exceed a max of 2KiB (keys + values)
      
      map<string, string> headers = 8;
      Specified by:
      getHeadersMap in interface IngestionDefaultsOrBuilder
    • getHeadersOrDefault

      public String getHeadersOrDefault(String key, String defaultValue)
      Total headers size should not exceed a max of 2KiB (keys + values)
      
      map<string, string> headers = 8;
      Specified by:
      getHeadersOrDefault in interface IngestionDefaultsOrBuilder
    • getHeadersOrThrow

      public String getHeadersOrThrow(String key)
      Total headers size should not exceed a max of 2KiB (keys + values)
      
      map<string, string> headers = 8;
      Specified by:
      getHeadersOrThrow in interface IngestionDefaultsOrBuilder
    • 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 IngestionDefaults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestionDefaults parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestionDefaults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestionDefaults parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestionDefaults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestionDefaults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static IngestionDefaults parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static IngestionDefaults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IngestionDefaults parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static IngestionDefaults.Builder newBuilder()
    • newBuilder

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

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

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

      public static IngestionDefaults getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<IngestionDefaults> 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 IngestionDefaults getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder