blob: 6947ca7eac70d5ac704fe377cf7d5bfa2a1304a5 [file] [log] [blame]
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
syntax = "proto3";
package net.proto2.go.open2opaque.o2o.test3;
message M3 {
bool b = 1;
bytes bytes = 2;
float f32 = 3;
double f64 = 4;
int32 i32 = 5;
int64 i64 = 6;
uint32 ui32 = 7;
uint64 ui64 = 8;
string s = 9;
M3 m = 10;
repeated int32 is = 11;
repeated M3 ms = 12;
map<string, bool> map = 29;
enum Enum {
E_VAL = 0;
}
Enum e = 13;
oneof oneof_field {
string string_oneof = 14;
int64 int_oneof = 15;
M3 msg_oneof = 16;
Enum enum_oneof = 17;
bytes bytes_oneof = 18;
int32 build = 24;
string proto_message = 25;
string reset = 26;
string string = 27;
string descriptor = 28;
}
int32 second_i32 = 30;
optional bool opt_b = 31;
optional bytes opt_bytes = 32;
optional float opt_f32 = 33;
optional double opt_f64 = 34;
optional int32 opt_i32 = 35;
optional int64 opt_i64 = 36;
optional uint32 opt_ui32 = 37;
optional uint64 opt_ui64 = 38;
optional string opt_s = 39;
optional M3 opt_m = 40;
// Repeated fields and maps cannot be optional.
optional Enum opt_e = 41;
}