308 lines
11 KiB
Go
308 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: repository.proto
|
|
|
|
package devsim
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
math "math"
|
|
)
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// 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 RepositoryInfo struct {
|
|
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
|
Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RepositoryInfo) Reset() { *m = RepositoryInfo{} }
|
|
func (m *RepositoryInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*RepositoryInfo) ProtoMessage() {}
|
|
func (*RepositoryInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_10d86afa5a89ec9d, []int{0}
|
|
}
|
|
|
|
func (m *RepositoryInfo) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RepositoryInfo.Unmarshal(m, b)
|
|
}
|
|
func (m *RepositoryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RepositoryInfo.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RepositoryInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RepositoryInfo.Merge(m, src)
|
|
}
|
|
func (m *RepositoryInfo) XXX_Size() int {
|
|
return xxx_messageInfo_RepositoryInfo.Size(m)
|
|
}
|
|
func (m *RepositoryInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RepositoryInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RepositoryInfo proto.InternalMessageInfo
|
|
|
|
func (m *RepositoryInfo) GetUri() string {
|
|
if m != nil {
|
|
return m.Uri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RepositoryInfo) GetVersions() []string {
|
|
if m != nil {
|
|
return m.Versions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RepositoryRequest struct {
|
|
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RepositoryRequest) Reset() { *m = RepositoryRequest{} }
|
|
func (m *RepositoryRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RepositoryRequest) ProtoMessage() {}
|
|
func (*RepositoryRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_10d86afa5a89ec9d, []int{1}
|
|
}
|
|
|
|
func (m *RepositoryRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RepositoryRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RepositoryRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RepositoryRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RepositoryRequest.Merge(m, src)
|
|
}
|
|
func (m *RepositoryRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RepositoryRequest.Size(m)
|
|
}
|
|
func (m *RepositoryRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RepositoryRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RepositoryRequest proto.InternalMessageInfo
|
|
|
|
func (m *RepositoryRequest) GetUri() string {
|
|
if m != nil {
|
|
return m.Uri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RepositoryInfo)(nil), "devsim.RepositoryInfo")
|
|
proto.RegisterType((*RepositoryRequest)(nil), "devsim.RepositoryRequest")
|
|
}
|
|
|
|
// 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
|
|
|
|
// RepositoryServiceClient is the client API for RepositoryService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type RepositoryServiceClient interface {
|
|
Info(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (RepositoryService_InfoClient, error)
|
|
Create(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (*RepositoryInfo, error)
|
|
Remove(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
}
|
|
|
|
type repositoryServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient {
|
|
return &repositoryServiceClient{cc}
|
|
}
|
|
|
|
func (c *repositoryServiceClient) Info(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (RepositoryService_InfoClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_RepositoryService_serviceDesc.Streams[0], "/devsim.RepositoryService/Info", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &repositoryServiceInfoClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type RepositoryService_InfoClient interface {
|
|
Recv() (*RepositoryInfo, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type repositoryServiceInfoClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *repositoryServiceInfoClient) Recv() (*RepositoryInfo, error) {
|
|
m := new(RepositoryInfo)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *repositoryServiceClient) Create(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (*RepositoryInfo, error) {
|
|
out := new(RepositoryInfo)
|
|
err := c.cc.Invoke(ctx, "/devsim.RepositoryService/Create", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *repositoryServiceClient) Remove(ctx context.Context, in *RepositoryRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/devsim.RepositoryService/Remove", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// RepositoryServiceServer is the server API for RepositoryService service.
|
|
type RepositoryServiceServer interface {
|
|
Info(*RepositoryRequest, RepositoryService_InfoServer) error
|
|
Create(context.Context, *RepositoryRequest) (*RepositoryInfo, error)
|
|
Remove(context.Context, *RepositoryRequest) (*Empty, error)
|
|
}
|
|
|
|
func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer) {
|
|
s.RegisterService(&_RepositoryService_serviceDesc, srv)
|
|
}
|
|
|
|
func _RepositoryService_Info_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(RepositoryRequest)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(RepositoryServiceServer).Info(m, &repositoryServiceInfoServer{stream})
|
|
}
|
|
|
|
type RepositoryService_InfoServer interface {
|
|
Send(*RepositoryInfo) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type repositoryServiceInfoServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *repositoryServiceInfoServer) Send(m *RepositoryInfo) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _RepositoryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RepositoryRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RepositoryServiceServer).Create(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/devsim.RepositoryService/Create",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RepositoryServiceServer).Create(ctx, req.(*RepositoryRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RepositoryService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RepositoryRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RepositoryServiceServer).Remove(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/devsim.RepositoryService/Remove",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RepositoryServiceServer).Remove(ctx, req.(*RepositoryRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _RepositoryService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "devsim.RepositoryService",
|
|
HandlerType: (*RepositoryServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Create",
|
|
Handler: _RepositoryService_Create_Handler,
|
|
},
|
|
{
|
|
MethodName: "Remove",
|
|
Handler: _RepositoryService_Remove_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Info",
|
|
Handler: _RepositoryService_Info_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "repository.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("repository.proto", fileDescriptor_10d86afa5a89ec9d) }
|
|
|
|
var fileDescriptor_10d86afa5a89ec9d = []byte{
|
|
// 266 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x28, 0x4a, 0x2d, 0xc8,
|
|
0x2f, 0xce, 0x2c, 0xc9, 0x2f, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0x49,
|
|
0x2d, 0x2b, 0xce, 0xcc, 0x95, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8,
|
|
0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0x86, 0xa8, 0x92, 0xe2,
|
|
0x81, 0xa8, 0x82, 0xf0, 0x94, 0xec, 0xb8, 0xf8, 0x82, 0xe0, 0xe6, 0x78, 0xe6, 0xa5, 0xe5, 0x0b,
|
|
0x09, 0x70, 0x31, 0x97, 0x16, 0x65, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0x98, 0x42,
|
|
0x52, 0x5c, 0x1c, 0x65, 0xa9, 0x45, 0xc5, 0x20, 0x33, 0x24, 0x98, 0x14, 0x98, 0x35, 0x38, 0x83,
|
|
0xe0, 0x7c, 0x25, 0x55, 0x2e, 0x41, 0x84, 0xfe, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x4c,
|
|
0x23, 0x8c, 0xd6, 0x30, 0x21, 0xab, 0x0b, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0xca, 0xe5,
|
|
0x62, 0x01, 0x5b, 0x29, 0xa9, 0x07, 0x75, 0x13, 0x86, 0x51, 0x52, 0x62, 0x98, 0x52, 0x20, 0x2d,
|
|
0x4a, 0x06, 0x4d, 0x97, 0x9f, 0x4c, 0x66, 0xd2, 0x12, 0x12, 0xd0, 0x2f, 0x33, 0xd4, 0x87, 0x87,
|
|
0x44, 0x66, 0x6a, 0x71, 0x94, 0x98, 0x90, 0x08, 0x8a, 0x58, 0xa5, 0x7e, 0x75, 0x69, 0x51, 0x66,
|
|
0xad, 0x01, 0xa3, 0x50, 0x18, 0x17, 0x9b, 0x73, 0x51, 0x6a, 0x62, 0x49, 0x2a, 0x39, 0x16, 0x4a,
|
|
0x82, 0x2d, 0x14, 0x56, 0xe2, 0x43, 0x35, 0xdc, 0x8a, 0x51, 0x4b, 0x28, 0x80, 0x8b, 0x2d, 0x28,
|
|
0x35, 0x37, 0xbf, 0x0c, 0xaf, 0xb9, 0xbc, 0x30, 0x29, 0xd7, 0xdc, 0x82, 0x92, 0x4a, 0x25, 0x19,
|
|
0xb0, 0x71, 0x62, 0x5a, 0x58, 0xdd, 0x9a, 0xc4, 0x06, 0x8e, 0x1c, 0x63, 0x40, 0x00, 0x00, 0x00,
|
|
0xff, 0xff, 0x8e, 0xba, 0x38, 0x9f, 0xe4, 0x01, 0x00, 0x00,
|
|
}
|