Class IngestionDefaults.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<IngestionDefaults.Builder>
com.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
dev.restate.ingestion.v1.IngestionDefaults.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionDefaultsOrBuilder, Cloneable
- Enclosing class:
IngestionDefaults
public static final class IngestionDefaults.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional string handler = 5;clearKey()optional string key = 6;optional string limit_key = 3;scope is limited to 36 bytes.optional string service = 4;booleancontainsHeaders(String key) Total headers size should not exceed a max of 2KiB (keys + values)static final com.google.protobuf.Descriptors.Descriptorcom.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;Deprecated.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;booleanoptional string handler = 5;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) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(IngestionDefaults other) putAllHeaders(Map<String, String> values) Total headers size should not exceed a max of 2KiB (keys + values)putHeaders(String key, String value) Total headers size should not exceed a max of 2KiB (keys + values)removeHeaders(String key) Total headers size should not exceed a max of 2KiB (keys + values)setHandler(String value) optional string handler = 5;setHandlerBytes(com.google.protobuf.ByteString value) optional string handler = 5;optional string key = 6;setKeyBytes(com.google.protobuf.ByteString value) optional string key = 6;setLimitKey(String value) optional string limit_key = 3;setLimitKeyBytes(com.google.protobuf.ByteString value) optional string limit_key = 3;scope is limited to 36 bytes.setScopeBytes(com.google.protobuf.ByteString value) scope is limited to 36 bytes.setService(String value) optional string service = 4;setServiceBytes(com.google.protobuf.ByteString value) optional string service = 4;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<IngestionDefaults.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestionDefaults.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IngestionDefaults.Builder>
-
mergeFrom
public IngestionDefaults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestionDefaults.Builder>- Throws:
IOException
-
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.
-
setScope
scope is limited to 36 bytes.
optional string scope = 2;- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
scope is limited to 36 bytes.
optional string scope = 2;- Returns:
- This builder for chaining.
-
setScopeBytes
scope is limited to 36 bytes.
optional string scope = 2;- Parameters:
value- The bytes for scope to set.- Returns:
- This builder for chaining.
-
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.
-
setLimitKey
optional string limit_key = 3;- Parameters:
value- The limitKey to set.- Returns:
- This builder for chaining.
-
clearLimitKey
optional string limit_key = 3;- Returns:
- This builder for chaining.
-
setLimitKeyBytes
optional string limit_key = 3;- Parameters:
value- The bytes for limitKey to set.- Returns:
- This builder for chaining.
-
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.
-
setService
optional string service = 4;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
optional string service = 4;- Returns:
- This builder for chaining.
-
setServiceBytes
optional string service = 4;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
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.
-
setHandler
optional string handler = 5;- Parameters:
value- The handler to set.- Returns:
- This builder for chaining.
-
clearHandler
optional string handler = 5;- Returns:
- This builder for chaining.
-
setHandlerBytes
optional string handler = 5;- Parameters:
value- The bytes for handler to set.- Returns:
- This builder for chaining.
-
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.
-
setKey
optional string key = 6;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
optional string key = 6;- Returns:
- This builder for chaining.
-
setKeyBytes
optional string key = 6;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
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
-
clearHeaders
-
removeHeaders
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8; -
getMutableHeaders
Deprecated.Use alternate mutation accessors instead. -
putHeaders
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8; -
putAllHeaders
Total headers size should not exceed a max of 2KiB (keys + values)
map<string, string> headers = 8;
-