<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Overview on Protobuf for Apache Flink DataStream</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/</link><description>Recent content in Overview on Protobuf for Apache Flink DataStream</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://flink-gcp.github.io/flink-datastream-protobuf/1.1/index.xml" rel="self" type="application/rss+xml"/><item><title>Quickstart</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/quickstart/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/quickstart/</guid><description>&lt;h1 id="run-a-native-protobuf-datastream-job"&gt;Run a native Protobuf DataStream job&lt;a class="anchor" href="#run-a-native-protobuf-datastream-job"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Run the standalone &lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/examples/datastream/pom.xml"&gt;application example&lt;/a&gt; against a local build of the library, installed into an isolated Maven repository, or against the &lt;a href="#run-against-the-published-library"&gt;published library&lt;/a&gt;.
Maven Central publishes &lt;code&gt;1.1.0&lt;/code&gt; for Flink 2.x and &lt;code&gt;1.1.0-1.20&lt;/code&gt; for Flink 1.20 LTS.&lt;/p&gt;
&lt;h2 id="build-the-development-artifact"&gt;Build the development artifact&lt;a class="anchor" href="#build-the-development-artifact"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Install &lt;a href="https://mise.jdx.dev/"&gt;mise&lt;/a&gt;, then clone this repository.
&lt;code&gt;mise install&lt;/code&gt; provides Temurin 21 for the build, and Python 3.14 and uv for the recipe&amp;rsquo;s standard-library checks.
Run these commands from its root:&lt;/p&gt;</description></item><item><title>Usage and configuration</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/usage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/usage/</guid><description>&lt;h1 id="configure-native-protobuf-values"&gt;Configure native Protobuf values&lt;a class="anchor" href="#configure-native-protobuf-values"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The &lt;a href="https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/quickstart/"&gt;quickstart&lt;/a&gt; builds and runs the application examples.
The public application entrypoints are &lt;code&gt;ProtobufTypeInformation&lt;/code&gt; and &lt;code&gt;ProtobufTypeInfoFactory&lt;/code&gt;.
The serializer and snapshot classes are internal machinery; construct types through the public factory or builder.&lt;/p&gt;
&lt;h2 id="explicit-type-information"&gt;Explicit type information&lt;a class="anchor" href="#explicit-type-information"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Use explicit type information for &lt;code&gt;.returns(...)&lt;/code&gt; and per-type settings.
The following construction example uses the generated full-runtime &lt;code&gt;Event&lt;/code&gt; class from the quickstart.
The &lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/examples/datastream/src/main/java/io/github/flink/gcp/protobuf/examples/ExplicitExample.java"&gt;explicit example&lt;/a&gt; shows the imports for these types.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ProtobufTypeInformation&lt;/code&gt; comes from this library; &lt;code&gt;Event&lt;/code&gt; comes from the application&amp;rsquo;s generated code.
Replace the &lt;code&gt;Event&lt;/code&gt; import and class reference with the application&amp;rsquo;s message type.
The example&amp;rsquo;s &lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/examples/datastream/src/main/proto/event.proto"&gt;&lt;code&gt;event.proto&lt;/code&gt;&lt;/a&gt; sets &lt;code&gt;java_package = &amp;quot;io.github.flink.gcp.protobuf.examples.generated&amp;quot;&lt;/code&gt; and &lt;code&gt;java_multiple_files = true&lt;/code&gt;, so &lt;code&gt;Event&lt;/code&gt; is a top-level class in that Java package.&lt;/p&gt;</description></item><item><title>DynamicMessage values</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/dynamic-messages/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/dynamic-messages/</guid><description>&lt;h1 id="dynamicmessage-values"&gt;DynamicMessage values&lt;a class="anchor" href="#dynamicmessage-values"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;com.google.protobuf.DynamicMessage&lt;/code&gt; holds a Protobuf message whose schema comes from a descriptor at runtime rather than from a generated class.
The library transports these values and keeps them in managed state when the application supplies type information bound to a root descriptor.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/examples/datastream/src/main/java/io/github/flink/gcp/protobuf/examples/DynamicExample.java"&gt;DynamicMessage example&lt;/a&gt; is compiled and run with the other &lt;a href="https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/quickstart/"&gt;quickstart&lt;/a&gt; examples; the snippets below come from it.
&lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/docs/adr/0005-descriptor-bound-dynamic-messages.md"&gt;ADR-0005&lt;/a&gt; records the design.&lt;/p&gt;
&lt;h2 id="dynamicmessage-and-generated-common-types"&gt;DynamicMessage and generated common types&lt;a class="anchor" href="#dynamicmessage-and-generated-common-types"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Several generated message types also carry data whose shape varies at runtime.
They are a different tool: their schema is fixed and known to the library through their generated class.&lt;/p&gt;</description></item><item><title>State compatibility</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/compatibility/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/compatibility/</guid><description>&lt;h1 id="protobuf-updates-and-state-compatibility"&gt;Protobuf updates and state compatibility&lt;a class="anchor" href="#protobuf-updates-and-state-compatibility"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Adding a field can preserve Protobuf binary compatibility, and the current development library restores state across that change.
It accepts unchanged schemas and the &lt;a href="#schema-changes"&gt;supported schema changes&lt;/a&gt;, and it rejects other changes to the declarations that saved values reach when the job restores its state.
Version 1.0.0 is the first release published to Maven Central and starts the &lt;a href="#compatibility-from-100"&gt;stable API and forward-restore contract&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="development-builds"&gt;Development builds&lt;a class="anchor" href="#development-builds"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A build of this source is the development version &lt;code&gt;1.1.0-SNAPSHOT&lt;/code&gt;, which restores supported schema changes.
Development builds, including the &lt;code&gt;v0.x&lt;/code&gt; GitHub pre-releases, are not releases, and their APIs, defaults, runtime requirements, and state formats are not compatibility contracts.
Retain the exact source revision and artifact checksums alongside schemas and state; a SNAPSHOT version alone does not identify their writer.&lt;/p&gt;</description></item><item><title>Supported types</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/common-types/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/common-types/</guid><description>&lt;h1 id="google-well-known-types-and-opentelemetry-values"&gt;Google Well-Known Types and OpenTelemetry values&lt;a class="anchor" href="#google-well-known-types-and-opentelemetry-values"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Google Well-Known Types (WKT) and OpenTelemetry composite values use generated message classes with declared descriptors.
They use the same &lt;code&gt;ProtobufTypeInformation&lt;/code&gt; and serializer as application messages.
Changing a Struct key or choosing another AnyValue variant changes the data within that descriptor, so unchanged-schema restoration supports those changes.&lt;/p&gt;
&lt;h2 id="tested-types"&gt;Tested types&lt;a class="anchor" href="#tested-types"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Types&lt;/th&gt;
					&lt;th&gt;Tested values&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Google &lt;code&gt;Struct&lt;/code&gt;, &lt;code&gt;Value&lt;/code&gt;, &lt;code&gt;ListValue&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Nested maps and lists, null, booleans, strings, numbers, empty containers, and unset versus present-default oneof cases&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Google &lt;code&gt;Any&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Default values, a type URL and opaque bytes, and nesting inside an application message&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Google &lt;code&gt;Timestamp&lt;/code&gt;, &lt;code&gt;Duration&lt;/code&gt;, &lt;code&gt;Empty&lt;/code&gt;, &lt;code&gt;FieldMask&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Defaults, representative populated messages, and nested use&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Google &lt;code&gt;DoubleValue&lt;/code&gt;, &lt;code&gt;FloatValue&lt;/code&gt;, &lt;code&gt;Int64Value&lt;/code&gt;, &lt;code&gt;UInt64Value&lt;/code&gt;, &lt;code&gt;Int32Value&lt;/code&gt;, &lt;code&gt;UInt32Value&lt;/code&gt;, &lt;code&gt;BoolValue&lt;/code&gt;, &lt;code&gt;StringValue&lt;/code&gt;, &lt;code&gt;BytesValue&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Default and populated wrappers, including a present wrapper containing a default scalar&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;OTel &lt;code&gt;AnyValue&lt;/code&gt;, &lt;code&gt;ArrayValue&lt;/code&gt;, &lt;code&gt;KeyValueList&lt;/code&gt;, &lt;code&gt;KeyValue&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Nested heterogeneous values, bytes, empty containers, unset and all eight present oneof cases, and profiling string/key dictionary indices&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Wrappers remain supported for existing schemas.
