
sourcetransform.v1.sourcetransformer.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of numaflow-java Show documentation
Show all versions of numaflow-java Show documentation
SDK to implement Numaflow Source or User Defined Functions or Sinks in Java.
syntax = "proto3";
option java_package = "io.numaproj.numaflow.sourcetransformer.v1";
import "google/protobuf/timestamp.proto";
import "google/protobuf/empty.proto";
package sourcetransformer.v1;
service SourceTransform {
// SourceTransform applies a function to each request element.
// In addition to map function, SourceTransform also supports assigning a new event time to datum.
// SourceTransform can be used only at source vertex by source data transformer.
rpc SourceTransformFn(SourceTransformRequest) returns (SourceTransformResponse);
// IsReady is the heartbeat endpoint for gRPC.
rpc IsReady(google.protobuf.Empty) returns (ReadyResponse);
}
/**
* SourceTransformRequest represents a request element.
*/
message SourceTransformRequest {
repeated string keys = 1;
bytes value = 2;
google.protobuf.Timestamp event_time = 3;
google.protobuf.Timestamp watermark = 4;
}
/**
* SourceTransformResponse represents a response element.
*/
message SourceTransformResponse {
message Result {
repeated string keys = 1;
bytes value = 2;
google.protobuf.Timestamp event_time = 3;
repeated string tags = 4;
}
repeated Result results = 1;
}
/**
* ReadyResponse is the health check result.
*/
message ReadyResponse {
bool ready = 1;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy