William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/schema.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 4 | package schema |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
| 6 | import ( |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 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" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 12 | grpc "google.golang.org/grpc" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 13 | math "math" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | // Reference imports to suppress errors if they are not otherwise used. |
| 17 | var _ = proto.Marshal |
| 18 | var _ = fmt.Errorf |
| 19 | var _ = math.Inf |
| 20 | |
| 21 | // This is a compile-time assertion to ensure that this generated file |
| 22 | // is compatible with the proto package it is being compiled against. |
| 23 | // A compilation error at this line likely means your copy of the |
| 24 | // proto package needs to be updated. |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 26 | |
| 27 | // Contains the name and content of a *.proto file |
| 28 | type ProtoFile struct { |
| 29 | FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` |
| 30 | Proto string `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"` |
| 31 | Descriptor_ []byte `protobuf:"bytes,3,opt,name=descriptor,proto3" json:"descriptor,omitempty"` |
| 32 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 33 | XXX_unrecognized []byte `json:"-"` |
| 34 | XXX_sizecache int32 `json:"-"` |
| 35 | } |
| 36 | |
| 37 | func (m *ProtoFile) Reset() { *m = ProtoFile{} } |
| 38 | func (m *ProtoFile) String() string { return proto.CompactTextString(m) } |
| 39 | func (*ProtoFile) ProtoMessage() {} |
| 40 | func (*ProtoFile) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 41 | return fileDescriptor_9d785a7d5fd3f7a9, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 42 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 43 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 44 | func (m *ProtoFile) XXX_Unmarshal(b []byte) error { |
| 45 | return xxx_messageInfo_ProtoFile.Unmarshal(m, b) |
| 46 | } |
| 47 | func (m *ProtoFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 48 | return xxx_messageInfo_ProtoFile.Marshal(b, m, deterministic) |
| 49 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 50 | func (m *ProtoFile) XXX_Merge(src proto.Message) { |
| 51 | xxx_messageInfo_ProtoFile.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 52 | } |
| 53 | func (m *ProtoFile) XXX_Size() int { |
| 54 | return xxx_messageInfo_ProtoFile.Size(m) |
| 55 | } |
| 56 | func (m *ProtoFile) XXX_DiscardUnknown() { |
| 57 | xxx_messageInfo_ProtoFile.DiscardUnknown(m) |
| 58 | } |
| 59 | |
| 60 | var xxx_messageInfo_ProtoFile proto.InternalMessageInfo |
| 61 | |
| 62 | func (m *ProtoFile) GetFileName() string { |
| 63 | if m != nil { |
| 64 | return m.FileName |
| 65 | } |
| 66 | return "" |
| 67 | } |
| 68 | |
| 69 | func (m *ProtoFile) GetProto() string { |
| 70 | if m != nil { |
| 71 | return m.Proto |
| 72 | } |
| 73 | return "" |
| 74 | } |
| 75 | |
| 76 | func (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 |
| 84 | type 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 | |
| 96 | func (m *Schemas) Reset() { *m = Schemas{} } |
| 97 | func (m *Schemas) String() string { return proto.CompactTextString(m) } |
| 98 | func (*Schemas) ProtoMessage() {} |
| 99 | func (*Schemas) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 100 | return fileDescriptor_9d785a7d5fd3f7a9, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 101 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 102 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 103 | func (m *Schemas) XXX_Unmarshal(b []byte) error { |
| 104 | return xxx_messageInfo_Schemas.Unmarshal(m, b) |
| 105 | } |
| 106 | func (m *Schemas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 107 | return xxx_messageInfo_Schemas.Marshal(b, m, deterministic) |
| 108 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 109 | func (m *Schemas) XXX_Merge(src proto.Message) { |
| 110 | xxx_messageInfo_Schemas.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 111 | } |
| 112 | func (m *Schemas) XXX_Size() int { |
| 113 | return xxx_messageInfo_Schemas.Size(m) |
| 114 | } |
| 115 | func (m *Schemas) XXX_DiscardUnknown() { |
| 116 | xxx_messageInfo_Schemas.DiscardUnknown(m) |
| 117 | } |
| 118 | |
| 119 | var xxx_messageInfo_Schemas proto.InternalMessageInfo |
| 120 | |
| 121 | func (m *Schemas) GetProtos() []*ProtoFile { |
| 122 | if m != nil { |
| 123 | return m.Protos |
| 124 | } |
| 125 | return nil |
| 126 | } |
| 127 | |
| 128 | func (m *Schemas) GetSwaggerFrom() string { |
| 129 | if m != nil { |
| 130 | return m.SwaggerFrom |
| 131 | } |
| 132 | return "" |
| 133 | } |
| 134 | |
| 135 | func (m *Schemas) GetYangFrom() string { |
| 136 | if m != nil { |
| 137 | return m.YangFrom |
| 138 | } |
| 139 | return "" |
| 140 | } |
| 141 | |
| 142 | func init() { |
| 143 | proto.RegisterType((*ProtoFile)(nil), "schema.ProtoFile") |
| 144 | proto.RegisterType((*Schemas)(nil), "schema.Schemas") |
| 145 | } |
| 146 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 147 | func init() { proto.RegisterFile("voltha_protos/schema.proto", fileDescriptor_9d785a7d5fd3f7a9) } |
| 148 | |
| 149 | var fileDescriptor_9d785a7d5fd3f7a9 = []byte{ |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 150 | // 317 bytes of a gzipped FileDescriptorProto |
| 151 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xc1, 0x4a, 0x03, 0x31, |
| 152 | 0x14, 0x64, 0x5b, 0x6c, 0xdd, 0xb4, 0x52, 0x0c, 0x22, 0xcb, 0x56, 0xa4, 0xf6, 0x54, 0x0f, 0x26, |
| 153 | 0x52, 0xff, 0x40, 0x68, 0xbd, 0x89, 0xb4, 0xe0, 0xc1, 0x83, 0x25, 0xdd, 0xbe, 0xa6, 0x81, 0xcd, |
| 154 | 0xbe, 0x25, 0x9b, 0xae, 0xf4, 0xea, 0x2f, 0xf8, 0x69, 0xfe, 0x82, 0x1f, 0x22, 0xd9, 0xa4, 0xe2, |
| 155 | 0x2d, 0x33, 0x93, 0xc7, 0x9b, 0x99, 0x47, 0xd2, 0x1a, 0x73, 0xbb, 0x13, 0xab, 0xd2, 0xa0, 0xc5, |
| 156 | 0x8a, 0x57, 0xd9, 0x0e, 0xb4, 0x60, 0x0d, 0xa2, 0x1d, 0x8f, 0xd2, 0x2b, 0x89, 0x28, 0x73, 0xe0, |
| 157 | 0xa2, 0x54, 0x5c, 0x14, 0x05, 0x5a, 0x61, 0x15, 0x16, 0x95, 0xff, 0x95, 0x0e, 0x83, 0xda, 0xa0, |
| 158 | 0xf5, 0x7e, 0xcb, 0x41, 0x97, 0xf6, 0xe0, 0xc5, 0xf1, 0x3b, 0x89, 0x5f, 0xdc, 0x63, 0xae, 0x72, |
| 159 | 0xa0, 0x43, 0x12, 0x6f, 0x55, 0x0e, 0xab, 0x42, 0x68, 0x48, 0xa2, 0x51, 0x34, 0x89, 0x17, 0xa7, |
| 160 | 0x8e, 0x78, 0x16, 0x1a, 0xe8, 0x05, 0x39, 0x69, 0x46, 0x92, 0x56, 0x23, 0x78, 0x40, 0xaf, 0x09, |
| 161 | 0xd9, 0x40, 0x95, 0x19, 0x55, 0x5a, 0x34, 0x49, 0x7b, 0x14, 0x4d, 0xfa, 0x8b, 0x7f, 0xcc, 0xd8, |
| 162 | 0x92, 0xee, 0xb2, 0x31, 0x59, 0xd1, 0x5b, 0xd2, 0xf1, 0x21, 0x92, 0x68, 0xd4, 0x9e, 0xf4, 0xa6, |
| 163 | 0xe7, 0x2c, 0x84, 0xf9, 0x33, 0xb0, 0x08, 0x1f, 0xe8, 0x0d, 0xe9, 0x57, 0x1f, 0x42, 0x4a, 0x30, |
| 164 | 0xab, 0xad, 0x41, 0x1d, 0x56, 0xf6, 0x02, 0x37, 0x37, 0xa8, 0x9d, 0xd7, 0x83, 0x28, 0xa4, 0xd7, |
| 165 | 0xdb, 0xde, 0xab, 0x23, 0x9c, 0x38, 0x7d, 0x25, 0x67, 0x7e, 0xeb, 0x12, 0x4c, 0xad, 0x32, 0xa0, |
| 166 | 0x33, 0x12, 0x3f, 0x81, 0xf5, 0x1c, 0xbd, 0x64, 0xbe, 0x11, 0x76, 0x6c, 0x84, 0xcd, 0x5c, 0x23, |
| 167 | 0xe9, 0xe0, 0x68, 0x28, 0x38, 0x1e, 0x0f, 0x3e, 0xbf, 0x7f, 0xbe, 0x5a, 0x31, 0xed, 0x86, 0xda, |
| 168 | 0x1f, 0xef, 0xdf, 0x98, 0x54, 0x76, 0xb7, 0x5f, 0xb3, 0x0c, 0x35, 0xc7, 0x12, 0x8a, 0x0c, 0xcd, |
| 169 | 0x86, 0xfb, 0x13, 0xdd, 0x85, 0x13, 0xd5, 0x53, 0x2e, 0x31, 0x4c, 0xac, 0x7d, 0xa2, 0x87, 0xdf, |
| 170 | 0x00, 0x00, 0x00, 0xff, 0xff, 0x79, 0xcf, 0xdb, 0x33, 0xc7, 0x01, 0x00, 0x00, |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 171 | } |
| 172 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 173 | // Reference imports to suppress errors if they are not otherwise used. |
| 174 | var _ context.Context |
| 175 | var _ grpc.ClientConn |
| 176 | |
| 177 | // This is a compile-time assertion to ensure that this generated file |
| 178 | // is compatible with the grpc package it is being compiled against. |
| 179 | const _ = grpc.SupportPackageIsVersion4 |
| 180 | |
| 181 | // SchemaServiceClient is the client API for SchemaService service. |
| 182 | // |
| 183 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 184 | type SchemaServiceClient interface { |
| 185 | // Return active grpc schemas |
| 186 | GetSchema(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Schemas, error) |
| 187 | } |
| 188 | |
| 189 | type schemaServiceClient struct { |
| 190 | cc *grpc.ClientConn |
| 191 | } |
| 192 | |
| 193 | func NewSchemaServiceClient(cc *grpc.ClientConn) SchemaServiceClient { |
| 194 | return &schemaServiceClient{cc} |
| 195 | } |
| 196 | |
| 197 | func (c *schemaServiceClient) GetSchema(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Schemas, error) { |
| 198 | out := new(Schemas) |
| 199 | err := c.cc.Invoke(ctx, "/schema.SchemaService/GetSchema", in, out, opts...) |
| 200 | if err != nil { |
| 201 | return nil, err |
| 202 | } |
| 203 | return out, nil |
| 204 | } |
| 205 | |
| 206 | // SchemaServiceServer is the server API for SchemaService service. |
| 207 | type SchemaServiceServer interface { |
| 208 | // Return active grpc schemas |
| 209 | GetSchema(context.Context, *empty.Empty) (*Schemas, error) |
| 210 | } |
| 211 | |
| 212 | func RegisterSchemaServiceServer(s *grpc.Server, srv SchemaServiceServer) { |
| 213 | s.RegisterService(&_SchemaService_serviceDesc, srv) |
| 214 | } |
| 215 | |
| 216 | func _SchemaService_GetSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 217 | in := new(empty.Empty) |
| 218 | if err := dec(in); err != nil { |
| 219 | return nil, err |
| 220 | } |
| 221 | if interceptor == nil { |
| 222 | return srv.(SchemaServiceServer).GetSchema(ctx, in) |
| 223 | } |
| 224 | info := &grpc.UnaryServerInfo{ |
| 225 | Server: srv, |
| 226 | FullMethod: "/schema.SchemaService/GetSchema", |
| 227 | } |
| 228 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 229 | return srv.(SchemaServiceServer).GetSchema(ctx, req.(*empty.Empty)) |
| 230 | } |
| 231 | return interceptor(ctx, in, info, handler) |
| 232 | } |
| 233 | |
| 234 | var _SchemaService_serviceDesc = grpc.ServiceDesc{ |
| 235 | ServiceName: "schema.SchemaService", |
| 236 | HandlerType: (*SchemaServiceServer)(nil), |
| 237 | Methods: []grpc.MethodDesc{ |
| 238 | { |
| 239 | MethodName: "GetSchema", |
| 240 | Handler: _SchemaService_GetSchema_Handler, |
| 241 | }, |
| 242 | }, |
| 243 | Streams: []grpc.StreamDesc{}, |
| 244 | Metadata: "voltha_protos/schema.proto", |
| 245 | } |