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