| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: imports/test_a_1/m1.proto |
| |
| package test_a_1 |
| |
| import ( |
| bytes "bytes" |
| gzip "compress/gzip" |
| proto "github.com/golang/protobuf/proto" |
| protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
| protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
| reflect "reflect" |
| ) |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type E1 int32 |
| |
| const ( |
| E1_E1_ZERO E1 = 0 |
| ) |
| |
| func (e E1) Type() protoreflect.EnumType { |
| return xxx_M1_protoFile_enumTypes[0] |
| } |
| func (e E1) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(e) |
| } |
| |
| var E1_name = map[int32]string{ |
| 0: "E1_ZERO", |
| } |
| |
| var E1_value = map[string]int32{ |
| "E1_ZERO": 0, |
| } |
| |
| func (x E1) String() string { |
| return proto.EnumName(E1_name, int32(x)) |
| } |
| |
| func (E1) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_c1091de3fa870a14_gzipped, []int{0} |
| } |
| |
| type M1 struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *M1) ProtoReflect() protoreflect.Message { |
| return xxx_M1_protoFile_messageTypes[0].MessageOf(m) |
| } |
| func (m *M1) Reset() { *m = M1{} } |
| func (m *M1) String() string { return proto.CompactTextString(m) } |
| func (*M1) ProtoMessage() {} |
| func (*M1) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c1091de3fa870a14_gzipped, []int{0} |
| } |
| |
| func (m *M1) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_M1.Unmarshal(m, b) |
| } |
| func (m *M1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_M1.Marshal(b, m, deterministic) |
| } |
| func (m *M1) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_M1.Merge(m, src) |
| } |
| func (m *M1) XXX_Size() int { |
| return xxx_messageInfo_M1.Size(m) |
| } |
| func (m *M1) XXX_DiscardUnknown() { |
| xxx_messageInfo_M1.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_M1 proto.InternalMessageInfo |
| |
| type M1_1 struct { |
| M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *M1_1) ProtoReflect() protoreflect.Message { |
| return xxx_M1_protoFile_messageTypes[1].MessageOf(m) |
| } |
| func (m *M1_1) Reset() { *m = M1_1{} } |
| func (m *M1_1) String() string { return proto.CompactTextString(m) } |
| func (*M1_1) ProtoMessage() {} |
| func (*M1_1) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c1091de3fa870a14_gzipped, []int{1} |
| } |
| |
| func (m *M1_1) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_M1_1.Unmarshal(m, b) |
| } |
| func (m *M1_1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_M1_1.Marshal(b, m, deterministic) |
| } |
| func (m *M1_1) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_M1_1.Merge(m, src) |
| } |
| func (m *M1_1) XXX_Size() int { |
| return xxx_messageInfo_M1_1.Size(m) |
| } |
| func (m *M1_1) XXX_DiscardUnknown() { |
| xxx_messageInfo_M1_1.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_M1_1 proto.InternalMessageInfo |
| |
| func (m *M1_1) GetM1() *M1 { |
| if m != nil { |
| return m.M1 |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterFile("imports/test_a_1/m1.proto", fileDescriptor_c1091de3fa870a14_gzipped) |
| proto.RegisterEnum("test.a.E1", E1_name, E1_value) |
| proto.RegisterType((*M1)(nil), "test.a.M1") |
| proto.RegisterType((*M1_1)(nil), "test.a.M1_1") |
| } |
| |
| var fileDescriptor_c1091de3fa870a14 = []byte{ |
| // 174 bytes of the wire-encoded FileDescriptorProto |
| 0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, |
| 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, |
| 0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x31, 0x22, 0x22, 0x0a, 0x04, 0x4d, 0x31, 0x5f, |
| 0x31, 0x12, 0x1a, 0x0a, 0x02, 0x6d, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, |
| 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x31, 0x52, 0x02, 0x6d, 0x31, 0x2a, 0x11, 0x0a, |
| 0x02, 0x45, 0x31, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x31, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, |
| 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, |
| 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, |
| 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, |
| 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var fileDescriptor_c1091de3fa870a14_gzipped = func() []byte { |
| bb := new(bytes.Buffer) |
| zw, _ := gzip.NewWriterLevel(bb, gzip.NoCompression) |
| zw.Write(fileDescriptor_c1091de3fa870a14) |
| zw.Close() |
| return bb.Bytes() |
| }() |
| |
| const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| |
| var M1_protoFile protoreflect.FileDescriptor |
| |
| var xxx_M1_protoFile_enumTypes [1]protoreflect.EnumType |
| var xxx_M1_protoFile_messageTypes [2]protoimpl.MessageType |
| var xxx_M1_protoFile_goTypes = []interface{}{ |
| (E1)(0), // 0: test.a.E1 |
| (*M1)(nil), // 1: test.a.M1 |
| (*M1_1)(nil), // 2: test.a.M1_1 |
| } |
| var xxx_M1_protoFile_depIdxs = []int32{ |
| 1, // test.a.M1_1.m1:type_name -> test.a.M1 |
| } |
| |
| func init() { |
| var messageTypes [2]protoreflect.MessageType |
| M1_protoFile = protoimpl.FileBuilder{ |
| RawDescriptor: fileDescriptor_c1091de3fa870a14, |
| GoTypes: xxx_M1_protoFile_goTypes, |
| DependencyIndexes: xxx_M1_protoFile_depIdxs, |
| EnumOutputTypes: xxx_M1_protoFile_enumTypes[:], |
| MessageOutputTypes: messageTypes[:], |
| }.Init() |
| messageGoTypes := xxx_M1_protoFile_goTypes[1:][:2] |
| for i, mt := range messageTypes[:] { |
| xxx_M1_protoFile_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| xxx_M1_protoFile_messageTypes[i].PBType = mt |
| } |
| xxx_M1_protoFile_goTypes = nil |
| xxx_M1_protoFile_depIdxs = nil |
| } |