@@ -19,7 +19,8 @@ This document is a working draft.
19192 . [ Attributes] ( #2-attributes )
20203 . [ Data] ( #3-data )
21214 . [ Transport] ( #4-transport )
22- 5 . [ Examples] ( #5-examples )
22+ 5 . [ Batch Format] ( 5-batch-format )
23+ 6 . [ Examples] ( #6-examples )
2324
2425## 1. Introduction
2526
@@ -128,8 +129,6 @@ oneof data {
128129* When the type of the data is binary the value MUST be stored in the ` binary_data ` property.
129130 * ` datacontenttype ` SHOULD be populated with the appropriate media-type.
130131
131-
132-
133132## 4. Transport
134133
135134Transports that support content identification MUST use the following designation:
@@ -138,12 +137,40 @@ Transports that support content identification MUST use the following designatio
138137 application/cloudevents+protobuf
139138```
140139
141- ## 5. Examples
140+ ## 5. Batch Format
141+
142+ Batch format allows for a set of CloudEvents to be represented, no relationship
143+ between those events should be inferred.
144+
145+ Although the _ protobuf batch format_ builds on the _ protobuf format_ it is considered
146+ seperate, that is to say that support of _ protobuf format_ does not indicate support
147+ of the batch representation. The batch format MUST only be used where supported.
148+
149+ ### 5.1 Envelope
150+
151+ The enveloping container is a _ CloudEventBatch_ protobuf message containing a
152+ repeating set of _ CloudEvent_ message(s):
153+
154+ ``` proto
155+ message CloudEventBatch {
156+ repeated CloudEvent events = 1;
157+ }
158+ ```
159+
160+ ### 5.2 Batch Media Type
161+
162+ A compliant protobuf batch representation is identifed using the following media-type
163+
164+ ``` text
165+ application/cloudevents-batch+protobuf
166+ ```
167+
168+ ## 6. Examples
142169
143170The following code-snippets show how proto representations might be constucted
144171assuming the availability of some convenience methods.
145172
146- ### 5 .1 Plain Text event data
173+ ### 6 .1 Plain Text event data
147174
148175``` java
149176public static CloudEvent plainTextExample() {
@@ -169,7 +196,7 @@ public static CloudEvent plainTextExample() {
169196
170197```
171198
172- ### 5 .2 Proto message as event data
199+ ### 6 .2 Proto message as event data
173200
174201Where the event data payload is itself a protobuf message (with its own schema)
175202a protocol buffer idiomatic method can be used to carry the data.
0 commit comments