khenaidoo | 7d3c558 | 2021-08-11 18:09:44 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/core.proto |
| 3 | |
| 4 | package core |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | empty "github.com/golang/protobuf/ptypes/empty" |
| 11 | common "github.com/opencord/voltha-protos/v5/go/common" |
| 12 | inter_container "github.com/opencord/voltha-protos/v5/go/inter_container" |
| 13 | voltha "github.com/opencord/voltha-protos/v5/go/voltha" |
| 14 | grpc "google.golang.org/grpc" |
| 15 | codes "google.golang.org/grpc/codes" |
| 16 | status "google.golang.org/grpc/status" |
| 17 | math "math" |
| 18 | ) |
| 19 | |
| 20 | // Reference imports to suppress errors if they are not otherwise used. |
| 21 | var _ = proto.Marshal |
| 22 | var _ = fmt.Errorf |
| 23 | var _ = math.Inf |
| 24 | |
| 25 | // This is a compile-time assertion to ensure that this generated file |
| 26 | // is compatible with the proto package it is being compiled against. |
| 27 | // A compilation error at this line likely means your copy of the |
| 28 | // proto package needs to be updated. |
| 29 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 30 | |
| 31 | // Transient State for devices |
| 32 | type DeviceTransientState_Types int32 |
| 33 | |
| 34 | const ( |
| 35 | // The transient state of the device is not set |
| 36 | DeviceTransientState_NONE DeviceTransientState_Types = 0 |
| 37 | // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE. |
| 38 | // This state is only used for transitions. |
| 39 | DeviceTransientState_ANY DeviceTransientState_Types = 1 |
| 40 | // The device is in FORCE_DELETING state |
| 41 | DeviceTransientState_FORCE_DELETING DeviceTransientState_Types = 2 |
| 42 | // The device is getting deleted from adapter state |
| 43 | DeviceTransientState_DELETING_FROM_ADAPTER DeviceTransientState_Types = 3 |
| 44 | // The device is deleted from adapter and is getting deleted in core. |
| 45 | DeviceTransientState_DELETING_POST_ADAPTER_RESPONSE DeviceTransientState_Types = 4 |
| 46 | // State to represent that the device deletion is failed |
| 47 | DeviceTransientState_DELETE_FAILED DeviceTransientState_Types = 5 |
| 48 | // State to represent that reconcile is in progress |
| 49 | DeviceTransientState_RECONCILE_IN_PROGRESS DeviceTransientState_Types = 6 |
| 50 | ) |
| 51 | |
| 52 | var DeviceTransientState_Types_name = map[int32]string{ |
| 53 | 0: "NONE", |
| 54 | 1: "ANY", |
| 55 | 2: "FORCE_DELETING", |
| 56 | 3: "DELETING_FROM_ADAPTER", |
| 57 | 4: "DELETING_POST_ADAPTER_RESPONSE", |
| 58 | 5: "DELETE_FAILED", |
| 59 | 6: "RECONCILE_IN_PROGRESS", |
| 60 | } |
| 61 | |
| 62 | var DeviceTransientState_Types_value = map[string]int32{ |
| 63 | "NONE": 0, |
| 64 | "ANY": 1, |
| 65 | "FORCE_DELETING": 2, |
| 66 | "DELETING_FROM_ADAPTER": 3, |
| 67 | "DELETING_POST_ADAPTER_RESPONSE": 4, |
| 68 | "DELETE_FAILED": 5, |
| 69 | "RECONCILE_IN_PROGRESS": 6, |
| 70 | } |
| 71 | |
| 72 | func (x DeviceTransientState_Types) String() string { |
| 73 | return proto.EnumName(DeviceTransientState_Types_name, int32(x)) |
| 74 | } |
| 75 | |
| 76 | func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) { |
| 77 | return fileDescriptor_39634f15fb8a505e, []int{0, 0} |
| 78 | } |
| 79 | |
| 80 | type DeviceTransientState struct { |
| 81 | TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=voltha.DeviceTransientState_Types" json:"transient_state,omitempty"` |
| 82 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 83 | XXX_unrecognized []byte `json:"-"` |
| 84 | XXX_sizecache int32 `json:"-"` |
| 85 | } |
| 86 | |
| 87 | func (m *DeviceTransientState) Reset() { *m = DeviceTransientState{} } |
| 88 | func (m *DeviceTransientState) String() string { return proto.CompactTextString(m) } |
| 89 | func (*DeviceTransientState) ProtoMessage() {} |
| 90 | func (*DeviceTransientState) Descriptor() ([]byte, []int) { |
| 91 | return fileDescriptor_39634f15fb8a505e, []int{0} |
| 92 | } |
| 93 | |
| 94 | func (m *DeviceTransientState) XXX_Unmarshal(b []byte) error { |
| 95 | return xxx_messageInfo_DeviceTransientState.Unmarshal(m, b) |
| 96 | } |
| 97 | func (m *DeviceTransientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 98 | return xxx_messageInfo_DeviceTransientState.Marshal(b, m, deterministic) |
| 99 | } |
| 100 | func (m *DeviceTransientState) XXX_Merge(src proto.Message) { |
| 101 | xxx_messageInfo_DeviceTransientState.Merge(m, src) |
| 102 | } |
| 103 | func (m *DeviceTransientState) XXX_Size() int { |
| 104 | return xxx_messageInfo_DeviceTransientState.Size(m) |
| 105 | } |
| 106 | func (m *DeviceTransientState) XXX_DiscardUnknown() { |
| 107 | xxx_messageInfo_DeviceTransientState.DiscardUnknown(m) |
| 108 | } |
| 109 | |
| 110 | var xxx_messageInfo_DeviceTransientState proto.InternalMessageInfo |
| 111 | |
| 112 | func (m *DeviceTransientState) GetTransientState() DeviceTransientState_Types { |
| 113 | if m != nil { |
| 114 | return m.TransientState |
| 115 | } |
| 116 | return DeviceTransientState_NONE |
| 117 | } |
| 118 | |
| 119 | func init() { |
| 120 | proto.RegisterEnum("voltha.DeviceTransientState_Types", DeviceTransientState_Types_name, DeviceTransientState_Types_value) |
| 121 | proto.RegisterType((*DeviceTransientState)(nil), "voltha.DeviceTransientState") |
| 122 | } |
| 123 | |
| 124 | func init() { proto.RegisterFile("voltha_protos/core.proto", fileDescriptor_39634f15fb8a505e) } |
| 125 | |
| 126 | var fileDescriptor_39634f15fb8a505e = []byte{ |
| 127 | // 771 bytes of a gzipped FileDescriptorProto |
| 128 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x5d, 0x6f, 0xeb, 0x44, |
| 129 | 0x10, 0x25, 0xf7, 0xa3, 0x5c, 0xa6, 0x6d, 0xe2, 0xee, 0x4d, 0xb9, 0x6d, 0x2a, 0x55, 0x28, 0x3c, |
| 130 | 0xc0, 0x43, 0xeb, 0x88, 0x16, 0x2a, 0x44, 0x11, 0xc8, 0xb5, 0x9d, 0x34, 0x22, 0x4d, 0x2c, 0x3b, |
| 131 | 0x08, 0xc1, 0x8b, 0xe5, 0xda, 0x53, 0xc7, 0xc2, 0xf1, 0x46, 0xbb, 0xdb, 0x40, 0x1e, 0xf9, 0x1d, |
| 132 | 0xfc, 0x14, 0xfe, 0x1c, 0xb2, 0xd7, 0x4e, 0xed, 0x34, 0x96, 0x2a, 0xdd, 0xb7, 0x64, 0xce, 0x9c, |
| 133 | 0x33, 0x3b, 0x73, 0x76, 0xbc, 0x70, 0xb4, 0xa4, 0xb1, 0x98, 0x79, 0xee, 0x82, 0x51, 0x41, 0x79, |
| 134 | 0xcf, 0xa7, 0x0c, 0xd5, 0xec, 0x37, 0xd9, 0x91, 0x48, 0xe7, 0x24, 0xa4, 0x34, 0x8c, 0xb1, 0x97, |
| 135 | 0x45, 0xef, 0x1f, 0x1f, 0x7a, 0x38, 0x5f, 0x88, 0x95, 0x4c, 0xea, 0x7c, 0x59, 0xa5, 0x47, 0x89, |
| 136 | 0x40, 0xe6, 0xfa, 0x34, 0x11, 0x5e, 0x94, 0x20, 0xcb, 0x93, 0x3a, 0x9b, 0x35, 0xe6, 0x73, 0x9a, |
| 137 | 0x6c, 0xc7, 0x02, 0x5c, 0x46, 0x3e, 0x6e, 0xc7, 0x66, 0xe8, 0xc5, 0x62, 0x26, 0xb1, 0xee, 0x3f, |
| 138 | 0xaf, 0xa0, 0x6d, 0x64, 0xc9, 0x53, 0xe6, 0x25, 0x3c, 0xc2, 0x44, 0x38, 0xc2, 0x13, 0x48, 0x7e, |
| 139 | 0x81, 0x96, 0x28, 0x22, 0x2e, 0x4f, 0x43, 0x47, 0x8d, 0x2f, 0x1a, 0x5f, 0x37, 0x2f, 0xba, 0xaa, |
| 140 | 0x94, 0x53, 0xb7, 0xd1, 0xd4, 0xe9, 0x6a, 0x81, 0xdc, 0x6e, 0x8a, 0x4a, 0xb4, 0xfb, 0x6f, 0x03, |
| 141 | 0xde, 0x66, 0x08, 0x79, 0x07, 0x6f, 0xc6, 0x93, 0xb1, 0xa9, 0x7c, 0x42, 0x3e, 0x85, 0xd7, 0xda, |
| 142 | 0xf8, 0x77, 0xa5, 0x41, 0x08, 0x34, 0xfb, 0x13, 0x5b, 0x37, 0x5d, 0xc3, 0x1c, 0x99, 0xd3, 0xe1, |
| 143 | 0x78, 0xa0, 0xbc, 0x22, 0xc7, 0x70, 0x58, 0xfc, 0x73, 0xfb, 0xf6, 0xe4, 0xce, 0xd5, 0x0c, 0xcd, |
| 144 | 0x9a, 0x9a, 0xb6, 0xf2, 0x9a, 0x74, 0xe1, 0x74, 0x0d, 0x59, 0x13, 0x67, 0x5a, 0x40, 0xae, 0x6d, |
| 145 | 0x3a, 0xd6, 0x64, 0xec, 0x98, 0xca, 0x1b, 0x72, 0x00, 0xfb, 0x59, 0x8e, 0xe9, 0xf6, 0xb5, 0xe1, |
| 146 | 0xc8, 0x34, 0x94, 0xb7, 0xa9, 0xa2, 0x6d, 0xea, 0x93, 0xb1, 0x3e, 0x1c, 0x99, 0xee, 0x70, 0xec, |
| 147 | 0x5a, 0xf6, 0x64, 0x60, 0x9b, 0x8e, 0xa3, 0xec, 0x5c, 0xfc, 0xb7, 0x0b, 0xbb, 0x3a, 0x65, 0xe8, |
| 148 | 0x20, 0x4b, 0x3b, 0x22, 0x3f, 0x43, 0x6b, 0x80, 0xe2, 0x36, 0x1b, 0x53, 0x7a, 0xfe, 0x47, 0x4e, |
| 149 | 0x3e, 0x57, 0xa5, 0x7b, 0x6a, 0xe1, 0x9e, 0x6a, 0xa6, 0xee, 0x75, 0xda, 0xc5, 0x30, 0x2a, 0xd9, |
| 150 | 0x7d, 0x68, 0xd9, 0x18, 0x46, 0x5c, 0x20, 0xd3, 0x02, 0x6f, 0x21, 0x90, 0x91, 0x93, 0x22, 0x31, |
| 151 | 0x0f, 0x48, 0x9c, 0x79, 0x22, 0xa2, 0x49, 0xa7, 0x46, 0x9d, 0x5c, 0xc1, 0x9e, 0x1c, 0xf2, 0xaf, |
| 152 | 0x8b, 0x20, 0xf5, 0xa4, 0x59, 0x1d, 0x7d, 0x2d, 0xef, 0x12, 0x76, 0x2d, 0xca, 0x84, 0xce, 0xd0, |
| 153 | 0x13, 0x18, 0x90, 0xbd, 0x82, 0x96, 0x06, 0x6b, 0x49, 0x3a, 0x28, 0x29, 0xce, 0x33, 0xc7, 0xf2, |
| 154 | 0x82, 0x1f, 0xca, 0xcc, 0x0c, 0xe8, 0x47, 0xb1, 0x40, 0x56, 0x2b, 0xf2, 0x2d, 0x34, 0x0d, 0x8c, |
| 155 | 0x51, 0xa0, 0x16, 0xc7, 0x99, 0x1a, 0x01, 0x35, 0xbf, 0xa7, 0x43, 0xa3, 0x96, 0xf5, 0x0d, 0xec, |
| 156 | 0x0f, 0x50, 0xc8, 0xa6, 0x52, 0x16, 0x21, 0xe5, 0xba, 0x79, 0xc9, 0x4a, 0x17, 0xe4, 0x0c, 0x5a, |
| 157 | 0xa3, 0x88, 0x97, 0x38, 0xd5, 0x4a, 0xfb, 0xe5, 0xe4, 0xd4, 0x90, 0x03, 0x99, 0x59, 0x6e, 0xee, |
| 158 | 0xb8, 0x3a, 0xcd, 0x97, 0xb4, 0xa7, 0x15, 0xcb, 0x62, 0xdd, 0xe9, 0x34, 0x79, 0x88, 0xc2, 0x5c, |
| 159 | 0xea, 0x60, 0x5d, 0x6e, 0x2e, 0xe3, 0xbc, 0x56, 0xe2, 0x27, 0x78, 0xaf, 0xcf, 0xa2, 0x38, 0x90, |
| 160 | 0x3a, 0x06, 0x0a, 0xf4, 0x53, 0x8f, 0x3e, 0x54, 0x0f, 0x63, 0x44, 0xdc, 0xa7, 0x4b, 0x64, 0xab, |
| 161 | 0xce, 0x86, 0xe7, 0xe4, 0x0a, 0x94, 0x12, 0x9f, 0x8f, 0x28, 0x17, 0x2f, 0x9a, 0xf1, 0x0f, 0xd0, |
| 162 | 0x2e, 0xf3, 0xd6, 0x85, 0x5f, 0xc2, 0xfd, 0x0a, 0x3e, 0x5b, 0xfb, 0x53, 0x21, 0x6c, 0x1e, 0xee, |
| 163 | 0x1a, 0x9a, 0x03, 0x14, 0xa5, 0x3a, 0x4f, 0x43, 0x2e, 0x05, 0xf3, 0x21, 0x6f, 0x92, 0xd5, 0x6c, |
| 164 | 0xed, 0xca, 0x87, 0xac, 0xd4, 0x6a, 0x55, 0xd3, 0x39, 0xf9, 0x1e, 0xf6, 0x1c, 0x4c, 0x02, 0xcb, |
| 165 | 0xf3, 0xff, 0x44, 0x31, 0x4c, 0x88, 0xb2, 0x36, 0x21, 0x8f, 0xd4, 0xf6, 0x73, 0x03, 0x44, 0x8a, |
| 166 | 0xd8, 0xe8, 0x71, 0x9a, 0xe4, 0x26, 0xb6, 0xab, 0x05, 0x24, 0x56, 0xab, 0xf1, 0x23, 0xb4, 0xd6, |
| 167 | 0x4b, 0xf1, 0xec, 0x16, 0x14, 0x40, 0x2d, 0xfb, 0x1a, 0x0e, 0x6d, 0xf4, 0x69, 0xe2, 0x47, 0x31, |
| 168 | 0xd6, 0x76, 0x5c, 0x47, 0xbe, 0x83, 0xd3, 0xea, 0xa0, 0x7e, 0x8b, 0xc4, 0xcc, 0x62, 0xf4, 0xef, |
| 169 | 0x95, 0x16, 0x04, 0x0c, 0x39, 0x7f, 0xfa, 0xda, 0x48, 0x5c, 0x2d, 0x83, 0xcf, 0xe6, 0x7e, 0x0e, |
| 170 | 0xef, 0x06, 0x28, 0xe4, 0xa2, 0x6c, 0x5b, 0xbc, 0x8d, 0x5d, 0xba, 0xcd, 0x2f, 0x30, 0xc3, 0xe4, |
| 171 | 0x23, 0xb7, 0xc9, 0x80, 0xf7, 0x92, 0x3c, 0x9c, 0x7b, 0x21, 0x1a, 0xf4, 0xaf, 0x24, 0xa6, 0x5e, |
| 172 | 0x40, 0x0e, 0x0b, 0xa5, 0x4a, 0xb8, 0x4e, 0xe5, 0xe6, 0x16, 0x8e, 0x28, 0x0b, 0x55, 0xba, 0xc0, |
| 173 | 0xc4, 0xa7, 0x2c, 0x28, 0xc8, 0xe9, 0x0b, 0xfc, 0xc7, 0x59, 0x18, 0x89, 0xd9, 0xe3, 0x7d, 0x3a, |
| 174 | 0xd3, 0x5e, 0x91, 0xd0, 0x93, 0x09, 0xe7, 0xf9, 0x6b, 0xb8, 0xfc, 0xae, 0x17, 0xd2, 0xec, 0xbd, |
| 175 | 0xbe, 0xdf, 0xc9, 0x42, 0x97, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x60, 0x7e, 0xd5, 0xfd, 0xcc, |
| 176 | 0x07, 0x00, 0x00, |
| 177 | } |
| 178 | |
| 179 | // Reference imports to suppress errors if they are not otherwise used. |
| 180 | var _ context.Context |
| 181 | var _ grpc.ClientConn |
| 182 | |
| 183 | // This is a compile-time assertion to ensure that this generated file |
| 184 | // is compatible with the grpc package it is being compiled against. |
| 185 | const _ = grpc.SupportPackageIsVersion4 |
| 186 | |
| 187 | // CoreServiceClient is the client API for CoreService service. |
| 188 | // |
| 189 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 190 | type CoreServiceClient interface { |
| 191 | // in coreProxy interface |
| 192 | GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) |
| 193 | RegisterAdapter(ctx context.Context, in *inter_container.AdapterRegistration, opts ...grpc.CallOption) (*empty.Empty, error) |
| 194 | DeviceUpdate(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| 195 | PortCreated(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) |
| 196 | PortsStateUpdate(ctx context.Context, in *inter_container.PortStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) |
| 197 | DeleteAllPorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) |
| 198 | GetDevicePort(ctx context.Context, in *inter_container.PortFilter, opts ...grpc.CallOption) (*voltha.Port, error) |
| 199 | ListDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Ports, error) |
| 200 | DeviceStateUpdate(ctx context.Context, in *inter_container.DeviceStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) |
| 201 | DevicePMConfigUpdate(ctx context.Context, in *voltha.PmConfigs, opts ...grpc.CallOption) (*empty.Empty, error) |
| 202 | ChildDeviceDetected(ctx context.Context, in *inter_container.DeviceDiscovery, opts ...grpc.CallOption) (*voltha.Device, error) |
| 203 | ChildDevicesLost(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) |
| 204 | ChildDevicesDetected(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) |
| 205 | GetDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Device, error) |
| 206 | GetChildDevice(ctx context.Context, in *inter_container.ChildDeviceFilter, opts ...grpc.CallOption) (*voltha.Device, error) |
| 207 | GetChildDevices(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Devices, error) |
| 208 | SendPacketIn(ctx context.Context, in *inter_container.PacketIn, opts ...grpc.CallOption) (*empty.Empty, error) |
| 209 | DeviceReasonUpdate(ctx context.Context, in *inter_container.DeviceReason, opts ...grpc.CallOption) (*empty.Empty, error) |
| 210 | PortStateUpdate(ctx context.Context, in *inter_container.PortState, opts ...grpc.CallOption) (*empty.Empty, error) |
| 211 | // Additional API found in the Core - unused? |
| 212 | ReconcileChildDevices(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) |
| 213 | GetChildDeviceWithProxyAddress(ctx context.Context, in *voltha.Device_ProxyAddress, opts ...grpc.CallOption) (*voltha.Device, error) |
| 214 | GetPorts(ctx context.Context, in *inter_container.PortFilter, opts ...grpc.CallOption) (*voltha.Ports, error) |
| 215 | ChildrenStateUpdate(ctx context.Context, in *inter_container.DeviceStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) |
| 216 | UpdateImageDownload(ctx context.Context, in *voltha.ImageDownload, opts ...grpc.CallOption) (*empty.Empty, error) |
| 217 | } |
| 218 | |
| 219 | type coreServiceClient struct { |
| 220 | cc *grpc.ClientConn |
| 221 | } |
| 222 | |
| 223 | func NewCoreServiceClient(cc *grpc.ClientConn) CoreServiceClient { |
| 224 | return &coreServiceClient{cc} |
| 225 | } |
| 226 | |
| 227 | func (c *coreServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| 228 | out := new(voltha.HealthStatus) |
| 229 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetHealthStatus", in, out, opts...) |
| 230 | if err != nil { |
| 231 | return nil, err |
| 232 | } |
| 233 | return out, nil |
| 234 | } |
| 235 | |
| 236 | func (c *coreServiceClient) RegisterAdapter(ctx context.Context, in *inter_container.AdapterRegistration, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 237 | out := new(empty.Empty) |
| 238 | err := c.cc.Invoke(ctx, "/voltha.CoreService/RegisterAdapter", in, out, opts...) |
| 239 | if err != nil { |
| 240 | return nil, err |
| 241 | } |
| 242 | return out, nil |
| 243 | } |
| 244 | |
| 245 | func (c *coreServiceClient) DeviceUpdate(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 246 | out := new(empty.Empty) |
| 247 | err := c.cc.Invoke(ctx, "/voltha.CoreService/DeviceUpdate", in, out, opts...) |
| 248 | if err != nil { |
| 249 | return nil, err |
| 250 | } |
| 251 | return out, nil |
| 252 | } |
| 253 | |
| 254 | func (c *coreServiceClient) PortCreated(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 255 | out := new(empty.Empty) |
| 256 | err := c.cc.Invoke(ctx, "/voltha.CoreService/PortCreated", in, out, opts...) |
| 257 | if err != nil { |
| 258 | return nil, err |
| 259 | } |
| 260 | return out, nil |
| 261 | } |
| 262 | |
| 263 | func (c *coreServiceClient) PortsStateUpdate(ctx context.Context, in *inter_container.PortStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 264 | out := new(empty.Empty) |
| 265 | err := c.cc.Invoke(ctx, "/voltha.CoreService/PortsStateUpdate", in, out, opts...) |
| 266 | if err != nil { |
| 267 | return nil, err |
| 268 | } |
| 269 | return out, nil |
| 270 | } |
| 271 | |
| 272 | func (c *coreServiceClient) DeleteAllPorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 273 | out := new(empty.Empty) |
| 274 | err := c.cc.Invoke(ctx, "/voltha.CoreService/DeleteAllPorts", in, out, opts...) |
| 275 | if err != nil { |
| 276 | return nil, err |
| 277 | } |
| 278 | return out, nil |
| 279 | } |
| 280 | |
| 281 | func (c *coreServiceClient) GetDevicePort(ctx context.Context, in *inter_container.PortFilter, opts ...grpc.CallOption) (*voltha.Port, error) { |
| 282 | out := new(voltha.Port) |
| 283 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetDevicePort", in, out, opts...) |
| 284 | if err != nil { |
| 285 | return nil, err |
| 286 | } |
| 287 | return out, nil |
| 288 | } |
| 289 | |
| 290 | func (c *coreServiceClient) ListDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Ports, error) { |
| 291 | out := new(voltha.Ports) |
| 292 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ListDevicePorts", in, out, opts...) |
| 293 | if err != nil { |
| 294 | return nil, err |
| 295 | } |
| 296 | return out, nil |
| 297 | } |
| 298 | |
| 299 | func (c *coreServiceClient) DeviceStateUpdate(ctx context.Context, in *inter_container.DeviceStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 300 | out := new(empty.Empty) |
| 301 | err := c.cc.Invoke(ctx, "/voltha.CoreService/DeviceStateUpdate", in, out, opts...) |
| 302 | if err != nil { |
| 303 | return nil, err |
| 304 | } |
| 305 | return out, nil |
| 306 | } |
| 307 | |
| 308 | func (c *coreServiceClient) DevicePMConfigUpdate(ctx context.Context, in *voltha.PmConfigs, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 309 | out := new(empty.Empty) |
| 310 | err := c.cc.Invoke(ctx, "/voltha.CoreService/DevicePMConfigUpdate", in, out, opts...) |
| 311 | if err != nil { |
| 312 | return nil, err |
| 313 | } |
| 314 | return out, nil |
| 315 | } |
| 316 | |
| 317 | func (c *coreServiceClient) ChildDeviceDetected(ctx context.Context, in *inter_container.DeviceDiscovery, opts ...grpc.CallOption) (*voltha.Device, error) { |
| 318 | out := new(voltha.Device) |
| 319 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ChildDeviceDetected", in, out, opts...) |
| 320 | if err != nil { |
| 321 | return nil, err |
| 322 | } |
| 323 | return out, nil |
| 324 | } |
| 325 | |
| 326 | func (c *coreServiceClient) ChildDevicesLost(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 327 | out := new(empty.Empty) |
| 328 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ChildDevicesLost", in, out, opts...) |
| 329 | if err != nil { |
| 330 | return nil, err |
| 331 | } |
| 332 | return out, nil |
| 333 | } |
| 334 | |
| 335 | func (c *coreServiceClient) ChildDevicesDetected(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 336 | out := new(empty.Empty) |
| 337 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ChildDevicesDetected", in, out, opts...) |
| 338 | if err != nil { |
| 339 | return nil, err |
| 340 | } |
| 341 | return out, nil |
| 342 | } |
| 343 | |
| 344 | func (c *coreServiceClient) GetDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Device, error) { |
| 345 | out := new(voltha.Device) |
| 346 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetDevice", in, out, opts...) |
| 347 | if err != nil { |
| 348 | return nil, err |
| 349 | } |
| 350 | return out, nil |
| 351 | } |
| 352 | |
| 353 | func (c *coreServiceClient) GetChildDevice(ctx context.Context, in *inter_container.ChildDeviceFilter, opts ...grpc.CallOption) (*voltha.Device, error) { |
| 354 | out := new(voltha.Device) |
| 355 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetChildDevice", in, out, opts...) |
| 356 | if err != nil { |
| 357 | return nil, err |
| 358 | } |
| 359 | return out, nil |
| 360 | } |
| 361 | |
| 362 | func (c *coreServiceClient) GetChildDevices(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.Devices, error) { |
| 363 | out := new(voltha.Devices) |
| 364 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetChildDevices", in, out, opts...) |
| 365 | if err != nil { |
| 366 | return nil, err |
| 367 | } |
| 368 | return out, nil |
| 369 | } |
| 370 | |
| 371 | func (c *coreServiceClient) SendPacketIn(ctx context.Context, in *inter_container.PacketIn, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 372 | out := new(empty.Empty) |
| 373 | err := c.cc.Invoke(ctx, "/voltha.CoreService/SendPacketIn", in, out, opts...) |
| 374 | if err != nil { |
| 375 | return nil, err |
| 376 | } |
| 377 | return out, nil |
| 378 | } |
| 379 | |
| 380 | func (c *coreServiceClient) DeviceReasonUpdate(ctx context.Context, in *inter_container.DeviceReason, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 381 | out := new(empty.Empty) |
| 382 | err := c.cc.Invoke(ctx, "/voltha.CoreService/DeviceReasonUpdate", in, out, opts...) |
| 383 | if err != nil { |
| 384 | return nil, err |
| 385 | } |
| 386 | return out, nil |
| 387 | } |
| 388 | |
| 389 | func (c *coreServiceClient) PortStateUpdate(ctx context.Context, in *inter_container.PortState, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 390 | out := new(empty.Empty) |
| 391 | err := c.cc.Invoke(ctx, "/voltha.CoreService/PortStateUpdate", in, out, opts...) |
| 392 | if err != nil { |
| 393 | return nil, err |
| 394 | } |
| 395 | return out, nil |
| 396 | } |
| 397 | |
| 398 | func (c *coreServiceClient) ReconcileChildDevices(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 399 | out := new(empty.Empty) |
| 400 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ReconcileChildDevices", in, out, opts...) |
| 401 | if err != nil { |
| 402 | return nil, err |
| 403 | } |
| 404 | return out, nil |
| 405 | } |
| 406 | |
| 407 | func (c *coreServiceClient) GetChildDeviceWithProxyAddress(ctx context.Context, in *voltha.Device_ProxyAddress, opts ...grpc.CallOption) (*voltha.Device, error) { |
| 408 | out := new(voltha.Device) |
| 409 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetChildDeviceWithProxyAddress", in, out, opts...) |
| 410 | if err != nil { |
| 411 | return nil, err |
| 412 | } |
| 413 | return out, nil |
| 414 | } |
| 415 | |
| 416 | func (c *coreServiceClient) GetPorts(ctx context.Context, in *inter_container.PortFilter, opts ...grpc.CallOption) (*voltha.Ports, error) { |
| 417 | out := new(voltha.Ports) |
| 418 | err := c.cc.Invoke(ctx, "/voltha.CoreService/GetPorts", in, out, opts...) |
| 419 | if err != nil { |
| 420 | return nil, err |
| 421 | } |
| 422 | return out, nil |
| 423 | } |
| 424 | |
| 425 | func (c *coreServiceClient) ChildrenStateUpdate(ctx context.Context, in *inter_container.DeviceStateFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 426 | out := new(empty.Empty) |
| 427 | err := c.cc.Invoke(ctx, "/voltha.CoreService/ChildrenStateUpdate", in, out, opts...) |
| 428 | if err != nil { |
| 429 | return nil, err |
| 430 | } |
| 431 | return out, nil |
| 432 | } |
| 433 | |
| 434 | func (c *coreServiceClient) UpdateImageDownload(ctx context.Context, in *voltha.ImageDownload, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 435 | out := new(empty.Empty) |
| 436 | err := c.cc.Invoke(ctx, "/voltha.CoreService/UpdateImageDownload", in, out, opts...) |
| 437 | if err != nil { |
| 438 | return nil, err |
| 439 | } |
| 440 | return out, nil |
| 441 | } |
| 442 | |
| 443 | // CoreServiceServer is the server API for CoreService service. |
| 444 | type CoreServiceServer interface { |
| 445 | // in coreProxy interface |
| 446 | GetHealthStatus(context.Context, *empty.Empty) (*voltha.HealthStatus, error) |
| 447 | RegisterAdapter(context.Context, *inter_container.AdapterRegistration) (*empty.Empty, error) |
| 448 | DeviceUpdate(context.Context, *voltha.Device) (*empty.Empty, error) |
| 449 | PortCreated(context.Context, *voltha.Port) (*empty.Empty, error) |
| 450 | PortsStateUpdate(context.Context, *inter_container.PortStateFilter) (*empty.Empty, error) |
| 451 | DeleteAllPorts(context.Context, *common.ID) (*empty.Empty, error) |
| 452 | GetDevicePort(context.Context, *inter_container.PortFilter) (*voltha.Port, error) |
| 453 | ListDevicePorts(context.Context, *common.ID) (*voltha.Ports, error) |
| 454 | DeviceStateUpdate(context.Context, *inter_container.DeviceStateFilter) (*empty.Empty, error) |
| 455 | DevicePMConfigUpdate(context.Context, *voltha.PmConfigs) (*empty.Empty, error) |
| 456 | ChildDeviceDetected(context.Context, *inter_container.DeviceDiscovery) (*voltha.Device, error) |
| 457 | ChildDevicesLost(context.Context, *common.ID) (*empty.Empty, error) |
| 458 | ChildDevicesDetected(context.Context, *common.ID) (*empty.Empty, error) |
| 459 | GetDevice(context.Context, *common.ID) (*voltha.Device, error) |
| 460 | GetChildDevice(context.Context, *inter_container.ChildDeviceFilter) (*voltha.Device, error) |
| 461 | GetChildDevices(context.Context, *common.ID) (*voltha.Devices, error) |
| 462 | SendPacketIn(context.Context, *inter_container.PacketIn) (*empty.Empty, error) |
| 463 | DeviceReasonUpdate(context.Context, *inter_container.DeviceReason) (*empty.Empty, error) |
| 464 | PortStateUpdate(context.Context, *inter_container.PortState) (*empty.Empty, error) |
| 465 | // Additional API found in the Core - unused? |
| 466 | ReconcileChildDevices(context.Context, *common.ID) (*empty.Empty, error) |
| 467 | GetChildDeviceWithProxyAddress(context.Context, *voltha.Device_ProxyAddress) (*voltha.Device, error) |
| 468 | GetPorts(context.Context, *inter_container.PortFilter) (*voltha.Ports, error) |
| 469 | ChildrenStateUpdate(context.Context, *inter_container.DeviceStateFilter) (*empty.Empty, error) |
| 470 | UpdateImageDownload(context.Context, *voltha.ImageDownload) (*empty.Empty, error) |
| 471 | } |
| 472 | |
| 473 | // UnimplementedCoreServiceServer can be embedded to have forward compatible implementations. |
| 474 | type UnimplementedCoreServiceServer struct { |
| 475 | } |
| 476 | |
| 477 | func (*UnimplementedCoreServiceServer) GetHealthStatus(ctx context.Context, req *empty.Empty) (*voltha.HealthStatus, error) { |
| 478 | return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| 479 | } |
| 480 | func (*UnimplementedCoreServiceServer) RegisterAdapter(ctx context.Context, req *inter_container.AdapterRegistration) (*empty.Empty, error) { |
| 481 | return nil, status.Errorf(codes.Unimplemented, "method RegisterAdapter not implemented") |
| 482 | } |
| 483 | func (*UnimplementedCoreServiceServer) DeviceUpdate(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| 484 | return nil, status.Errorf(codes.Unimplemented, "method DeviceUpdate not implemented") |
| 485 | } |
| 486 | func (*UnimplementedCoreServiceServer) PortCreated(ctx context.Context, req *voltha.Port) (*empty.Empty, error) { |
| 487 | return nil, status.Errorf(codes.Unimplemented, "method PortCreated not implemented") |
| 488 | } |
| 489 | func (*UnimplementedCoreServiceServer) PortsStateUpdate(ctx context.Context, req *inter_container.PortStateFilter) (*empty.Empty, error) { |
| 490 | return nil, status.Errorf(codes.Unimplemented, "method PortsStateUpdate not implemented") |
| 491 | } |
| 492 | func (*UnimplementedCoreServiceServer) DeleteAllPorts(ctx context.Context, req *common.ID) (*empty.Empty, error) { |
| 493 | return nil, status.Errorf(codes.Unimplemented, "method DeleteAllPorts not implemented") |
| 494 | } |
| 495 | func (*UnimplementedCoreServiceServer) GetDevicePort(ctx context.Context, req *inter_container.PortFilter) (*voltha.Port, error) { |
| 496 | return nil, status.Errorf(codes.Unimplemented, "method GetDevicePort not implemented") |
| 497 | } |
| 498 | func (*UnimplementedCoreServiceServer) ListDevicePorts(ctx context.Context, req *common.ID) (*voltha.Ports, error) { |
| 499 | return nil, status.Errorf(codes.Unimplemented, "method ListDevicePorts not implemented") |
| 500 | } |
| 501 | func (*UnimplementedCoreServiceServer) DeviceStateUpdate(ctx context.Context, req *inter_container.DeviceStateFilter) (*empty.Empty, error) { |
| 502 | return nil, status.Errorf(codes.Unimplemented, "method DeviceStateUpdate not implemented") |
| 503 | } |
| 504 | func (*UnimplementedCoreServiceServer) DevicePMConfigUpdate(ctx context.Context, req *voltha.PmConfigs) (*empty.Empty, error) { |
| 505 | return nil, status.Errorf(codes.Unimplemented, "method DevicePMConfigUpdate not implemented") |
| 506 | } |
| 507 | func (*UnimplementedCoreServiceServer) ChildDeviceDetected(ctx context.Context, req *inter_container.DeviceDiscovery) (*voltha.Device, error) { |
| 508 | return nil, status.Errorf(codes.Unimplemented, "method ChildDeviceDetected not implemented") |
| 509 | } |
| 510 | func (*UnimplementedCoreServiceServer) ChildDevicesLost(ctx context.Context, req *common.ID) (*empty.Empty, error) { |
| 511 | return nil, status.Errorf(codes.Unimplemented, "method ChildDevicesLost not implemented") |
| 512 | } |
| 513 | func (*UnimplementedCoreServiceServer) ChildDevicesDetected(ctx context.Context, req *common.ID) (*empty.Empty, error) { |
| 514 | return nil, status.Errorf(codes.Unimplemented, "method ChildDevicesDetected not implemented") |
| 515 | } |
| 516 | func (*UnimplementedCoreServiceServer) GetDevice(ctx context.Context, req *common.ID) (*voltha.Device, error) { |
| 517 | return nil, status.Errorf(codes.Unimplemented, "method GetDevice not implemented") |
| 518 | } |
| 519 | func (*UnimplementedCoreServiceServer) GetChildDevice(ctx context.Context, req *inter_container.ChildDeviceFilter) (*voltha.Device, error) { |
| 520 | return nil, status.Errorf(codes.Unimplemented, "method GetChildDevice not implemented") |
| 521 | } |
| 522 | func (*UnimplementedCoreServiceServer) GetChildDevices(ctx context.Context, req *common.ID) (*voltha.Devices, error) { |
| 523 | return nil, status.Errorf(codes.Unimplemented, "method GetChildDevices not implemented") |
| 524 | } |
| 525 | func (*UnimplementedCoreServiceServer) SendPacketIn(ctx context.Context, req *inter_container.PacketIn) (*empty.Empty, error) { |
| 526 | return nil, status.Errorf(codes.Unimplemented, "method SendPacketIn not implemented") |
| 527 | } |
| 528 | func (*UnimplementedCoreServiceServer) DeviceReasonUpdate(ctx context.Context, req *inter_container.DeviceReason) (*empty.Empty, error) { |
| 529 | return nil, status.Errorf(codes.Unimplemented, "method DeviceReasonUpdate not implemented") |
| 530 | } |
| 531 | func (*UnimplementedCoreServiceServer) PortStateUpdate(ctx context.Context, req *inter_container.PortState) (*empty.Empty, error) { |
| 532 | return nil, status.Errorf(codes.Unimplemented, "method PortStateUpdate not implemented") |
| 533 | } |
| 534 | func (*UnimplementedCoreServiceServer) ReconcileChildDevices(ctx context.Context, req *common.ID) (*empty.Empty, error) { |
| 535 | return nil, status.Errorf(codes.Unimplemented, "method ReconcileChildDevices not implemented") |
| 536 | } |
| 537 | func (*UnimplementedCoreServiceServer) GetChildDeviceWithProxyAddress(ctx context.Context, req *voltha.Device_ProxyAddress) (*voltha.Device, error) { |
| 538 | return nil, status.Errorf(codes.Unimplemented, "method GetChildDeviceWithProxyAddress not implemented") |
| 539 | } |
| 540 | func (*UnimplementedCoreServiceServer) GetPorts(ctx context.Context, req *inter_container.PortFilter) (*voltha.Ports, error) { |
| 541 | return nil, status.Errorf(codes.Unimplemented, "method GetPorts not implemented") |
| 542 | } |
| 543 | func (*UnimplementedCoreServiceServer) ChildrenStateUpdate(ctx context.Context, req *inter_container.DeviceStateFilter) (*empty.Empty, error) { |
| 544 | return nil, status.Errorf(codes.Unimplemented, "method ChildrenStateUpdate not implemented") |
| 545 | } |
| 546 | func (*UnimplementedCoreServiceServer) UpdateImageDownload(ctx context.Context, req *voltha.ImageDownload) (*empty.Empty, error) { |
| 547 | return nil, status.Errorf(codes.Unimplemented, "method UpdateImageDownload not implemented") |
| 548 | } |
| 549 | |
| 550 | func RegisterCoreServiceServer(s *grpc.Server, srv CoreServiceServer) { |
| 551 | s.RegisterService(&_CoreService_serviceDesc, srv) |
| 552 | } |
| 553 | |
| 554 | func _CoreService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 555 | in := new(empty.Empty) |
| 556 | if err := dec(in); err != nil { |
| 557 | return nil, err |
| 558 | } |
| 559 | if interceptor == nil { |
| 560 | return srv.(CoreServiceServer).GetHealthStatus(ctx, in) |
| 561 | } |
| 562 | info := &grpc.UnaryServerInfo{ |
| 563 | Server: srv, |
| 564 | FullMethod: "/voltha.CoreService/GetHealthStatus", |
| 565 | } |
| 566 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 567 | return srv.(CoreServiceServer).GetHealthStatus(ctx, req.(*empty.Empty)) |
| 568 | } |
| 569 | return interceptor(ctx, in, info, handler) |
| 570 | } |
| 571 | |
| 572 | func _CoreService_RegisterAdapter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 573 | in := new(inter_container.AdapterRegistration) |
| 574 | if err := dec(in); err != nil { |
| 575 | return nil, err |
| 576 | } |
| 577 | if interceptor == nil { |
| 578 | return srv.(CoreServiceServer).RegisterAdapter(ctx, in) |
| 579 | } |
| 580 | info := &grpc.UnaryServerInfo{ |
| 581 | Server: srv, |
| 582 | FullMethod: "/voltha.CoreService/RegisterAdapter", |
| 583 | } |
| 584 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 585 | return srv.(CoreServiceServer).RegisterAdapter(ctx, req.(*inter_container.AdapterRegistration)) |
| 586 | } |
| 587 | return interceptor(ctx, in, info, handler) |
| 588 | } |
| 589 | |
| 590 | func _CoreService_DeviceUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 591 | in := new(voltha.Device) |
| 592 | if err := dec(in); err != nil { |
| 593 | return nil, err |
| 594 | } |
| 595 | if interceptor == nil { |
| 596 | return srv.(CoreServiceServer).DeviceUpdate(ctx, in) |
| 597 | } |
| 598 | info := &grpc.UnaryServerInfo{ |
| 599 | Server: srv, |
| 600 | FullMethod: "/voltha.CoreService/DeviceUpdate", |
| 601 | } |
| 602 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 603 | return srv.(CoreServiceServer).DeviceUpdate(ctx, req.(*voltha.Device)) |
| 604 | } |
| 605 | return interceptor(ctx, in, info, handler) |
| 606 | } |
| 607 | |
| 608 | func _CoreService_PortCreated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 609 | in := new(voltha.Port) |
| 610 | if err := dec(in); err != nil { |
| 611 | return nil, err |
| 612 | } |
| 613 | if interceptor == nil { |
| 614 | return srv.(CoreServiceServer).PortCreated(ctx, in) |
| 615 | } |
| 616 | info := &grpc.UnaryServerInfo{ |
| 617 | Server: srv, |
| 618 | FullMethod: "/voltha.CoreService/PortCreated", |
| 619 | } |
| 620 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 621 | return srv.(CoreServiceServer).PortCreated(ctx, req.(*voltha.Port)) |
| 622 | } |
| 623 | return interceptor(ctx, in, info, handler) |
| 624 | } |
| 625 | |
| 626 | func _CoreService_PortsStateUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 627 | in := new(inter_container.PortStateFilter) |
| 628 | if err := dec(in); err != nil { |
| 629 | return nil, err |
| 630 | } |
| 631 | if interceptor == nil { |
| 632 | return srv.(CoreServiceServer).PortsStateUpdate(ctx, in) |
| 633 | } |
| 634 | info := &grpc.UnaryServerInfo{ |
| 635 | Server: srv, |
| 636 | FullMethod: "/voltha.CoreService/PortsStateUpdate", |
| 637 | } |
| 638 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 639 | return srv.(CoreServiceServer).PortsStateUpdate(ctx, req.(*inter_container.PortStateFilter)) |
| 640 | } |
| 641 | return interceptor(ctx, in, info, handler) |
| 642 | } |
| 643 | |
| 644 | func _CoreService_DeleteAllPorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 645 | in := new(common.ID) |
| 646 | if err := dec(in); err != nil { |
| 647 | return nil, err |
| 648 | } |
| 649 | if interceptor == nil { |
| 650 | return srv.(CoreServiceServer).DeleteAllPorts(ctx, in) |
| 651 | } |
| 652 | info := &grpc.UnaryServerInfo{ |
| 653 | Server: srv, |
| 654 | FullMethod: "/voltha.CoreService/DeleteAllPorts", |
| 655 | } |
| 656 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 657 | return srv.(CoreServiceServer).DeleteAllPorts(ctx, req.(*common.ID)) |
| 658 | } |
| 659 | return interceptor(ctx, in, info, handler) |
| 660 | } |
| 661 | |
| 662 | func _CoreService_GetDevicePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 663 | in := new(inter_container.PortFilter) |
| 664 | if err := dec(in); err != nil { |
| 665 | return nil, err |
| 666 | } |
| 667 | if interceptor == nil { |
| 668 | return srv.(CoreServiceServer).GetDevicePort(ctx, in) |
| 669 | } |
| 670 | info := &grpc.UnaryServerInfo{ |
| 671 | Server: srv, |
| 672 | FullMethod: "/voltha.CoreService/GetDevicePort", |
| 673 | } |
| 674 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 675 | return srv.(CoreServiceServer).GetDevicePort(ctx, req.(*inter_container.PortFilter)) |
| 676 | } |
| 677 | return interceptor(ctx, in, info, handler) |
| 678 | } |
| 679 | |
| 680 | func _CoreService_ListDevicePorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 681 | in := new(common.ID) |
| 682 | if err := dec(in); err != nil { |
| 683 | return nil, err |
| 684 | } |
| 685 | if interceptor == nil { |
| 686 | return srv.(CoreServiceServer).ListDevicePorts(ctx, in) |
| 687 | } |
| 688 | info := &grpc.UnaryServerInfo{ |
| 689 | Server: srv, |
| 690 | FullMethod: "/voltha.CoreService/ListDevicePorts", |
| 691 | } |
| 692 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 693 | return srv.(CoreServiceServer).ListDevicePorts(ctx, req.(*common.ID)) |
| 694 | } |
| 695 | return interceptor(ctx, in, info, handler) |
| 696 | } |
| 697 | |
| 698 | func _CoreService_DeviceStateUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 699 | in := new(inter_container.DeviceStateFilter) |
| 700 | if err := dec(in); err != nil { |
| 701 | return nil, err |
| 702 | } |
| 703 | if interceptor == nil { |
| 704 | return srv.(CoreServiceServer).DeviceStateUpdate(ctx, in) |
| 705 | } |
| 706 | info := &grpc.UnaryServerInfo{ |
| 707 | Server: srv, |
| 708 | FullMethod: "/voltha.CoreService/DeviceStateUpdate", |
| 709 | } |
| 710 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 711 | return srv.(CoreServiceServer).DeviceStateUpdate(ctx, req.(*inter_container.DeviceStateFilter)) |
| 712 | } |
| 713 | return interceptor(ctx, in, info, handler) |
| 714 | } |
| 715 | |
| 716 | func _CoreService_DevicePMConfigUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 717 | in := new(voltha.PmConfigs) |
| 718 | if err := dec(in); err != nil { |
| 719 | return nil, err |
| 720 | } |
| 721 | if interceptor == nil { |
| 722 | return srv.(CoreServiceServer).DevicePMConfigUpdate(ctx, in) |
| 723 | } |
| 724 | info := &grpc.UnaryServerInfo{ |
| 725 | Server: srv, |
| 726 | FullMethod: "/voltha.CoreService/DevicePMConfigUpdate", |
| 727 | } |
| 728 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 729 | return srv.(CoreServiceServer).DevicePMConfigUpdate(ctx, req.(*voltha.PmConfigs)) |
| 730 | } |
| 731 | return interceptor(ctx, in, info, handler) |
| 732 | } |
| 733 | |
| 734 | func _CoreService_ChildDeviceDetected_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 735 | in := new(inter_container.DeviceDiscovery) |
| 736 | if err := dec(in); err != nil { |
| 737 | return nil, err |
| 738 | } |
| 739 | if interceptor == nil { |
| 740 | return srv.(CoreServiceServer).ChildDeviceDetected(ctx, in) |
| 741 | } |
| 742 | info := &grpc.UnaryServerInfo{ |
| 743 | Server: srv, |
| 744 | FullMethod: "/voltha.CoreService/ChildDeviceDetected", |
| 745 | } |
| 746 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 747 | return srv.(CoreServiceServer).ChildDeviceDetected(ctx, req.(*inter_container.DeviceDiscovery)) |
| 748 | } |
| 749 | return interceptor(ctx, in, info, handler) |
| 750 | } |
| 751 | |
| 752 | func _CoreService_ChildDevicesLost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 753 | in := new(common.ID) |
| 754 | if err := dec(in); err != nil { |
| 755 | return nil, err |
| 756 | } |
| 757 | if interceptor == nil { |
| 758 | return srv.(CoreServiceServer).ChildDevicesLost(ctx, in) |
| 759 | } |
| 760 | info := &grpc.UnaryServerInfo{ |
| 761 | Server: srv, |
| 762 | FullMethod: "/voltha.CoreService/ChildDevicesLost", |
| 763 | } |
| 764 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 765 | return srv.(CoreServiceServer).ChildDevicesLost(ctx, req.(*common.ID)) |
| 766 | } |
| 767 | return interceptor(ctx, in, info, handler) |
| 768 | } |
| 769 | |
| 770 | func _CoreService_ChildDevicesDetected_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 771 | in := new(common.ID) |
| 772 | if err := dec(in); err != nil { |
| 773 | return nil, err |
| 774 | } |
| 775 | if interceptor == nil { |
| 776 | return srv.(CoreServiceServer).ChildDevicesDetected(ctx, in) |
| 777 | } |
| 778 | info := &grpc.UnaryServerInfo{ |
| 779 | Server: srv, |
| 780 | FullMethod: "/voltha.CoreService/ChildDevicesDetected", |
| 781 | } |
| 782 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 783 | return srv.(CoreServiceServer).ChildDevicesDetected(ctx, req.(*common.ID)) |
| 784 | } |
| 785 | return interceptor(ctx, in, info, handler) |
| 786 | } |
| 787 | |
| 788 | func _CoreService_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 789 | in := new(common.ID) |
| 790 | if err := dec(in); err != nil { |
| 791 | return nil, err |
| 792 | } |
| 793 | if interceptor == nil { |
| 794 | return srv.(CoreServiceServer).GetDevice(ctx, in) |
| 795 | } |
| 796 | info := &grpc.UnaryServerInfo{ |
| 797 | Server: srv, |
| 798 | FullMethod: "/voltha.CoreService/GetDevice", |
| 799 | } |
| 800 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 801 | return srv.(CoreServiceServer).GetDevice(ctx, req.(*common.ID)) |
| 802 | } |
| 803 | return interceptor(ctx, in, info, handler) |
| 804 | } |
| 805 | |
| 806 | func _CoreService_GetChildDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 807 | in := new(inter_container.ChildDeviceFilter) |
| 808 | if err := dec(in); err != nil { |
| 809 | return nil, err |
| 810 | } |
| 811 | if interceptor == nil { |
| 812 | return srv.(CoreServiceServer).GetChildDevice(ctx, in) |
| 813 | } |
| 814 | info := &grpc.UnaryServerInfo{ |
| 815 | Server: srv, |
| 816 | FullMethod: "/voltha.CoreService/GetChildDevice", |
| 817 | } |
| 818 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 819 | return srv.(CoreServiceServer).GetChildDevice(ctx, req.(*inter_container.ChildDeviceFilter)) |
| 820 | } |
| 821 | return interceptor(ctx, in, info, handler) |
| 822 | } |
| 823 | |
| 824 | func _CoreService_GetChildDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 825 | in := new(common.ID) |
| 826 | if err := dec(in); err != nil { |
| 827 | return nil, err |
| 828 | } |
| 829 | if interceptor == nil { |
| 830 | return srv.(CoreServiceServer).GetChildDevices(ctx, in) |
| 831 | } |
| 832 | info := &grpc.UnaryServerInfo{ |
| 833 | Server: srv, |
| 834 | FullMethod: "/voltha.CoreService/GetChildDevices", |
| 835 | } |
| 836 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 837 | return srv.(CoreServiceServer).GetChildDevices(ctx, req.(*common.ID)) |
| 838 | } |
| 839 | return interceptor(ctx, in, info, handler) |
| 840 | } |
| 841 | |
| 842 | func _CoreService_SendPacketIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 843 | in := new(inter_container.PacketIn) |
| 844 | if err := dec(in); err != nil { |
| 845 | return nil, err |
| 846 | } |
| 847 | if interceptor == nil { |
| 848 | return srv.(CoreServiceServer).SendPacketIn(ctx, in) |
| 849 | } |
| 850 | info := &grpc.UnaryServerInfo{ |
| 851 | Server: srv, |
| 852 | FullMethod: "/voltha.CoreService/SendPacketIn", |
| 853 | } |
| 854 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 855 | return srv.(CoreServiceServer).SendPacketIn(ctx, req.(*inter_container.PacketIn)) |
| 856 | } |
| 857 | return interceptor(ctx, in, info, handler) |
| 858 | } |
| 859 | |
| 860 | func _CoreService_DeviceReasonUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 861 | in := new(inter_container.DeviceReason) |
| 862 | if err := dec(in); err != nil { |
| 863 | return nil, err |
| 864 | } |
| 865 | if interceptor == nil { |
| 866 | return srv.(CoreServiceServer).DeviceReasonUpdate(ctx, in) |
| 867 | } |
| 868 | info := &grpc.UnaryServerInfo{ |
| 869 | Server: srv, |
| 870 | FullMethod: "/voltha.CoreService/DeviceReasonUpdate", |
| 871 | } |
| 872 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 873 | return srv.(CoreServiceServer).DeviceReasonUpdate(ctx, req.(*inter_container.DeviceReason)) |
| 874 | } |
| 875 | return interceptor(ctx, in, info, handler) |
| 876 | } |
| 877 | |
| 878 | func _CoreService_PortStateUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 879 | in := new(inter_container.PortState) |
| 880 | if err := dec(in); err != nil { |
| 881 | return nil, err |
| 882 | } |
| 883 | if interceptor == nil { |
| 884 | return srv.(CoreServiceServer).PortStateUpdate(ctx, in) |
| 885 | } |
| 886 | info := &grpc.UnaryServerInfo{ |
| 887 | Server: srv, |
| 888 | FullMethod: "/voltha.CoreService/PortStateUpdate", |
| 889 | } |
| 890 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 891 | return srv.(CoreServiceServer).PortStateUpdate(ctx, req.(*inter_container.PortState)) |
| 892 | } |
| 893 | return interceptor(ctx, in, info, handler) |
| 894 | } |
| 895 | |
| 896 | func _CoreService_ReconcileChildDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 897 | in := new(common.ID) |
| 898 | if err := dec(in); err != nil { |
| 899 | return nil, err |
| 900 | } |
| 901 | if interceptor == nil { |
| 902 | return srv.(CoreServiceServer).ReconcileChildDevices(ctx, in) |
| 903 | } |
| 904 | info := &grpc.UnaryServerInfo{ |
| 905 | Server: srv, |
| 906 | FullMethod: "/voltha.CoreService/ReconcileChildDevices", |
| 907 | } |
| 908 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 909 | return srv.(CoreServiceServer).ReconcileChildDevices(ctx, req.(*common.ID)) |
| 910 | } |
| 911 | return interceptor(ctx, in, info, handler) |
| 912 | } |
| 913 | |
| 914 | func _CoreService_GetChildDeviceWithProxyAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 915 | in := new(voltha.Device_ProxyAddress) |
| 916 | if err := dec(in); err != nil { |
| 917 | return nil, err |
| 918 | } |
| 919 | if interceptor == nil { |
| 920 | return srv.(CoreServiceServer).GetChildDeviceWithProxyAddress(ctx, in) |
| 921 | } |
| 922 | info := &grpc.UnaryServerInfo{ |
| 923 | Server: srv, |
| 924 | FullMethod: "/voltha.CoreService/GetChildDeviceWithProxyAddress", |
| 925 | } |
| 926 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 927 | return srv.(CoreServiceServer).GetChildDeviceWithProxyAddress(ctx, req.(*voltha.Device_ProxyAddress)) |
| 928 | } |
| 929 | return interceptor(ctx, in, info, handler) |
| 930 | } |
| 931 | |
| 932 | func _CoreService_GetPorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 933 | in := new(inter_container.PortFilter) |
| 934 | if err := dec(in); err != nil { |
| 935 | return nil, err |
| 936 | } |
| 937 | if interceptor == nil { |
| 938 | return srv.(CoreServiceServer).GetPorts(ctx, in) |
| 939 | } |
| 940 | info := &grpc.UnaryServerInfo{ |
| 941 | Server: srv, |
| 942 | FullMethod: "/voltha.CoreService/GetPorts", |
| 943 | } |
| 944 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 945 | return srv.(CoreServiceServer).GetPorts(ctx, req.(*inter_container.PortFilter)) |
| 946 | } |
| 947 | return interceptor(ctx, in, info, handler) |
| 948 | } |
| 949 | |
| 950 | func _CoreService_ChildrenStateUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 951 | in := new(inter_container.DeviceStateFilter) |
| 952 | if err := dec(in); err != nil { |
| 953 | return nil, err |
| 954 | } |
| 955 | if interceptor == nil { |
| 956 | return srv.(CoreServiceServer).ChildrenStateUpdate(ctx, in) |
| 957 | } |
| 958 | info := &grpc.UnaryServerInfo{ |
| 959 | Server: srv, |
| 960 | FullMethod: "/voltha.CoreService/ChildrenStateUpdate", |
| 961 | } |
| 962 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 963 | return srv.(CoreServiceServer).ChildrenStateUpdate(ctx, req.(*inter_container.DeviceStateFilter)) |
| 964 | } |
| 965 | return interceptor(ctx, in, info, handler) |
| 966 | } |
| 967 | |
| 968 | func _CoreService_UpdateImageDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 969 | in := new(voltha.ImageDownload) |
| 970 | if err := dec(in); err != nil { |
| 971 | return nil, err |
| 972 | } |
| 973 | if interceptor == nil { |
| 974 | return srv.(CoreServiceServer).UpdateImageDownload(ctx, in) |
| 975 | } |
| 976 | info := &grpc.UnaryServerInfo{ |
| 977 | Server: srv, |
| 978 | FullMethod: "/voltha.CoreService/UpdateImageDownload", |
| 979 | } |
| 980 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 981 | return srv.(CoreServiceServer).UpdateImageDownload(ctx, req.(*voltha.ImageDownload)) |
| 982 | } |
| 983 | return interceptor(ctx, in, info, handler) |
| 984 | } |
| 985 | |
| 986 | var _CoreService_serviceDesc = grpc.ServiceDesc{ |
| 987 | ServiceName: "voltha.CoreService", |
| 988 | HandlerType: (*CoreServiceServer)(nil), |
| 989 | Methods: []grpc.MethodDesc{ |
| 990 | { |
| 991 | MethodName: "GetHealthStatus", |
| 992 | Handler: _CoreService_GetHealthStatus_Handler, |
| 993 | }, |
| 994 | { |
| 995 | MethodName: "RegisterAdapter", |
| 996 | Handler: _CoreService_RegisterAdapter_Handler, |
| 997 | }, |
| 998 | { |
| 999 | MethodName: "DeviceUpdate", |
| 1000 | Handler: _CoreService_DeviceUpdate_Handler, |
| 1001 | }, |
| 1002 | { |
| 1003 | MethodName: "PortCreated", |
| 1004 | Handler: _CoreService_PortCreated_Handler, |
| 1005 | }, |
| 1006 | { |
| 1007 | MethodName: "PortsStateUpdate", |
| 1008 | Handler: _CoreService_PortsStateUpdate_Handler, |
| 1009 | }, |
| 1010 | { |
| 1011 | MethodName: "DeleteAllPorts", |
| 1012 | Handler: _CoreService_DeleteAllPorts_Handler, |
| 1013 | }, |
| 1014 | { |
| 1015 | MethodName: "GetDevicePort", |
| 1016 | Handler: _CoreService_GetDevicePort_Handler, |
| 1017 | }, |
| 1018 | { |
| 1019 | MethodName: "ListDevicePorts", |
| 1020 | Handler: _CoreService_ListDevicePorts_Handler, |
| 1021 | }, |
| 1022 | { |
| 1023 | MethodName: "DeviceStateUpdate", |
| 1024 | Handler: _CoreService_DeviceStateUpdate_Handler, |
| 1025 | }, |
| 1026 | { |
| 1027 | MethodName: "DevicePMConfigUpdate", |
| 1028 | Handler: _CoreService_DevicePMConfigUpdate_Handler, |
| 1029 | }, |
| 1030 | { |
| 1031 | MethodName: "ChildDeviceDetected", |
| 1032 | Handler: _CoreService_ChildDeviceDetected_Handler, |
| 1033 | }, |
| 1034 | { |
| 1035 | MethodName: "ChildDevicesLost", |
| 1036 | Handler: _CoreService_ChildDevicesLost_Handler, |
| 1037 | }, |
| 1038 | { |
| 1039 | MethodName: "ChildDevicesDetected", |
| 1040 | Handler: _CoreService_ChildDevicesDetected_Handler, |
| 1041 | }, |
| 1042 | { |
| 1043 | MethodName: "GetDevice", |
| 1044 | Handler: _CoreService_GetDevice_Handler, |
| 1045 | }, |
| 1046 | { |
| 1047 | MethodName: "GetChildDevice", |
| 1048 | Handler: _CoreService_GetChildDevice_Handler, |
| 1049 | }, |
| 1050 | { |
| 1051 | MethodName: "GetChildDevices", |
| 1052 | Handler: _CoreService_GetChildDevices_Handler, |
| 1053 | }, |
| 1054 | { |
| 1055 | MethodName: "SendPacketIn", |
| 1056 | Handler: _CoreService_SendPacketIn_Handler, |
| 1057 | }, |
| 1058 | { |
| 1059 | MethodName: "DeviceReasonUpdate", |
| 1060 | Handler: _CoreService_DeviceReasonUpdate_Handler, |
| 1061 | }, |
| 1062 | { |
| 1063 | MethodName: "PortStateUpdate", |
| 1064 | Handler: _CoreService_PortStateUpdate_Handler, |
| 1065 | }, |
| 1066 | { |
| 1067 | MethodName: "ReconcileChildDevices", |
| 1068 | Handler: _CoreService_ReconcileChildDevices_Handler, |
| 1069 | }, |
| 1070 | { |
| 1071 | MethodName: "GetChildDeviceWithProxyAddress", |
| 1072 | Handler: _CoreService_GetChildDeviceWithProxyAddress_Handler, |
| 1073 | }, |
| 1074 | { |
| 1075 | MethodName: "GetPorts", |
| 1076 | Handler: _CoreService_GetPorts_Handler, |
| 1077 | }, |
| 1078 | { |
| 1079 | MethodName: "ChildrenStateUpdate", |
| 1080 | Handler: _CoreService_ChildrenStateUpdate_Handler, |
| 1081 | }, |
| 1082 | { |
| 1083 | MethodName: "UpdateImageDownload", |
| 1084 | Handler: _CoreService_UpdateImageDownload_Handler, |
| 1085 | }, |
| 1086 | }, |
| 1087 | Streams: []grpc.StreamDesc{}, |
| 1088 | Metadata: "voltha_protos/core.proto", |
| 1089 | } |