2 Star 0 Fork 0

MixerJ/pitaya

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
somestruct.pb.go 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
Felipe Cavalcanti 提交于 2019-03-20 03:31 +08:00 . fix tests
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: somestruct.proto
package test
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
type SomeStruct struct {
A int32 `protobuf:"varint,1,opt,name=A" json:"A,omitempty"`
B string `protobuf:"bytes,2,opt,name=B" json:"B,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SomeStruct) Reset() { *m = SomeStruct{} }
func (m *SomeStruct) String() string { return proto.CompactTextString(m) }
func (*SomeStruct) ProtoMessage() {}
func (*SomeStruct) Descriptor() ([]byte, []int) {
return fileDescriptor_somestruct_0b613b601297f11c, []int{0}
}
func (m *SomeStruct) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SomeStruct.Unmarshal(m, b)
}
func (m *SomeStruct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SomeStruct.Marshal(b, m, deterministic)
}
func (dst *SomeStruct) XXX_Merge(src proto.Message) {
xxx_messageInfo_SomeStruct.Merge(dst, src)
}
func (m *SomeStruct) XXX_Size() int {
return xxx_messageInfo_SomeStruct.Size(m)
}
func (m *SomeStruct) XXX_DiscardUnknown() {
xxx_messageInfo_SomeStruct.DiscardUnknown(m)
}
var xxx_messageInfo_SomeStruct proto.InternalMessageInfo
func (m *SomeStruct) GetA() int32 {
if m != nil {
return m.A
}
return 0
}
func (m *SomeStruct) GetB() string {
if m != nil {
return m.B
}
return ""
}
func init() {
proto.RegisterType((*SomeStruct)(nil), "test.SomeStruct")
}
func init() { proto.RegisterFile("somestruct.proto", fileDescriptor_somestruct_0b613b601297f11c) }
var fileDescriptor_somestruct_0b613b601297f11c = []byte{
// 90 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x28, 0xce, 0xcf, 0x4d,
0x2d, 0x2e, 0x29, 0x2a, 0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x49,
0x2d, 0x2e, 0x51, 0xd2, 0xe0, 0xe2, 0x0a, 0xce, 0xcf, 0x4d, 0x0d, 0x06, 0xcb, 0x08, 0xf1, 0x70,
0x31, 0x3a, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x06, 0x31, 0x3a, 0x82, 0x78, 0x4e, 0x12, 0x4c,
0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x8c, 0x4e, 0x49, 0x6c, 0x60, 0x6d, 0xc6, 0x80, 0x00, 0x00, 0x00,
0xff, 0xff, 0x3d, 0x9b, 0x98, 0xe0, 0x4a, 0x00, 0x00, 0x00,
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mixerj/pitaya.git
git@gitee.com:mixerj/pitaya.git
mixerj
pitaya
pitaya
4e7898a663a6

搜索帮助