Skip to content

Commit 3fd5bc0

Browse files
JemDayDoug Davis
authored andcommitted
Amend example code to reflect changes made to context attribute names (#348)
Signed-off-by: Day, Jem <jday@paypal.com>
1 parent cfe0663 commit 3fd5bc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

protobuf-format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ import com.google.protobuf.ByteString;
102102

103103
CloudEventMap event = CloudEventMap.newBuilder()
104104
.putValue(
105-
"eventType",
105+
"type",
106106
CloudEventAny.newBuilder()
107107
.setStringValue("com.example.emitter.event")
108108
.build())
109109
.putValue(
110-
"cloudEventsVersion",
110+
"specversion",
111111
CloudEventAny.newBuilder()
112112
.setStringValue("0.1")
113113
.build())
114114
.putValue(
115-
"eventTime",
115+
"time",
116116
CloudEventAny.newBuilder()
117117
.setStringValue("2018-10-25T00:00:00+00:00")
118118
.build())

0 commit comments

Comments
 (0)