I am using protobuf-gradle-plugin to generate java class from the proto files.
My proto file looks like
syntax = "proto3";
package com.address;
option java_package = "com.address";
message AddressesMessage {
int32 id = 1;
string address_line_1 = 4;
string address_line_2 = 5;
string city = 7;
string postal_code = 9;
string country = 10;
}
The plugin is generating classes for me but now I want to add some metadata information at field level. Like
syntax = "proto3";
package com.address;
option java_package = "com.address";
message AddressesMessage {
int32 id = 1 [ (meta) = { isfact: false }];
string address_line_1 = 4;
string address_line_2 = 5;
string city = 7;
string postal_code = 9;
string country = 10;
}
Is this possible?