blob: d1924a388bd684b5bc0d6e5ff6d0f2487acb99c1 [file] [log] [blame] [edit]
// 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc v6.32.0
// source: proto3test.proto
//go:build protoopaque
package proto3test_go_proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type M3_Enum int32
const (
M3_E_VAL M3_Enum = 0
)
// Enum value maps for M3_Enum.
var (
M3_Enum_name = map[int32]string{
0: "E_VAL",
}
M3_Enum_value = map[string]int32{
"E_VAL": 0,
}
)
func (x M3_Enum) Enum() *M3_Enum {
p := new(M3_Enum)
*p = x
return p
}
func (x M3_Enum) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (M3_Enum) Descriptor() protoreflect.EnumDescriptor {
return file_proto3test_proto_enumTypes[0].Descriptor()
}
func (M3_Enum) Type() protoreflect.EnumType {
return &file_proto3test_proto_enumTypes[0]
}
func (x M3_Enum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
type M3 struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_B bool `protobuf:"varint,1,opt,name=b,proto3"`
xxx_hidden_Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3"`
xxx_hidden_F32 float32 `protobuf:"fixed32,3,opt,name=f32,proto3"`
xxx_hidden_F64 float64 `protobuf:"fixed64,4,opt,name=f64,proto3"`
xxx_hidden_I32 int32 `protobuf:"varint,5,opt,name=i32,proto3"`
xxx_hidden_I64 int64 `protobuf:"varint,6,opt,name=i64,proto3"`
xxx_hidden_Ui32 uint32 `protobuf:"varint,7,opt,name=ui32,proto3"`
xxx_hidden_Ui64 uint64 `protobuf:"varint,8,opt,name=ui64,proto3"`
xxx_hidden_S string `protobuf:"bytes,9,opt,name=s,proto3"`
xxx_hidden_M *M3 `protobuf:"bytes,10,opt,name=m,proto3"`
xxx_hidden_Is []int32 `protobuf:"varint,11,rep,packed,name=is,proto3"`
xxx_hidden_Ms *[]*M3 `protobuf:"bytes,12,rep,name=ms,proto3"`
xxx_hidden_Map map[string]bool `protobuf:"bytes,29,rep,name=map,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
xxx_hidden_E M3_Enum `protobuf:"varint,13,opt,name=e,proto3,enum=net.proto2.go.open2opaque.o2o.test3.M3_Enum"`
xxx_hidden_OneofField isM3_OneofField `protobuf_oneof:"oneof_field"`
xxx_hidden_SecondI32 int32 `protobuf:"varint,30,opt,name=second_i32,json=secondI32,proto3"`
xxx_hidden_OptB bool `protobuf:"varint,31,opt,name=opt_b,json=optB,proto3,oneof"`
xxx_hidden_OptBytes []byte `protobuf:"bytes,32,opt,name=opt_bytes,json=optBytes,proto3,oneof"`
xxx_hidden_OptF32 float32 `protobuf:"fixed32,33,opt,name=opt_f32,json=optF32,proto3,oneof"`
xxx_hidden_OptF64 float64 `protobuf:"fixed64,34,opt,name=opt_f64,json=optF64,proto3,oneof"`
xxx_hidden_OptI32 int32 `protobuf:"varint,35,opt,name=opt_i32,json=optI32,proto3,oneof"`
xxx_hidden_OptI64 int64 `protobuf:"varint,36,opt,name=opt_i64,json=optI64,proto3,oneof"`
xxx_hidden_OptUi32 uint32 `protobuf:"varint,37,opt,name=opt_ui32,json=optUi32,proto3,oneof"`
xxx_hidden_OptUi64 uint64 `protobuf:"varint,38,opt,name=opt_ui64,json=optUi64,proto3,oneof"`
xxx_hidden_OptS *string `protobuf:"bytes,39,opt,name=opt_s,json=optS,proto3,oneof"`
xxx_hidden_OptM *M3 `protobuf:"bytes,40,opt,name=opt_m,json=optM,proto3,oneof"`
xxx_hidden_OptE M3_Enum `protobuf:"varint,41,opt,name=opt_e,json=optE,proto3,enum=net.proto2.go.open2opaque.o2o.test3.M3_Enum,oneof"`
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M3) Reset() {
*x = M3{}
mi := &file_proto3test_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M3) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M3) ProtoMessage() {}
func (x *M3) ProtoReflect() protoreflect.Message {
mi := &file_proto3test_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *M3) GetB() bool {
if x != nil {
return x.xxx_hidden_B
}
return false
}
func (x *M3) GetBytes() []byte {
if x != nil {
return x.xxx_hidden_Bytes
}
return nil
}
func (x *M3) GetF32() float32 {
if x != nil {
return x.xxx_hidden_F32
}
return 0
}
func (x *M3) GetF64() float64 {
if x != nil {
return x.xxx_hidden_F64
}
return 0
}
func (x *M3) GetI32() int32 {
if x != nil {
return x.xxx_hidden_I32
}
return 0
}
func (x *M3) GetI64() int64 {
if x != nil {
return x.xxx_hidden_I64
}
return 0
}
func (x *M3) GetUi32() uint32 {
if x != nil {
return x.xxx_hidden_Ui32
}
return 0
}
func (x *M3) GetUi64() uint64 {
if x != nil {
return x.xxx_hidden_Ui64
}
return 0
}
func (x *M3) GetS() string {
if x != nil {
return x.xxx_hidden_S
}
return ""
}
func (x *M3) GetM() *M3 {
if x != nil {
return x.xxx_hidden_M
}
return nil
}
func (x *M3) GetIs() []int32 {
if x != nil {
return x.xxx_hidden_Is
}
return nil
}
func (x *M3) GetMs() []*M3 {
if x != nil {
if x.xxx_hidden_Ms != nil {
return *x.xxx_hidden_Ms
}
}
return nil
}
func (x *M3) GetMap() map[string]bool {
if x != nil {
return x.xxx_hidden_Map
}
return nil
}
func (x *M3) GetE() M3_Enum {
if x != nil {
return x.xxx_hidden_E
}
return M3_E_VAL
}
func (x *M3) GetStringOneof() string {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_StringOneof); ok {
return x.StringOneof
}
}
return ""
}
func (x *M3) GetIntOneof() int64 {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_IntOneof); ok {
return x.IntOneof
}
}
return 0
}
func (x *M3) GetMsgOneof() *M3 {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_MsgOneof); ok {
return x.MsgOneof
}
}
return nil
}
func (x *M3) GetEnumOneof() M3_Enum {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_EnumOneof); ok {
return x.EnumOneof
}
}
return M3_E_VAL
}
func (x *M3) GetBytesOneof() []byte {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_BytesOneof); ok {
return x.BytesOneof
}
}
return nil
}
func (x *M3) GetBuild_() int32 {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_Build); ok {
return x.Build
}
}
return 0
}
func (x *M3) GetProtoMessage() string {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_ProtoMessage_); ok {
return x.ProtoMessage_
}
}
return ""
}
func (x *M3) GetReset() string {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_Reset_); ok {
return x.Reset_
}
}
return ""
}
func (x *M3) GetString() string {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_String_); ok {
return x.String_
}
}
return ""
}
func (x *M3) GetDescriptor() string {
if x != nil {
if x, ok := x.xxx_hidden_OneofField.(*m3_Descriptor_); ok {
return x.Descriptor_
}
}
return ""
}
func (x *M3) GetSecondI32() int32 {
if x != nil {
return x.xxx_hidden_SecondI32
}
return 0
}
func (x *M3) GetOptB() bool {
if x != nil {
return x.xxx_hidden_OptB
}
return false
}
func (x *M3) GetOptBytes() []byte {
if x != nil {
return x.xxx_hidden_OptBytes
}
return nil
}
func (x *M3) GetOptF32() float32 {
if x != nil {
return x.xxx_hidden_OptF32
}
return 0
}
func (x *M3) GetOptF64() float64 {
if x != nil {
return x.xxx_hidden_OptF64
}
return 0
}
func (x *M3) GetOptI32() int32 {
if x != nil {
return x.xxx_hidden_OptI32
}
return 0
}
func (x *M3) GetOptI64() int64 {
if x != nil {
return x.xxx_hidden_OptI64
}
return 0
}
func (x *M3) GetOptUi32() uint32 {
if x != nil {
return x.xxx_hidden_OptUi32
}
return 0
}
func (x *M3) GetOptUi64() uint64 {
if x != nil {
return x.xxx_hidden_OptUi64
}
return 0
}
func (x *M3) GetOptS() string {
if x != nil {
if x.xxx_hidden_OptS != nil {
return *x.xxx_hidden_OptS
}
return ""
}
return ""
}
func (x *M3) GetOptM() *M3 {
if x != nil {
return x.xxx_hidden_OptM
}
return nil
}
func (x *M3) GetOptE() M3_Enum {
if x != nil {
if protoimpl.X.Present(&(x.XXX_presence[0]), 26) {
return x.xxx_hidden_OptE
}
}
return M3_E_VAL
}
func (x *M3) SetB(v bool) {
x.xxx_hidden_B = v
}
func (x *M3) SetBytes(v []byte) {
if v == nil {
v = []byte{}
}
x.xxx_hidden_Bytes = v
}
func (x *M3) SetF32(v float32) {
x.xxx_hidden_F32 = v
}
func (x *M3) SetF64(v float64) {
x.xxx_hidden_F64 = v
}
func (x *M3) SetI32(v int32) {
x.xxx_hidden_I32 = v
}
func (x *M3) SetI64(v int64) {
x.xxx_hidden_I64 = v
}
func (x *M3) SetUi32(v uint32) {
x.xxx_hidden_Ui32 = v
}
func (x *M3) SetUi64(v uint64) {
x.xxx_hidden_Ui64 = v
}
func (x *M3) SetS(v string) {
x.xxx_hidden_S = v
}
func (x *M3) SetM(v *M3) {
x.xxx_hidden_M = v
}
func (x *M3) SetIs(v []int32) {
x.xxx_hidden_Is = v
}
func (x *M3) SetMs(v []*M3) {
x.xxx_hidden_Ms = &v
}
func (x *M3) SetMap(v map[string]bool) {
x.xxx_hidden_Map = v
}
func (x *M3) SetE(v M3_Enum) {
x.xxx_hidden_E = v
}
func (x *M3) SetStringOneof(v string) {
x.xxx_hidden_OneofField = &m3_StringOneof{v}
}
func (x *M3) SetIntOneof(v int64) {
x.xxx_hidden_OneofField = &m3_IntOneof{v}
}
func (x *M3) SetMsgOneof(v *M3) {
if v == nil {
x.xxx_hidden_OneofField = nil
return
}
x.xxx_hidden_OneofField = &m3_MsgOneof{v}
}
func (x *M3) SetEnumOneof(v M3_Enum) {
x.xxx_hidden_OneofField = &m3_EnumOneof{v}
}
func (x *M3) SetBytesOneof(v []byte) {
if v == nil {
v = []byte{}
}
x.xxx_hidden_OneofField = &m3_BytesOneof{v}
}
func (x *M3) SetBuild_(v int32) {
x.xxx_hidden_OneofField = &m3_Build{v}
}
func (x *M3) SetProtoMessage(v string) {
x.xxx_hidden_OneofField = &m3_ProtoMessage_{v}
}
func (x *M3) SetReset(v string) {
x.xxx_hidden_OneofField = &m3_Reset_{v}
}
func (x *M3) SetString(v string) {
x.xxx_hidden_OneofField = &m3_String_{v}
}
func (x *M3) SetDescriptor(v string) {
x.xxx_hidden_OneofField = &m3_Descriptor_{v}
}
func (x *M3) SetSecondI32(v int32) {
x.xxx_hidden_SecondI32 = v
}
func (x *M3) SetOptB(v bool) {
x.xxx_hidden_OptB = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 16, 27)
}
func (x *M3) SetOptBytes(v []byte) {
if v == nil {
v = []byte{}
}
x.xxx_hidden_OptBytes = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 17, 27)
}
func (x *M3) SetOptF32(v float32) {
x.xxx_hidden_OptF32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 18, 27)
}
func (x *M3) SetOptF64(v float64) {
x.xxx_hidden_OptF64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 19, 27)
}
func (x *M3) SetOptI32(v int32) {
x.xxx_hidden_OptI32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 20, 27)
}
func (x *M3) SetOptI64(v int64) {
x.xxx_hidden_OptI64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 21, 27)
}
func (x *M3) SetOptUi32(v uint32) {
x.xxx_hidden_OptUi32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 22, 27)
}
func (x *M3) SetOptUi64(v uint64) {
x.xxx_hidden_OptUi64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 23, 27)
}
func (x *M3) SetOptS(v string) {
x.xxx_hidden_OptS = &v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 24, 27)
}
func (x *M3) SetOptM(v *M3) {
x.xxx_hidden_OptM = v
}
func (x *M3) SetOptE(v M3_Enum) {
x.xxx_hidden_OptE = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 26, 27)
}
func (x *M3) HasM() bool {
if x == nil {
return false
}
return x.xxx_hidden_M != nil
}
func (x *M3) HasOneofField() bool {
if x == nil {
return false
}
return x.xxx_hidden_OneofField != nil
}
func (x *M3) HasStringOneof() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_StringOneof)
return ok
}
func (x *M3) HasIntOneof() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_IntOneof)
return ok
}
func (x *M3) HasMsgOneof() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_MsgOneof)
return ok
}
func (x *M3) HasEnumOneof() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_EnumOneof)
return ok
}
func (x *M3) HasBytesOneof() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_BytesOneof)
return ok
}
func (x *M3) HasBuild_() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_Build)
return ok
}
func (x *M3) HasProtoMessage() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_ProtoMessage_)
return ok
}
func (x *M3) HasReset() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_Reset_)
return ok
}
func (x *M3) HasString() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_String_)
return ok
}
func (x *M3) HasDescriptor() bool {
if x == nil {
return false
}
_, ok := x.xxx_hidden_OneofField.(*m3_Descriptor_)
return ok
}
func (x *M3) HasOptB() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 16)
}
func (x *M3) HasOptBytes() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 17)
}
func (x *M3) HasOptF32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 18)
}
func (x *M3) HasOptF64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 19)
}
func (x *M3) HasOptI32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 20)
}
func (x *M3) HasOptI64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 21)
}
func (x *M3) HasOptUi32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 22)
}
func (x *M3) HasOptUi64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 23)
}
func (x *M3) HasOptS() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 24)
}
func (x *M3) HasOptM() bool {
if x == nil {
return false
}
return x.xxx_hidden_OptM != nil
}
func (x *M3) HasOptE() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 26)
}
func (x *M3) ClearM() {
x.xxx_hidden_M = nil
}
func (x *M3) ClearOneofField() {
x.xxx_hidden_OneofField = nil
}
func (x *M3) ClearStringOneof() {
if _, ok := x.xxx_hidden_OneofField.(*m3_StringOneof); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearIntOneof() {
if _, ok := x.xxx_hidden_OneofField.(*m3_IntOneof); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearMsgOneof() {
if _, ok := x.xxx_hidden_OneofField.(*m3_MsgOneof); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearEnumOneof() {
if _, ok := x.xxx_hidden_OneofField.(*m3_EnumOneof); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearBytesOneof() {
if _, ok := x.xxx_hidden_OneofField.(*m3_BytesOneof); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearBuild_() {
if _, ok := x.xxx_hidden_OneofField.(*m3_Build); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearProtoMessage() {
if _, ok := x.xxx_hidden_OneofField.(*m3_ProtoMessage_); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearReset() {
if _, ok := x.xxx_hidden_OneofField.(*m3_Reset_); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearString() {
if _, ok := x.xxx_hidden_OneofField.(*m3_String_); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearDescriptor() {
if _, ok := x.xxx_hidden_OneofField.(*m3_Descriptor_); ok {
x.xxx_hidden_OneofField = nil
}
}
func (x *M3) ClearOptB() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 16)
x.xxx_hidden_OptB = false
}
func (x *M3) ClearOptBytes() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 17)
x.xxx_hidden_OptBytes = nil
}
func (x *M3) ClearOptF32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 18)
x.xxx_hidden_OptF32 = 0
}
func (x *M3) ClearOptF64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 19)
x.xxx_hidden_OptF64 = 0
}
func (x *M3) ClearOptI32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 20)
x.xxx_hidden_OptI32 = 0
}
func (x *M3) ClearOptI64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 21)
x.xxx_hidden_OptI64 = 0
}
func (x *M3) ClearOptUi32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 22)
x.xxx_hidden_OptUi32 = 0
}
func (x *M3) ClearOptUi64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 23)
x.xxx_hidden_OptUi64 = 0
}
func (x *M3) ClearOptS() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 24)
x.xxx_hidden_OptS = nil
}
func (x *M3) ClearOptM() {
x.xxx_hidden_OptM = nil
}
func (x *M3) ClearOptE() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 26)
x.xxx_hidden_OptE = M3_E_VAL
}
const M3_OneofField_not_set_case case_M3_OneofField = 0
const M3_StringOneof_case case_M3_OneofField = 14
const M3_IntOneof_case case_M3_OneofField = 15
const M3_MsgOneof_case case_M3_OneofField = 16
const M3_EnumOneof_case case_M3_OneofField = 17
const M3_BytesOneof_case case_M3_OneofField = 18
const M3_Build_case case_M3_OneofField = 24
const M3_ProtoMessage__case case_M3_OneofField = 25
const M3_Reset__case case_M3_OneofField = 26
const M3_String__case case_M3_OneofField = 27
const M3_Descriptor__case case_M3_OneofField = 28
func (x *M3) WhichOneofField() case_M3_OneofField {
if x == nil {
return M3_OneofField_not_set_case
}
switch x.xxx_hidden_OneofField.(type) {
case *m3_StringOneof:
return M3_StringOneof_case
case *m3_IntOneof:
return M3_IntOneof_case
case *m3_MsgOneof:
return M3_MsgOneof_case
case *m3_EnumOneof:
return M3_EnumOneof_case
case *m3_BytesOneof:
return M3_BytesOneof_case
case *m3_Build:
return M3_Build_case
case *m3_ProtoMessage_:
return M3_ProtoMessage__case
case *m3_Reset_:
return M3_Reset__case
case *m3_String_:
return M3_String__case
case *m3_Descriptor_:
return M3_Descriptor__case
default:
return M3_OneofField_not_set_case
}
}
type M3_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
B bool
Bytes []byte
F32 float32
F64 float64
I32 int32
I64 int64
Ui32 uint32
Ui64 uint64
S string
M *M3
Is []int32
Ms []*M3
Map map[string]bool
E M3_Enum
// Fields of oneof xxx_hidden_OneofField:
StringOneof *string
IntOneof *int64
MsgOneof *M3
EnumOneof *M3_Enum
BytesOneof []byte
Build_ *int32
ProtoMessage *string
Reset *string
String *string
Descriptor *string
// -- end of xxx_hidden_OneofField
SecondI32 int32
OptB *bool
OptBytes []byte
OptF32 *float32
OptF64 *float64
OptI32 *int32
OptI64 *int64
OptUi32 *uint32
OptUi64 *uint64
OptS *string
OptM *M3
// Repeated fields and maps cannot be optional.
OptE *M3_Enum
}
func (b0 M3_builder) Build() *M3 {
m0 := &M3{}
b, x := &b0, m0
_, _ = b, x
x.xxx_hidden_B = b.B
x.xxx_hidden_Bytes = b.Bytes
x.xxx_hidden_F32 = b.F32
x.xxx_hidden_F64 = b.F64
x.xxx_hidden_I32 = b.I32
x.xxx_hidden_I64 = b.I64
x.xxx_hidden_Ui32 = b.Ui32
x.xxx_hidden_Ui64 = b.Ui64
x.xxx_hidden_S = b.S
x.xxx_hidden_M = b.M
x.xxx_hidden_Is = b.Is
x.xxx_hidden_Ms = &b.Ms
x.xxx_hidden_Map = b.Map
x.xxx_hidden_E = b.E
if b.StringOneof != nil {
x.xxx_hidden_OneofField = &m3_StringOneof{*b.StringOneof}
}
if b.IntOneof != nil {
x.xxx_hidden_OneofField = &m3_IntOneof{*b.IntOneof}
}
if b.MsgOneof != nil {
x.xxx_hidden_OneofField = &m3_MsgOneof{b.MsgOneof}
}
if b.EnumOneof != nil {
x.xxx_hidden_OneofField = &m3_EnumOneof{*b.EnumOneof}
}
if b.BytesOneof != nil {
x.xxx_hidden_OneofField = &m3_BytesOneof{b.BytesOneof}
}
if b.Build_ != nil {
x.xxx_hidden_OneofField = &m3_Build{*b.Build_}
}
if b.ProtoMessage != nil {
x.xxx_hidden_OneofField = &m3_ProtoMessage_{*b.ProtoMessage}
}
if b.Reset != nil {
x.xxx_hidden_OneofField = &m3_Reset_{*b.Reset}
}
if b.String != nil {
x.xxx_hidden_OneofField = &m3_String_{*b.String}
}
if b.Descriptor != nil {
x.xxx_hidden_OneofField = &m3_Descriptor_{*b.Descriptor}
}
x.xxx_hidden_SecondI32 = b.SecondI32
if b.OptB != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 16, 27)
x.xxx_hidden_OptB = *b.OptB
}
if b.OptBytes != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 17, 27)
x.xxx_hidden_OptBytes = b.OptBytes
}
if b.OptF32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 18, 27)
x.xxx_hidden_OptF32 = *b.OptF32
}
if b.OptF64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 19, 27)
x.xxx_hidden_OptF64 = *b.OptF64
}
if b.OptI32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 20, 27)
x.xxx_hidden_OptI32 = *b.OptI32
}
if b.OptI64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 21, 27)
x.xxx_hidden_OptI64 = *b.OptI64
}
if b.OptUi32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 22, 27)
x.xxx_hidden_OptUi32 = *b.OptUi32
}
if b.OptUi64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 23, 27)
x.xxx_hidden_OptUi64 = *b.OptUi64
}
if b.OptS != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 24, 27)
x.xxx_hidden_OptS = b.OptS
}
x.xxx_hidden_OptM = b.OptM
if b.OptE != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 26, 27)
x.xxx_hidden_OptE = *b.OptE
}
return m0
}
type case_M3_OneofField protoreflect.FieldNumber
func (x case_M3_OneofField) String() string {
md := file_proto3test_proto_msgTypes[0].Descriptor()
if x == 0 {
return "not set"
}
return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x))
}
type isM3_OneofField interface {
isM3_OneofField()
}
type m3_StringOneof struct {
StringOneof string `protobuf:"bytes,14,opt,name=string_oneof,json=stringOneof,proto3,oneof"`
}
type m3_IntOneof struct {
IntOneof int64 `protobuf:"varint,15,opt,name=int_oneof,json=intOneof,proto3,oneof"`
}
type m3_MsgOneof struct {
MsgOneof *M3 `protobuf:"bytes,16,opt,name=msg_oneof,json=msgOneof,proto3,oneof"`
}
type m3_EnumOneof struct {
EnumOneof M3_Enum `protobuf:"varint,17,opt,name=enum_oneof,json=enumOneof,proto3,enum=net.proto2.go.open2opaque.o2o.test3.M3_Enum,oneof"`
}
type m3_BytesOneof struct {
BytesOneof []byte `protobuf:"bytes,18,opt,name=bytes_oneof,json=bytesOneof,proto3,oneof"`
}
type m3_Build struct {
Build int32 `protobuf:"varint,24,opt,name=build,proto3,oneof"`
}
type m3_ProtoMessage_ struct {
ProtoMessage_ string `protobuf:"bytes,25,opt,name=proto_message,json=protoMessage,proto3,oneof"`
}
type m3_Reset_ struct {
Reset_ string `protobuf:"bytes,26,opt,name=reset,proto3,oneof"`
}
type m3_String_ struct {
String_ string `protobuf:"bytes,27,opt,name=string,proto3,oneof"`
}
type m3_Descriptor_ struct {
Descriptor_ string `protobuf:"bytes,28,opt,name=descriptor,proto3,oneof"`
}
func (*m3_StringOneof) isM3_OneofField() {}
func (*m3_IntOneof) isM3_OneofField() {}
func (*m3_MsgOneof) isM3_OneofField() {}
func (*m3_EnumOneof) isM3_OneofField() {}
func (*m3_BytesOneof) isM3_OneofField() {}
func (*m3_Build) isM3_OneofField() {}
func (*m3_ProtoMessage_) isM3_OneofField() {}
func (*m3_Reset_) isM3_OneofField() {}
func (*m3_String_) isM3_OneofField() {}
func (*m3_Descriptor_) isM3_OneofField() {}
var File_proto3test_proto protoreflect.FileDescriptor
const file_proto3test_proto_rawDesc = "" +
"\n" +
"\x10proto3test.proto\x12#net.proto2.go.open2opaque.o2o.test3\"\xc9\v\n" +
"\x02M3\x12\f\n" +
"\x01b\x18\x01 \x01(\bR\x01b\x12\x14\n" +
"\x05bytes\x18\x02 \x01(\fR\x05bytes\x12\x10\n" +
"\x03f32\x18\x03 \x01(\x02R\x03f32\x12\x10\n" +
"\x03f64\x18\x04 \x01(\x01R\x03f64\x12\x10\n" +
"\x03i32\x18\x05 \x01(\x05R\x03i32\x12\x10\n" +
"\x03i64\x18\x06 \x01(\x03R\x03i64\x12\x12\n" +
"\x04ui32\x18\a \x01(\rR\x04ui32\x12\x12\n" +
"\x04ui64\x18\b \x01(\x04R\x04ui64\x12\f\n" +
"\x01s\x18\t \x01(\tR\x01s\x125\n" +
"\x01m\x18\n" +
" \x01(\v2'.net.proto2.go.open2opaque.o2o.test3.M3R\x01m\x12\x0e\n" +
"\x02is\x18\v \x03(\x05R\x02is\x127\n" +
"\x02ms\x18\f \x03(\v2'.net.proto2.go.open2opaque.o2o.test3.M3R\x02ms\x12B\n" +
"\x03map\x18\x1d \x03(\v20.net.proto2.go.open2opaque.o2o.test3.M3.MapEntryR\x03map\x12:\n" +
"\x01e\x18\r \x01(\x0e2,.net.proto2.go.open2opaque.o2o.test3.M3.EnumR\x01e\x12#\n" +
"\fstring_oneof\x18\x0e \x01(\tH\x00R\vstringOneof\x12\x1d\n" +
"\tint_oneof\x18\x0f \x01(\x03H\x00R\bintOneof\x12F\n" +
"\tmsg_oneof\x18\x10 \x01(\v2'.net.proto2.go.open2opaque.o2o.test3.M3H\x00R\bmsgOneof\x12M\n" +
"\n" +
"enum_oneof\x18\x11 \x01(\x0e2,.net.proto2.go.open2opaque.o2o.test3.M3.EnumH\x00R\tenumOneof\x12!\n" +
"\vbytes_oneof\x18\x12 \x01(\fH\x00R\n" +
"bytesOneof\x12\x16\n" +
"\x05build\x18\x18 \x01(\x05H\x00R\x05build\x12%\n" +
"\rproto_message\x18\x19 \x01(\tH\x00R\fprotoMessage\x12\x16\n" +
"\x05reset\x18\x1a \x01(\tH\x00R\x05reset\x12\x18\n" +
"\x06string\x18\x1b \x01(\tH\x00R\x06string\x12 \n" +
"\n" +
"descriptor\x18\x1c \x01(\tH\x00R\n" +
"descriptor\x12\x1d\n" +
"\n" +
"second_i32\x18\x1e \x01(\x05R\tsecondI32\x12\x18\n" +
"\x05opt_b\x18\x1f \x01(\bH\x01R\x04optB\x88\x01\x01\x12 \n" +
"\topt_bytes\x18 \x01(\fH\x02R\boptBytes\x88\x01\x01\x12\x1c\n" +
"\aopt_f32\x18! \x01(\x02H\x03R\x06optF32\x88\x01\x01\x12\x1c\n" +
"\aopt_f64\x18\" \x01(\x01H\x04R\x06optF64\x88\x01\x01\x12\x1c\n" +
"\aopt_i32\x18# \x01(\x05H\x05R\x06optI32\x88\x01\x01\x12\x1c\n" +
"\aopt_i64\x18$ \x01(\x03H\x06R\x06optI64\x88\x01\x01\x12\x1e\n" +
"\bopt_ui32\x18% \x01(\rH\aR\aoptUi32\x88\x01\x01\x12\x1e\n" +
"\bopt_ui64\x18& \x01(\x04H\bR\aoptUi64\x88\x01\x01\x12\x18\n" +
"\x05opt_s\x18' \x01(\tH\tR\x04optS\x88\x01\x01\x12A\n" +
"\x05opt_m\x18( \x01(\v2'.net.proto2.go.open2opaque.o2o.test3.M3H\n" +
"R\x04optM\x88\x01\x01\x12F\n" +
"\x05opt_e\x18) \x01(\x0e2,.net.proto2.go.open2opaque.o2o.test3.M3.EnumH\vR\x04optE\x88\x01\x01\x1a6\n" +
"\bMapEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"\x11\n" +
"\x04Enum\x12\t\n" +
"\x05E_VAL\x10\x00B\r\n" +
"\voneof_fieldB\b\n" +
"\x06_opt_bB\f\n" +
"\n" +
"_opt_bytesB\n" +
"\n" +
"\b_opt_f32B\n" +
"\n" +
"\b_opt_f64B\n" +
"\n" +
"\b_opt_i32B\n" +
"\n" +
"\b_opt_i64B\v\n" +
"\t_opt_ui32B\v\n" +
"\t_opt_ui64B\b\n" +
"\x06_opt_sB\b\n" +
"\x06_opt_mB\b\n" +
"\x06_opt_eb\x06proto3"
var file_proto3test_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_proto3test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_proto3test_proto_goTypes = []any{
(M3_Enum)(0), // 0: net.proto2.go.open2opaque.o2o.test3.M3.Enum
(*M3)(nil), // 1: net.proto2.go.open2opaque.o2o.test3.M3
nil, // 2: net.proto2.go.open2opaque.o2o.test3.M3.MapEntry
}
var file_proto3test_proto_depIdxs = []int32{
1, // 0: net.proto2.go.open2opaque.o2o.test3.M3.m:type_name -> net.proto2.go.open2opaque.o2o.test3.M3
1, // 1: net.proto2.go.open2opaque.o2o.test3.M3.ms:type_name -> net.proto2.go.open2opaque.o2o.test3.M3
2, // 2: net.proto2.go.open2opaque.o2o.test3.M3.map:type_name -> net.proto2.go.open2opaque.o2o.test3.M3.MapEntry
0, // 3: net.proto2.go.open2opaque.o2o.test3.M3.e:type_name -> net.proto2.go.open2opaque.o2o.test3.M3.Enum
1, // 4: net.proto2.go.open2opaque.o2o.test3.M3.msg_oneof:type_name -> net.proto2.go.open2opaque.o2o.test3.M3
0, // 5: net.proto2.go.open2opaque.o2o.test3.M3.enum_oneof:type_name -> net.proto2.go.open2opaque.o2o.test3.M3.Enum
1, // 6: net.proto2.go.open2opaque.o2o.test3.M3.opt_m:type_name -> net.proto2.go.open2opaque.o2o.test3.M3
0, // 7: net.proto2.go.open2opaque.o2o.test3.M3.opt_e:type_name -> net.proto2.go.open2opaque.o2o.test3.M3.Enum
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_proto3test_proto_init() }
func file_proto3test_proto_init() {
if File_proto3test_proto != nil {
return
}
file_proto3test_proto_msgTypes[0].OneofWrappers = []any{
(*m3_StringOneof)(nil),
(*m3_IntOneof)(nil),
(*m3_MsgOneof)(nil),
(*m3_EnumOneof)(nil),
(*m3_BytesOneof)(nil),
(*m3_Build)(nil),
(*m3_ProtoMessage_)(nil),
(*m3_Reset_)(nil),
(*m3_String_)(nil),
(*m3_Descriptor_)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto3test_proto_rawDesc), len(file_proto3test_proto_rawDesc)),
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_proto3test_proto_goTypes,
DependencyIndexes: file_proto3test_proto_depIdxs,
EnumInfos: file_proto3test_proto_enumTypes,
MessageInfos: file_proto3test_proto_msgTypes,
}.Build()
File_proto3test_proto = out.File
file_proto3test_proto_goTypes = nil
file_proto3test_proto_depIdxs = nil
}