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 ClassesModifier and TypeClassDescriptionstatic final classAn 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.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 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 TypeMethodDescriptionbooleancontainsHeaders(String key) Total headers size should not exceed a max of 2KiB (keys + values)booleanstatic IngestionDefaultsstatic final com.google.protobuf.Descriptors.Descriptoroptional string handler = 5;com.google.protobuf.ByteStringoptional string handler = 5;Deprecated.intTotal 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)getHeadersOrThrow(String key) Total headers size should not exceed a max of 2KiB (keys + values)getKey()optional string key = 6;com.google.protobuf.ByteStringoptional string key = 6;optional string limit_key = 3;com.google.protobuf.ByteStringoptional string limit_key = 3;com.google.protobuf.Parser<IngestionDefaults> 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;booleanoptional string handler = 5;inthashCode()booleanhasKey()optional string key = 6;booleanoptional string limit_key = 3;booleanhasScope()scope is limited to 36 bytes.booleanoptional string service = 4;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic IngestionDefaults.Builderstatic IngestionDefaults.BuildernewBuilder(IngestionDefaults prototype) protected IngestionDefaults.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static IngestionDefaultsparseDelimitedFrom(InputStream input) static IngestionDefaultsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionDefaultsparseFrom(byte[] data) static IngestionDefaultsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionDefaultsparseFrom(com.google.protobuf.ByteString data) static IngestionDefaultsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionDefaultsparseFrom(com.google.protobuf.CodedInputStream input) static IngestionDefaultsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionDefaultsparseFrom(InputStream input) static IngestionDefaultsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IngestionDefaultsparseFrom(ByteBuffer data) static IngestionDefaultsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<IngestionDefaults> 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
-
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:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_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
-
hasScope
public boolean hasScope()scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
hasScopein interfaceIngestionDefaultsOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
getScopein interfaceIngestionDefaultsOrBuilder- Returns:
- The scope.
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()scope is limited to 36 bytes.
optional string scope = 2;- Specified by:
getScopeBytesin interfaceIngestionDefaultsOrBuilder- Returns:
- The bytes for scope.
-
hasLimitKey
public boolean hasLimitKey()optional string limit_key = 3;- Specified by:
hasLimitKeyin interfaceIngestionDefaultsOrBuilder- Returns:
- Whether the limitKey field is set.
-
getLimitKey
optional string limit_key = 3;- Specified by:
getLimitKeyin interfaceIngestionDefaultsOrBuilder- Returns:
- The limitKey.
-
getLimitKeyBytes
public com.google.protobuf.ByteString getLimitKeyBytes()optional string limit_key = 3;- Specified by:
getLimitKeyBytesin interfaceIngestionDefaultsOrBuilder- Returns:
- The bytes for limitKey.
-
hasService
public boolean hasService()optional string service = 4;- Specified by:
hasServicein interfaceIngestionDefaultsOrBuilder- Returns:
- Whether the service field is set.
-
getService
optional string service = 4;- Specified by:
getServicein interfaceIngestionDefaultsOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()optional string service = 4;- Specified by:
getServiceBytesin interfaceIngestionDefaultsOrBuilder- Returns:
- The bytes for service.
-
hasHandler
public boolean hasHandler()optional string handler = 5;- Specified by:
hasHandlerin interfaceIngestionDefaultsOrBuilder- Returns:
- Whether the handler field is set.
-
getHandler
optional string handler = 5;- Specified by:
getHandlerin interfaceIngestionDefaultsOrBuilder- Returns:
- The handler.
-
getHandlerBytes
public com.google.protobuf.ByteString getHandlerBytes()optional string handler = 5;- Specified by:
getHandlerBytesin interfaceIngestionDefaultsOrBuilder- Returns:
- The bytes for handler.
-
hasKey
public boolean hasKey()optional string key = 6;- Specified by:
hasKeyin interfaceIngestionDefaultsOrBuilder- Returns:
- Whether the key field is set.
-
getKey
optional string key = 6;- Specified by:
getKeyin interfaceIngestionDefaultsOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()optional string key = 6;- Specified by:
getKeyBytesin interfaceIngestionDefaultsOrBuilder- Returns:
- The bytes for key.
-
getHeadersCount
public int getHeadersCount()Description copied from interface:IngestionDefaultsOrBuilderTotal headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;- Specified by:
getHeadersCountin interfaceIngestionDefaultsOrBuilder
-
containsHeaders
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;- Specified by:
containsHeadersin interfaceIngestionDefaultsOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceIngestionDefaultsOrBuilder
-
getHeadersMap
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;- Specified by:
getHeadersMapin interfaceIngestionDefaultsOrBuilder
-
getHeadersOrDefault
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;- Specified by:
getHeadersOrDefaultin interfaceIngestionDefaultsOrBuilder
-
getHeadersOrThrow
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;- Specified by:
getHeadersOrThrowin interfaceIngestionDefaultsOrBuilder
-
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 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
- Throws:
IOException
-
parseFrom
public static IngestionDefaults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- 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 IngestionDefaults.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
-