Commit 285445a0 authored by xueqianLu's avatar xueqianLu

add pb.go files.

parent df9859e9
This diff is collapsed.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/base/v1/resource.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The default Shelf resource representation.
type Shelf struct {
// The unique shelf id.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Indicates when the shelf was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Indicates when the shelf was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The unique id of the parent example resource.
ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
// The display name for the shelf.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shelf) Reset() { *m = Shelf{} }
func (m *Shelf) String() string { return proto.CompactTextString(m) }
func (*Shelf) ProtoMessage() {}
func (*Shelf) Descriptor() ([]byte, []int) {
return fileDescriptor_65113dfb5be99422, []int{0}
}
func (m *Shelf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shelf.Unmarshal(m, b)
}
func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shelf.Marshal(b, m, deterministic)
}
func (m *Shelf) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shelf.Merge(m, src)
}
func (m *Shelf) XXX_Size() int {
return xxx_messageInfo_Shelf.Size(m)
}
func (m *Shelf) XXX_DiscardUnknown() {
xxx_messageInfo_Shelf.DiscardUnknown(m)
}
var xxx_messageInfo_Shelf proto.InternalMessageInfo
func (m *Shelf) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Shelf) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Shelf) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Shelf) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
func (m *Shelf) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func init() {
proto.RegisterType((*Shelf)(nil), "meta.base.v1.Shelf")
}
func init() { proto.RegisterFile("meta/base/v1/resource.proto", fileDescriptor_65113dfb5be99422) }
var fileDescriptor_65113dfb5be99422 = []byte{
// 225 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30,
0x10, 0x85, 0x95, 0x40, 0x2b, 0x7a, 0xa9, 0x18, 0x32, 0x59, 0x45, 0x88, 0xc2, 0xd4, 0xc9, 0x56,
0x60, 0x64, 0x63, 0x63, 0x61, 0x28, 0x4c, 0x2c, 0xd1, 0xa5, 0xbe, 0x16, 0x4b, 0x36, 0xb6, 0x6c,
0x27, 0x82, 0xdf, 0xc9, 0x1f, 0x42, 0xb6, 0x5b, 0x56, 0xd6, 0xf7, 0xbe, 0xef, 0xd9, 0x3a, 0xb8,
0x32, 0x14, 0x51, 0x0c, 0x18, 0x48, 0x4c, 0x9d, 0xf0, 0x14, 0xec, 0xe8, 0x77, 0xc4, 0x9d, 0xb7,
0xd1, 0xb6, 0xcb, 0x54, 0xf2, 0x54, 0xf2, 0xa9, 0x5b, 0xdd, 0x1c, 0xac, 0x3d, 0x68, 0x12, 0xb9,
0x1b, 0xc6, 0xbd, 0x88, 0xca, 0x50, 0x88, 0x68, 0x5c, 0xc1, 0xef, 0x7e, 0x2a, 0x98, 0xbd, 0x7e,
0x90, 0xde, 0xb7, 0x97, 0x50, 0x2b, 0xc9, 0xaa, 0x75, 0xb5, 0x59, 0x6c, 0x6b, 0x25, 0xdb, 0x47,
0x68, 0x76, 0x9e, 0x30, 0x52, 0x9f, 0x1c, 0x56, 0xaf, 0xab, 0x4d, 0x73, 0xbf, 0xe2, 0x65, 0x90,
0x9f, 0x06, 0xf9, 0xdb, 0x69, 0x70, 0x0b, 0x05, 0x4f, 0x41, 0x92, 0x47, 0x27, 0xff, 0xe4, 0xb3,
0xff, 0xe5, 0x82, 0x67, 0xf9, 0x1a, 0x80, 0xbe, 0xd0, 0x38, 0x4d, 0xbd, 0x92, 0xec, 0x3c, 0xff,
0x68, 0x71, 0x4c, 0x9e, 0x65, 0x7b, 0x0b, 0x4b, 0xa9, 0x82, 0xd3, 0xf8, 0xdd, 0x7f, 0xa2, 0x21,
0x36, 0xcb, 0x40, 0x73, 0xcc, 0x5e, 0xd0, 0xd0, 0xd3, 0xc5, 0xfb, 0x3c, 0x5d, 0x60, 0xea, 0x86,
0x79, 0x7e, 0xeb, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa8, 0xac, 0x35, 0x96, 0x34, 0x01, 0x00,
0x00,
}
This diff is collapsed.
This diff is collapsed.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/crypter/v1/resource.proto
package crypterv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type CryptType int32
const (
CryptType_CRYPT_TYPE_INVALID CryptType = 0
CryptType_CRYPT_TYPE_SECP256K1 CryptType = 1
)
var CryptType_name = map[int32]string{
0: "CRYPT_TYPE_INVALID",
1: "CRYPT_TYPE_SECP256K1",
}
var CryptType_value = map[string]int32{
"CRYPT_TYPE_INVALID": 0,
"CRYPT_TYPE_SECP256K1": 1,
}
func (x CryptType) String() string {
return proto.EnumName(CryptType_name, int32(x))
}
func (CryptType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_01f1bddfec97ea3e, []int{0}
}
func init() {
proto.RegisterEnum("meta.crypter.v1.CryptType", CryptType_name, CryptType_value)
}
func init() { proto.RegisterFile("meta/crypter/v1/resource.proto", fileDescriptor_01f1bddfec97ea3e) }
var fileDescriptor_01f1bddfec97ea3e = []byte{
// 157 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4d, 0x2d, 0x49,
0xd4, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce,
0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0xc9, 0xeb, 0x41,
0xe5, 0xf5, 0xca, 0x0c, 0xa5, 0xe4, 0xd3, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0xc1, 0xd2, 0x49,
0xa5, 0x69, 0xfa, 0x25, 0x99, 0xb9, 0xa9, 0xc5, 0x25, 0x89, 0xb9, 0x05, 0x10, 0x1d, 0x5a, 0xb6,
0x5c, 0x9c, 0xce, 0x20, 0xe5, 0x21, 0x95, 0x05, 0xa9, 0x42, 0x62, 0x5c, 0x42, 0xce, 0x41, 0x91,
0x01, 0x21, 0xf1, 0x21, 0x91, 0x01, 0xae, 0xf1, 0x9e, 0x7e, 0x61, 0x8e, 0x3e, 0x9e, 0x2e, 0x02,
0x0c, 0x42, 0x12, 0x5c, 0x22, 0x48, 0xe2, 0xc1, 0xae, 0xce, 0x01, 0x46, 0xa6, 0x66, 0xde, 0x86,
0x02, 0x8c, 0x4e, 0xdc, 0x51, 0x9c, 0x50, 0xdb, 0xca, 0x0c, 0x93, 0xd8, 0xc0, 0x46, 0x1a, 0x03,
0x02, 0x00, 0x00, 0xff, 0xff, 0x54, 0x54, 0x92, 0x6c, 0xa6, 0x00, 0x00, 0x00,
}
This diff is collapsed.
This diff is collapsed.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/nebula/v1/resource.proto
package nebulav1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The default Shelf resource representation.
type Shelf struct {
// The unique shelf id.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Indicates when the shelf was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Indicates when the shelf was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The unique id of the parent example resource.
ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
// The display name for the shelf.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shelf) Reset() { *m = Shelf{} }
func (m *Shelf) String() string { return proto.CompactTextString(m) }
func (*Shelf) ProtoMessage() {}
func (*Shelf) Descriptor() ([]byte, []int) {
return fileDescriptor_ff711f70efaef7a0, []int{0}
}
func (m *Shelf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shelf.Unmarshal(m, b)
}
func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shelf.Marshal(b, m, deterministic)
}
func (m *Shelf) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shelf.Merge(m, src)
}
func (m *Shelf) XXX_Size() int {
return xxx_messageInfo_Shelf.Size(m)
}
func (m *Shelf) XXX_DiscardUnknown() {
xxx_messageInfo_Shelf.DiscardUnknown(m)
}
var xxx_messageInfo_Shelf proto.InternalMessageInfo
func (m *Shelf) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Shelf) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Shelf) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Shelf) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
func (m *Shelf) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func init() {
proto.RegisterType((*Shelf)(nil), "meta.nebula.v1.Shelf")
}
func init() { proto.RegisterFile("meta/nebula/v1/resource.proto", fileDescriptor_ff711f70efaef7a0) }
var fileDescriptor_ff711f70efaef7a0 = []byte{
// 227 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30,
0x10, 0x85, 0x95, 0x40, 0x11, 0xbd, 0xa0, 0x0e, 0x99, 0xac, 0x4a, 0x15, 0x85, 0xa9, 0x93, 0xad,
0xc0, 0xc8, 0xc6, 0xc6, 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0x9c, 0xd0, 0x23, 0x3a,
0x01, 0x00, 0x00,
}
This diff is collapsed.
This diff is collapsed.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/p2p/v1/resource.proto
package p2pv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type P2PMsgType int32
const (
P2PMsgType_P2P_MSG_TYPE_INVALID P2PMsgType = 0
P2PMsgType_P2P_MSG_TYPE_PING P2PMsgType = 1
P2PMsgType_P2P_MSG_TYPE_PONG P2PMsgType = 2
)
var P2PMsgType_name = map[int32]string{
0: "P2P_MSG_TYPE_INVALID",
1: "P2P_MSG_TYPE_PING",
2: "P2P_MSG_TYPE_PONG",
}
var P2PMsgType_value = map[string]int32{
"P2P_MSG_TYPE_INVALID": 0,
"P2P_MSG_TYPE_PING": 1,
"P2P_MSG_TYPE_PONG": 2,
}
func (x P2PMsgType) String() string {
return proto.EnumName(P2PMsgType_name, int32(x))
}
func (P2PMsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{0}
}
// shared between all p2p package
type MessageHeader struct {
// client protocol version
ClientVersion string `protobuf:"bytes,1,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
// client type
ClientType int32 `protobuf:"varint,2,opt,name=client_type,json=clientType,proto3" json:"client_type,omitempty"`
// allows requesters to use request data when processing a response
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// package create time.
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// Message type.
MsgType P2PMsgType `protobuf:"varint,6,opt,name=msg_type,json=msgType,proto3,enum=meta.p2p.v1.P2PMsgType" json:"msg_type,omitempty"`
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
NodePubkey []byte `protobuf:"bytes,7,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"`
// signature of full message data.
Sign []byte `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageHeader) Reset() { *m = MessageHeader{} }
func (m *MessageHeader) String() string { return proto.CompactTextString(m) }
func (*MessageHeader) ProtoMessage() {}
func (*MessageHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{0}
}
func (m *MessageHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageHeader.Unmarshal(m, b)
}
func (m *MessageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageHeader.Marshal(b, m, deterministic)
}
func (m *MessageHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageHeader.Merge(m, src)
}
func (m *MessageHeader) XXX_Size() int {
return xxx_messageInfo_MessageHeader.Size(m)
}
func (m *MessageHeader) XXX_DiscardUnknown() {
xxx_messageInfo_MessageHeader.DiscardUnknown(m)
}
var xxx_messageInfo_MessageHeader proto.InternalMessageInfo
func (m *MessageHeader) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
func (m *MessageHeader) GetClientType() int32 {
if m != nil {
return m.ClientType
}
return 0
}
func (m *MessageHeader) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *MessageHeader) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *MessageHeader) GetNodeId() string {
if m != nil {
return m.NodeId
}
return ""
}
func (m *MessageHeader) GetMsgType() P2PMsgType {
if m != nil {
return m.MsgType
}
return P2PMsgType_P2P_MSG_TYPE_INVALID
}
func (m *MessageHeader) GetNodePubkey() []byte {
if m != nil {
return m.NodePubkey
}
return nil
}
func (m *MessageHeader) GetSign() []byte {
if m != nil {
return m.Sign
}
return nil
}
func init() {
proto.RegisterEnum("meta.p2p.v1.P2PMsgType", P2PMsgType_name, P2PMsgType_value)
proto.RegisterType((*MessageHeader)(nil), "meta.p2p.v1.MessageHeader")
}
func init() { proto.RegisterFile("meta/p2p/v1/resource.proto", fileDescriptor_6d4e04ddec946f90) }
var fileDescriptor_6d4e04ddec946f90 = []byte{
// 346 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x41, 0x6b, 0xa3, 0x40,
0x14, 0xc7, 0x57, 0x37, 0x89, 0xd9, 0xe7, 0x26, 0x64, 0x87, 0x5d, 0x32, 0xe4, 0x12, 0x59, 0x58,
0x90, 0x3d, 0x8c, 0x64, 0x7a, 0xec, 0xa9, 0xa5, 0x25, 0x15, 0x9a, 0x54, 0xac, 0x04, 0xda, 0x8b,
0x98, 0xf8, 0x2a, 0xd2, 0xa8, 0x83, 0x63, 0x84, 0x7c, 0xa1, 0x7e, 0xce, 0xe2, 0x4c, 0x43, 0x5b,
0x7a, 0x7b, 0xf3, 0xfb, 0xbf, 0xf9, 0xf3, 0xe3, 0xc1, 0xac, 0xc0, 0x26, 0xf1, 0x04, 0x17, 0x5e,
0xbb, 0xf0, 0x6a, 0x94, 0xd5, 0xa1, 0xde, 0x21, 0x13, 0x75, 0xd5, 0x54, 0xc4, 0xee, 0x32, 0x26,
0xb8, 0x60, 0xed, 0x62, 0x36, 0xcf, 0xaa, 0x2a, 0xdb, 0xa3, 0xa7, 0xa2, 0xed, 0xe1, 0xc9, 0x6b,
0xf2, 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xc5, 0xad, 0x7f, 0x35, 0xf9,
0x46, 0xfe, 0xc0, 0xaf, 0x4f, 0x49, 0xe0, 0xaf, 0x97, 0x13, 0xe3, 0x2b, 0xbe, 0x5b, 0x2f, 0x27,
0xe6, 0xa5, 0xf5, 0xd8, 0x17, 0x5c, 0xb4, 0x8b, 0xed, 0x40, 0x1d, 0xe0, 0xec, 0x35, 0x00, 0x00,
0xff, 0xff, 0xf3, 0x14, 0x59, 0x16, 0xda, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/p2p/v1/service.proto
package p2pv1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/p2p/v1/service.proto", fileDescriptor_97b8545d889c3217) }
var fileDescriptor_97b8545d889c3217 = []byte{
// 196 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0x30, 0x2a, 0xd0, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0x49, 0xe9, 0x15, 0x18, 0x15, 0xe8, 0x95, 0x19,
0x4a, 0x29, 0x21, 0xab, 0x2b, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x89, 0x2f, 0x4a, 0x2d, 0x2e,
0xc8, 0xcf, 0x2b, 0x86, 0x6a, 0x30, 0xfa, 0xcf, 0xc8, 0xc5, 0x15, 0x60, 0x14, 0x10, 0x0c, 0x31,
0x45, 0xc8, 0x9f, 0x8b, 0xc7, 0xa9, 0x28, 0x3f, 0x31, 0xc5, 0x39, 0xb1, 0xb8, 0xc4, 0xb7, 0x38,
0x5d, 0x48, 0x56, 0x0f, 0xc9, 0x40, 0x3d, 0xb8, 0x54, 0x10, 0xc4, 0x30, 0x29, 0x39, 0x5c, 0xd2,
0x10, 0x3b, 0x94, 0x18, 0x84, 0x3c, 0xb9, 0x38, 0x82, 0x53, 0xf3, 0x52, 0x5c, 0x12, 0x4b, 0x12,
0x85, 0x64, 0x50, 0x54, 0xc3, 0x84, 0x61, 0x66, 0xc9, 0xe2, 0x90, 0x85, 0x1b, 0x15, 0xca, 0xc5,
0x13, 0x5c, 0x9a, 0x54, 0x9c, 0x5c, 0x94, 0x99, 0x94, 0x0a, 0x72, 0x9b, 0x02, 0xaa, 0x06, 0x24,
0x29, 0x98, 0x91, 0x8a, 0x78, 0x54, 0xc0, 0x8c, 0x75, 0x62, 0x8f, 0x62, 0x2d, 0x30, 0x2a, 0x28,
0x33, 0x4c, 0x62, 0x03, 0x87, 0x88, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x7b, 0xc3, 0xd9,
0x5f, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// P2PServiceClient is the client API for P2PService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type P2PServiceClient interface {
BroadCastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error)
SendData(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error)
SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error)
}
type p2PServiceClient struct {
cc *grpc.ClientConn
}
func NewP2PServiceClient(cc *grpc.ClientConn) P2PServiceClient {
return &p2PServiceClient{cc}
}
func (c *p2PServiceClient) BroadCastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error) {
out := new(BroadCastResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/BroadCastMsg", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *p2PServiceClient) SendData(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error) {
out := new(SendDataResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/SendData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *p2PServiceClient) SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error) {
out := new(SubscribeMsgResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/SubscribeMsg", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// P2PServiceServer is the server API for P2PService service.
type P2PServiceServer interface {
BroadCastMsg(context.Context, *BroadCastRequest) (*BroadCastResponse, error)
SendData(context.Context, *SendDataRequest) (*SendDataResponse, error)
SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error)
}
// UnimplementedP2PServiceServer can be embedded to have forward compatible implementations.
type UnimplementedP2PServiceServer struct {
}
func (*UnimplementedP2PServiceServer) BroadCastMsg(ctx context.Context, req *BroadCastRequest) (*BroadCastResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BroadCastMsg not implemented")
}
func (*UnimplementedP2PServiceServer) SendData(ctx context.Context, req *SendDataRequest) (*SendDataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendData not implemented")
}
func (*UnimplementedP2PServiceServer) SubscribeMsg(ctx context.Context, req *SubscribeMsgRequest) (*SubscribeMsgResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubscribeMsg not implemented")
}
func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer) {
s.RegisterService(&_P2PService_serviceDesc, srv)
}
func _P2PService_BroadCastMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BroadCastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).BroadCastMsg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/BroadCastMsg",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).BroadCastMsg(ctx, req.(*BroadCastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _P2PService_SendData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).SendData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/SendData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).SendData(ctx, req.(*SendDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _P2PService_SubscribeMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubscribeMsgRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).SubscribeMsg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/SubscribeMsg",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).SubscribeMsg(ctx, req.(*SubscribeMsgRequest))
}
return interceptor(ctx, in, info, handler)
}
var _P2PService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.p2p.v1.P2PService",
HandlerType: (*P2PServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "BroadCastMsg",
Handler: _P2PService_BroadCastMsg_Handler,
},
{
MethodName: "SendData",
Handler: _P2PService_SendData_Handler,
},
{
MethodName: "SubscribeMsg",
Handler: _P2PService_SubscribeMsg_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/p2p/v1/service.proto",
}
This diff is collapsed.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/resource.proto
package ringv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The default Shelf resource representation.
type Shelf struct {
// The unique shelf id.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Indicates when the shelf was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Indicates when the shelf was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The unique id of the parent example resource.
ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
// The display name for the shelf.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shelf) Reset() { *m = Shelf{} }
func (m *Shelf) String() string { return proto.CompactTextString(m) }
func (*Shelf) ProtoMessage() {}
func (*Shelf) Descriptor() ([]byte, []int) {
return fileDescriptor_92ae7458bb171b6e, []int{0}
}
func (m *Shelf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shelf.Unmarshal(m, b)
}
func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shelf.Marshal(b, m, deterministic)
}
func (m *Shelf) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shelf.Merge(m, src)
}
func (m *Shelf) XXX_Size() int {
return xxx_messageInfo_Shelf.Size(m)
}
func (m *Shelf) XXX_DiscardUnknown() {
xxx_messageInfo_Shelf.DiscardUnknown(m)
}
var xxx_messageInfo_Shelf proto.InternalMessageInfo
func (m *Shelf) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Shelf) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Shelf) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Shelf) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
func (m *Shelf) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func init() {
proto.RegisterType((*Shelf)(nil), "meta.ring.v1.Shelf")
}
func init() { proto.RegisterFile("meta/ring/v1/resource.proto", fileDescriptor_92ae7458bb171b6e) }
var fileDescriptor_92ae7458bb171b6e = []byte{
// 226 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0x03, 0x21,
0x18, 0x86, 0xc3, 0x69, 0x1b, 0xfb, 0x5d, 0xe3, 0xc0, 0x44, 0x6a, 0x8c, 0xd5, 0xa9, 0x13, 0xe4,
0x74, 0x74, 0x73, 0x73, 0x71, 0xa8, 0x4e, 0x2e, 0x17, 0x5a, 0xbe, 0x9e, 0x24, 0x50, 0x08, 0xc7,
0x5d, 0xf4, 0x77, 0xfa, 0x87, 0x0c, 0xd0, 0x73, 0xed, 0xfa, 0xbe, 0xcf, 0xf3, 0x42, 0x3e, 0xb8,
0xb1, 0x18, 0xa5, 0x08, 0xfa, 0xd8, 0x89, 0xb1, 0x11, 0x01, 0x7b, 0x37, 0x84, 0x3d, 0x72, 0x1f,
0x5c, 0x74, 0x74, 0x99, 0x4a, 0x9e, 0x4a, 0x3e, 0x36, 0xab, 0xbb, 0xce, 0xb9, 0xce, 0xa0, 0xc8,
0xdd, 0x6e, 0x38, 0x88, 0xa8, 0x2d, 0xf6, 0x51, 0x5a, 0x5f, 0xf0, 0x87, 0x5f, 0x02, 0xb3, 0xf7,
0x2f, 0x34, 0x07, 0x7a, 0x0d, 0x95, 0x56, 0x8c, 0xac, 0xc9, 0x66, 0xb1, 0xad, 0xb4, 0xa2, 0xcf,
0x50, 0xef, 0x03, 0xca, 0x88, 0x6d, 0x72, 0x58, 0xb5, 0x26, 0x9b, 0xfa, 0x71, 0xc5, 0xcb, 0x20,
0x9f, 0x06, 0xf9, 0xc7, 0x34, 0xb8, 0x85, 0x82, 0xa7, 0x20, 0xc9, 0x83, 0x57, 0xff, 0xf2, 0xc5,
0x79, 0xb9, 0xe0, 0x59, 0xbe, 0x05, 0xc0, 0x6f, 0x69, 0xbd, 0xc1, 0x56, 0x2b, 0x76, 0x99, 0x7f,
0xb4, 0x38, 0x25, 0xaf, 0x8a, 0xde, 0xc3, 0x52, 0xe9, 0xde, 0x1b, 0xf9, 0xd3, 0x1e, 0xa5, 0x45,
0x36, 0xcb, 0x40, 0x7d, 0xca, 0xde, 0xa4, 0xc5, 0x97, 0xab, 0xcf, 0x79, 0xba, 0xc0, 0xd8, 0xec,
0xe6, 0xf9, 0xad, 0xa7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x19, 0xcd, 0x1d, 0x34, 0x01,
0x00, 0x00,
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment