mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2025-12-08 19:26:19 +00:00
137 lines
3.6 KiB
Go
137 lines
3.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: test.proto
|
|
|
|
package example
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// 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 FOO int32
|
|
|
|
const (
|
|
FOO_X FOO = 17
|
|
)
|
|
|
|
var FOO_name = map[int32]string{
|
|
17: "X",
|
|
}
|
|
|
|
var FOO_value = map[string]int32{
|
|
"X": 17,
|
|
}
|
|
|
|
func (x FOO) Enum() *FOO {
|
|
p := new(FOO)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x FOO) String() string {
|
|
return proto.EnumName(FOO_name, int32(x))
|
|
}
|
|
|
|
func (x *FOO) UnmarshalJSON(data []byte) error {
|
|
value, err := proto.UnmarshalJSONEnum(FOO_value, data, "FOO")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = FOO(value)
|
|
return nil
|
|
}
|
|
|
|
func (FOO) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_c161fcfdc0c3ff1e, []int{0}
|
|
}
|
|
|
|
type Test struct {
|
|
Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"`
|
|
Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"`
|
|
Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Test) Reset() { *m = Test{} }
|
|
func (m *Test) String() string { return proto.CompactTextString(m) }
|
|
func (*Test) ProtoMessage() {}
|
|
func (*Test) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_c161fcfdc0c3ff1e, []int{0}
|
|
}
|
|
|
|
func (m *Test) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Test.Unmarshal(m, b)
|
|
}
|
|
func (m *Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Test.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Test) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Test.Merge(m, src)
|
|
}
|
|
func (m *Test) XXX_Size() int {
|
|
return xxx_messageInfo_Test.Size(m)
|
|
}
|
|
func (m *Test) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Test.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Test proto.InternalMessageInfo
|
|
|
|
const Default_Test_Type int32 = 77
|
|
|
|
func (m *Test) GetLabel() string {
|
|
if m != nil && m.Label != nil {
|
|
return *m.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Test) GetType() int32 {
|
|
if m != nil && m.Type != nil {
|
|
return *m.Type
|
|
}
|
|
return Default_Test_Type
|
|
}
|
|
|
|
func (m *Test) GetReps() []int64 {
|
|
if m != nil {
|
|
return m.Reps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("example.FOO", FOO_name, FOO_value)
|
|
proto.RegisterType((*Test)(nil), "example.Test")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("test.proto", fileDescriptor_c161fcfdc0c3ff1e)
|
|
}
|
|
|
|
var fileDescriptor_c161fcfdc0c3ff1e = []byte{
|
|
// 122 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e,
|
|
0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xad, 0x48, 0xcc, 0x2d, 0xc8, 0x49, 0x55,
|
|
0xf2, 0xe0, 0x62, 0x09, 0x49, 0x2d, 0x2e, 0x11, 0x12, 0xe1, 0x62, 0xcd, 0x49, 0x4c, 0x4a, 0xcd,
|
|
0x91, 0x60, 0x54, 0x60, 0xd2, 0xe0, 0x0c, 0x82, 0x70, 0x84, 0xc4, 0xb8, 0x58, 0x4a, 0x2a, 0x0b,
|
|
0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0x58, 0xad, 0x98, 0xcc, 0xcd, 0x83, 0xc0, 0x7c, 0x21, 0x21,
|
|
0x2e, 0x96, 0xa2, 0xd4, 0x82, 0x62, 0x09, 0x66, 0x05, 0x66, 0x0d, 0xe6, 0x20, 0x30, 0x5b, 0x8b,
|
|
0x87, 0x8b, 0xd9, 0xcd, 0xdf, 0x5f, 0x88, 0x95, 0x8b, 0x31, 0x42, 0x40, 0x10, 0x10, 0x00, 0x00,
|
|
0xff, 0xff, 0x71, 0xcd, 0x01, 0xd7, 0x6d, 0x00, 0x00, 0x00,
|
|
}
|