Package ai.pipestream.data.v1
Class PipeStream.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PipeStream.Builder>
com.google.protobuf.GeneratedMessage.Builder<PipeStream.Builder>
ai.pipestream.data.v1.PipeStream.Builder
- All Implemented Interfaces:
PipeStreamOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
PipeStream
public static final class PipeStream.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PipeStream.Builder>
implements PipeStreamOrBuilder
TCP-like packet header for node-to-node document processing. Contains the document payload, routing information, processing history, and configuration for the current processing step.Protobuf type
ai.pipestream.data.v1.PipeStream-
Method Summary
Modifier and TypeMethodDescriptionaddAllProcessingPath(Iterable<String> values) Ordered list of node IDs traversed during processing.addProcessingPath(String value) Ordered list of node IDs traversed during processing.addProcessingPathBytes(com.google.protobuf.ByteString value) Ordered list of node IDs traversed during processing.build()clear()Cluster where processing is occurring.Current node processing this stream.The document being processed.Number of processing hops taken.Stream metadata including history and tracing.Configuration for the current node's processing step.Ordered list of node IDs traversed during processing.Unique identifier for this processing stream.Cluster where processing is occurring.com.google.protobuf.ByteStringCluster where processing is occurring.Current node processing this stream.com.google.protobuf.ByteStringCurrent node processing this stream.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe document being processed.The document being processed.The document being processed.longNumber of processing hops taken.Stream metadata including history and tracing.Stream metadata including history and tracing.Stream metadata including history and tracing.Configuration for the current node's processing step.Configuration for the current node's processing step.Configuration for the current node's processing step.getProcessingPath(int index) Ordered list of node IDs traversed during processing.com.google.protobuf.ByteStringgetProcessingPathBytes(int index) Ordered list of node IDs traversed during processing.intOrdered list of node IDs traversed during processing.com.google.protobuf.ProtocolStringListOrdered list of node IDs traversed during processing.Unique identifier for this processing stream.com.google.protobuf.ByteStringUnique identifier for this processing stream.booleanThe document being processed.booleanStream metadata including history and tracing.booleanConfiguration for the current node's processing step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDocument(PipeDoc value) The document being processed.mergeFrom(PipeStream other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadata(StreamMetadata value) Stream metadata including history and tracing.Configuration for the current node's processing step.setClusterId(String value) Cluster where processing is occurring.setClusterIdBytes(com.google.protobuf.ByteString value) Cluster where processing is occurring.setCurrentNodeId(String value) Current node processing this stream.setCurrentNodeIdBytes(com.google.protobuf.ByteString value) Current node processing this stream.setDocument(PipeDoc value) The document being processed.setDocument(PipeDoc.Builder builderForValue) The document being processed.setHopCount(long value) Number of processing hops taken.setMetadata(StreamMetadata value) Stream metadata including history and tracing.setMetadata(StreamMetadata.Builder builderForValue) Stream metadata including history and tracing.Configuration for the current node's processing step.setNodeProcessingConfig(NodeProcessingConfig.Builder builderForValue) Configuration for the current node's processing step.setProcessingPath(int index, String value) Ordered list of node IDs traversed during processing.setStreamId(String value) Unique identifier for this processing stream.setStreamIdBytes(com.google.protobuf.ByteString value) Unique identifier for this processing 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 java.lang.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<PipeStream.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<PipeStream.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<PipeStream.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<PipeStream.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PipeStream.Builder>
-
mergeFrom
public PipeStream.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<PipeStream.Builder>- Throws:
IOException
-
getStreamId
Unique identifier for this processing stream.
string stream_id = 1;- Specified by:
getStreamIdin interfacePipeStreamOrBuilder- Returns:
- The streamId.
-
getStreamIdBytes
public com.google.protobuf.ByteString getStreamIdBytes()Unique identifier for this processing stream.
string stream_id = 1;- Specified by:
getStreamIdBytesin interfacePipeStreamOrBuilder- Returns:
- The bytes for streamId.
-
setStreamId
Unique identifier for this processing stream.
string stream_id = 1;- Parameters:
value- The streamId to set.- Returns:
- This builder for chaining.
-
clearStreamId
Unique identifier for this processing stream.
string stream_id = 1;- Returns:
- This builder for chaining.
-
setStreamIdBytes
Unique identifier for this processing stream.
string stream_id = 1;- Parameters:
value- The bytes for streamId to set.- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2;- Specified by:
hasMetadatain interfacePipeStreamOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2;- Specified by:
getMetadatain interfacePipeStreamOrBuilder- Returns:
- The metadata.
-
setMetadata
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2; -
setMetadata
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2; -
mergeMetadata
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2; -
clearMetadata
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2; -
getMetadataBuilder
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2; -
getMetadataOrBuilder
Stream metadata including history and tracing.
.ai.pipestream.data.v1.StreamMetadata metadata = 2;- Specified by:
getMetadataOrBuilderin interfacePipeStreamOrBuilder
-
hasDocument
public boolean hasDocument()The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3;- Specified by:
hasDocumentin interfacePipeStreamOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3;- Specified by:
getDocumentin interfacePipeStreamOrBuilder- Returns:
- The document.
-
setDocument
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3; -
setDocument
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3; -
mergeDocument
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3; -
clearDocument
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3; -
getDocumentBuilder
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3; -
getDocumentOrBuilder
The document being processed.
.ai.pipestream.data.v1.PipeDoc document = 3;- Specified by:
getDocumentOrBuilderin interfacePipeStreamOrBuilder
-
getClusterId
Cluster where processing is occurring.
string cluster_id = 4;- Specified by:
getClusterIdin interfacePipeStreamOrBuilder- Returns:
- The clusterId.
-
getClusterIdBytes
public com.google.protobuf.ByteString getClusterIdBytes()Cluster where processing is occurring.
string cluster_id = 4;- Specified by:
getClusterIdBytesin interfacePipeStreamOrBuilder- Returns:
- The bytes for clusterId.
-
setClusterId
Cluster where processing is occurring.
string cluster_id = 4;- Parameters:
value- The clusterId to set.- Returns:
- This builder for chaining.
-
clearClusterId
Cluster where processing is occurring.
string cluster_id = 4;- Returns:
- This builder for chaining.
-
setClusterIdBytes
Cluster where processing is occurring.
string cluster_id = 4;- Parameters:
value- The bytes for clusterId to set.- Returns:
- This builder for chaining.
-
getCurrentNodeId
Current node processing this stream.
string current_node_id = 5;- Specified by:
getCurrentNodeIdin interfacePipeStreamOrBuilder- Returns:
- The currentNodeId.
-
getCurrentNodeIdBytes
public com.google.protobuf.ByteString getCurrentNodeIdBytes()Current node processing this stream.
string current_node_id = 5;- Specified by:
getCurrentNodeIdBytesin interfacePipeStreamOrBuilder- Returns:
- The bytes for currentNodeId.
-
setCurrentNodeId
Current node processing this stream.
string current_node_id = 5;- Parameters:
value- The currentNodeId to set.- Returns:
- This builder for chaining.
-
clearCurrentNodeId
Current node processing this stream.
string current_node_id = 5;- Returns:
- This builder for chaining.
-
setCurrentNodeIdBytes
Current node processing this stream.
string current_node_id = 5;- Parameters:
value- The bytes for currentNodeId to set.- Returns:
- This builder for chaining.
-
getHopCount
public long getHopCount()Number of processing hops taken.
int64 hop_count = 6;- Specified by:
getHopCountin interfacePipeStreamOrBuilder- Returns:
- The hopCount.
-
setHopCount
Number of processing hops taken.
int64 hop_count = 6;- Parameters:
value- The hopCount to set.- Returns:
- This builder for chaining.
-
clearHopCount
Number of processing hops taken.
int64 hop_count = 6;- Returns:
- This builder for chaining.
-
getProcessingPathList
public com.google.protobuf.ProtocolStringList getProcessingPathList()Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Specified by:
getProcessingPathListin interfacePipeStreamOrBuilder- Returns:
- A list containing the processingPath.
-
getProcessingPathCount
public int getProcessingPathCount()Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Specified by:
getProcessingPathCountin interfacePipeStreamOrBuilder- Returns:
- The count of processingPath.
-
getProcessingPath
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Specified by:
getProcessingPathin interfacePipeStreamOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The processingPath at the given index.
-
getProcessingPathBytes
public com.google.protobuf.ByteString getProcessingPathBytes(int index) Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Specified by:
getProcessingPathBytesin interfacePipeStreamOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the processingPath at the given index.
-
setProcessingPath
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Parameters:
index- The index to set the value at.value- The processingPath to set.- Returns:
- This builder for chaining.
-
addProcessingPath
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Parameters:
value- The processingPath to add.- Returns:
- This builder for chaining.
-
addAllProcessingPath
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Parameters:
values- The processingPath to add.- Returns:
- This builder for chaining.
-
clearProcessingPath
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Returns:
- This builder for chaining.
-
addProcessingPathBytes
Ordered list of node IDs traversed during processing.
repeated string processing_path = 7;- Parameters:
value- The bytes of the processingPath to add.- Returns:
- This builder for chaining.
-
hasNodeProcessingConfig
public boolean hasNodeProcessingConfig()Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8;- Specified by:
hasNodeProcessingConfigin interfacePipeStreamOrBuilder- Returns:
- Whether the nodeProcessingConfig field is set.
-
getNodeProcessingConfig
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8;- Specified by:
getNodeProcessingConfigin interfacePipeStreamOrBuilder- Returns:
- The nodeProcessingConfig.
-
setNodeProcessingConfig
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8; -
setNodeProcessingConfig
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8; -
mergeNodeProcessingConfig
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8; -
clearNodeProcessingConfig
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8; -
getNodeProcessingConfigBuilder
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8; -
getNodeProcessingConfigOrBuilder
Configuration for the current node's processing step.
.ai.pipestream.data.v1.NodeProcessingConfig node_processing_config = 8;- Specified by:
getNodeProcessingConfigOrBuilderin interfacePipeStreamOrBuilder
-