Class IngestionStart.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<IngestionStart.Builder>
com.google.protobuf.GeneratedMessage.Builder<IngestionStart.Builder>
dev.restate.ingestion.v1.IngestionStart.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionStartOrBuilder, Cloneable
- Enclosing class:
IngestionStart
public static final class IngestionStart.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IngestionStart.Builder>
implements IngestionStartOrBuilder
Required. A Start frame must be sent before any IngestionDefaults or IngestionInvocation frame. Sending a Start frame again during the lifetime of the stream is illegal: the server will return an error and terminate the stream. Invalid Start message will cause an error to be returned immediately, and stream to be teared down immediatelyProtobuf type
dev.restate.ingress.ingestion.v1.IngestionStart-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Deduplication strategy for this stream.Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.Integration identification in format `name/version` Max length is 64 bytesStable identity of the *producer*, not of this particular stream.Deduplication strategy for this stream.intDeduplication strategy for this stream.Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIntegration identification in format `name/version` Max length is 64 bytescom.google.protobuf.ByteStringIntegration identification in format `name/version` Max length is 64 bytesStable identity of the *producer*, not of this particular stream.com.google.protobuf.ByteStringStable identity of the *producer*, not of this particular stream.booleanInitial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDefaults(IngestionDefaults value) Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(IngestionStart other) Deduplication strategy for this stream.setDeduplicationModeValue(int value) Deduplication strategy for this stream.setDefaults(IngestionDefaults value) Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.setDefaults(IngestionDefaults.Builder builderForValue) Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame.setIntegration(String value) Integration identification in format `name/version` Max length is 64 bytessetIntegrationBytes(com.google.protobuf.ByteString value) Integration identification in format `name/version` Max length is 64 bytessetProducerId(String value) Stable identity of the *producer*, not of this particular stream.setProducerIdBytes(com.google.protobuf.ByteString value) Stable identity of the *producer*, not of this particular stream.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IngestionStart.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<IngestionStart.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<IngestionStart.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<IngestionStart.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IngestionStart.Builder>
-
mergeFrom
public IngestionStart.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<IngestionStart.Builder>- Throws:
IOException
-
getProducerId
Stable identity of the *producer*, not of this particular stream. The ID is an opaque string: this API is generic, so the server attaches no format or meaning to it. It is entirely up to the producer to pick an ID that uniquely identifies a single source of sequential, ordered messages, since offsets are only meaningful relative to that source. For a Kafka-based producer, for instance, an ID composed of cluster + topic + consumer-group + partition would identify such a source. Depending on the DedupMode, the same producer must reuse the same ID across streams (including after reconnects), otherwise deduplication cannot work: the server tracks committed offsets per producer ID, so a new ID starts a fresh deduplication state and previously committed records may be duplicated. The ID must be unique across producers: two distinct producers sharing an ID will be treated as one and will shadow each other's offsets. Max length is 256 bytes.
string producer_id = 1;- Specified by:
getProducerIdin interfaceIngestionStartOrBuilder- Returns:
- The producerId.
-
getProducerIdBytes
public com.google.protobuf.ByteString getProducerIdBytes()Stable identity of the *producer*, not of this particular stream. The ID is an opaque string: this API is generic, so the server attaches no format or meaning to it. It is entirely up to the producer to pick an ID that uniquely identifies a single source of sequential, ordered messages, since offsets are only meaningful relative to that source. For a Kafka-based producer, for instance, an ID composed of cluster + topic + consumer-group + partition would identify such a source. Depending on the DedupMode, the same producer must reuse the same ID across streams (including after reconnects), otherwise deduplication cannot work: the server tracks committed offsets per producer ID, so a new ID starts a fresh deduplication state and previously committed records may be duplicated. The ID must be unique across producers: two distinct producers sharing an ID will be treated as one and will shadow each other's offsets. Max length is 256 bytes.
string producer_id = 1;- Specified by:
getProducerIdBytesin interfaceIngestionStartOrBuilder- Returns:
- The bytes for producerId.
-
setProducerId
Stable identity of the *producer*, not of this particular stream. The ID is an opaque string: this API is generic, so the server attaches no format or meaning to it. It is entirely up to the producer to pick an ID that uniquely identifies a single source of sequential, ordered messages, since offsets are only meaningful relative to that source. For a Kafka-based producer, for instance, an ID composed of cluster + topic + consumer-group + partition would identify such a source. Depending on the DedupMode, the same producer must reuse the same ID across streams (including after reconnects), otherwise deduplication cannot work: the server tracks committed offsets per producer ID, so a new ID starts a fresh deduplication state and previously committed records may be duplicated. The ID must be unique across producers: two distinct producers sharing an ID will be treated as one and will shadow each other's offsets. Max length is 256 bytes.
string producer_id = 1;- Parameters:
value- The producerId to set.- Returns:
- This builder for chaining.
-
clearProducerId
Stable identity of the *producer*, not of this particular stream. The ID is an opaque string: this API is generic, so the server attaches no format or meaning to it. It is entirely up to the producer to pick an ID that uniquely identifies a single source of sequential, ordered messages, since offsets are only meaningful relative to that source. For a Kafka-based producer, for instance, an ID composed of cluster + topic + consumer-group + partition would identify such a source. Depending on the DedupMode, the same producer must reuse the same ID across streams (including after reconnects), otherwise deduplication cannot work: the server tracks committed offsets per producer ID, so a new ID starts a fresh deduplication state and previously committed records may be duplicated. The ID must be unique across producers: two distinct producers sharing an ID will be treated as one and will shadow each other's offsets. Max length is 256 bytes.
string producer_id = 1;- Returns:
- This builder for chaining.
-
setProducerIdBytes
Stable identity of the *producer*, not of this particular stream. The ID is an opaque string: this API is generic, so the server attaches no format or meaning to it. It is entirely up to the producer to pick an ID that uniquely identifies a single source of sequential, ordered messages, since offsets are only meaningful relative to that source. For a Kafka-based producer, for instance, an ID composed of cluster + topic + consumer-group + partition would identify such a source. Depending on the DedupMode, the same producer must reuse the same ID across streams (including after reconnects), otherwise deduplication cannot work: the server tracks committed offsets per producer ID, so a new ID starts a fresh deduplication state and previously committed records may be duplicated. The ID must be unique across producers: two distinct producers sharing an ID will be treated as one and will shadow each other's offsets. Max length is 256 bytes.
string producer_id = 1;- Parameters:
value- The bytes for producerId to set.- Returns:
- This builder for chaining.
-
getIntegration
Integration identification in format `name/version` Max length is 64 bytes
string integration = 2;- Specified by:
getIntegrationin interfaceIngestionStartOrBuilder- Returns:
- The integration.
-
getIntegrationBytes
public com.google.protobuf.ByteString getIntegrationBytes()Integration identification in format `name/version` Max length is 64 bytes
string integration = 2;- Specified by:
getIntegrationBytesin interfaceIngestionStartOrBuilder- Returns:
- The bytes for integration.
-
setIntegration
Integration identification in format `name/version` Max length is 64 bytes
string integration = 2;- Parameters:
value- The integration to set.- Returns:
- This builder for chaining.
-
clearIntegration
Integration identification in format `name/version` Max length is 64 bytes
string integration = 2;- Returns:
- This builder for chaining.
-
setIntegrationBytes
Integration identification in format `name/version` Max length is 64 bytes
string integration = 2;- Parameters:
value- The bytes for integration to set.- Returns:
- This builder for chaining.
-
getDeduplicationModeValue
public int getDeduplicationModeValue()Deduplication strategy for this stream. Defaults to `DISABLED`.
.dev.restate.ingress.ingestion.v1.DeduplicationMode deduplication_mode = 3;- Specified by:
getDeduplicationModeValuein interfaceIngestionStartOrBuilder- Returns:
- The enum numeric value on the wire for deduplicationMode.
-
setDeduplicationModeValue
Deduplication strategy for this stream. Defaults to `DISABLED`.
.dev.restate.ingress.ingestion.v1.DeduplicationMode deduplication_mode = 3;- Parameters:
value- The enum numeric value on the wire for deduplicationMode to set.- Returns:
- This builder for chaining.
-
getDeduplicationMode
Deduplication strategy for this stream. Defaults to `DISABLED`.
.dev.restate.ingress.ingestion.v1.DeduplicationMode deduplication_mode = 3;- Specified by:
getDeduplicationModein interfaceIngestionStartOrBuilder- Returns:
- The deduplicationMode.
-
setDeduplicationMode
Deduplication strategy for this stream. Defaults to `DISABLED`.
.dev.restate.ingress.ingestion.v1.DeduplicationMode deduplication_mode = 3;- Parameters:
value- The deduplicationMode to set.- Returns:
- This builder for chaining.
-
clearDeduplicationMode
Deduplication strategy for this stream. Defaults to `DISABLED`.
.dev.restate.ingress.ingestion.v1.DeduplicationMode deduplication_mode = 3;- Returns:
- This builder for chaining.
-
hasDefaults
public boolean hasDefaults()Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4;- Specified by:
hasDefaultsin interfaceIngestionStartOrBuilder- Returns:
- Whether the defaults field is set.
-
getDefaults
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4;- Specified by:
getDefaultsin interfaceIngestionStartOrBuilder- Returns:
- The defaults.
-
setDefaults
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4; -
setDefaults
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4; -
mergeDefaults
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4; -
clearDefaults
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4; -
getDefaultsBuilder
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4; -
getDefaultsOrBuilder
Initial ingestion defaults for the stream, letting the client establish its defaults up front instead of following the Start frame with a separate IngestionDefaults frame. Clients can still send further IngestionDefaults frames later to update these defaults during the stream.
.dev.restate.ingress.ingestion.v1.IngestionDefaults defaults = 4;- Specified by:
getDefaultsOrBuilderin interfaceIngestionStartOrBuilder
-