You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Build event data// Common build format for Google Cloud Platform API operations.// Copied from// https://github.com/googleapis/googleapis/blob/master/google/devtools/cloudbuild/v1/cloudbuild.proto.messageBuildEventData {
This is causing the schemas/doc generator to produce not ideal results:
Example Doc Gen Results
Cloud Audit Logs
const{toLogEntryData}=require('@google/events/cloud/audit/v1/LogEntryData');/** * Generic log entry, used as a wrapper for Cloud Audit Logs in events. This is copied from https://github.com/googleapis/googleapis/blob/master/google/logging/v2/log_entry.proto and adapted appropriately. */constdata={// ...};constjsExample=toLogEntryData(data);console.log(jsExample);
Cloud Build
const{toBuildEventData}=require('@google/events/cloud/cloudbuild/v1/BuildEventData');/** * Build event data Common build format for Google Cloud Platform API operations. Copied from https://github.com/googleapis/googleapis/blob/master/google/devtools/cloudbuild/v1/cloudbuild.proto. */constdata={// ...};constjsExample=toBuildEventData(data);console.log(jsExample);
Cloud Firestore
const{toDocumentEventData}=require('@google/events/cloud/firestore/v1/DocumentEventData');/** * The data within all Firestore document events. */constdata={// ...};constjsExample=toDocumentEventData(data);console.log(jsExample);
Cloud Pub/Sub
const{toMessagePublishedData}=require('@google/events/cloud/pubsub/v1/MessagePublishedData');/** * The data received in an event when a message is published to a topic. */constdata={// ...};constjsExample=toMessagePublishedData(data);console.log(jsExample);
const{toStorageObjectData}=require('@google/events/cloud/storage/v1/StorageObjectData');/** * An object within Google Cloud Storage. */constdata={// ...};constjsExample=toStorageObjectData(data);console.log(jsExample);
Google Analytics for Firebase
const{toAnalyticsLogData}=require('@google/events/firebase/analytics/v1/AnalyticsLogData');/** * The data within Firebase Analytics log events. */constdata={// ...};constjsExample=toAnalyticsLogData(data);console.log(jsExample);
Firebase Authentication
const{toAuthEventData}=require('@google/events/firebase/auth/v1/AuthEventData');/** * The data within all Firebase Auth events */constdata={// ...};constjsExample=toAuthEventData(data);console.log(jsExample);
Firebase Realtime Database
const{toReferenceEventData}=require('@google/events/firebase/database/v1/ReferenceEventData');/** * The data within all Firebase Real Time Database reference events. */constdata={// ...};constjsExample=toReferenceEventData(data);console.log(jsExample);
Firebase Remote Config
const{toRemoteConfigEventData}=require('@google/events/firebase/remoteconfig/v1/RemoteConfigEventData');/** * The data within all Firebase Remote Config events. */constdata={// ...};constjsExample=toRemoteConfigEventData(data);console.log(jsExample);
The text was updated successfully, but these errors were encountered:
Yes, it's fine to modify the proto comments. These were just what I put in to start with. Of course, when the protos use internal source control as a source of truth, we'll need to change them there.
I'm unlikely to get to this myself - are you happy to create a PR to make the changes you want?
Expected Behavior
Data proto messages have similar formats and simple descriptions.
Example (good):
https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/pubsub/v1/data.proto#L21-L22
Actual Behavior
Different have different description formats.
Example – Cloud Build
https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/cloudbuild/v1/data.proto#L24-L28
Expected
Actual
This is causing the schemas/doc generator to produce not ideal results:
Example Doc Gen Results
Cloud Audit Logs
Cloud Build
Cloud Firestore
Cloud Pub/Sub
Cloud Scheduler
Cloud Storage
Google Analytics for Firebase
Firebase Authentication
Firebase Realtime Database
Firebase Remote Config
The text was updated successfully, but these errors were encountered: