Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubt: Creating timestamp #1792

Open
bulbaasd opened this issue Aug 19, 2022 · 1 comment
Open

Doubt: Creating timestamp #1792

bulbaasd opened this issue Aug 19, 2022 · 1 comment

Comments

@bulbaasd
Copy link

bulbaasd commented Aug 19, 2022

protobuf.js version: 7.0.0

Hi,
I would like to know how to create a message which contains a timestamp field. I followed some issues, but couldn't get it working on my node env.
JS file I am using: https://github.com/protobufjs/protobuf.js/blob/protobufjs-v7.0.0/dist/protobuf.js
Attaching a small proto file for reference.

// awesome.proto
syntax = "proto3";
import "google/protobuf/timestamp.proto";
package awesomepackage;

message AwesomeMessage {
    string awesome_field = 1;
    google.protobuf.Timestamp awesome_time = 2;
}

Appreciate if someone could guide how I could create a payload.
Thanks

@bulbaasd
Copy link
Author

Relates to #1258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant