1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-05-31 21:59:42 +02:00
2020-12-26 15:17:20 +00:00

181 lines
6.4 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/example/example.proto
/*
Package go_micro_srv_template is a generated protocol buffer package.
It is generated from these files:
proto/example/example.proto
It has these top-level messages:
Message
Request
Response
StreamingRequest
StreamingResponse
Ping
Pong
*/
package go_micro_srv_template
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 Message struct {
Say string `protobuf:"bytes,1,opt,name=say" json:"say,omitempty"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Message) GetSay() string {
if m != nil {
return m.Say
}
return ""
}
type Request struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Request) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type Response struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Response) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
type StreamingRequest struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (m *StreamingRequest) Reset() { *m = StreamingRequest{} }
func (m *StreamingRequest) String() string { return proto.CompactTextString(m) }
func (*StreamingRequest) ProtoMessage() {}
func (*StreamingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *StreamingRequest) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
type StreamingResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (m *StreamingResponse) Reset() { *m = StreamingResponse{} }
func (m *StreamingResponse) String() string { return proto.CompactTextString(m) }
func (*StreamingResponse) ProtoMessage() {}
func (*StreamingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *StreamingResponse) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
type Ping struct {
Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"`
}
func (m *Ping) Reset() { *m = Ping{} }
func (m *Ping) String() string { return proto.CompactTextString(m) }
func (*Ping) ProtoMessage() {}
func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *Ping) GetStroke() int64 {
if m != nil {
return m.Stroke
}
return 0
}
type Pong struct {
Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"`
}
func (m *Pong) Reset() { *m = Pong{} }
func (m *Pong) String() string { return proto.CompactTextString(m) }
func (*Pong) ProtoMessage() {}
func (*Pong) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *Pong) GetStroke() int64 {
if m != nil {
return m.Stroke
}
return 0
}
func init() {
proto.RegisterType((*Message)(nil), "go.micro.srv.template.Message")
proto.RegisterType((*Request)(nil), "go.micro.srv.template.Request")
proto.RegisterType((*Response)(nil), "go.micro.srv.template.Response")
proto.RegisterType((*StreamingRequest)(nil), "go.micro.srv.template.StreamingRequest")
proto.RegisterType((*StreamingResponse)(nil), "go.micro.srv.template.StreamingResponse")
proto.RegisterType((*Ping)(nil), "go.micro.srv.template.Ping")
proto.RegisterType((*Pong)(nil), "go.micro.srv.template.Pong")
}
func init() { proto.RegisterFile("proto/example/example.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 276 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xc4, 0x40,
0x0c, 0x40, 0xb7, 0xee, 0xda, 0xae, 0x39, 0xad, 0x41, 0x45, 0x5a, 0x5d, 0x65, 0x2e, 0xd6, 0xcb,
0xb8, 0xe8, 0x27, 0x88, 0x07, 0x05, 0x41, 0xea, 0x07, 0xc8, 0xb8, 0x84, 0xa1, 0xd8, 0x99, 0xa9,
0xcd, 0xac, 0xe8, 0xd1, 0x3f, 0x97, 0x4e, 0x5b, 0x10, 0xd9, 0xe2, 0xa9, 0x49, 0xdf, 0x4b, 0x48,
0xc2, 0x40, 0x56, 0x37, 0xce, 0xbb, 0x2b, 0xfa, 0x54, 0xa6, 0xae, 0x68, 0xf8, 0xca, 0xf0, 0x17,
0x0f, 0xb5, 0x93, 0xa6, 0x5c, 0x37, 0x4e, 0x72, 0xf3, 0x21, 0x3d, 0x99, 0xba, 0x52, 0x9e, 0x44,
0x06, 0xc9, 0x23, 0x31, 0x2b, 0x4d, 0xb8, 0x80, 0x29, 0xab, 0xaf, 0xe3, 0xe8, 0x3c, 0xca, 0xf7,
0x8a, 0x36, 0x14, 0xa7, 0x90, 0x14, 0xf4, 0xbe, 0x21, 0xf6, 0x88, 0x30, 0xb3, 0xca, 0x50, 0x4f,
0x43, 0x2c, 0x4e, 0x60, 0x5e, 0x10, 0xd7, 0xce, 0x72, 0x28, 0x36, 0xac, 0x87, 0x62, 0xc3, 0x5a,
0xe4, 0xb0, 0x78, 0xf6, 0x0d, 0x29, 0x53, 0x5a, 0x3d, 0x74, 0x39, 0x80, 0xdd, 0xb5, 0xdb, 0x58,
0x1f, 0xbc, 0x69, 0xd1, 0x25, 0xe2, 0x12, 0xf6, 0x7f,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