blob: f8763a4735eea506eb02e3d20799dd90d90ad5a9 [file] [log] [blame]
Matt Jeanneret9fba8652019-04-02 12:00:17 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/schema.proto
3
4package schema
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 _ "google.golang.org/genproto/googleapis/api/annotations"
12 grpc "google.golang.org/grpc"
13 codes "google.golang.org/grpc/codes"
14 status "google.golang.org/grpc/status"
15 math "math"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
29// Contains the name and content of a *.proto file
30type ProtoFile struct {
31 FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
32 Proto string `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"`
33 Descriptor_ []byte `protobuf:"bytes,3,opt,name=descriptor,proto3" json:"descriptor,omitempty"`
34 XXX_NoUnkeyedLiteral struct{} `json:"-"`
35 XXX_unrecognized []byte `json:"-"`
36 XXX_sizecache int32 `json:"-"`
37}
38
39func (m *ProtoFile) Reset() { *m = ProtoFile{} }
40func (m *ProtoFile) String() string { return proto.CompactTextString(m) }
41func (*ProtoFile) ProtoMessage() {}
42func (*ProtoFile) Descriptor() ([]byte, []int) {
43 return fileDescriptor_9d785a7d5fd3f7a9, []int{0}
44}
45
46func (m *ProtoFile) XXX_Unmarshal(b []byte) error {
47 return xxx_messageInfo_ProtoFile.Unmarshal(m, b)
48}
49func (m *ProtoFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
50 return xxx_messageInfo_ProtoFile.Marshal(b, m, deterministic)
51}
52func (m *ProtoFile) XXX_Merge(src proto.Message) {
53 xxx_messageInfo_ProtoFile.Merge(m, src)
54}
55func (m *ProtoFile) XXX_Size() int {
56 return xxx_messageInfo_ProtoFile.Size(m)
57}
58func (m *ProtoFile) XXX_DiscardUnknown() {
59 xxx_messageInfo_ProtoFile.DiscardUnknown(m)
60}
61
62var xxx_messageInfo_ProtoFile proto.InternalMessageInfo
63
64func (m *ProtoFile) GetFileName() string {
65 if m != nil {
66 return m.FileName
67 }
68 return ""
69}
70
71func (m *ProtoFile) GetProto() string {
72 if m != nil {
73 return m.Proto
74 }
75 return ""
76}
77
78func (m *ProtoFile) GetDescriptor_() []byte {
79 if m != nil {
80 return m.Descriptor_
81 }
82 return nil
83}
84
85// Proto files and compiled descriptors for this interface
86type Schemas struct {
87 // Proto files
88 Protos []*ProtoFile `protobuf:"bytes,1,rep,name=protos,proto3" json:"protos,omitempty"`
89 // Proto file name from which swagger.json shall be generated
90 SwaggerFrom string `protobuf:"bytes,2,opt,name=swagger_from,json=swaggerFrom,proto3" json:"swagger_from,omitempty"`
91 // Proto file name from which yang schemas shall be generated
92 YangFrom string `protobuf:"bytes,3,opt,name=yang_from,json=yangFrom,proto3" json:"yang_from,omitempty"`
93 XXX_NoUnkeyedLiteral struct{} `json:"-"`
94 XXX_unrecognized []byte `json:"-"`
95 XXX_sizecache int32 `json:"-"`
96}
97
98func (m *Schemas) Reset() { *m = Schemas{} }
99func (m *Schemas) String() string { return proto.CompactTextString(m) }
100func (*Schemas) ProtoMessage() {}
101func (*Schemas) Descriptor() ([]byte, []int) {
102 return fileDescriptor_9d785a7d5fd3f7a9, []int{1}
103}
104
105func (m *Schemas) XXX_Unmarshal(b []byte) error {
106 return xxx_messageInfo_Schemas.Unmarshal(m, b)
107}
108func (m *Schemas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
109 return xxx_messageInfo_Schemas.Marshal(b, m, deterministic)
110}
111func (m *Schemas) XXX_Merge(src proto.Message) {
112 xxx_messageInfo_Schemas.Merge(m, src)
113}
114func (m *Schemas) XXX_Size() int {
115 return xxx_messageInfo_Schemas.Size(m)
116}
117func (m *Schemas) XXX_DiscardUnknown() {
118 xxx_messageInfo_Schemas.DiscardUnknown(m)
119}
120
121var xxx_messageInfo_Schemas proto.InternalMessageInfo
122
123func (m *Schemas) GetProtos() []*ProtoFile {
124 if m != nil {
125 return m.Protos
126 }
127 return nil
128}
129
130func (m *Schemas) GetSwaggerFrom() string {
131 if m != nil {
132 return m.SwaggerFrom
133 }
134 return ""
135}
136
137func (m *Schemas) GetYangFrom() string {
138 if m != nil {
139 return m.YangFrom
140 }
141 return ""
142}
143
144func init() {
145 proto.RegisterType((*ProtoFile)(nil), "schema.ProtoFile")
146 proto.RegisterType((*Schemas)(nil), "schema.Schemas")
147}
148
149func init() { proto.RegisterFile("voltha_protos/schema.proto", fileDescriptor_9d785a7d5fd3f7a9) }
150
151var fileDescriptor_9d785a7d5fd3f7a9 = []byte{
152 // 316 bytes of a gzipped FileDescriptorProto
153 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xc1, 0x4a, 0xeb, 0x40,
154 0x14, 0x25, 0x2d, 0xaf, 0x7d, 0x99, 0x56, 0x8a, 0x83, 0x48, 0x48, 0x45, 0x6a, 0x57, 0x15, 0x69,
155 0x02, 0xf5, 0x0f, 0x84, 0xd6, 0x9d, 0x48, 0x0b, 0x2e, 0x5c, 0x58, 0xa6, 0xe9, 0xed, 0x64, 0x20,
156 0x93, 0x1b, 0x26, 0xd3, 0x4a, 0xb7, 0xfe, 0x82, 0x9f, 0xe6, 0x2f, 0xf8, 0x21, 0x32, 0xb9, 0x53,
157 0x71, 0x37, 0xe7, 0x9c, 0x3b, 0xdc, 0x73, 0xce, 0x65, 0xf1, 0x01, 0x0b, 0x9b, 0x8b, 0x75, 0x65,
158 0xd0, 0x62, 0x9d, 0xd6, 0x59, 0x0e, 0x5a, 0x24, 0x0d, 0xe2, 0x1d, 0x42, 0xf1, 0x95, 0x44, 0x94,
159 0x05, 0xa4, 0xa2, 0x52, 0xa9, 0x28, 0x4b, 0xb4, 0xc2, 0x2a, 0x2c, 0x6b, 0x9a, 0x8a, 0x87, 0x5e,
160 0x6d, 0xd0, 0x66, 0xbf, 0x4b, 0x41, 0x57, 0xf6, 0x48, 0xe2, 0xf8, 0x8d, 0x85, 0xcf, 0xee, 0xb1,
161 0x50, 0x05, 0xf0, 0x21, 0x0b, 0x77, 0xaa, 0x80, 0x75, 0x29, 0x34, 0x44, 0xc1, 0x28, 0x98, 0x84,
162 0xcb, 0xff, 0x8e, 0x78, 0x12, 0x1a, 0xf8, 0x05, 0xfb, 0xd7, 0x7c, 0x89, 0x5a, 0x8d, 0x40, 0x80,
163 0x5f, 0x33, 0xb6, 0x85, 0x3a, 0x33, 0xaa, 0xb2, 0x68, 0xa2, 0xf6, 0x28, 0x98, 0xf4, 0x97, 0x7f,
164 0x98, 0xb1, 0x65, 0xdd, 0x55, 0x63, 0xb2, 0xe6, 0xb7, 0xac, 0x43, 0x21, 0xa2, 0x60, 0xd4, 0x9e,
165 0xf4, 0x66, 0xe7, 0x89, 0x0f, 0xf3, 0x6b, 0x60, 0xe9, 0x07, 0xf8, 0x0d, 0xeb, 0xd7, 0xef, 0x42,
166 0x4a, 0x30, 0xeb, 0x9d, 0x41, 0xed, 0x57, 0xf6, 0x3c, 0xb7, 0x30, 0xa8, 0x9d, 0xd7, 0xa3, 0x28,
167 0x25, 0xe9, 0x6d, 0xf2, 0xea, 0x08, 0x27, 0xce, 0x5e, 0xd8, 0x19, 0x6d, 0x5d, 0x81, 0x39, 0xa8,
168 0x0c, 0xf8, 0x9c, 0x85, 0x8f, 0x60, 0x89, 0xe3, 0x97, 0x09, 0x35, 0x92, 0x9c, 0x1a, 0x49, 0xe6,
169 0xae, 0x91, 0x78, 0x70, 0x32, 0xe4, 0x1d, 0x8f, 0x07, 0x1f, 0x5f, 0xdf, 0x9f, 0xad, 0x90, 0x77,
170 0x7d, 0xed, 0x0f, 0xd3, 0xd7, 0x3b, 0xa9, 0x6c, 0xbe, 0xdf, 0x24, 0x19, 0xea, 0x14, 0x2b, 0x28,
171 0x33, 0x34, 0xdb, 0x94, 0x4e, 0x34, 0xf5, 0x27, 0x92, 0xe8, 0xc7, 0x37, 0x14, 0xe7, 0xfe, 0x27,
172 0x00, 0x00, 0xff, 0xff, 0xdc, 0x3c, 0x6a, 0x7d, 0xc4, 0x01, 0x00, 0x00,
173}
174
175// Reference imports to suppress errors if they are not otherwise used.
176var _ context.Context
177var _ grpc.ClientConn
178
179// This is a compile-time assertion to ensure that this generated file
180// is compatible with the grpc package it is being compiled against.
181const _ = grpc.SupportPackageIsVersion4
182
183// SchemaServiceClient is the client API for SchemaService service.
184//
185// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
186type SchemaServiceClient interface {
187 // Return active grpc schemas
188 GetSchema(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Schemas, error)
189}
190
191type schemaServiceClient struct {
192 cc *grpc.ClientConn
193}
194
195func NewSchemaServiceClient(cc *grpc.ClientConn) SchemaServiceClient {
196 return &schemaServiceClient{cc}
197}
198
199func (c *schemaServiceClient) GetSchema(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Schemas, error) {
200 out := new(Schemas)
201 err := c.cc.Invoke(ctx, "/schema.SchemaService/GetSchema", in, out, opts...)
202 if err != nil {
203 return nil, err
204 }
205 return out, nil
206}
207
208// SchemaServiceServer is the server API for SchemaService service.
209type SchemaServiceServer interface {
210 // Return active grpc schemas
211 GetSchema(context.Context, *empty.Empty) (*Schemas, error)
212}
213
214// UnimplementedSchemaServiceServer can be embedded to have forward compatible implementations.
215type UnimplementedSchemaServiceServer struct {
216}
217
218func (*UnimplementedSchemaServiceServer) GetSchema(ctx context.Context, req *empty.Empty) (*Schemas, error) {
219 return nil, status.Errorf(codes.Unimplemented, "method GetSchema not implemented")
220}
221
222func RegisterSchemaServiceServer(s *grpc.Server, srv SchemaServiceServer) {
223 s.RegisterService(&_SchemaService_serviceDesc, srv)
224}
225
226func _SchemaService_GetSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
227 in := new(empty.Empty)
228 if err := dec(in); err != nil {
229 return nil, err
230 }
231 if interceptor == nil {
232 return srv.(SchemaServiceServer).GetSchema(ctx, in)
233 }
234 info := &grpc.UnaryServerInfo{
235 Server: srv,
236 FullMethod: "/schema.SchemaService/GetSchema",
237 }
238 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
239 return srv.(SchemaServiceServer).GetSchema(ctx, req.(*empty.Empty))
240 }
241 return interceptor(ctx, in, info, handler)
242}
243
244var _SchemaService_serviceDesc = grpc.ServiceDesc{
245 ServiceName: "schema.SchemaService",
246 HandlerType: (*SchemaServiceServer)(nil),
247 Methods: []grpc.MethodDesc{
248 {
249 MethodName: "GetSchema",
250 Handler: _SchemaService_GetSchema_Handler,
251 },
252 },
253 Streams: []grpc.StreamDesc{},
254 Metadata: "voltha_protos/schema.proto",
255}