For new schemas, prefer explicit field presence, such as proto3 &lt;code&gt;optional&lt;/code&gt;, as described in the &lt;a href="https://protobuf.dev/reference/protobuf/google.protobuf/"&gt;WKT guidance&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Documentation versions</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/versions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/versions/</guid><description>&lt;h1 id="documentation-versions"&gt;Documentation versions&lt;a class="anchor" href="#documentation-versions"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The site keeps the latest patch of the current and previous published minor series, plus Development.
For example, 1.2.1 and the latest 1.1.x appear together; a later 1.1.x patch does not make that series current.
The two-series window crosses major boundaries: 2.0 and the last published 1.x minor occupy its slots.
The Flink 1.20 artifact suffix does not create another documentation version.
Development follows &lt;code&gt;main&lt;/code&gt; and does not imply that its artifacts are available on Maven Central.&lt;/p&gt;</description></item><item><title>Site licenses</title><link>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/licenses/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://flink-gcp.github.io/flink-datastream-protobuf/1.1/docs/licenses/</guid><description>&lt;h1 id="site-licenses"&gt;Site licenses&lt;a class="anchor" href="#site-licenses"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The shared design and the version selector are licensed under Apache-2.0 by The flink-gcp authors, the same &lt;a href="https://github.com/flink-gcp/flink-datastream-protobuf/blob/main/LICENSE"&gt;license&lt;/a&gt; as this library.&lt;/p&gt;
&lt;p&gt;The shared design&amp;rsquo;s search script adapts Hugo Book&amp;rsquo;s, whose notice follows.
The site&amp;rsquo;s theme is Hugo Book v0.14.0, which compiles modern-normalize into the site&amp;rsquo;s stylesheet and supplies the icons, the favicons, and the Fuse.js search module.
The following notices accompany the theme and the third-party files it brings.&lt;/p&gt;</description></item></channel></rss>