syntax = "proto3";

option go_package = "github.com/opencord/voltha-protos/v5/go/olt_inter_adapter_service";
option java_package = "org.opencord.voltha.olt_inter_adapter_service";
option java_outer_classname = "VolthaOltInterAdapterService";

package olt_inter_adapter_service;

import "voltha_protos/common.proto";
import "google/protobuf/empty.proto";
import "voltha_protos/inter_adapter.proto";
import "voltha_protos/health.proto";

service OltInterAdapterService {
    // GetHealthStatus is used by a OltInterAdapterService client to detect a connection
    // lost with the gRPC server hosting the OltInterAdapterService service
    rpc GetHealthStatus(stream common.Connection) returns (stream health.HealthStatus);


    rpc ProxyOmciRequest(inter_adapter.OmciMessage) returns (google.protobuf.Empty);
    rpc ProxyOmciRequests(inter_adapter.OmciMessages) returns (google.protobuf.Empty);
    rpc GetTechProfileInstance(inter_adapter.TechProfileInstanceRequestMessage) returns (inter_adapter.TechProfileDownloadMessage);
}
