syntax = "proto3"; package examplecom; message SimpleValue { string first_field = 1; int64 second_field = 2; // The kind of value. oneof kind { // Represents a double value. double number_value = 3; // Represents a string value. string string_value = 6; // Represents a boolean value. bool bool_value = 8; } // The kind of value. oneof another { // Represents a double value. double number2_value = 4; // Represents a string value. string string2_value = 5; // Represents a boolean value. bool bool2_value = 7; } }