Skip to content

Commit 3d9a46d

Browse files
Google APIscopybara-github
authored andcommitted
docs: Update comment in Eventarc Publishing API
PiperOrigin-RevId: 813779868
1 parent 063f9e1 commit 3d9a46d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

google/cloud/eventarc/publishing/v1/cloud_event.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ message CloudEvent {
9090
string text_data = 7 [(google.api.field_behavior) = OPTIONAL];
9191

9292
// Optional. Proto data.
93+
//
94+
// NOTE: The `protoData` field only functions as expected when the payload
95+
// is specifically a `CloudEvent` message type, and can't be used for
96+
// arbitrary protocol buffer messages. For any other protocol buffer type,
97+
// you must serialize your proto message into bytes, and use the
98+
// `binaryData` field instead.
9399
google.protobuf.Any proto_data = 8 [(google.api.field_behavior) = OPTIONAL];
94100
}
95101
}

0 commit comments

Comments
 (0)