diff --git a/build/bin/compile-protos.sh b/build/bin/compile-protos.sh index 9bc86ffe..e689376a 100755 --- a/build/bin/compile-protos.sh +++ b/build/bin/compile-protos.sh @@ -3,6 +3,8 @@ proto_path="./proto:${GOPATH}/src/github.com/gogo/protobuf/protobuf:${GOPATH}/src/github.com/gogo/protobuf:${GOPATH}/src" ### Documentation generation + +# e2sub protoc --proto_path=$proto_path \ --doc_out=docs/onos/e2sub \ --doc_opt=markdown,endpoint.md \ @@ -15,6 +17,8 @@ protoc --proto_path=$proto_path \ --doc_out=docs/onos/e2sub \ --doc_opt=markdown,task.md \ proto/onos/e2sub/task/task.proto + +# e2t protoc --proto_path=$proto_path \ --doc_out=docs/onos/e2t \ --doc_opt=markdown,admin.md \ @@ -23,11 +27,14 @@ protoc --proto_path=$proto_path \ --doc_out=docs/onos/e2t \ --doc_opt=markdown,e2.md \ proto/onos/e2t/e2/e2.proto + +# topo protoc --proto_path=$proto_path \ --doc_out=docs/onos/topo \ --doc_opt=markdown,topo.md \ proto/onos/topo/topo.proto +# config protoc --proto_path=$proto_path \ --doc_out=docs/onos/config \ --doc_opt=markdown,admin.md \ @@ -61,11 +68,34 @@ protoc --proto_path=$proto_path \ --doc_opt=markdown,network_snapshot.md \ proto/onos/config/snapshot/network/types.proto +# kpimon protoc --proto_path=$proto_path \ --doc_out=docs/onos/kpimon \ --doc_opt=markdown,kpimon.md \ proto/onos/kpimon/kpimon.proto +# ransim +protoc --proto_path=$proto_path \ + --doc_out=docs/onos/ransim \ + --doc_opt=markdown,metrics.md \ + proto/onos/ransim/metrics/metrics.proto + + +protoc --proto_path=$proto_path \ + --doc_out=docs/onos/ransim \ + --doc_opt=markdown,model.md \ + proto/onos/ransim/model/model.proto + +protoc --proto_path=$proto_path \ + --doc_out=docs/onos/ransim \ + --doc_opt=markdown,trafficsim.md \ + proto/onos/ransim/trafficsim/trafficsim.proto + +protoc --proto_path=$proto_path \ + --doc_out=docs/onos/ransim \ + --doc_opt=markdown,types.md \ + proto/onos/ransim/types/types.proto + ### Go Protobuf code generation go_import_paths="Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types" @@ -78,7 +108,8 @@ go_import_paths="${go_import_paths},Monos/config/change/device/types.proto=githu go_import_paths="${go_import_paths},Monos/config/change/network/types.proto=github.com/onosproject/onos-api/go/onos/config/change/network" go_import_paths="${go_import_paths},Monos/config/snapshot/types.proto=github.com/onosproject/onos-api/go/onos/config/snapshot" go_import_paths="${go_import_paths},Monos/config/snapshot/device/types.proto=github.com/onosproject/onos-api/go/onos/config/snapshot/device" - +go_import_paths="${go_import_paths},Monos/ransim/types/types.proto=github.com/onosproject/onos-api/go/onos/ransim/types" +# e2sub protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/e2sub/endpoint,plugins=grpc:./go \ proto/onos/e2sub/endpoint/*.proto @@ -88,6 +119,8 @@ protoc --proto_path=$proto_path \ protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/e2sub/task,plugins=grpc:./go \ proto/onos/e2sub/task/*.proto + +# e2t protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/e2t/admin,plugins=grpc:./go \ proto/onos/e2t/admin/*.proto @@ -98,6 +131,7 @@ protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/topo,plugins=grpc:./go \ proto/onos/topo/*.proto +# config protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/config/change,plugins=grpc:./go \ proto/onos/config/change/*.proto @@ -125,11 +159,28 @@ protoc --proto_path=$proto_path \ --gogo_out=$go_import_paths,import_path=onos/config/admin,plugins=grpc:./go \ proto/onos/config/admin/*.proto + +# kpimon protoc --proto_path=$proto_path \ --gogofaster_out=$go_import_paths,import_path=onos/kpimon,plugins=grpc:./go \ proto/onos/kpimon/*.proto +# ransim +protoc --proto_path=$proto_path \ + --gogofaster_out=$go_import_paths,import_path=onos/ransim/metrics,plugins=grpc:./go \ + proto/onos/ransim/metrics/*.proto + +protoc --proto_path=$proto_path \ + --gogofaster_out=$go_import_paths,import_path=onos/ransim/model,plugins=grpc:./go \ + proto/onos/ransim/model/*.proto +protoc --proto_path=$proto_path \ + --gogofaster_out=$go_import_paths,import_path=onos/ransim/trafficsim,plugins=grpc:./go \ + proto/onos/ransim/trafficsim/*.proto + +protoc --proto_path=$proto_path \ + --gogofaster_out=$go_import_paths,import_path=onos/ransim/types,plugins=grpc:./go \ + proto/onos/ransim/types/*.proto ### Python Protobuf code generation diff --git a/docs/onos/ransim/metrics.md b/docs/onos/ransim/metrics.md new file mode 100644 index 00000000..32ea6cb8 --- /dev/null +++ b/docs/onos/ransim/metrics.md @@ -0,0 +1,274 @@ +# Protocol Documentation + + +## Table of Contents + +- [onos/ransim/metrics/metrics.proto](#onos/ransim/metrics/metrics.proto) + - [DeleteAllRequest](#onos.ransim.metrics.DeleteAllRequest) + - [DeleteAllResponse](#onos.ransim.metrics.DeleteAllResponse) + - [DeleteRequest](#onos.ransim.metrics.DeleteRequest) + - [DeleteResponse](#onos.ransim.metrics.DeleteResponse) + - [GetRequest](#onos.ransim.metrics.GetRequest) + - [GetResponse](#onos.ransim.metrics.GetResponse) + - [ListRequest](#onos.ransim.metrics.ListRequest) + - [ListResponse](#onos.ransim.metrics.ListResponse) + - [Metric](#onos.ransim.metrics.Metric) + - [SetRequest](#onos.ransim.metrics.SetRequest) + - [SetResponse](#onos.ransim.metrics.SetResponse) + - [WatchRequest](#onos.ransim.metrics.WatchRequest) + - [WatchResponse](#onos.ransim.metrics.WatchResponse) + + - [EventType](#onos.ransim.metrics.EventType) + + - [MetricsService](#onos.ransim.metrics.MetricsService) + +- [Scalar Value Types](#scalar-value-types) + + + + +
+ +## onos/ransim/metrics/metrics.proto + + + + + +### DeleteAllRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | + + + + + + + + +### DeleteAllResponse + + + + + + + + + +### DeleteRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | +| name | [string](#string) | | | + + + + + + + + +### DeleteResponse + + + + + + + + + +### GetRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | +| name | [string](#string) | | | + + + + + + + + +### GetResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| metric | [Metric](#onos.ransim.metrics.Metric) | | | + + + + + + + + +### ListRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | + + + + + + + + +### ListResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | +| metrics | [Metric](#onos.ransim.metrics.Metric) | repeated | | + + + + + + + + +### Metric + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entityid | [uint64](#uint64) | | | +| key | [string](#string) | | | +| value | [string](#string) | | | +| type | [string](#string) | | intX, uintX, floatX, string; X := {8|16|32|64} | + + + + + + + + +### SetRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| metric | [Metric](#onos.ransim.metrics.Metric) | | | + + + + + + + + +### SetResponse + + + + + + + + + +### WatchRequest + + + + + + + + + +### WatchResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| metric | [Metric](#onos.ransim.metrics.Metric) | | | +| type | [EventType](#onos.ransim.metrics.EventType) | | | + + + + + + + + + + +### EventType +Change event type + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NONE | 0 | NONE indicates unknown event type | +| UPDATED | 1 | UPDATED indicates a metric value was set (updated) | +| DELETED | 2 | DELETED indicates a metric was deleted | + + + + + + + + + +### MetricsService +Model provides means to create, delete and read RAN simulation model. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| List | [ListRequest](#onos.ransim.metrics.ListRequest) | [ListResponse](#onos.ransim.metrics.ListResponse) | List returns an array of all metrics for the specified entity (Node, Cell or UE) | +| Set | [SetRequest](#onos.ransim.metrics.SetRequest) | [SetResponse](#onos.ransim.metrics.SetResponse) | Set sets value of the named metric for the specified entity | +| Get | [GetRequest](#onos.ransim.metrics.GetRequest) | [GetResponse](#onos.ransim.metrics.GetResponse) | Get retrieves the named metric for the specified entity | +| Delete | [DeleteRequest](#onos.ransim.metrics.DeleteRequest) | [DeleteResponse](#onos.ransim.metrics.DeleteResponse) | Delete deletes the the named metric for the specified entity | +| DeleteAll | [DeleteAllRequest](#onos.ransim.metrics.DeleteAllRequest) | [DeleteAllResponse](#onos.ransim.metrics.DeleteAllResponse) | DeleteAll deletes all metrics for the specified entity | +| Watch | [WatchRequest](#onos.ransim.metrics.WatchRequest) | [WatchResponse](#onos.ransim.metrics.WatchResponse) stream | Watch returns a stream of ongoing changes to the metrics | + + + + + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | +| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | +| double | | double | double | float | float64 | double | float | Float | +| float | | float | float | float | float32 | float | float | Float | +| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | +| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | +| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | +| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | +| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | +| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | +| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + diff --git a/docs/onos/ransim/model.md b/docs/onos/ransim/model.md new file mode 100644 index 00000000..ff50abe0 --- /dev/null +++ b/docs/onos/ransim/model.md @@ -0,0 +1,479 @@ +# Protocol Documentation + + +## Table of Contents + +- [onos/ransim/model/model.proto](#onos/ransim/model/model.proto) + - [AgentControlRequest](#onos.ransim.model.AgentControlRequest) + - [AgentControlResponse](#onos.ransim.model.AgentControlResponse) + - [CreateCellRequest](#onos.ransim.model.CreateCellRequest) + - [CreateCellResponse](#onos.ransim.model.CreateCellResponse) + - [CreateNodeRequest](#onos.ransim.model.CreateNodeRequest) + - [CreateNodeResponse](#onos.ransim.model.CreateNodeResponse) + - [DeleteCellRequest](#onos.ransim.model.DeleteCellRequest) + - [DeleteCellResponse](#onos.ransim.model.DeleteCellResponse) + - [DeleteNodeRequest](#onos.ransim.model.DeleteNodeRequest) + - [DeleteNodeResponse](#onos.ransim.model.DeleteNodeResponse) + - [GetCellRequest](#onos.ransim.model.GetCellRequest) + - [GetCellResponse](#onos.ransim.model.GetCellResponse) + - [GetNodeRequest](#onos.ransim.model.GetNodeRequest) + - [GetNodeResponse](#onos.ransim.model.GetNodeResponse) + - [ListCellsRequest](#onos.ransim.model.ListCellsRequest) + - [ListCellsResponse](#onos.ransim.model.ListCellsResponse) + - [ListNodesRequest](#onos.ransim.model.ListNodesRequest) + - [ListNodesResponse](#onos.ransim.model.ListNodesResponse) + - [UpdateCellRequest](#onos.ransim.model.UpdateCellRequest) + - [UpdateCellResponse](#onos.ransim.model.UpdateCellResponse) + - [UpdateNodeRequest](#onos.ransim.model.UpdateNodeRequest) + - [UpdateNodeResponse](#onos.ransim.model.UpdateNodeResponse) + - [WatchCellsRequest](#onos.ransim.model.WatchCellsRequest) + - [WatchCellsResponse](#onos.ransim.model.WatchCellsResponse) + - [WatchNodesRequest](#onos.ransim.model.WatchNodesRequest) + - [WatchNodesResponse](#onos.ransim.model.WatchNodesResponse) + + - [EventType](#onos.ransim.model.EventType) + + - [CellModel](#onos.ransim.model.CellModel) + - [NodeModel](#onos.ransim.model.NodeModel) + +- [Scalar Value Types](#scalar-value-types) + + + + + + +## onos/ransim/model/model.proto + + + + + +### AgentControlRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enbid | [uint32](#uint32) | | | +| command | [string](#string) | | start, stop, drop, reconnect, etc. | +| args | [string](#string) | repeated | optional command parameters | + + + + + + + + +### AgentControlResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | + + + + + + + + +### CreateCellRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| Cell | [onos.ransim.types.Cell](#onos.ransim.types.Cell) | | | + + + + + + + + +### CreateCellResponse + + + + + + + + + +### CreateNodeRequest +CreateNodeRequest create a node request + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | + + + + + + + + +### CreateNodeResponse +CreateNodeResponse create a node response + + + + + + + + +### DeleteCellRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enbid | [uint32](#uint32) | | | + + + + + + + + +### DeleteCellResponse + + + + + + + + + +### DeleteNodeRequest +DeleteNodeRequest delete a node request + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enbid | [uint32](#uint32) | | | + + + + + + + + +### DeleteNodeResponse +DeleteNodeResponse delete a node response + + + + + + + + +### GetCellRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ecgi | [uint32](#uint32) | | | + + + + + + + + +### GetCellResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| Cell | [onos.ransim.types.Cell](#onos.ransim.types.Cell) | | | + + + + + + + + +### GetNodeRequest +GetNodeRequest get a node request + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enbid | [uint32](#uint32) | | | + + + + + + + + +### GetNodeResponse +GetNodeResponse get a node response + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | + + + + + + + + +### ListCellsRequest + + + + + + + + + +### ListCellsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| Cell | [onos.ransim.types.Cell](#onos.ransim.types.Cell) | | | + + + + + + + + +### ListNodesRequest + + + + + + + + + +### ListNodesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | + + + + + + + + +### UpdateCellRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| Cell | [onos.ransim.types.Cell](#onos.ransim.types.Cell) | | | + + + + + + + + +### UpdateCellResponse + + + + + + + + + +### UpdateNodeRequest +UpdateNodeRequest update a node request + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | + + + + + + + + +### UpdateNodeResponse +UpdateNodeResponse update a node response + + + + + + + + +### WatchCellsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| no_replay | [bool](#bool) | | | +| no_subscribe | [bool](#bool) | | | + + + + + + + + +### WatchCellsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| Cell | [onos.ransim.types.Cell](#onos.ransim.types.Cell) | | | +| type | [EventType](#onos.ransim.model.EventType) | | | + + + + + + + + +### WatchNodesRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| no_replay | [bool](#bool) | | | +| no_subscribe | [bool](#bool) | | | + + + + + + + + +### WatchNodesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| node | [onos.ransim.types.Node](#onos.ransim.types.Node) | | | +| type | [EventType](#onos.ransim.model.EventType) | | | + + + + + + + + + + +### EventType +Change event type + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NONE | 0 | NONE indicates this response represents a pre-existing entity | +| CREATED | 1 | CREATED indicates a new entity was created | +| UPDATED | 2 | UPDATED indicates an existing entity was updated | +| DELETED | 3 | DELETED indicates an entity was deleted | + + + + + + + + + +### CellModel +Model provides means to create, delete and read RAN simulation model. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CreateCell | [CreateCellRequest](#onos.ransim.model.CreateCellRequest) | [CreateCellResponse](#onos.ransim.model.CreateCellResponse) | | +| DeleteCell | [DeleteCellRequest](#onos.ransim.model.DeleteCellRequest) | [DeleteCellResponse](#onos.ransim.model.DeleteCellResponse) | | +| UpdateCell | [UpdateCellRequest](#onos.ransim.model.UpdateCellRequest) | [UpdateCellResponse](#onos.ransim.model.UpdateCellResponse) | | +| GetCell | [GetCellRequest](#onos.ransim.model.GetCellRequest) | [GetCellResponse](#onos.ransim.model.GetCellResponse) | | +| WatchCells | [WatchCellsRequest](#onos.ransim.model.WatchCellsRequest) | [WatchCellsResponse](#onos.ransim.model.WatchCellsResponse) stream | | +| ListCells | [ListCellsRequest](#onos.ransim.model.ListCellsRequest) | [ListCellsResponse](#onos.ransim.model.ListCellsResponse) stream | | + + + + +### NodeModel +Model provides means to create, delete and read RAN simulation model. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CreateNode | [CreateNodeRequest](#onos.ransim.model.CreateNodeRequest) | [CreateNodeResponse](#onos.ransim.model.CreateNodeResponse) | | +| GetNode | [GetNodeRequest](#onos.ransim.model.GetNodeRequest) | [GetNodeResponse](#onos.ransim.model.GetNodeResponse) | | +| UpdateNode | [UpdateNodeRequest](#onos.ransim.model.UpdateNodeRequest) | [UpdateNodeResponse](#onos.ransim.model.UpdateNodeResponse) | | +| DeleteNode | [DeleteNodeRequest](#onos.ransim.model.DeleteNodeRequest) | [DeleteNodeResponse](#onos.ransim.model.DeleteNodeResponse) | | +| WatchNodes | [WatchNodesRequest](#onos.ransim.model.WatchNodesRequest) | [WatchNodesResponse](#onos.ransim.model.WatchNodesResponse) stream | | +| ListNodes | [ListNodesRequest](#onos.ransim.model.ListNodesRequest) | [ListNodesResponse](#onos.ransim.model.ListNodesResponse) stream | | +| AgentControl | [AgentControlRequest](#onos.ransim.model.AgentControlRequest) | [AgentControlResponse](#onos.ransim.model.AgentControlResponse) | | + + + + + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | +| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | +| double | | double | double | float | float64 | double | float | Float | +| float | | float | float | float | float32 | float | float | Float | +| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | +| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | +| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | +| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | +| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | +| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | +| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + diff --git a/docs/onos/ransim/trafficsim.md b/docs/onos/ransim/trafficsim.md new file mode 100644 index 00000000..9d0f1034 --- /dev/null +++ b/docs/onos/ransim/trafficsim.md @@ -0,0 +1,245 @@ +# Protocol Documentation + + +## Table of Contents + +- [onos/ransim/trafficsim/trafficsim.proto](#onos/ransim/trafficsim/trafficsim.proto) + - [ListRoutesRequest](#onos.ransim.trafficsim.ListRoutesRequest) + - [ListRoutesResponse](#onos.ransim.trafficsim.ListRoutesResponse) + - [ListUesRequest](#onos.ransim.trafficsim.ListUesRequest) + - [ListUesResponse](#onos.ransim.trafficsim.ListUesResponse) + - [MapLayoutRequest](#onos.ransim.trafficsim.MapLayoutRequest) + - [ResetMetricsMsg](#onos.ransim.trafficsim.ResetMetricsMsg) + - [SetNumberUEsRequest](#onos.ransim.trafficsim.SetNumberUEsRequest) + - [SetNumberUEsResponse](#onos.ransim.trafficsim.SetNumberUEsResponse) + - [WatchUesRequest](#onos.ransim.trafficsim.WatchUesRequest) + - [WatchUesResponse](#onos.ransim.trafficsim.WatchUesResponse) + + - [Type](#onos.ransim.trafficsim.Type) + - [UpdateType](#onos.ransim.trafficsim.UpdateType) + + - [Traffic](#onos.ransim.trafficsim.Traffic) + +- [Scalar Value Types](#scalar-value-types) + + + + + + +## onos/ransim/trafficsim/trafficsim.proto + + + + + +### ListRoutesRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| no_replay | [bool](#bool) | | | +| no_subscribe | [bool](#bool) | | | + + + + + + + + +### ListRoutesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| route | [onos.ransim.types.Route](#onos.ransim.types.Route) | | route is the route change on which the event occurred | +| type | [Type](#onos.ransim.trafficsim.Type) | | type is a qualification of the type of change being made | + + + + + + + + +### ListUesRequest + + + + + + + + + +### ListUesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ue | [onos.ransim.types.Ue](#onos.ransim.types.Ue) | | Ue is the UserEquipment change on which the event occurred | + + + + + + + + +### MapLayoutRequest + + + + + + + + + +### ResetMetricsMsg + + + + + + + + + +### SetNumberUEsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| number | [uint32](#uint32) | | | + + + + + + + + +### SetNumberUEsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| number | [uint32](#uint32) | | | + + + + + + + + +### WatchUesRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| no_replay | [bool](#bool) | | | +| no_subscribe | [bool](#bool) | | | + + + + + + + + +### WatchUesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ue | [onos.ransim.types.Ue](#onos.ransim.types.Ue) | | Ue is the UserEquipment change on which the event occurred | +| type | [Type](#onos.ransim.trafficsim.Type) | | type is a qualification of the type of change being made | +| update_type | [UpdateType](#onos.ransim.trafficsim.UpdateType) | | update_type is a qualification of the type of UE change | + + + + + + + + + + +### Type +Change event type + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NONE | 0 | NONE indicates this response does not represent a modification of the Change | +| ADDED | 1 | ADDED is an event which occurs when a Change is added to the topology | +| UPDATED | 2 | UPDATED is an event which occurs when a Change is updated | +| REMOVED | 3 | REMOVED is an event which occurs when a Change is removed from the configuration | + + + + + +### UpdateType +In the case of an update this helps qualify the update type - add items as necessary + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NOUPDATETYPE | 0 | | +| POSITION | 1 | POSITION An update in position of UE only, without a change in the Tower affinity | +| TOWER | 2 | TOWER An update in non-serving tower affinity (and also position) of UE | +| HANDOVER | 3 | HANDOVER An update of the serving tower | + + + + + + + + + +### Traffic +Traffic - provides a stream of traffic data to GUI + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| GetMapLayout | [MapLayoutRequest](#onos.ransim.trafficsim.MapLayoutRequest) | [.onos.ransim.types.MapLayout](#onos.ransim.types.MapLayout) | | +| ListRoutes | [ListRoutesRequest](#onos.ransim.trafficsim.ListRoutesRequest) | [ListRoutesResponse](#onos.ransim.trafficsim.ListRoutesResponse) stream | | +| ListUes | [ListUesRequest](#onos.ransim.trafficsim.ListUesRequest) | [ListUesResponse](#onos.ransim.trafficsim.ListUesResponse) stream | | +| WatchUes | [WatchUesRequest](#onos.ransim.trafficsim.WatchUesRequest) | [WatchUesResponse](#onos.ransim.trafficsim.WatchUesResponse) stream | | +| SetNumberUEs | [SetNumberUEsRequest](#onos.ransim.trafficsim.SetNumberUEsRequest) | [SetNumberUEsResponse](#onos.ransim.trafficsim.SetNumberUEsResponse) | | +| ResetMetrics | [ResetMetricsMsg](#onos.ransim.trafficsim.ResetMetricsMsg) | [ResetMetricsMsg](#onos.ransim.trafficsim.ResetMetricsMsg) | | + + + + + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | +| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | +| double | | double | double | float | float64 | double | float | Float | +| float | | float | float | float | float32 | float | float | Float | +| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | +| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | +| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | +| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | +| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | +| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | +| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + diff --git a/docs/onos/ransim/types.md b/docs/onos/ransim/types.md new file mode 100644 index 00000000..f1a427e9 --- /dev/null +++ b/docs/onos/ransim/types.md @@ -0,0 +1,234 @@ +# Protocol Documentation + + +## Table of Contents + +- [onos/ransim/types/types.proto](#onos/ransim/types/types.proto) + - [Cell](#onos.ransim.types.Cell) + - [Cell.CrntiMapEntry](#onos.ransim.types.Cell.CrntiMapEntry) + - [MapLayout](#onos.ransim.types.MapLayout) + - [Node](#onos.ransim.types.Node) + - [Point](#onos.ransim.types.Point) + - [Route](#onos.ransim.types.Route) + - [Sector](#onos.ransim.types.Sector) + - [Ue](#onos.ransim.types.Ue) + - [UeMetrics](#onos.ransim.types.UeMetrics) + +- [Scalar Value Types](#scalar-value-types) + + + + + + +## onos/ransim/types/types.proto + + + + + +### Cell + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ecgi | [uint64](#uint64) | | | +| location | [Point](#onos.ransim.types.Point) | | | +| sector | [Sector](#onos.ransim.types.Sector) | | | +| color | [string](#string) | | | +| max_ues | [uint32](#uint32) | | | +| neighbors | [uint64](#uint64) | repeated | | +| tx_power_db | [double](#double) | | The cell transmit power in decibels | +| crnti_map | [Cell.CrntiMapEntry](#onos.ransim.types.Cell.CrntiMapEntry) | repeated | crntis maps a ue's name to its crnti | +| crnti_index | [uint32](#uint32) | | | +| port | [uint32](#uint32) | | | + + + + + + + + +### Cell.CrntiMapEntry + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| key | [uint32](#uint32) | | | +| value | [uint64](#uint64) | | | + + + + + + + + +### MapLayout + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| center | [Point](#onos.ransim.types.Point) | | Map center latitude and longitude | +| zoom | [float](#float) | | The starting Zoom level | +| fade | [bool](#bool) | | Show map as faded on start | +| show_routes | [bool](#bool) | | Show routes on start | +| show_power | [bool](#bool) | | Show power as circle on start | +| locations_scale | [float](#float) | | Ratio of random locations diameter to tower grid width | +| min_ues | [uint32](#uint32) | | FIXME: These are deprecated; remove Max number of UEs for complete simulation | +| max_ues | [uint32](#uint32) | | Max number of UEs for complete simulation | +| current_routes | [uint32](#uint32) | | the current number of routes | + + + + + + + + +### Node + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enbid | [uint32](#uint32) | | | +| controllers | [string](#string) | repeated | | +| service_models | [string](#string) | repeated | | +| cell_ecgis | [uint64](#uint64) | repeated | | +| status | [string](#string) | | | + + + + + + + + +### Point + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| lat | [double](#double) | | | +| lng | [double](#double) | | | + + + + + + + + +### Route + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [uint64](#uint64) | | | +| waypoints | [Point](#onos.ransim.types.Point) | repeated | | +| color | [string](#string) | | | + + + + + + + + +### Sector + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| azimuth | [int32](#int32) | | | +| arc | [int32](#int32) | | | +| centroid | [Point](#onos.ransim.types.Point) | | | + + + + + + + + +### Ue + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| imsi | [uint64](#uint64) | | | +| type | [string](#string) | | | +| position | [Point](#onos.ransim.types.Point) | | | +| rotation | [uint32](#uint32) | | | +| serving_tower | [uint64](#uint64) | | | +| serving_tower_strength | [double](#double) | | | +| tower1 | [uint64](#uint64) | | | +| tower1_strength | [double](#double) | | | +| tower2 | [uint64](#uint64) | | | +| tower2_strength | [double](#double) | | | +| tower3 | [uint64](#uint64) | | | +| tower3_strength | [double](#double) | | | +| crnti | [uint32](#uint32) | | | +| admitted | [bool](#bool) | | | +| metrics | [UeMetrics](#onos.ransim.types.UeMetrics) | | | + + + + + + + + +### UeMetrics + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| ho_latency | [int64](#int64) | | Latency (in nanoseconds) of the most recent hand-over | +| ho_report_timestamp | [int64](#int64) | | Handover report timestamp (in nanoseconds since epoch) | +| is_first | [bool](#bool) | | flag to indicate the first measurement | + + + + + + + + + + + + + + + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | +| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | +| double | | double | double | float | float64 | double | float | Float | +| float | | float | float | float | float32 | float | float | Float | +| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | +| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | +| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | +| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | +| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | +| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | +| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | +| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | +| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + diff --git a/go/go.mod b/go/go.mod index 7e26d6d4..b7bf02c0 100644 --- a/go/go.mod +++ b/go/go.mod @@ -6,11 +6,11 @@ require ( github.com/gogo/protobuf v1.3.1 github.com/golang/mock v1.4.4 github.com/google/uuid v1.1.2 + github.com/onosproject/ran-simulator v0.6.6 github.com/openconfig/gnmi v0.0.0-20200617225440-d2b4e6a45802 github.com/pkg/errors v0.9.1 // indirect github.com/stretchr/testify v1.7.0 golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect - golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 // indirect golang.org/x/text v0.3.2 // indirect google.golang.org/grpc v1.33.2 gotest.tools v2.2.0+incompatible diff --git a/go/go.sum b/go/go.sum index 7945a2b6..980e6d9d 100644 --- a/go/go.sum +++ b/go/go.sum @@ -16,6 +16,7 @@ github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbt github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/DataDog/mmh3 v0.0.0-20200316233529-f5b682d8c981/go.mod h1:SvsjzyJlSg0rKsqYgdcFxeEVflx3ZNAyFfkUHP0TxXg= github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.0.3/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= @@ -35,8 +36,11 @@ github.com/Shopify/sarama v1.26.1/go.mod h1:NbSGBSSndYaIhRcBtY9V0U7AyH+x71bG668A github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= @@ -48,6 +52,7 @@ github.com/atomix/api v0.0.0-20200206211058-f075fb5b6d1b/go.mod h1:yD3KAX7yCeVhV github.com/atomix/api v0.0.0-20200207212403-a55e2fa6e823/go.mod h1:N+Jv8qV9klP+/RDAVxRbPdluB0cm1ZjKLDjd40/Ccv4= github.com/atomix/api v0.0.0-20200211005812-591fe8b07ea8/go.mod h1:N+Jv8qV9klP+/RDAVxRbPdluB0cm1ZjKLDjd40/Ccv4= github.com/atomix/api v0.1.0/go.mod h1:G8fCdKYiPhZMYTgfz7QAtw6JqIfY2szigiz/gILNY50= +github.com/atomix/api v0.2.0/go.mod h1:G8fCdKYiPhZMYTgfz7QAtw6JqIfY2szigiz/gILNY50= github.com/atomix/api v0.3.3/go.mod h1:G8fCdKYiPhZMYTgfz7QAtw6JqIfY2szigiz/gILNY50= github.com/atomix/atomix-api v0.0.0-20190826211343-dd8f4db3bf77/go.mod h1:joWKUd0zIeYbAQ0vmYHGsnV03ZgRalhceHgnJ3EN0mI= github.com/atomix/atomix-api v0.0.0-20191002225141-1ee9c98c7dfd/go.mod h1:joWKUd0zIeYbAQ0vmYHGsnV03ZgRalhceHgnJ3EN0mI= @@ -95,6 +100,8 @@ github.com/atomix/go-client v0.0.0-20200203180003-61799b5ca7c2/go.mod h1:VWAEeWd github.com/atomix/go-client v0.0.0-20200206051325-cdc03bd1c8bc/go.mod h1:8Gdux/UtiBQK5nmzN9jtWXuH16T6JPNsAxUA2wY4xVk= github.com/atomix/go-client v0.0.0-20200207221255-96f6ea5d353d/go.mod h1:xzh4ualJT1ftRWaYIZ3eMWkc9CW3GWJSUovzelObU4o= github.com/atomix/go-client v0.1.0/go.mod h1:ILrAqt6cUNOdPyifTt1yZ8f51HJ47AUWAzPEu3+bYro= +github.com/atomix/go-client v0.1.1/go.mod h1:Y3QjXcE6Sbb0QqMs1z9n0X3Mwafx26UYZAYf3qrVg24= +github.com/atomix/go-client v0.2.0/go.mod h1:2vnbQIfU7NwfJo+HwB5oBYkK2Me2rPexTpC1vvhveF4= github.com/atomix/go-client v0.4.1/go.mod h1:HGh43tCDIFmmyir3oNPCW4+sUsUfnmm10uUfHl81CJs= github.com/atomix/go-framework v0.0.0-20200123235029-e29fc7d6e104/go.mod h1:Dn7tjt5LIRA/qr5afQZDh9hdtvK82uQpMrADYIlVtfQ= github.com/atomix/go-framework v0.0.0-20200124003840-f24758b13aa2/go.mod h1:vo5K/v+rc5mohoZIw9vbyj+Y/EGGaEdF6XVkEvM9CSM= @@ -104,6 +111,8 @@ github.com/atomix/go-framework v0.0.0-20200206051223-9d6a0993cce6/go.mod h1:qkjY github.com/atomix/go-framework v0.0.0-20200207202010-51e205d726d2/go.mod h1:Q/0VngSkhuTvHc9W2/k3HCgMcSkI9UaxUgRPWjO5lJI= github.com/atomix/go-framework v0.0.0-20200207214715-0cee98c57cdd/go.mod h1:/KVF8Ab99yMqnkELF2LIwCTR9FO+KI5MW8trOfjIYSA= github.com/atomix/go-framework v0.0.0-20200211010411-ae512dcee9ad/go.mod h1:cAfmWGrf5gLmELevIVzUN73vQJiQt38tZ2D6aZaZm8U= +github.com/atomix/go-framework v0.1.1/go.mod h1:G7+oWIJUlx5Z8ohAzpIon6BAUPUo9VDx7w9AeQ6g3Wo= +github.com/atomix/go-framework v0.2.0/go.mod h1:fRMu6i8RQUR2XGHnC4csasmAsDd3CPv3yAEK/9NYzZo= github.com/atomix/go-framework v0.5.1/go.mod h1:5IGQzFZ+nixj7VmmiX+ntQCWXJ2ShT+0Un2BgWKL+mA= github.com/atomix/go-local v0.0.0-20200124003802-357f6682b2f4/go.mod h1:MabPkX/j2bN399GVAYGigyvDaAslu7omZoujEfzdKDg= github.com/atomix/go-local v0.0.0-20200202105028-743d224c66eb/go.mod h1:r+i7K/PMo9+0J0vQM7f7gjSsr8uZj6iiqkc8xLOIR/U= @@ -111,11 +120,14 @@ github.com/atomix/go-local v0.0.0-20200206051159-e57333bb7aab/go.mod h1:HjrFb/fm github.com/atomix/go-local v0.0.0-20200207202057-4a81cbdd3325/go.mod h1:n2xWQV3vAxEHcod1K82zOHlx/+iW9gbuu/zYzo5y060= github.com/atomix/go-local v0.0.0-20200207214727-4a5d923aa934/go.mod h1:qGUGef763ZEO4mcEJi7Bn2S7U/amLUWQp9RsAd+EtcQ= github.com/atomix/go-local v0.0.0-20200211010611-c99e53e4c653/go.mod h1:N3oigYZ/g2RRAHIBw/xk4GkBj6Dk0zDG/1VL52aSodk= +github.com/atomix/go-local v0.1.1/go.mod h1:nx3J3Xzu2K9t/7EdCc6rhW4AjGQ/cauhETTyoVZk+6k= +github.com/atomix/go-local v0.2.0/go.mod h1:nbbobMfxgeseJcxihY9yfN+6F2LIRYAGvOBb7jrrb80= github.com/atomix/go-local v0.5.1/go.mod h1:70rr/xzbzhQ34EdeW6UFmfFLaRADsHKXonXyTuz77H0= github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= @@ -130,6 +142,7 @@ github.com/cenkalti/backoff/v4 v4.0.0/go.mod h1:eEew/i+1Q6OrCDZh3WiXYv3+nJwBASZ8 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5/go.mod h1:/iP1qXHoty45bqomnu2LM+VVyAEdWN+vtSHGlQgyxbw= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -177,6 +190,7 @@ github.com/docker/distribution v0.0.0-20191216044856-a8371794149d/go.mod h1:0+TT github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v1.4.2-0.20200203170920-46ec8731fbce/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-metrics v0.0.0-20180209012529-399ea8c73916/go.mod h1:/u0gXw0Gay3ceNrsHubL3BtdOL2fHf93USgMTe0W5dI= @@ -317,6 +331,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.3.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= @@ -325,6 +340,7 @@ github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gosuri/uitable v0.0.4/go.mod h1:tKR86bXuXPZazfOTG1FIzvjIdXzd0mo4Vtn16vt0PJo= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.1.0/go.mod h1:f5nM7jw/oeRSadq3xCzHAvxcr8HZnzsqU6ILg/0NiiE= @@ -332,6 +348,7 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.2.0/go.mod h1:mJzapYve32yjrKlk9G github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.14.6/go.mod h1:zdiPV4Yse/1gnckTHtghG4GkDEdKCRJduHpTxT3/jcw= github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -355,6 +372,7 @@ github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBv github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= @@ -385,8 +403,10 @@ github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7 github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-shellwords v1.0.9/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -409,12 +429,26 @@ github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+ github.com/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onosproject/config-models/modelplugin/devicesim-1.0.0 v0.0.0-20200303111912-723f2289d4c2/go.mod h1:fnlrrfeXk6J57vIQ329fnNiOVCCeja9JzTaldVUb1cg= +github.com/onosproject/config-models/modelplugin/e2node-1.0.0 v0.0.0-20200511074107-7166e3a5247d/go.mod h1:407kda6Vngy5HedD29O0r/wznX+TFn+gvDwgWtV4XiM= +github.com/onosproject/config-models/modelplugin/testdevice-1.0.0 v0.0.0-20200303111912-723f2289d4c2/go.mod h1:WNjaBJ0e2gl1y7uu45AXmKCI0oxgCqSftha+FGMJ2JE= +github.com/onosproject/config-models/modelplugin/testdevice-2.0.0 v0.0.0-20200304144136-6992f473b240/go.mod h1:kHe1VPG+H+ow9IQYy5DW4qLxZsT3yVSc+3aGrO0KuVY= +github.com/onosproject/helmit v0.6.3/go.mod h1:ZvjMu26Kd19hCHzkpnUH1Zgv/htt7iZbPG1EsFXBlhc= +github.com/onosproject/helmit v0.6.4/go.mod h1:ZvjMu26Kd19hCHzkpnUH1Zgv/htt7iZbPG1EsFXBlhc= github.com/onosproject/helmit v0.6.6/go.mod h1:EorNGSNGWojXGxBEuiNmPScae+R2C5WYfg/13gKEPLw= github.com/onosproject/onos-api v0.7.2 h1:0q+xhRtWBZgKRiDJbRCM3N+HmBp0essyTG9eR8E337A= +github.com/onosproject/onos-config v0.6.5/go.mod h1:brhhOiZW4y/X+Q/ci4EFSGcPrQNWUgwmR+4BNR6xR+k= +github.com/onosproject/onos-lib-go v0.6.3/go.mod h1:5YjAEEoqqZR0EYWkV1CxyP7XwOqDXFbeJpmGnYixG+I= +github.com/onosproject/onos-lib-go v0.6.4/go.mod h1:CQV56xK6Djj9nG83OntLKMwZcVAMpUxhRXYDhNTMMbQ= +github.com/onosproject/onos-lib-go v0.6.5/go.mod h1:CQV56xK6Djj9nG83OntLKMwZcVAMpUxhRXYDhNTMMbQ= github.com/onosproject/onos-lib-go v0.6.25/go.mod h1:ttkK+fV2CULZFHiq6FBZ69i7/Nymi1Wow1DNy0Ik/2o= +github.com/onosproject/onos-ric v0.6.7/go.mod h1:bmifnyJZ98WDzoqqBNrXVVZ+Q8tZL1FJuEO5qeFHsso= github.com/onosproject/onos-test v0.6.2/go.mod h1:Ugb1OKR2bJhZjqpSMm9F5o6Ma2iwbtswhSlNyXXPgrg= +github.com/onosproject/onos-topo v0.6.3/go.mod h1:YUxOPZz32u2QseaNa7UuHFHl1ivs+kG4a9ntR2/cYQ0= +github.com/onosproject/onos-topo v0.6.9/go.mod h1:vS9Ki9KzSphcNtryWQPy8iyOi689FuCXeSiL0AyXfMo= github.com/onosproject/onos-topo v0.6.20 h1:XbedC4i6Vhlqt73FEEq+uQDA1v6jbCvEokL3zdVTuDo= github.com/onosproject/onos-topo v0.6.20/go.mod h1:N/HfqeO4QKlBmFGH/koH/yEzcFOoCV5CMAUvxdcoE8o= +github.com/onosproject/ran-simulator v0.6.6/go.mod h1:Uvcq6g9LuLUY3rDYDTU2o1nBzIV/zMUlHhBxKDchCv0= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -424,8 +458,10 @@ github.com/openconfig/gnmi v0.0.0-20190823184014-89b2bf29312c h1:a380JP+B7xlMbEQ github.com/openconfig/gnmi v0.0.0-20190823184014-89b2bf29312c/go.mod h1:t+O9It+LKzfOAhKTT5O0ehDix+MTqbtT0T9t+7zzOvc= github.com/openconfig/gnmi v0.0.0-20200617225440-d2b4e6a45802 h1:WXFwJlWOJINlwlyAZuNo4GdYZS6qPX36+rRUncLmN8Q= github.com/openconfig/gnmi v0.0.0-20200617225440-d2b4e6a45802/go.mod h1:M/EcuapNQgvzxo1DDXHK4tx3QpYM/uG4l591v33jG2A= +github.com/openconfig/goyang v0.0.0-20190924211109-064f9690516f/go.mod h1:dhXaV0JgHJzdrHi2l+w0fZrwArtXL7jEFoiqLEdmkvU= github.com/openconfig/goyang v0.0.0-20200115183954-d0a48929f0ea/go.mod h1:dhXaV0JgHJzdrHi2l+w0fZrwArtXL7jEFoiqLEdmkvU= github.com/openconfig/ygot v0.6.0/go.mod h1:o30svNf7O0xK+R35tlx95odkDmZWS9JyWWQSmIhqwAs= +github.com/openconfig/ygot v0.6.1-0.20200103195725-e3c44fa43926/go.mod h1:o30svNf7O0xK+R35tlx95odkDmZWS9JyWWQSmIhqwAs= github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= @@ -438,6 +474,7 @@ github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mo github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE= github.com/pierrec/lz4 v2.4.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= @@ -446,6 +483,8 @@ github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/plar/go-adaptive-radix-tree v1.0.1/go.mod h1:Ot8d28EII3i7Lv4PSvBlF8ejiD/CtRYDuPsySJbSaK8= +github.com/pmcxs/hexgrid v0.0.0-20190126214921-42796ac894ab/go.mod h1:NAc1c799x2Kd4SRP7M8oCEfc06dFX8V1TfkozjLcd+A= github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -455,28 +494,34 @@ github.com/prometheus/client_golang v0.0.0-20180209125602-c332b6f63c06/go.mod h1 github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.4.1/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.0.0-20180110214958-89604d197083/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.0.4-0.20170822132746-89742aefa4b2/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -496,6 +541,7 @@ github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3 github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v0.0.6/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -534,6 +580,7 @@ github.com/xeipuuv/gojsonschema v1.1.0/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4m github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1/go.mod h1:QcJo0QPSfTONNIgpN5RA8prR7fF8nkF6cTWTcNerRO8= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= @@ -550,6 +597,7 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= @@ -588,6 +636,7 @@ golang.org/x/mobile v0.0.0-20190806162312-597adff16ade/go.mod h1:AlhUtkH4DA4asiF golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -610,13 +659,17 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200301022130-244492dfa37a h1:GuSPYbZzB5/dcLNCwLQLsg3obCJtX9IJhpXkvY7kzk0= golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -648,6 +701,10 @@ golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 h1:7TYNF4UdlohbFwpNH04CoPMp1cHUZgO1Ebq5r2hIjfo= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -656,6 +713,7 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -680,7 +738,9 @@ golang.org/x/tools v0.0.0-20190806215303-88ddfcebc769/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200113040837-eac381796e91/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200313205530-4303120df7d8/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= @@ -704,6 +764,9 @@ google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200128133413-58ce757ed39b/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= @@ -714,9 +777,11 @@ google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ij google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.0/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= @@ -729,6 +794,7 @@ google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +googlemaps.github.io/maps v0.0.0-20200124220646-5b7f2815585f/go.mod h1:skwIRP56b3wXI7uVor5+NBjKLuQ3WXPpUvSKq4k7luo= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -755,7 +821,9 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/go/onos/ransim/metrics/metrics.pb.go b/go/onos/ransim/metrics/metrics.pb.go new file mode 100644 index 00000000..8596d664 --- /dev/null +++ b/go/onos/ransim/metrics/metrics.pb.go @@ -0,0 +1,2833 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: onos/ransim/metrics/metrics.proto + +package metrics + +import ( + context "context" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Change event type +type EventType int32 + +const ( + // NONE indicates unknown event type + EventType_NONE EventType = 0 + // UPDATED indicates a metric value was set (updated) + EventType_UPDATED EventType = 1 + // DELETED indicates a metric was deleted + EventType_DELETED EventType = 2 +) + +var EventType_name = map[int32]string{ + 0: "NONE", + 1: "UPDATED", + 2: "DELETED", +} + +var EventType_value = map[string]int32{ + "NONE": 0, + "UPDATED": 1, + "DELETED": 2, +} + +func (x EventType) String() string { + return proto.EnumName(EventType_name, int32(x)) +} + +func (EventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{0} +} + +type Metric struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` +} + +func (m *Metric) Reset() { *m = Metric{} } +func (m *Metric) String() string { return proto.CompactTextString(m) } +func (*Metric) ProtoMessage() {} +func (*Metric) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{0} +} +func (m *Metric) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Metric.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Metric) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metric.Merge(m, src) +} +func (m *Metric) XXX_Size() int { + return m.Size() +} +func (m *Metric) XXX_DiscardUnknown() { + xxx_messageInfo_Metric.DiscardUnknown(m) +} + +var xxx_messageInfo_Metric proto.InternalMessageInfo + +func (m *Metric) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +func (m *Metric) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Metric) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +func (m *Metric) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +type ListRequest struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` +} + +func (m *ListRequest) Reset() { *m = ListRequest{} } +func (m *ListRequest) String() string { return proto.CompactTextString(m) } +func (*ListRequest) ProtoMessage() {} +func (*ListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{1} +} +func (m *ListRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRequest.Merge(m, src) +} +func (m *ListRequest) XXX_Size() int { + return m.Size() +} +func (m *ListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRequest proto.InternalMessageInfo + +func (m *ListRequest) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +type ListResponse struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` + Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` +} + +func (m *ListResponse) Reset() { *m = ListResponse{} } +func (m *ListResponse) String() string { return proto.CompactTextString(m) } +func (*ListResponse) ProtoMessage() {} +func (*ListResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{2} +} +func (m *ListResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResponse.Merge(m, src) +} +func (m *ListResponse) XXX_Size() int { + return m.Size() +} +func (m *ListResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListResponse proto.InternalMessageInfo + +func (m *ListResponse) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +func (m *ListResponse) GetMetrics() []*Metric { + if m != nil { + return m.Metrics + } + return nil +} + +type SetRequest struct { + Metric *Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` +} + +func (m *SetRequest) Reset() { *m = SetRequest{} } +func (m *SetRequest) String() string { return proto.CompactTextString(m) } +func (*SetRequest) ProtoMessage() {} +func (*SetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{3} +} +func (m *SetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetRequest.Merge(m, src) +} +func (m *SetRequest) XXX_Size() int { + return m.Size() +} +func (m *SetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetRequest proto.InternalMessageInfo + +func (m *SetRequest) GetMetric() *Metric { + if m != nil { + return m.Metric + } + return nil +} + +type SetResponse struct { +} + +func (m *SetResponse) Reset() { *m = SetResponse{} } +func (m *SetResponse) String() string { return proto.CompactTextString(m) } +func (*SetResponse) ProtoMessage() {} +func (*SetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{4} +} +func (m *SetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetResponse.Merge(m, src) +} +func (m *SetResponse) XXX_Size() int { + return m.Size() +} +func (m *SetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SetResponse proto.InternalMessageInfo + +type GetRequest struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{5} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRequest proto.InternalMessageInfo + +func (m *GetRequest) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +func (m *GetRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type GetResponse struct { + Metric *Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{6} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetResponse proto.InternalMessageInfo + +func (m *GetResponse) GetMetric() *Metric { + if m != nil { + return m.Metric + } + return nil +} + +type DeleteRequest struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } +func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRequest) ProtoMessage() {} +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{7} +} +func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(m, src) +} +func (m *DeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo + +func (m *DeleteRequest) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +func (m *DeleteRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type DeleteResponse struct { +} + +func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } +func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteResponse) ProtoMessage() {} +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{8} +} +func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(m, src) +} +func (m *DeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo + +type DeleteAllRequest struct { + EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"` +} + +func (m *DeleteAllRequest) Reset() { *m = DeleteAllRequest{} } +func (m *DeleteAllRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteAllRequest) ProtoMessage() {} +func (*DeleteAllRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{9} +} +func (m *DeleteAllRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteAllRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteAllRequest.Merge(m, src) +} +func (m *DeleteAllRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteAllRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteAllRequest proto.InternalMessageInfo + +func (m *DeleteAllRequest) GetEntityID() uint64 { + if m != nil { + return m.EntityID + } + return 0 +} + +type DeleteAllResponse struct { +} + +func (m *DeleteAllResponse) Reset() { *m = DeleteAllResponse{} } +func (m *DeleteAllResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteAllResponse) ProtoMessage() {} +func (*DeleteAllResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{10} +} +func (m *DeleteAllResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteAllResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteAllResponse.Merge(m, src) +} +func (m *DeleteAllResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteAllResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteAllResponse proto.InternalMessageInfo + +type WatchRequest struct { +} + +func (m *WatchRequest) Reset() { *m = WatchRequest{} } +func (m *WatchRequest) String() string { return proto.CompactTextString(m) } +func (*WatchRequest) ProtoMessage() {} +func (*WatchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{11} +} +func (m *WatchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchRequest.Merge(m, src) +} +func (m *WatchRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchRequest proto.InternalMessageInfo + +type WatchResponse struct { + Metric *Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` + Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.metrics.EventType" json:"type,omitempty"` +} + +func (m *WatchResponse) Reset() { *m = WatchResponse{} } +func (m *WatchResponse) String() string { return proto.CompactTextString(m) } +func (*WatchResponse) ProtoMessage() {} +func (*WatchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_962071582db28e82, []int{12} +} +func (m *WatchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchResponse.Merge(m, src) +} +func (m *WatchResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchResponse proto.InternalMessageInfo + +func (m *WatchResponse) GetMetric() *Metric { + if m != nil { + return m.Metric + } + return nil +} + +func (m *WatchResponse) GetType() EventType { + if m != nil { + return m.Type + } + return EventType_NONE +} + +func init() { + proto.RegisterEnum("onos.ransim.metrics.EventType", EventType_name, EventType_value) + proto.RegisterType((*Metric)(nil), "onos.ransim.metrics.Metric") + proto.RegisterType((*ListRequest)(nil), "onos.ransim.metrics.ListRequest") + proto.RegisterType((*ListResponse)(nil), "onos.ransim.metrics.ListResponse") + proto.RegisterType((*SetRequest)(nil), "onos.ransim.metrics.SetRequest") + proto.RegisterType((*SetResponse)(nil), "onos.ransim.metrics.SetResponse") + proto.RegisterType((*GetRequest)(nil), "onos.ransim.metrics.GetRequest") + proto.RegisterType((*GetResponse)(nil), "onos.ransim.metrics.GetResponse") + proto.RegisterType((*DeleteRequest)(nil), "onos.ransim.metrics.DeleteRequest") + proto.RegisterType((*DeleteResponse)(nil), "onos.ransim.metrics.DeleteResponse") + proto.RegisterType((*DeleteAllRequest)(nil), "onos.ransim.metrics.DeleteAllRequest") + proto.RegisterType((*DeleteAllResponse)(nil), "onos.ransim.metrics.DeleteAllResponse") + proto.RegisterType((*WatchRequest)(nil), "onos.ransim.metrics.WatchRequest") + proto.RegisterType((*WatchResponse)(nil), "onos.ransim.metrics.WatchResponse") +} + +func init() { proto.RegisterFile("onos/ransim/metrics/metrics.proto", fileDescriptor_962071582db28e82) } + +var fileDescriptor_962071582db28e82 = []byte{ + // 521 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x8e, 0xd2, 0x50, + 0x14, 0xa6, 0xb4, 0xc3, 0xc0, 0x29, 0x90, 0x7a, 0x67, 0x16, 0x4d, 0x4d, 0x3a, 0x9d, 0x6b, 0x34, + 0xc4, 0x45, 0x31, 0x4c, 0x8c, 0x1b, 0x37, 0x90, 0x36, 0xf8, 0x33, 0x33, 0x8e, 0x30, 0xc6, 0xc4, + 0x1d, 0xe2, 0xc9, 0xd8, 0x08, 0x2d, 0xd2, 0x3b, 0x44, 0xde, 0xc2, 0xc7, 0x72, 0x39, 0x4b, 0x57, + 0xc6, 0xc0, 0x1b, 0xf8, 0x04, 0xa6, 0xf7, 0x5e, 0x7e, 0x4c, 0x4a, 0x11, 0x9d, 0x15, 0xe7, 0xe7, + 0x3b, 0xdf, 0xf9, 0xb9, 0x1f, 0x85, 0xe3, 0x28, 0x8c, 0xe2, 0xfa, 0xb8, 0x17, 0xc6, 0xc1, 0xb0, + 0x3e, 0x44, 0x36, 0x0e, 0xfa, 0xf1, 0xe2, 0xd7, 0x1d, 0x8d, 0x23, 0x16, 0x91, 0x83, 0x04, 0xe2, + 0x0a, 0x88, 0x2b, 0x53, 0xd6, 0xe1, 0x55, 0x74, 0x15, 0xf1, 0x7c, 0x3d, 0xb1, 0x04, 0x94, 0x86, + 0x50, 0x38, 0xe3, 0x00, 0x52, 0x83, 0x22, 0x86, 0x2c, 0x60, 0xd3, 0xe0, 0x83, 0xa9, 0x38, 0x4a, + 0x4d, 0x6b, 0x95, 0x67, 0x3f, 0x8e, 0x8a, 0x3e, 0x8f, 0x3d, 0xf7, 0x3a, 0xcb, 0x2c, 0x31, 0x40, + 0xfd, 0x84, 0x53, 0x33, 0xef, 0x28, 0xb5, 0x52, 0x27, 0x31, 0xc9, 0x21, 0xec, 0x4d, 0x7a, 0x83, + 0x6b, 0x34, 0x55, 0x1e, 0x13, 0x0e, 0x21, 0xa0, 0xb1, 0xe9, 0x08, 0x4d, 0x8d, 0x07, 0xb9, 0x4d, + 0x9f, 0x80, 0x7e, 0x1a, 0xc4, 0xac, 0x83, 0x9f, 0xaf, 0x31, 0x66, 0x7f, 0xdf, 0x94, 0x46, 0x50, + 0x16, 0x85, 0xf1, 0x28, 0x0a, 0x63, 0xdc, 0x61, 0xdc, 0xc7, 0xb0, 0x2f, 0x6f, 0x60, 0xe6, 0x1d, + 0xb5, 0xa6, 0x37, 0xee, 0xba, 0x29, 0xf7, 0x71, 0xc5, 0x19, 0x3a, 0x0b, 0x2c, 0x6d, 0x02, 0x74, + 0x71, 0x39, 0xe8, 0x09, 0x14, 0x44, 0x82, 0x37, 0xdb, 0xc2, 0x21, 0xa1, 0xb4, 0x02, 0x3a, 0xa7, + 0x10, 0x23, 0xd3, 0x17, 0x00, 0x6d, 0xdc, 0x7d, 0xf5, 0xe4, 0x8e, 0x61, 0x6f, 0x88, 0xf2, 0xe0, + 0xdc, 0xa6, 0x2d, 0xd0, 0xdb, 0x2b, 0xea, 0x7f, 0x1b, 0xef, 0x0c, 0x2a, 0x1e, 0x0e, 0x90, 0xe1, + 0xed, 0x8c, 0x64, 0x40, 0x75, 0x41, 0x27, 0x17, 0x7e, 0x0a, 0x86, 0x88, 0x34, 0x07, 0x83, 0xdd, + 0x5f, 0xfc, 0x00, 0xee, 0xac, 0x55, 0x4b, 0xca, 0x2a, 0x94, 0xdf, 0xf6, 0x58, 0xff, 0xa3, 0xa4, + 0xa3, 0x5f, 0xa0, 0x22, 0xfd, 0xff, 0xb8, 0x04, 0x69, 0x48, 0xa5, 0x26, 0xeb, 0x54, 0x1b, 0x76, + 0x6a, 0x89, 0x3f, 0xc1, 0x90, 0x5d, 0x4e, 0x47, 0x28, 0x94, 0xfc, 0xb0, 0x0e, 0xa5, 0x65, 0x88, + 0x14, 0x41, 0x3b, 0x7f, 0x75, 0xee, 0x1b, 0x39, 0xa2, 0xc3, 0xfe, 0x9b, 0x0b, 0xaf, 0x79, 0xe9, + 0x7b, 0x86, 0x92, 0x38, 0x9e, 0x7f, 0xea, 0x27, 0x4e, 0xbe, 0xf1, 0x4b, 0x85, 0xaa, 0xe8, 0x1b, + 0x77, 0x71, 0x3c, 0x09, 0xfa, 0x48, 0x5e, 0x82, 0x96, 0x88, 0x9a, 0x38, 0xa9, 0x1d, 0xd7, 0xfe, + 0x28, 0xd6, 0x71, 0x06, 0x42, 0x6e, 0xfe, 0x0c, 0xd4, 0x2e, 0x32, 0x72, 0x94, 0x8a, 0x5c, 0x49, + 0xd9, 0x72, 0x36, 0x03, 0x56, 0x4c, 0xed, 0x8d, 0x4c, 0xed, 0x6d, 0x4c, 0xeb, 0xba, 0x7c, 0x0d, + 0x05, 0xf1, 0x86, 0x84, 0xa6, 0x62, 0xff, 0xd0, 0x9f, 0x75, 0x2f, 0x13, 0x23, 0x29, 0xdf, 0x41, + 0x69, 0x29, 0x0b, 0x72, 0x3f, 0xa3, 0x62, 0x25, 0x3a, 0xeb, 0xc1, 0x36, 0x98, 0xe4, 0xbe, 0x80, + 0x3d, 0xae, 0x26, 0x92, 0x7e, 0xee, 0x75, 0xe5, 0x59, 0x34, 0x0b, 0x22, 0xf8, 0x1e, 0x29, 0x2d, + 0xf3, 0xdb, 0xcc, 0x56, 0x6e, 0x66, 0xb6, 0xf2, 0x73, 0x66, 0x2b, 0x5f, 0xe7, 0x76, 0xee, 0x66, + 0x6e, 0xe7, 0xbe, 0xcf, 0xed, 0xdc, 0xfb, 0x02, 0xff, 0x00, 0x9f, 0xfc, 0x0e, 0x00, 0x00, 0xff, + 0xff, 0xcd, 0x85, 0x17, 0xc7, 0xd0, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MetricsServiceClient is the client API for MetricsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MetricsServiceClient interface { + // List returns an array of all metrics for the specified entity (Node, Cell or UE) + List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) + // Set sets value of the named metric for the specified entity + Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) + // Get retrieves the named metric for the specified entity + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + // Delete deletes the the named metric for the specified entity + Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + // DeleteAll deletes all metrics for the specified entity + DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*DeleteAllResponse, error) + // Watch returns a stream of ongoing changes to the metrics + Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetricsService_WatchClient, error) +} + +type metricsServiceClient struct { + cc *grpc.ClientConn +} + +func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient { + return &metricsServiceClient{cc} +} + +func (c *metricsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { + out := new(ListResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *metricsServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) { + out := new(SetResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Set", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *metricsServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { + out := new(GetResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *metricsServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { + out := new(DeleteResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *metricsServiceClient) DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*DeleteAllResponse, error) { + out := new(DeleteAllResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/DeleteAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *metricsServiceClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetricsService_WatchClient, error) { + stream, err := c.cc.NewStream(ctx, &_MetricsService_serviceDesc.Streams[0], "/onos.ransim.metrics.MetricsService/Watch", opts...) + if err != nil { + return nil, err + } + x := &metricsServiceWatchClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type MetricsService_WatchClient interface { + Recv() (*WatchResponse, error) + grpc.ClientStream +} + +type metricsServiceWatchClient struct { + grpc.ClientStream +} + +func (x *metricsServiceWatchClient) Recv() (*WatchResponse, error) { + m := new(WatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// MetricsServiceServer is the server API for MetricsService service. +type MetricsServiceServer interface { + // List returns an array of all metrics for the specified entity (Node, Cell or UE) + List(context.Context, *ListRequest) (*ListResponse, error) + // Set sets value of the named metric for the specified entity + Set(context.Context, *SetRequest) (*SetResponse, error) + // Get retrieves the named metric for the specified entity + Get(context.Context, *GetRequest) (*GetResponse, error) + // Delete deletes the the named metric for the specified entity + Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) + // DeleteAll deletes all metrics for the specified entity + DeleteAll(context.Context, *DeleteAllRequest) (*DeleteAllResponse, error) + // Watch returns a stream of ongoing changes to the metrics + Watch(*WatchRequest, MetricsService_WatchServer) error +} + +// UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMetricsServiceServer struct { +} + +func (*UnimplementedMetricsServiceServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (*UnimplementedMetricsServiceServer) Set(ctx context.Context, req *SetRequest) (*SetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Set not implemented") +} +func (*UnimplementedMetricsServiceServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedMetricsServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedMetricsServiceServer) DeleteAll(ctx context.Context, req *DeleteAllRequest) (*DeleteAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAll not implemented") +} +func (*UnimplementedMetricsServiceServer) Watch(req *WatchRequest, srv MetricsService_WatchServer) error { + return status.Errorf(codes.Unimplemented, "method Watch not implemented") +} + +func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) { + s.RegisterService(&_MetricsService_serviceDesc, srv) +} + +func _MetricsService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetricsServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.metrics.MetricsService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetricsServiceServer).List(ctx, req.(*ListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MetricsService_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetricsServiceServer).Set(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.metrics.MetricsService/Set", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetricsServiceServer).Set(ctx, req.(*SetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MetricsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetricsServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.metrics.MetricsService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetricsServiceServer).Get(ctx, req.(*GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MetricsService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetricsServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.metrics.MetricsService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetricsServiceServer).Delete(ctx, req.(*DeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MetricsService_DeleteAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteAllRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetricsServiceServer).DeleteAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.metrics.MetricsService/DeleteAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetricsServiceServer).DeleteAll(ctx, req.(*DeleteAllRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MetricsService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(MetricsServiceServer).Watch(m, &metricsServiceWatchServer{stream}) +} + +type MetricsService_WatchServer interface { + Send(*WatchResponse) error + grpc.ServerStream +} + +type metricsServiceWatchServer struct { + grpc.ServerStream +} + +func (x *metricsServiceWatchServer) Send(m *WatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _MetricsService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "onos.ransim.metrics.MetricsService", + HandlerType: (*MetricsServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _MetricsService_List_Handler, + }, + { + MethodName: "Set", + Handler: _MetricsService_Set_Handler, + }, + { + MethodName: "Get", + Handler: _MetricsService_Get_Handler, + }, + { + MethodName: "Delete", + Handler: _MetricsService_Delete_Handler, + }, + { + MethodName: "DeleteAll", + Handler: _MetricsService_DeleteAll_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Watch", + Handler: _MetricsService_Watch_Handler, + ServerStreams: true, + }, + }, + Metadata: "onos/ransim/metrics/metrics.proto", +} + +func (m *Metric) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Metric) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintMetrics(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintMetrics(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetrics(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Metrics) > 0 { + for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetrics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SetRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metric != nil { + { + size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetrics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintMetrics(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metric != nil { + { + size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetrics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintMetrics(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DeleteAllRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteAllRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EntityID != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DeleteAllResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteAllResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *WatchRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *WatchResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Type != 0 { + i = encodeVarintMetrics(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Metric != nil { + { + size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetrics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int { + offset -= sovMetrics(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Metric) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovMetrics(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovMetrics(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovMetrics(uint64(l)) + } + return n +} + +func (m *ListRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + return n +} + +func (m *ListResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + if len(m.Metrics) > 0 { + for _, e := range m.Metrics { + l = e.Size() + n += 1 + l + sovMetrics(uint64(l)) + } + } + return n +} + +func (m *SetRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metric != nil { + l = m.Metric.Size() + n += 1 + l + sovMetrics(uint64(l)) + } + return n +} + +func (m *SetResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovMetrics(uint64(l)) + } + return n +} + +func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metric != nil { + l = m.Metric.Size() + n += 1 + l + sovMetrics(uint64(l)) + } + return n +} + +func (m *DeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovMetrics(uint64(l)) + } + return n +} + +func (m *DeleteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DeleteAllRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EntityID != 0 { + n += 1 + sovMetrics(uint64(m.EntityID)) + } + return n +} + +func (m *DeleteAllResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *WatchRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *WatchResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metric != nil { + l = m.Metric.Size() + n += 1 + l + sovMetrics(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovMetrics(uint64(m.Type)) + } + return n +} + +func sovMetrics(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetrics(x uint64) (n int) { + return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Metric) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Metric: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metric: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metrics = append(m.Metrics, &Metric{}) + if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metric == nil { + m.Metric = &Metric{} + } + if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metric == nil { + m.Metric = &Metric{} + } + if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteAllRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteAllRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType) + } + m.EntityID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteAllResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteAllResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetrics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetrics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metric == nil { + m.Metric = &Metric{} + } + if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetrics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= EventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMetrics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMetrics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetrics(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetrics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetrics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetrics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMetrics + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetrics + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetrics + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group") +) diff --git a/go/onos/ransim/model/model.pb.go b/go/onos/ransim/model/model.pb.go new file mode 100644 index 00000000..45c8b2a6 --- /dev/null +++ b/go/onos/ransim/model/model.pb.go @@ -0,0 +1,5243 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: onos/ransim/model/model.proto + +package model + +import ( + context "context" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + github_com_onosproject_onos_api_go_onos_ransim_types "github.com/onosproject/onos-api/go/onos/ransim/types" + types "github.com/onosproject/onos-api/go/onos/ransim/types" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Change event type +type EventType int32 + +const ( + // NONE indicates this response represents a pre-existing entity + EventType_NONE EventType = 0 + // CREATED indicates a new entity was created + EventType_CREATED EventType = 1 + // UPDATED indicates an existing entity was updated + EventType_UPDATED EventType = 2 + // DELETED indicates an entity was deleted + EventType_DELETED EventType = 3 +) + +var EventType_name = map[int32]string{ + 0: "NONE", + 1: "CREATED", + 2: "UPDATED", + 3: "DELETED", +} + +var EventType_value = map[string]int32{ + "NONE": 0, + "CREATED": 1, + "UPDATED": 2, + "DELETED": 3, +} + +func (x EventType) String() string { + return proto.EnumName(EventType_name, int32(x)) +} + +func (EventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{0} +} + +// CreateNodeRequest create a node request +type CreateNodeRequest struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` +} + +func (m *CreateNodeRequest) Reset() { *m = CreateNodeRequest{} } +func (m *CreateNodeRequest) String() string { return proto.CompactTextString(m) } +func (*CreateNodeRequest) ProtoMessage() {} +func (*CreateNodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{0} +} +func (m *CreateNodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateNodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNodeRequest.Merge(m, src) +} +func (m *CreateNodeRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateNodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNodeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNodeRequest proto.InternalMessageInfo + +func (m *CreateNodeRequest) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +// CreateNodeResponse create a node response +type CreateNodeResponse struct { +} + +func (m *CreateNodeResponse) Reset() { *m = CreateNodeResponse{} } +func (m *CreateNodeResponse) String() string { return proto.CompactTextString(m) } +func (*CreateNodeResponse) ProtoMessage() {} +func (*CreateNodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{1} +} +func (m *CreateNodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateNodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNodeResponse.Merge(m, src) +} +func (m *CreateNodeResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateNodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNodeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNodeResponse proto.InternalMessageInfo + +// GetNodeRequest get a node request +type GetNodeRequest struct { + EnbID github_com_onosproject_onos_api_go_onos_ransim_types.EnbID `protobuf:"varint,1,opt,name=enbid,proto3,casttype=github.com/onosproject/onos-api/go/onos/ransim/types.EnbID" json:"enbid,omitempty"` +} + +func (m *GetNodeRequest) Reset() { *m = GetNodeRequest{} } +func (m *GetNodeRequest) String() string { return proto.CompactTextString(m) } +func (*GetNodeRequest) ProtoMessage() {} +func (*GetNodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{2} +} +func (m *GetNodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetNodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNodeRequest.Merge(m, src) +} +func (m *GetNodeRequest) XXX_Size() int { + return m.Size() +} +func (m *GetNodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetNodeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNodeRequest proto.InternalMessageInfo + +func (m *GetNodeRequest) GetEnbID() github_com_onosproject_onos_api_go_onos_ransim_types.EnbID { + if m != nil { + return m.EnbID + } + return 0 +} + +// GetNodeResponse get a node response +type GetNodeResponse struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` +} + +func (m *GetNodeResponse) Reset() { *m = GetNodeResponse{} } +func (m *GetNodeResponse) String() string { return proto.CompactTextString(m) } +func (*GetNodeResponse) ProtoMessage() {} +func (*GetNodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{3} +} +func (m *GetNodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetNodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNodeResponse.Merge(m, src) +} +func (m *GetNodeResponse) XXX_Size() int { + return m.Size() +} +func (m *GetNodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetNodeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNodeResponse proto.InternalMessageInfo + +func (m *GetNodeResponse) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +// UpdateNodeRequest update a node request +type UpdateNodeRequest struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` +} + +func (m *UpdateNodeRequest) Reset() { *m = UpdateNodeRequest{} } +func (m *UpdateNodeRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateNodeRequest) ProtoMessage() {} +func (*UpdateNodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{4} +} +func (m *UpdateNodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateNodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateNodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNodeRequest.Merge(m, src) +} +func (m *UpdateNodeRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateNodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNodeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNodeRequest proto.InternalMessageInfo + +func (m *UpdateNodeRequest) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +// UpdateNodeResponse update a node response +type UpdateNodeResponse struct { +} + +func (m *UpdateNodeResponse) Reset() { *m = UpdateNodeResponse{} } +func (m *UpdateNodeResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateNodeResponse) ProtoMessage() {} +func (*UpdateNodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{5} +} +func (m *UpdateNodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateNodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateNodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNodeResponse.Merge(m, src) +} +func (m *UpdateNodeResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateNodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNodeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNodeResponse proto.InternalMessageInfo + +// DeleteNodeRequest delete a node request +type DeleteNodeRequest struct { + EnbID github_com_onosproject_onos_api_go_onos_ransim_types.EnbID `protobuf:"varint,1,opt,name=enbid,proto3,casttype=github.com/onosproject/onos-api/go/onos/ransim/types.EnbID" json:"enbid,omitempty"` +} + +func (m *DeleteNodeRequest) Reset() { *m = DeleteNodeRequest{} } +func (m *DeleteNodeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteNodeRequest) ProtoMessage() {} +func (*DeleteNodeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{6} +} +func (m *DeleteNodeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteNodeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteNodeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNodeRequest.Merge(m, src) +} +func (m *DeleteNodeRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteNodeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNodeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNodeRequest proto.InternalMessageInfo + +func (m *DeleteNodeRequest) GetEnbID() github_com_onosproject_onos_api_go_onos_ransim_types.EnbID { + if m != nil { + return m.EnbID + } + return 0 +} + +// DeleteNodeResponse delete a node response +type DeleteNodeResponse struct { +} + +func (m *DeleteNodeResponse) Reset() { *m = DeleteNodeResponse{} } +func (m *DeleteNodeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteNodeResponse) ProtoMessage() {} +func (*DeleteNodeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{7} +} +func (m *DeleteNodeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteNodeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteNodeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNodeResponse.Merge(m, src) +} +func (m *DeleteNodeResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteNodeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNodeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNodeResponse proto.InternalMessageInfo + +type ListNodesRequest struct { +} + +func (m *ListNodesRequest) Reset() { *m = ListNodesRequest{} } +func (m *ListNodesRequest) String() string { return proto.CompactTextString(m) } +func (*ListNodesRequest) ProtoMessage() {} +func (*ListNodesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{8} +} +func (m *ListNodesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListNodesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListNodesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodesRequest.Merge(m, src) +} +func (m *ListNodesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListNodesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodesRequest proto.InternalMessageInfo + +type ListNodesResponse struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` +} + +func (m *ListNodesResponse) Reset() { *m = ListNodesResponse{} } +func (m *ListNodesResponse) String() string { return proto.CompactTextString(m) } +func (*ListNodesResponse) ProtoMessage() {} +func (*ListNodesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{9} +} +func (m *ListNodesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListNodesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListNodesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListNodesResponse.Merge(m, src) +} +func (m *ListNodesResponse) XXX_Size() int { + return m.Size() +} +func (m *ListNodesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListNodesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListNodesResponse proto.InternalMessageInfo + +func (m *ListNodesResponse) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +type WatchNodesRequest struct { + NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` + NoSubscribe bool `protobuf:"varint,2,opt,name=no_subscribe,json=noSubscribe,proto3" json:"no_subscribe,omitempty"` +} + +func (m *WatchNodesRequest) Reset() { *m = WatchNodesRequest{} } +func (m *WatchNodesRequest) String() string { return proto.CompactTextString(m) } +func (*WatchNodesRequest) ProtoMessage() {} +func (*WatchNodesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{10} +} +func (m *WatchNodesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchNodesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchNodesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchNodesRequest.Merge(m, src) +} +func (m *WatchNodesRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchNodesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchNodesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchNodesRequest proto.InternalMessageInfo + +func (m *WatchNodesRequest) GetNoReplay() bool { + if m != nil { + return m.NoReplay + } + return false +} + +func (m *WatchNodesRequest) GetNoSubscribe() bool { + if m != nil { + return m.NoSubscribe + } + return false +} + +type WatchNodesResponse struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.model.EventType" json:"type,omitempty"` +} + +func (m *WatchNodesResponse) Reset() { *m = WatchNodesResponse{} } +func (m *WatchNodesResponse) String() string { return proto.CompactTextString(m) } +func (*WatchNodesResponse) ProtoMessage() {} +func (*WatchNodesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{11} +} +func (m *WatchNodesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchNodesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchNodesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchNodesResponse.Merge(m, src) +} +func (m *WatchNodesResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchNodesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchNodesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchNodesResponse proto.InternalMessageInfo + +func (m *WatchNodesResponse) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *WatchNodesResponse) GetType() EventType { + if m != nil { + return m.Type + } + return EventType_NONE +} + +type AgentControlRequest struct { + EnbID github_com_onosproject_onos_api_go_onos_ransim_types.EnbID `protobuf:"varint,1,opt,name=enbid,proto3,casttype=github.com/onosproject/onos-api/go/onos/ransim/types.EnbID" json:"enbid,omitempty"` + Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` +} + +func (m *AgentControlRequest) Reset() { *m = AgentControlRequest{} } +func (m *AgentControlRequest) String() string { return proto.CompactTextString(m) } +func (*AgentControlRequest) ProtoMessage() {} +func (*AgentControlRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{12} +} +func (m *AgentControlRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AgentControlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AgentControlRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AgentControlRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AgentControlRequest.Merge(m, src) +} +func (m *AgentControlRequest) XXX_Size() int { + return m.Size() +} +func (m *AgentControlRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AgentControlRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AgentControlRequest proto.InternalMessageInfo + +func (m *AgentControlRequest) GetEnbID() github_com_onosproject_onos_api_go_onos_ransim_types.EnbID { + if m != nil { + return m.EnbID + } + return 0 +} + +func (m *AgentControlRequest) GetCommand() string { + if m != nil { + return m.Command + } + return "" +} + +func (m *AgentControlRequest) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +type AgentControlResponse struct { + Node *types.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` +} + +func (m *AgentControlResponse) Reset() { *m = AgentControlResponse{} } +func (m *AgentControlResponse) String() string { return proto.CompactTextString(m) } +func (*AgentControlResponse) ProtoMessage() {} +func (*AgentControlResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{13} +} +func (m *AgentControlResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AgentControlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AgentControlResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AgentControlResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AgentControlResponse.Merge(m, src) +} +func (m *AgentControlResponse) XXX_Size() int { + return m.Size() +} +func (m *AgentControlResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AgentControlResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AgentControlResponse proto.InternalMessageInfo + +func (m *AgentControlResponse) GetNode() *types.Node { + if m != nil { + return m.Node + } + return nil +} + +type CreateCellRequest struct { + Cell *types.Cell `protobuf:"bytes,1,opt,name=Cell,proto3" json:"Cell,omitempty"` +} + +func (m *CreateCellRequest) Reset() { *m = CreateCellRequest{} } +func (m *CreateCellRequest) String() string { return proto.CompactTextString(m) } +func (*CreateCellRequest) ProtoMessage() {} +func (*CreateCellRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{14} +} +func (m *CreateCellRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateCellRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateCellRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateCellRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateCellRequest.Merge(m, src) +} +func (m *CreateCellRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateCellRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateCellRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateCellRequest proto.InternalMessageInfo + +func (m *CreateCellRequest) GetCell() *types.Cell { + if m != nil { + return m.Cell + } + return nil +} + +type CreateCellResponse struct { +} + +func (m *CreateCellResponse) Reset() { *m = CreateCellResponse{} } +func (m *CreateCellResponse) String() string { return proto.CompactTextString(m) } +func (*CreateCellResponse) ProtoMessage() {} +func (*CreateCellResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{15} +} +func (m *CreateCellResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateCellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateCellResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateCellResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateCellResponse.Merge(m, src) +} +func (m *CreateCellResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateCellResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateCellResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateCellResponse proto.InternalMessageInfo + +type GetCellRequest struct { + ECGI github_com_onosproject_onos_api_go_onos_ransim_types.ECGI `protobuf:"varint,1,opt,name=ecgi,proto3,casttype=github.com/onosproject/onos-api/go/onos/ransim/types.ECGI" json:"ecgi,omitempty"` +} + +func (m *GetCellRequest) Reset() { *m = GetCellRequest{} } +func (m *GetCellRequest) String() string { return proto.CompactTextString(m) } +func (*GetCellRequest) ProtoMessage() {} +func (*GetCellRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{16} +} +func (m *GetCellRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCellRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCellRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCellRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCellRequest.Merge(m, src) +} +func (m *GetCellRequest) XXX_Size() int { + return m.Size() +} +func (m *GetCellRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCellRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCellRequest proto.InternalMessageInfo + +func (m *GetCellRequest) GetECGI() github_com_onosproject_onos_api_go_onos_ransim_types.ECGI { + if m != nil { + return m.ECGI + } + return 0 +} + +type GetCellResponse struct { + Cell *types.Cell `protobuf:"bytes,1,opt,name=Cell,proto3" json:"Cell,omitempty"` +} + +func (m *GetCellResponse) Reset() { *m = GetCellResponse{} } +func (m *GetCellResponse) String() string { return proto.CompactTextString(m) } +func (*GetCellResponse) ProtoMessage() {} +func (*GetCellResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{17} +} +func (m *GetCellResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCellResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCellResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCellResponse.Merge(m, src) +} +func (m *GetCellResponse) XXX_Size() int { + return m.Size() +} +func (m *GetCellResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCellResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCellResponse proto.InternalMessageInfo + +func (m *GetCellResponse) GetCell() *types.Cell { + if m != nil { + return m.Cell + } + return nil +} + +type UpdateCellRequest struct { + Cell *types.Cell `protobuf:"bytes,1,opt,name=Cell,proto3" json:"Cell,omitempty"` +} + +func (m *UpdateCellRequest) Reset() { *m = UpdateCellRequest{} } +func (m *UpdateCellRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateCellRequest) ProtoMessage() {} +func (*UpdateCellRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{18} +} +func (m *UpdateCellRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateCellRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateCellRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateCellRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateCellRequest.Merge(m, src) +} +func (m *UpdateCellRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateCellRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateCellRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateCellRequest proto.InternalMessageInfo + +func (m *UpdateCellRequest) GetCell() *types.Cell { + if m != nil { + return m.Cell + } + return nil +} + +type UpdateCellResponse struct { +} + +func (m *UpdateCellResponse) Reset() { *m = UpdateCellResponse{} } +func (m *UpdateCellResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateCellResponse) ProtoMessage() {} +func (*UpdateCellResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{19} +} +func (m *UpdateCellResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateCellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateCellResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateCellResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateCellResponse.Merge(m, src) +} +func (m *UpdateCellResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateCellResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateCellResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateCellResponse proto.InternalMessageInfo + +type DeleteCellRequest struct { + ECGI github_com_onosproject_onos_api_go_onos_ransim_types.ECGI `protobuf:"varint,1,opt,name=enbid,proto3,casttype=github.com/onosproject/onos-api/go/onos/ransim/types.ECGI" json:"enbid,omitempty"` +} + +func (m *DeleteCellRequest) Reset() { *m = DeleteCellRequest{} } +func (m *DeleteCellRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteCellRequest) ProtoMessage() {} +func (*DeleteCellRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{20} +} +func (m *DeleteCellRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteCellRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteCellRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteCellRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCellRequest.Merge(m, src) +} +func (m *DeleteCellRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteCellRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCellRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteCellRequest proto.InternalMessageInfo + +func (m *DeleteCellRequest) GetECGI() github_com_onosproject_onos_api_go_onos_ransim_types.ECGI { + if m != nil { + return m.ECGI + } + return 0 +} + +type DeleteCellResponse struct { +} + +func (m *DeleteCellResponse) Reset() { *m = DeleteCellResponse{} } +func (m *DeleteCellResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteCellResponse) ProtoMessage() {} +func (*DeleteCellResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{21} +} +func (m *DeleteCellResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteCellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteCellResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteCellResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCellResponse.Merge(m, src) +} +func (m *DeleteCellResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteCellResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCellResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteCellResponse proto.InternalMessageInfo + +type WatchCellsRequest struct { + NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` + NoSubscribe bool `protobuf:"varint,2,opt,name=no_subscribe,json=noSubscribe,proto3" json:"no_subscribe,omitempty"` +} + +func (m *WatchCellsRequest) Reset() { *m = WatchCellsRequest{} } +func (m *WatchCellsRequest) String() string { return proto.CompactTextString(m) } +func (*WatchCellsRequest) ProtoMessage() {} +func (*WatchCellsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{22} +} +func (m *WatchCellsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchCellsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchCellsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchCellsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchCellsRequest.Merge(m, src) +} +func (m *WatchCellsRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchCellsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchCellsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchCellsRequest proto.InternalMessageInfo + +func (m *WatchCellsRequest) GetNoReplay() bool { + if m != nil { + return m.NoReplay + } + return false +} + +func (m *WatchCellsRequest) GetNoSubscribe() bool { + if m != nil { + return m.NoSubscribe + } + return false +} + +type WatchCellsResponse struct { + Cell *types.Cell `protobuf:"bytes,1,opt,name=Cell,proto3" json:"Cell,omitempty"` + Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.model.EventType" json:"type,omitempty"` +} + +func (m *WatchCellsResponse) Reset() { *m = WatchCellsResponse{} } +func (m *WatchCellsResponse) String() string { return proto.CompactTextString(m) } +func (*WatchCellsResponse) ProtoMessage() {} +func (*WatchCellsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{23} +} +func (m *WatchCellsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchCellsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchCellsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchCellsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchCellsResponse.Merge(m, src) +} +func (m *WatchCellsResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchCellsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchCellsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchCellsResponse proto.InternalMessageInfo + +func (m *WatchCellsResponse) GetCell() *types.Cell { + if m != nil { + return m.Cell + } + return nil +} + +func (m *WatchCellsResponse) GetType() EventType { + if m != nil { + return m.Type + } + return EventType_NONE +} + +type ListCellsRequest struct { +} + +func (m *ListCellsRequest) Reset() { *m = ListCellsRequest{} } +func (m *ListCellsRequest) String() string { return proto.CompactTextString(m) } +func (*ListCellsRequest) ProtoMessage() {} +func (*ListCellsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{24} +} +func (m *ListCellsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListCellsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListCellsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListCellsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCellsRequest.Merge(m, src) +} +func (m *ListCellsRequest) XXX_Size() int { + return m.Size() +} +func (m *ListCellsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListCellsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCellsRequest proto.InternalMessageInfo + +type ListCellsResponse struct { + Cell *types.Cell `protobuf:"bytes,1,opt,name=Cell,proto3" json:"Cell,omitempty"` +} + +func (m *ListCellsResponse) Reset() { *m = ListCellsResponse{} } +func (m *ListCellsResponse) String() string { return proto.CompactTextString(m) } +func (*ListCellsResponse) ProtoMessage() {} +func (*ListCellsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9942ba2f94296ec8, []int{25} +} +func (m *ListCellsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListCellsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListCellsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListCellsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCellsResponse.Merge(m, src) +} +func (m *ListCellsResponse) XXX_Size() int { + return m.Size() +} +func (m *ListCellsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListCellsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCellsResponse proto.InternalMessageInfo + +func (m *ListCellsResponse) GetCell() *types.Cell { + if m != nil { + return m.Cell + } + return nil +} + +func init() { + proto.RegisterEnum("onos.ransim.model.EventType", EventType_name, EventType_value) + proto.RegisterType((*CreateNodeRequest)(nil), "onos.ransim.model.CreateNodeRequest") + proto.RegisterType((*CreateNodeResponse)(nil), "onos.ransim.model.CreateNodeResponse") + proto.RegisterType((*GetNodeRequest)(nil), "onos.ransim.model.GetNodeRequest") + proto.RegisterType((*GetNodeResponse)(nil), "onos.ransim.model.GetNodeResponse") + proto.RegisterType((*UpdateNodeRequest)(nil), "onos.ransim.model.UpdateNodeRequest") + proto.RegisterType((*UpdateNodeResponse)(nil), "onos.ransim.model.UpdateNodeResponse") + proto.RegisterType((*DeleteNodeRequest)(nil), "onos.ransim.model.DeleteNodeRequest") + proto.RegisterType((*DeleteNodeResponse)(nil), "onos.ransim.model.DeleteNodeResponse") + proto.RegisterType((*ListNodesRequest)(nil), "onos.ransim.model.ListNodesRequest") + proto.RegisterType((*ListNodesResponse)(nil), "onos.ransim.model.ListNodesResponse") + proto.RegisterType((*WatchNodesRequest)(nil), "onos.ransim.model.WatchNodesRequest") + proto.RegisterType((*WatchNodesResponse)(nil), "onos.ransim.model.WatchNodesResponse") + proto.RegisterType((*AgentControlRequest)(nil), "onos.ransim.model.AgentControlRequest") + proto.RegisterType((*AgentControlResponse)(nil), "onos.ransim.model.AgentControlResponse") + proto.RegisterType((*CreateCellRequest)(nil), "onos.ransim.model.CreateCellRequest") + proto.RegisterType((*CreateCellResponse)(nil), "onos.ransim.model.CreateCellResponse") + proto.RegisterType((*GetCellRequest)(nil), "onos.ransim.model.GetCellRequest") + proto.RegisterType((*GetCellResponse)(nil), "onos.ransim.model.GetCellResponse") + proto.RegisterType((*UpdateCellRequest)(nil), "onos.ransim.model.UpdateCellRequest") + proto.RegisterType((*UpdateCellResponse)(nil), "onos.ransim.model.UpdateCellResponse") + proto.RegisterType((*DeleteCellRequest)(nil), "onos.ransim.model.DeleteCellRequest") + proto.RegisterType((*DeleteCellResponse)(nil), "onos.ransim.model.DeleteCellResponse") + proto.RegisterType((*WatchCellsRequest)(nil), "onos.ransim.model.WatchCellsRequest") + proto.RegisterType((*WatchCellsResponse)(nil), "onos.ransim.model.WatchCellsResponse") + proto.RegisterType((*ListCellsRequest)(nil), "onos.ransim.model.ListCellsRequest") + proto.RegisterType((*ListCellsResponse)(nil), "onos.ransim.model.ListCellsResponse") +} + +func init() { proto.RegisterFile("onos/ransim/model/model.proto", fileDescriptor_9942ba2f94296ec8) } + +var fileDescriptor_9942ba2f94296ec8 = []byte{ + // 825 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x97, 0x6f, 0x4f, 0xd3, 0x5e, + 0x14, 0xc7, 0x57, 0x18, 0x3f, 0xd8, 0x81, 0x1f, 0xb2, 0xeb, 0x12, 0x97, 0xa9, 0x1b, 0x54, 0x54, + 0xa2, 0xb1, 0x23, 0xf3, 0x91, 0xc6, 0x18, 0x60, 0x6b, 0x16, 0x12, 0x44, 0x52, 0x20, 0x4a, 0x88, + 0x21, 0xfb, 0x73, 0x53, 0xaa, 0xdb, 0xbd, 0xb5, 0x2d, 0x26, 0xbc, 0x01, 0x1f, 0xfb, 0x1a, 0x4c, + 0x7c, 0x2f, 0x3e, 0xe4, 0xa1, 0x8f, 0x16, 0x33, 0xde, 0x05, 0x8f, 0xcc, 0xbd, 0xed, 0xd6, 0xdb, + 0xb5, 0x2b, 0xa1, 0xa0, 0x4f, 0x96, 0xde, 0xde, 0x73, 0x3f, 0xf7, 0x9c, 0xd3, 0x73, 0xce, 0x37, + 0x83, 0xfb, 0x94, 0x50, 0xbb, 0x6c, 0x35, 0x88, 0x6d, 0x74, 0xcb, 0x5d, 0xda, 0xc6, 0x1d, 0xf7, + 0x57, 0x31, 0x2d, 0xea, 0x50, 0x94, 0x65, 0xdb, 0x8a, 0xbb, 0xad, 0xf0, 0x8d, 0x42, 0x4e, 0xa7, + 0x3a, 0xe5, 0xbb, 0x65, 0xf6, 0xe4, 0x1a, 0x16, 0x02, 0x1c, 0xe7, 0xd4, 0xc4, 0xb6, 0xfb, 0xeb, + 0x6e, 0xcb, 0x6b, 0x90, 0xad, 0x5a, 0xb8, 0xe1, 0xe0, 0x6d, 0xda, 0xc6, 0x1a, 0xfe, 0x7c, 0x82, + 0x6d, 0x07, 0x3d, 0x85, 0x34, 0xa1, 0x6d, 0x9c, 0x97, 0x16, 0xa5, 0x95, 0xd9, 0xca, 0x1d, 0x45, + 0xbc, 0xcb, 0x3d, 0xcc, 0xad, 0xb9, 0x91, 0x9c, 0x03, 0x24, 0x12, 0x6c, 0x93, 0x12, 0x1b, 0xcb, + 0x14, 0xe6, 0xeb, 0xd8, 0x11, 0xa1, 0x1f, 0x60, 0x0a, 0x93, 0xa6, 0xd1, 0xe6, 0xd4, 0xff, 0x37, + 0xea, 0xfd, 0x5e, 0x69, 0x4a, 0x25, 0xcd, 0xcd, 0xda, 0x45, 0xaf, 0xf4, 0x52, 0x37, 0x9c, 0xe3, + 0x93, 0xa6, 0xd2, 0xa2, 0xdd, 0x32, 0xbb, 0xcc, 0xb4, 0xe8, 0x47, 0xdc, 0x72, 0xf8, 0xf3, 0xb3, + 0x86, 0x69, 0x94, 0x75, 0x5a, 0x0e, 0xc5, 0xa1, 0xf0, 0xd3, 0x9a, 0x4b, 0x95, 0x5f, 0xc3, 0xad, + 0xe1, 0x85, 0xae, 0x0f, 0x57, 0x0b, 0x63, 0x0d, 0xb2, 0xfb, 0x66, 0xfb, 0x9a, 0x89, 0x10, 0x09, + 0x5e, 0x22, 0x2c, 0xc8, 0xd6, 0x70, 0x07, 0x07, 0xb9, 0x7f, 0x39, 0x17, 0x39, 0x40, 0xe2, 0x9d, + 0x9e, 0x27, 0x08, 0x16, 0xb6, 0x0c, 0x9b, 0xa7, 0xc8, 0xf6, 0x1c, 0x61, 0x51, 0x0b, 0xef, 0x92, + 0xe4, 0x6d, 0x17, 0xb2, 0xef, 0x1a, 0x4e, 0xeb, 0x58, 0xc4, 0xa2, 0xbb, 0x90, 0x21, 0xf4, 0xc8, + 0xc2, 0x66, 0xa7, 0x71, 0xca, 0x31, 0x33, 0xda, 0x0c, 0xa1, 0x1a, 0x5f, 0xa3, 0x25, 0x98, 0x23, + 0xf4, 0xc8, 0x3e, 0x69, 0xda, 0x2d, 0xcb, 0x68, 0xe2, 0xfc, 0x04, 0xdf, 0x9f, 0x25, 0x74, 0x77, + 0xf0, 0x4a, 0xb6, 0x01, 0x89, 0xd0, 0x04, 0x7e, 0xa1, 0x55, 0x48, 0xb3, 0x77, 0x9c, 0x3e, 0x5f, + 0xb9, 0xa7, 0x84, 0xfa, 0x45, 0x51, 0xbf, 0x60, 0xe2, 0xec, 0x9d, 0x9a, 0x58, 0xe3, 0x96, 0xf2, + 0x77, 0x09, 0x6e, 0xaf, 0xeb, 0x98, 0x38, 0x55, 0x4a, 0x1c, 0x8b, 0x76, 0xfe, 0xcd, 0xc7, 0x42, + 0x79, 0x98, 0x6e, 0xd1, 0x6e, 0xb7, 0x41, 0xda, 0xdc, 0xd7, 0x8c, 0x36, 0x58, 0x22, 0x04, 0xe9, + 0x86, 0xa5, 0xdb, 0xf9, 0xc9, 0xc5, 0xc9, 0x95, 0x8c, 0xc6, 0x9f, 0xe5, 0x2a, 0xe4, 0x82, 0x3e, + 0x26, 0xac, 0x75, 0xb7, 0x65, 0xab, 0xb8, 0xd3, 0x11, 0x6a, 0x9d, 0x2d, 0x63, 0x08, 0xdc, 0x9a, + 0x1b, 0xf9, 0x4d, 0xef, 0x12, 0xbc, 0x0a, 0xfb, 0xc4, 0x9b, 0x5e, 0x84, 0x1e, 0x40, 0x1a, 0xb7, + 0x74, 0xc3, 0x4b, 0x9d, 0xda, 0xef, 0x95, 0xd2, 0x6a, 0xb5, 0xbe, 0x79, 0xd1, 0x2b, 0xbd, 0x48, + 0x96, 0xb9, 0x6a, 0x7d, 0x53, 0xe3, 0x48, 0xaf, 0xe1, 0xc5, 0xfb, 0xaf, 0x16, 0xc2, 0xb0, 0xe1, + 0xaf, 0x93, 0x04, 0x91, 0xe0, 0x25, 0xc1, 0x1c, 0x34, 0xbc, 0xc8, 0x3d, 0x0c, 0xd6, 0xd0, 0x0d, + 0x25, 0x62, 0xb4, 0xdd, 0x03, 0x7e, 0x0c, 0x1a, 0x93, 0xbd, 0xbc, 0xf1, 0xc6, 0xf4, 0xa0, 0x09, + 0xf2, 0x9e, 0xa0, 0x31, 0xbd, 0xc1, 0x25, 0x06, 0x32, 0x18, 0x5c, 0xc9, 0xfd, 0x78, 0xf2, 0x0a, + 0x32, 0xc3, 0x8b, 0xd0, 0x0c, 0xa4, 0xb7, 0xdf, 0x6e, 0xab, 0x0b, 0x29, 0x34, 0x0b, 0xd3, 0x55, + 0x4d, 0x5d, 0xdf, 0x53, 0x6b, 0x0b, 0x12, 0x5b, 0xec, 0xef, 0xd4, 0xf8, 0x62, 0x82, 0x2d, 0x6a, + 0xea, 0x96, 0xca, 0x16, 0x93, 0x95, 0xaf, 0x53, 0x90, 0x61, 0x1d, 0xf5, 0x86, 0x79, 0x8c, 0x0e, + 0x00, 0x7c, 0x0d, 0x44, 0xcb, 0x11, 0x31, 0x85, 0x44, 0xb6, 0xf0, 0xf0, 0x12, 0x2b, 0x2f, 0xa6, + 0x1d, 0x98, 0xf6, 0x74, 0x0d, 0x2d, 0x45, 0x9c, 0x08, 0x8a, 0x6c, 0x41, 0x8e, 0x33, 0xf1, 0x88, + 0x07, 0x00, 0xbe, 0x4e, 0x45, 0x3a, 0x1b, 0x12, 0xc2, 0x48, 0x67, 0xc3, 0x62, 0xc7, 0xd0, 0xbe, + 0xf0, 0x44, 0xa2, 0x43, 0x5a, 0x18, 0x89, 0x0e, 0xab, 0x17, 0x3a, 0x04, 0xf0, 0x25, 0x21, 0x12, + 0x1d, 0x92, 0xa1, 0x48, 0x74, 0x58, 0x57, 0x56, 0x25, 0xf4, 0x1e, 0x32, 0x43, 0x19, 0x44, 0x0f, + 0x22, 0x4e, 0x8d, 0x0a, 0x67, 0x61, 0x39, 0xde, 0x68, 0x48, 0x3e, 0x82, 0x39, 0x71, 0x5e, 0xa3, + 0x47, 0x11, 0xe7, 0x22, 0x44, 0xa7, 0xf0, 0xf8, 0x52, 0x3b, 0xf7, 0x8a, 0xca, 0x8f, 0x34, 0x64, + 0x58, 0x3d, 0x8f, 0x14, 0x22, 0x6f, 0xb5, 0xf1, 0x85, 0x28, 0xcc, 0xa6, 0x98, 0x42, 0x0c, 0x0c, + 0xd7, 0xe1, 0xb7, 0x1d, 0x8b, 0x0e, 0x8d, 0xbd, 0x98, 0x6f, 0x3b, 0x8a, 0xf6, 0x07, 0x69, 0x4c, + 0x45, 0x5e, 0x86, 0x0e, 0x4f, 0x63, 0xaf, 0x7d, 0x38, 0x77, 0x4c, 0xfb, 0x88, 0x50, 0x39, 0xce, + 0x64, 0xa4, 0x10, 0xf9, 0xe8, 0x19, 0x5f, 0x88, 0xe2, 0xb4, 0x1a, 0x5f, 0x88, 0x81, 0xf9, 0xe5, + 0x17, 0xa2, 0xcb, 0x1e, 0x57, 0x88, 0x01, 0xf4, 0x72, 0xbc, 0xd1, 0x80, 0xbc, 0x91, 0xff, 0xd9, + 0x2f, 0x4a, 0x67, 0xfd, 0xa2, 0xf4, 0xbb, 0x5f, 0x94, 0xbe, 0x9d, 0x17, 0x53, 0x67, 0xe7, 0xc5, + 0xd4, 0xaf, 0xf3, 0x62, 0xaa, 0xf9, 0x1f, 0xff, 0x27, 0xf0, 0xfc, 0x4f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x79, 0x71, 0x60, 0x9d, 0x72, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// NodeModelClient is the client API for NodeModel service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NodeModelClient interface { + CreateNode(ctx context.Context, in *CreateNodeRequest, opts ...grpc.CallOption) (*CreateNodeResponse, error) + GetNode(ctx context.Context, in *GetNodeRequest, opts ...grpc.CallOption) (*GetNodeResponse, error) + UpdateNode(ctx context.Context, in *UpdateNodeRequest, opts ...grpc.CallOption) (*UpdateNodeResponse, error) + DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...grpc.CallOption) (*DeleteNodeResponse, error) + WatchNodes(ctx context.Context, in *WatchNodesRequest, opts ...grpc.CallOption) (NodeModel_WatchNodesClient, error) + ListNodes(ctx context.Context, in *ListNodesRequest, opts ...grpc.CallOption) (NodeModel_ListNodesClient, error) + AgentControl(ctx context.Context, in *AgentControlRequest, opts ...grpc.CallOption) (*AgentControlResponse, error) +} + +type nodeModelClient struct { + cc *grpc.ClientConn +} + +func NewNodeModelClient(cc *grpc.ClientConn) NodeModelClient { + return &nodeModelClient{cc} +} + +func (c *nodeModelClient) CreateNode(ctx context.Context, in *CreateNodeRequest, opts ...grpc.CallOption) (*CreateNodeResponse, error) { + out := new(CreateNodeResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.NodeModel/CreateNode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeModelClient) GetNode(ctx context.Context, in *GetNodeRequest, opts ...grpc.CallOption) (*GetNodeResponse, error) { + out := new(GetNodeResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.NodeModel/GetNode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeModelClient) UpdateNode(ctx context.Context, in *UpdateNodeRequest, opts ...grpc.CallOption) (*UpdateNodeResponse, error) { + out := new(UpdateNodeResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.NodeModel/UpdateNode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeModelClient) DeleteNode(ctx context.Context, in *DeleteNodeRequest, opts ...grpc.CallOption) (*DeleteNodeResponse, error) { + out := new(DeleteNodeResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.NodeModel/DeleteNode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeModelClient) WatchNodes(ctx context.Context, in *WatchNodesRequest, opts ...grpc.CallOption) (NodeModel_WatchNodesClient, error) { + stream, err := c.cc.NewStream(ctx, &_NodeModel_serviceDesc.Streams[0], "/onos.ransim.model.NodeModel/WatchNodes", opts...) + if err != nil { + return nil, err + } + x := &nodeModelWatchNodesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type NodeModel_WatchNodesClient interface { + Recv() (*WatchNodesResponse, error) + grpc.ClientStream +} + +type nodeModelWatchNodesClient struct { + grpc.ClientStream +} + +func (x *nodeModelWatchNodesClient) Recv() (*WatchNodesResponse, error) { + m := new(WatchNodesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *nodeModelClient) ListNodes(ctx context.Context, in *ListNodesRequest, opts ...grpc.CallOption) (NodeModel_ListNodesClient, error) { + stream, err := c.cc.NewStream(ctx, &_NodeModel_serviceDesc.Streams[1], "/onos.ransim.model.NodeModel/ListNodes", opts...) + if err != nil { + return nil, err + } + x := &nodeModelListNodesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type NodeModel_ListNodesClient interface { + Recv() (*ListNodesResponse, error) + grpc.ClientStream +} + +type nodeModelListNodesClient struct { + grpc.ClientStream +} + +func (x *nodeModelListNodesClient) Recv() (*ListNodesResponse, error) { + m := new(ListNodesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *nodeModelClient) AgentControl(ctx context.Context, in *AgentControlRequest, opts ...grpc.CallOption) (*AgentControlResponse, error) { + out := new(AgentControlResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.NodeModel/AgentControl", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NodeModelServer is the server API for NodeModel service. +type NodeModelServer interface { + CreateNode(context.Context, *CreateNodeRequest) (*CreateNodeResponse, error) + GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) + UpdateNode(context.Context, *UpdateNodeRequest) (*UpdateNodeResponse, error) + DeleteNode(context.Context, *DeleteNodeRequest) (*DeleteNodeResponse, error) + WatchNodes(*WatchNodesRequest, NodeModel_WatchNodesServer) error + ListNodes(*ListNodesRequest, NodeModel_ListNodesServer) error + AgentControl(context.Context, *AgentControlRequest) (*AgentControlResponse, error) +} + +// UnimplementedNodeModelServer can be embedded to have forward compatible implementations. +type UnimplementedNodeModelServer struct { +} + +func (*UnimplementedNodeModelServer) CreateNode(ctx context.Context, req *CreateNodeRequest) (*CreateNodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNode not implemented") +} +func (*UnimplementedNodeModelServer) GetNode(ctx context.Context, req *GetNodeRequest) (*GetNodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNode not implemented") +} +func (*UnimplementedNodeModelServer) UpdateNode(ctx context.Context, req *UpdateNodeRequest) (*UpdateNodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNode not implemented") +} +func (*UnimplementedNodeModelServer) DeleteNode(ctx context.Context, req *DeleteNodeRequest) (*DeleteNodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNode not implemented") +} +func (*UnimplementedNodeModelServer) WatchNodes(req *WatchNodesRequest, srv NodeModel_WatchNodesServer) error { + return status.Errorf(codes.Unimplemented, "method WatchNodes not implemented") +} +func (*UnimplementedNodeModelServer) ListNodes(req *ListNodesRequest, srv NodeModel_ListNodesServer) error { + return status.Errorf(codes.Unimplemented, "method ListNodes not implemented") +} +func (*UnimplementedNodeModelServer) AgentControl(ctx context.Context, req *AgentControlRequest) (*AgentControlResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AgentControl not implemented") +} + +func RegisterNodeModelServer(s *grpc.Server, srv NodeModelServer) { + s.RegisterService(&_NodeModel_serviceDesc, srv) +} + +func _NodeModel_CreateNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeModelServer).CreateNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.NodeModel/CreateNode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeModelServer).CreateNode(ctx, req.(*CreateNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeModel_GetNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeModelServer).GetNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.NodeModel/GetNode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeModelServer).GetNode(ctx, req.(*GetNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeModel_UpdateNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeModelServer).UpdateNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.NodeModel/UpdateNode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeModelServer).UpdateNode(ctx, req.(*UpdateNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeModel_DeleteNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeModelServer).DeleteNode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.NodeModel/DeleteNode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeModelServer).DeleteNode(ctx, req.(*DeleteNodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeModel_WatchNodes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchNodesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(NodeModelServer).WatchNodes(m, &nodeModelWatchNodesServer{stream}) +} + +type NodeModel_WatchNodesServer interface { + Send(*WatchNodesResponse) error + grpc.ServerStream +} + +type nodeModelWatchNodesServer struct { + grpc.ServerStream +} + +func (x *nodeModelWatchNodesServer) Send(m *WatchNodesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _NodeModel_ListNodes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListNodesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(NodeModelServer).ListNodes(m, &nodeModelListNodesServer{stream}) +} + +type NodeModel_ListNodesServer interface { + Send(*ListNodesResponse) error + grpc.ServerStream +} + +type nodeModelListNodesServer struct { + grpc.ServerStream +} + +func (x *nodeModelListNodesServer) Send(m *ListNodesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _NodeModel_AgentControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AgentControlRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeModelServer).AgentControl(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.NodeModel/AgentControl", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeModelServer).AgentControl(ctx, req.(*AgentControlRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NodeModel_serviceDesc = grpc.ServiceDesc{ + ServiceName: "onos.ransim.model.NodeModel", + HandlerType: (*NodeModelServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateNode", + Handler: _NodeModel_CreateNode_Handler, + }, + { + MethodName: "GetNode", + Handler: _NodeModel_GetNode_Handler, + }, + { + MethodName: "UpdateNode", + Handler: _NodeModel_UpdateNode_Handler, + }, + { + MethodName: "DeleteNode", + Handler: _NodeModel_DeleteNode_Handler, + }, + { + MethodName: "AgentControl", + Handler: _NodeModel_AgentControl_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "WatchNodes", + Handler: _NodeModel_WatchNodes_Handler, + ServerStreams: true, + }, + { + StreamName: "ListNodes", + Handler: _NodeModel_ListNodes_Handler, + ServerStreams: true, + }, + }, + Metadata: "onos/ransim/model/model.proto", +} + +// CellModelClient is the client API for CellModel service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CellModelClient interface { + CreateCell(ctx context.Context, in *CreateCellRequest, opts ...grpc.CallOption) (*CreateCellResponse, error) + DeleteCell(ctx context.Context, in *DeleteCellRequest, opts ...grpc.CallOption) (*DeleteCellResponse, error) + UpdateCell(ctx context.Context, in *UpdateCellRequest, opts ...grpc.CallOption) (*UpdateCellResponse, error) + GetCell(ctx context.Context, in *GetCellRequest, opts ...grpc.CallOption) (*GetCellResponse, error) + WatchCells(ctx context.Context, in *WatchCellsRequest, opts ...grpc.CallOption) (CellModel_WatchCellsClient, error) + ListCells(ctx context.Context, in *ListCellsRequest, opts ...grpc.CallOption) (CellModel_ListCellsClient, error) +} + +type cellModelClient struct { + cc *grpc.ClientConn +} + +func NewCellModelClient(cc *grpc.ClientConn) CellModelClient { + return &cellModelClient{cc} +} + +func (c *cellModelClient) CreateCell(ctx context.Context, in *CreateCellRequest, opts ...grpc.CallOption) (*CreateCellResponse, error) { + out := new(CreateCellResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.CellModel/CreateCell", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cellModelClient) DeleteCell(ctx context.Context, in *DeleteCellRequest, opts ...grpc.CallOption) (*DeleteCellResponse, error) { + out := new(DeleteCellResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.CellModel/DeleteCell", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cellModelClient) UpdateCell(ctx context.Context, in *UpdateCellRequest, opts ...grpc.CallOption) (*UpdateCellResponse, error) { + out := new(UpdateCellResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.CellModel/UpdateCell", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cellModelClient) GetCell(ctx context.Context, in *GetCellRequest, opts ...grpc.CallOption) (*GetCellResponse, error) { + out := new(GetCellResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.model.CellModel/GetCell", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cellModelClient) WatchCells(ctx context.Context, in *WatchCellsRequest, opts ...grpc.CallOption) (CellModel_WatchCellsClient, error) { + stream, err := c.cc.NewStream(ctx, &_CellModel_serviceDesc.Streams[0], "/onos.ransim.model.CellModel/WatchCells", opts...) + if err != nil { + return nil, err + } + x := &cellModelWatchCellsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CellModel_WatchCellsClient interface { + Recv() (*WatchCellsResponse, error) + grpc.ClientStream +} + +type cellModelWatchCellsClient struct { + grpc.ClientStream +} + +func (x *cellModelWatchCellsClient) Recv() (*WatchCellsResponse, error) { + m := new(WatchCellsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *cellModelClient) ListCells(ctx context.Context, in *ListCellsRequest, opts ...grpc.CallOption) (CellModel_ListCellsClient, error) { + stream, err := c.cc.NewStream(ctx, &_CellModel_serviceDesc.Streams[1], "/onos.ransim.model.CellModel/ListCells", opts...) + if err != nil { + return nil, err + } + x := &cellModelListCellsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CellModel_ListCellsClient interface { + Recv() (*ListCellsResponse, error) + grpc.ClientStream +} + +type cellModelListCellsClient struct { + grpc.ClientStream +} + +func (x *cellModelListCellsClient) Recv() (*ListCellsResponse, error) { + m := new(ListCellsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CellModelServer is the server API for CellModel service. +type CellModelServer interface { + CreateCell(context.Context, *CreateCellRequest) (*CreateCellResponse, error) + DeleteCell(context.Context, *DeleteCellRequest) (*DeleteCellResponse, error) + UpdateCell(context.Context, *UpdateCellRequest) (*UpdateCellResponse, error) + GetCell(context.Context, *GetCellRequest) (*GetCellResponse, error) + WatchCells(*WatchCellsRequest, CellModel_WatchCellsServer) error + ListCells(*ListCellsRequest, CellModel_ListCellsServer) error +} + +// UnimplementedCellModelServer can be embedded to have forward compatible implementations. +type UnimplementedCellModelServer struct { +} + +func (*UnimplementedCellModelServer) CreateCell(ctx context.Context, req *CreateCellRequest) (*CreateCellResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCell not implemented") +} +func (*UnimplementedCellModelServer) DeleteCell(ctx context.Context, req *DeleteCellRequest) (*DeleteCellResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteCell not implemented") +} +func (*UnimplementedCellModelServer) UpdateCell(ctx context.Context, req *UpdateCellRequest) (*UpdateCellResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCell not implemented") +} +func (*UnimplementedCellModelServer) GetCell(ctx context.Context, req *GetCellRequest) (*GetCellResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCell not implemented") +} +func (*UnimplementedCellModelServer) WatchCells(req *WatchCellsRequest, srv CellModel_WatchCellsServer) error { + return status.Errorf(codes.Unimplemented, "method WatchCells not implemented") +} +func (*UnimplementedCellModelServer) ListCells(req *ListCellsRequest, srv CellModel_ListCellsServer) error { + return status.Errorf(codes.Unimplemented, "method ListCells not implemented") +} + +func RegisterCellModelServer(s *grpc.Server, srv CellModelServer) { + s.RegisterService(&_CellModel_serviceDesc, srv) +} + +func _CellModel_CreateCell_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateCellRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CellModelServer).CreateCell(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.CellModel/CreateCell", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CellModelServer).CreateCell(ctx, req.(*CreateCellRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CellModel_DeleteCell_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteCellRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CellModelServer).DeleteCell(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.CellModel/DeleteCell", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CellModelServer).DeleteCell(ctx, req.(*DeleteCellRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CellModel_UpdateCell_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateCellRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CellModelServer).UpdateCell(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.CellModel/UpdateCell", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CellModelServer).UpdateCell(ctx, req.(*UpdateCellRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CellModel_GetCell_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCellRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CellModelServer).GetCell(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.model.CellModel/GetCell", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CellModelServer).GetCell(ctx, req.(*GetCellRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CellModel_WatchCells_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchCellsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CellModelServer).WatchCells(m, &cellModelWatchCellsServer{stream}) +} + +type CellModel_WatchCellsServer interface { + Send(*WatchCellsResponse) error + grpc.ServerStream +} + +type cellModelWatchCellsServer struct { + grpc.ServerStream +} + +func (x *cellModelWatchCellsServer) Send(m *WatchCellsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CellModel_ListCells_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListCellsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CellModelServer).ListCells(m, &cellModelListCellsServer{stream}) +} + +type CellModel_ListCellsServer interface { + Send(*ListCellsResponse) error + grpc.ServerStream +} + +type cellModelListCellsServer struct { + grpc.ServerStream +} + +func (x *cellModelListCellsServer) Send(m *ListCellsResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _CellModel_serviceDesc = grpc.ServiceDesc{ + ServiceName: "onos.ransim.model.CellModel", + HandlerType: (*CellModelServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateCell", + Handler: _CellModel_CreateCell_Handler, + }, + { + MethodName: "DeleteCell", + Handler: _CellModel_DeleteCell_Handler, + }, + { + MethodName: "UpdateCell", + Handler: _CellModel_UpdateCell_Handler, + }, + { + MethodName: "GetCell", + Handler: _CellModel_GetCell_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "WatchCells", + Handler: _CellModel_WatchCells_Handler, + ServerStreams: true, + }, + { + StreamName: "ListCells", + Handler: _CellModel_ListCells_Handler, + ServerStreams: true, + }, + }, + Metadata: "onos/ransim/model/model.proto", +} + +func (m *CreateNodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateNodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateNodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateNodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetNodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetNodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EnbID != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.EnbID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetNodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetNodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateNodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateNodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateNodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateNodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DeleteNodeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteNodeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EnbID != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.EnbID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DeleteNodeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteNodeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ListNodesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListNodesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ListNodesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListNodesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WatchNodesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchNodesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoSubscribe { + i-- + if m.NoSubscribe { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.NoReplay { + i-- + if m.NoReplay { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *WatchNodesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchNodesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Type != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AgentControlRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AgentControlRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AgentControlRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintModel(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Command) > 0 { + i -= len(m.Command) + copy(dAtA[i:], m.Command) + i = encodeVarintModel(dAtA, i, uint64(len(m.Command))) + i-- + dAtA[i] = 0x12 + } + if m.EnbID != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.EnbID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AgentControlResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AgentControlResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AgentControlResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Node != nil { + { + size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateCellRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateCellRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateCellRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Cell != nil { + { + size, err := m.Cell.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateCellResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateCellResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateCellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetCellRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCellRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCellRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ECGI != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.ECGI)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetCellResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCellResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Cell != nil { + { + size, err := m.Cell.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateCellRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateCellRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateCellRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Cell != nil { + { + size, err := m.Cell.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateCellResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateCellResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateCellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DeleteCellRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteCellRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteCellRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ECGI != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.ECGI)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DeleteCellResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteCellResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteCellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *WatchCellsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchCellsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchCellsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoSubscribe { + i-- + if m.NoSubscribe { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.NoReplay { + i-- + if m.NoReplay { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *WatchCellsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchCellsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchCellsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Type != 0 { + i = encodeVarintModel(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Cell != nil { + { + size, err := m.Cell.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListCellsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListCellsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListCellsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ListCellsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListCellsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListCellsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Cell != nil { + { + size, err := m.Cell.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModel(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintModel(dAtA []byte, offset int, v uint64) int { + offset -= sovModel(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CreateNodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *CreateNodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetNodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EnbID != 0 { + n += 1 + sovModel(uint64(m.EnbID)) + } + return n +} + +func (m *GetNodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *UpdateNodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *UpdateNodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DeleteNodeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EnbID != 0 { + n += 1 + sovModel(uint64(m.EnbID)) + } + return n +} + +func (m *DeleteNodeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ListNodesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ListNodesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *WatchNodesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoReplay { + n += 2 + } + if m.NoSubscribe { + n += 2 + } + return n +} + +func (m *WatchNodesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovModel(uint64(m.Type)) + } + return n +} + +func (m *AgentControlRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EnbID != 0 { + n += 1 + sovModel(uint64(m.EnbID)) + } + l = len(m.Command) + if l > 0 { + n += 1 + l + sovModel(uint64(l)) + } + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sovModel(uint64(l)) + } + } + return n +} + +func (m *AgentControlResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Node != nil { + l = m.Node.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *CreateCellRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cell != nil { + l = m.Cell.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *CreateCellResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetCellRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ECGI != 0 { + n += 1 + sovModel(uint64(m.ECGI)) + } + return n +} + +func (m *GetCellResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cell != nil { + l = m.Cell.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *UpdateCellRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cell != nil { + l = m.Cell.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func (m *UpdateCellResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DeleteCellRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ECGI != 0 { + n += 1 + sovModel(uint64(m.ECGI)) + } + return n +} + +func (m *DeleteCellResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *WatchCellsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoReplay { + n += 2 + } + if m.NoSubscribe { + n += 2 + } + return n +} + +func (m *WatchCellsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cell != nil { + l = m.Cell.Size() + n += 1 + l + sovModel(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovModel(uint64(m.Type)) + } + return n +} + +func (m *ListCellsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ListCellsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cell != nil { + l = m.Cell.Size() + n += 1 + l + sovModel(uint64(l)) + } + return n +} + +func sovModel(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModel(x uint64) (n int) { + return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CreateNodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateNodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateNodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateNodeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateNodeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateNodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetNodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetNodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetNodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnbID", wireType) + } + m.EnbID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EnbID |= github_com_onosproject_onos_api_go_onos_ransim_types.EnbID(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetNodeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetNodeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetNodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateNodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateNodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateNodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateNodeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateNodeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateNodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteNodeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteNodeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteNodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnbID", wireType) + } + m.EnbID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EnbID |= github_com_onosproject_onos_api_go_onos_ransim_types.EnbID(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteNodeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteNodeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteNodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListNodesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListNodesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListNodesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListNodesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListNodesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListNodesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchNodesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchNodesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchNodesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoReplay = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSubscribe", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSubscribe = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchNodesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchNodesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchNodesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= EventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AgentControlRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AgentControlRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AgentControlRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnbID", wireType) + } + m.EnbID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EnbID |= github_com_onosproject_onos_api_go_onos_ransim_types.EnbID(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Command = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AgentControlResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AgentControlResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AgentControlResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &types.Node{} + } + if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateCellRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cell == nil { + m.Cell = &types.Cell{} + } + if err := m.Cell.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateCellResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCellRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ECGI", wireType) + } + m.ECGI = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ECGI |= github_com_onosproject_onos_api_go_onos_ransim_types.ECGI(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCellResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cell == nil { + m.Cell = &types.Cell{} + } + if err := m.Cell.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateCellRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cell == nil { + m.Cell = &types.Cell{} + } + if err := m.Cell.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateCellResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteCellRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ECGI", wireType) + } + m.ECGI = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ECGI |= github_com_onosproject_onos_api_go_onos_ransim_types.ECGI(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteCellResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchCellsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchCellsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchCellsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoReplay = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSubscribe", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSubscribe = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchCellsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchCellsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchCellsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cell == nil { + m.Cell = &types.Cell{} + } + if err := m.Cell.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= EventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListCellsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListCellsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListCellsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListCellsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListCellsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListCellsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cell == nil { + m.Cell = &types.Cell{} + } + if err := m.Cell.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModel(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModel + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModel(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModel + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthModel + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModel + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModel + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModel = fmt.Errorf("proto: unexpected end of group") +) diff --git a/go/onos/ransim/trafficsim/trafficsim.pb.go b/go/onos/ransim/trafficsim/trafficsim.pb.go new file mode 100644 index 00000000..235de4fb --- /dev/null +++ b/go/onos/ransim/trafficsim/trafficsim.pb.go @@ -0,0 +1,2339 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: onos/ransim/trafficsim/trafficsim.proto + +package trafficsim + +import ( + context "context" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + types "github.com/onosproject/onos-api/go/onos/ransim/types" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Change event type +type Type int32 + +const ( + // NONE indicates this response does not represent a modification of the Change + Type_NONE Type = 0 + // ADDED is an event which occurs when a Change is added to the topology + Type_ADDED Type = 1 + // UPDATED is an event which occurs when a Change is updated + Type_UPDATED Type = 2 + // REMOVED is an event which occurs when a Change is removed from the configuration + Type_REMOVED Type = 3 +) + +var Type_name = map[int32]string{ + 0: "NONE", + 1: "ADDED", + 2: "UPDATED", + 3: "REMOVED", +} + +var Type_value = map[string]int32{ + "NONE": 0, + "ADDED": 1, + "UPDATED": 2, + "REMOVED": 3, +} + +func (x Type) String() string { + return proto.EnumName(Type_name, int32(x)) +} + +func (Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{0} +} + +// In the case of an update this helps qualify the update type - add items as necessary +type UpdateType int32 + +const ( + UpdateType_NOUPDATETYPE UpdateType = 0 + // POSITION An update in position of UE only, without a change in the Tower affinity + UpdateType_POSITION UpdateType = 1 + // TOWER An update in non-serving tower affinity (and also position) of UE + UpdateType_TOWER UpdateType = 2 + // HANDOVER An update of the serving tower + UpdateType_HANDOVER UpdateType = 3 +) + +var UpdateType_name = map[int32]string{ + 0: "NOUPDATETYPE", + 1: "POSITION", + 2: "TOWER", + 3: "HANDOVER", +} + +var UpdateType_value = map[string]int32{ + "NOUPDATETYPE": 0, + "POSITION": 1, + "TOWER": 2, + "HANDOVER": 3, +} + +func (x UpdateType) String() string { + return proto.EnumName(UpdateType_name, int32(x)) +} + +func (UpdateType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{1} +} + +type MapLayoutRequest struct { +} + +func (m *MapLayoutRequest) Reset() { *m = MapLayoutRequest{} } +func (m *MapLayoutRequest) String() string { return proto.CompactTextString(m) } +func (*MapLayoutRequest) ProtoMessage() {} +func (*MapLayoutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{0} +} +func (m *MapLayoutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapLayoutRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MapLayoutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapLayoutRequest.Merge(m, src) +} +func (m *MapLayoutRequest) XXX_Size() int { + return m.Size() +} +func (m *MapLayoutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MapLayoutRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MapLayoutRequest proto.InternalMessageInfo + +type ListRoutesRequest struct { + NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` + NoSubscribe bool `protobuf:"varint,2,opt,name=no_subscribe,json=noSubscribe,proto3" json:"no_subscribe,omitempty"` +} + +func (m *ListRoutesRequest) Reset() { *m = ListRoutesRequest{} } +func (m *ListRoutesRequest) String() string { return proto.CompactTextString(m) } +func (*ListRoutesRequest) ProtoMessage() {} +func (*ListRoutesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{1} +} +func (m *ListRoutesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListRoutesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListRoutesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRoutesRequest.Merge(m, src) +} +func (m *ListRoutesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListRoutesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListRoutesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRoutesRequest proto.InternalMessageInfo + +func (m *ListRoutesRequest) GetNoReplay() bool { + if m != nil { + return m.NoReplay + } + return false +} + +func (m *ListRoutesRequest) GetNoSubscribe() bool { + if m != nil { + return m.NoSubscribe + } + return false +} + +type ListRoutesResponse struct { + // route is the route change on which the event occurred + Route *types.Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` + // type is a qualification of the type of change being made + Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.trafficsim.Type" json:"type,omitempty"` +} + +func (m *ListRoutesResponse) Reset() { *m = ListRoutesResponse{} } +func (m *ListRoutesResponse) String() string { return proto.CompactTextString(m) } +func (*ListRoutesResponse) ProtoMessage() {} +func (*ListRoutesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{2} +} +func (m *ListRoutesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListRoutesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListRoutesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRoutesResponse.Merge(m, src) +} +func (m *ListRoutesResponse) XXX_Size() int { + return m.Size() +} +func (m *ListRoutesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListRoutesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRoutesResponse proto.InternalMessageInfo + +func (m *ListRoutesResponse) GetRoute() *types.Route { + if m != nil { + return m.Route + } + return nil +} + +func (m *ListRoutesResponse) GetType() Type { + if m != nil { + return m.Type + } + return Type_NONE +} + +type ListUesRequest struct { +} + +func (m *ListUesRequest) Reset() { *m = ListUesRequest{} } +func (m *ListUesRequest) String() string { return proto.CompactTextString(m) } +func (*ListUesRequest) ProtoMessage() {} +func (*ListUesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{3} +} +func (m *ListUesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListUesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListUesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListUesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListUesRequest.Merge(m, src) +} +func (m *ListUesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListUesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListUesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListUesRequest proto.InternalMessageInfo + +type ListUesResponse struct { + // Ue is the UserEquipment change on which the event occurred + Ue *types.Ue `protobuf:"bytes,1,opt,name=ue,proto3" json:"ue,omitempty"` +} + +func (m *ListUesResponse) Reset() { *m = ListUesResponse{} } +func (m *ListUesResponse) String() string { return proto.CompactTextString(m) } +func (*ListUesResponse) ProtoMessage() {} +func (*ListUesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{4} +} +func (m *ListUesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListUesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListUesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListUesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListUesResponse.Merge(m, src) +} +func (m *ListUesResponse) XXX_Size() int { + return m.Size() +} +func (m *ListUesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListUesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListUesResponse proto.InternalMessageInfo + +func (m *ListUesResponse) GetUe() *types.Ue { + if m != nil { + return m.Ue + } + return nil +} + +type WatchUesRequest struct { + NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` + NoSubscribe bool `protobuf:"varint,2,opt,name=no_subscribe,json=noSubscribe,proto3" json:"no_subscribe,omitempty"` +} + +func (m *WatchUesRequest) Reset() { *m = WatchUesRequest{} } +func (m *WatchUesRequest) String() string { return proto.CompactTextString(m) } +func (*WatchUesRequest) ProtoMessage() {} +func (*WatchUesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{5} +} +func (m *WatchUesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchUesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchUesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchUesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchUesRequest.Merge(m, src) +} +func (m *WatchUesRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchUesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchUesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchUesRequest proto.InternalMessageInfo + +func (m *WatchUesRequest) GetNoReplay() bool { + if m != nil { + return m.NoReplay + } + return false +} + +func (m *WatchUesRequest) GetNoSubscribe() bool { + if m != nil { + return m.NoSubscribe + } + return false +} + +type WatchUesResponse struct { + // Ue is the UserEquipment change on which the event occurred + Ue *types.Ue `protobuf:"bytes,1,opt,name=ue,proto3" json:"ue,omitempty"` + // type is a qualification of the type of change being made + Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.trafficsim.Type" json:"type,omitempty"` + // update_type is a qualification of the type of UE change + UpdateType UpdateType `protobuf:"varint,3,opt,name=update_type,json=updateType,proto3,enum=onos.ransim.trafficsim.UpdateType" json:"update_type,omitempty"` +} + +func (m *WatchUesResponse) Reset() { *m = WatchUesResponse{} } +func (m *WatchUesResponse) String() string { return proto.CompactTextString(m) } +func (*WatchUesResponse) ProtoMessage() {} +func (*WatchUesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{6} +} +func (m *WatchUesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchUesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchUesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WatchUesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchUesResponse.Merge(m, src) +} +func (m *WatchUesResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchUesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchUesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchUesResponse proto.InternalMessageInfo + +func (m *WatchUesResponse) GetUe() *types.Ue { + if m != nil { + return m.Ue + } + return nil +} + +func (m *WatchUesResponse) GetType() Type { + if m != nil { + return m.Type + } + return Type_NONE +} + +func (m *WatchUesResponse) GetUpdateType() UpdateType { + if m != nil { + return m.UpdateType + } + return UpdateType_NOUPDATETYPE +} + +type SetNumberUEsRequest struct { + Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` +} + +func (m *SetNumberUEsRequest) Reset() { *m = SetNumberUEsRequest{} } +func (m *SetNumberUEsRequest) String() string { return proto.CompactTextString(m) } +func (*SetNumberUEsRequest) ProtoMessage() {} +func (*SetNumberUEsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{7} +} +func (m *SetNumberUEsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetNumberUEsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetNumberUEsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetNumberUEsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetNumberUEsRequest.Merge(m, src) +} +func (m *SetNumberUEsRequest) XXX_Size() int { + return m.Size() +} +func (m *SetNumberUEsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetNumberUEsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetNumberUEsRequest proto.InternalMessageInfo + +func (m *SetNumberUEsRequest) GetNumber() uint32 { + if m != nil { + return m.Number + } + return 0 +} + +type SetNumberUEsResponse struct { + Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` +} + +func (m *SetNumberUEsResponse) Reset() { *m = SetNumberUEsResponse{} } +func (m *SetNumberUEsResponse) String() string { return proto.CompactTextString(m) } +func (*SetNumberUEsResponse) ProtoMessage() {} +func (*SetNumberUEsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{8} +} +func (m *SetNumberUEsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetNumberUEsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetNumberUEsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetNumberUEsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetNumberUEsResponse.Merge(m, src) +} +func (m *SetNumberUEsResponse) XXX_Size() int { + return m.Size() +} +func (m *SetNumberUEsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetNumberUEsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SetNumberUEsResponse proto.InternalMessageInfo + +func (m *SetNumberUEsResponse) GetNumber() uint32 { + if m != nil { + return m.Number + } + return 0 +} + +type ResetMetricsMsg struct { +} + +func (m *ResetMetricsMsg) Reset() { *m = ResetMetricsMsg{} } +func (m *ResetMetricsMsg) String() string { return proto.CompactTextString(m) } +func (*ResetMetricsMsg) ProtoMessage() {} +func (*ResetMetricsMsg) Descriptor() ([]byte, []int) { + return fileDescriptor_9ed0b8d1f9f6964b, []int{9} +} +func (m *ResetMetricsMsg) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResetMetricsMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResetMetricsMsg.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ResetMetricsMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetMetricsMsg.Merge(m, src) +} +func (m *ResetMetricsMsg) XXX_Size() int { + return m.Size() +} +func (m *ResetMetricsMsg) XXX_DiscardUnknown() { + xxx_messageInfo_ResetMetricsMsg.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetMetricsMsg proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("onos.ransim.trafficsim.Type", Type_name, Type_value) + proto.RegisterEnum("onos.ransim.trafficsim.UpdateType", UpdateType_name, UpdateType_value) + proto.RegisterType((*MapLayoutRequest)(nil), "onos.ransim.trafficsim.MapLayoutRequest") + proto.RegisterType((*ListRoutesRequest)(nil), "onos.ransim.trafficsim.ListRoutesRequest") + proto.RegisterType((*ListRoutesResponse)(nil), "onos.ransim.trafficsim.ListRoutesResponse") + proto.RegisterType((*ListUesRequest)(nil), "onos.ransim.trafficsim.ListUesRequest") + proto.RegisterType((*ListUesResponse)(nil), "onos.ransim.trafficsim.ListUesResponse") + proto.RegisterType((*WatchUesRequest)(nil), "onos.ransim.trafficsim.WatchUesRequest") + proto.RegisterType((*WatchUesResponse)(nil), "onos.ransim.trafficsim.WatchUesResponse") + proto.RegisterType((*SetNumberUEsRequest)(nil), "onos.ransim.trafficsim.SetNumberUEsRequest") + proto.RegisterType((*SetNumberUEsResponse)(nil), "onos.ransim.trafficsim.SetNumberUEsResponse") + proto.RegisterType((*ResetMetricsMsg)(nil), "onos.ransim.trafficsim.ResetMetricsMsg") +} + +func init() { + proto.RegisterFile("onos/ransim/trafficsim/trafficsim.proto", fileDescriptor_9ed0b8d1f9f6964b) +} + +var fileDescriptor_9ed0b8d1f9f6964b = []byte{ + // 595 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x8d, 0xd3, 0xb4, 0x4d, 0x6f, 0xfc, 0xb5, 0xee, 0x7c, 0x50, 0x45, 0xa6, 0x58, 0x60, 0x09, + 0x5a, 0x0a, 0xb8, 0x55, 0x11, 0x12, 0xdb, 0x82, 0x2d, 0xa8, 0xd4, 0xd8, 0x65, 0x62, 0xa7, 0x42, + 0x42, 0x0a, 0x4e, 0x98, 0x82, 0x25, 0x6a, 0x1b, 0xcf, 0x18, 0x29, 0x6f, 0xc1, 0xa3, 0xf0, 0x18, + 0x2c, 0xbb, 0x60, 0xc1, 0x12, 0x25, 0x2f, 0x82, 0x3c, 0x76, 0xec, 0x24, 0xc4, 0x34, 0x95, 0xd8, + 0x44, 0x33, 0x77, 0xce, 0x39, 0xf7, 0x27, 0xe7, 0x1a, 0x76, 0x02, 0x3f, 0xa0, 0xfb, 0x91, 0xeb, + 0x53, 0xef, 0x62, 0x9f, 0x45, 0xee, 0xf9, 0xb9, 0xd7, 0x9f, 0x3e, 0x6a, 0x61, 0x14, 0xb0, 0x00, + 0x6d, 0x25, 0x40, 0x2d, 0x05, 0x6a, 0xc5, 0xab, 0x7c, 0x7b, 0x4a, 0x60, 0x10, 0x12, 0x9a, 0xfe, + 0xa6, 0x34, 0x15, 0x81, 0xd4, 0x72, 0xc3, 0x13, 0x77, 0x10, 0xc4, 0x0c, 0x93, 0xcf, 0x31, 0xa1, + 0x4c, 0x6d, 0xc3, 0xe6, 0x89, 0x47, 0x19, 0x0e, 0x62, 0x46, 0x68, 0x16, 0x44, 0xb7, 0x60, 0xcd, + 0x0f, 0xba, 0x11, 0x09, 0x3f, 0xb9, 0x83, 0xa6, 0x70, 0x47, 0xd8, 0xad, 0xe3, 0xba, 0x1f, 0x60, + 0x7e, 0x47, 0x77, 0x41, 0xf4, 0x83, 0x2e, 0x8d, 0x7b, 0xb4, 0x1f, 0x79, 0x3d, 0xd2, 0xac, 0xf2, + 0xf7, 0x86, 0x1f, 0xb4, 0xc7, 0x21, 0xf5, 0x0b, 0xa0, 0x49, 0x51, 0x1a, 0x06, 0x3e, 0x25, 0x48, + 0x83, 0xe5, 0x28, 0x89, 0x70, 0xc5, 0xc6, 0x61, 0x53, 0x9b, 0xea, 0x82, 0xd7, 0xc9, 0x19, 0x38, + 0x85, 0xa1, 0x03, 0xa8, 0x25, 0x51, 0x9e, 0x60, 0xfd, 0x70, 0x5b, 0x9b, 0xdf, 0xb4, 0x66, 0x0f, + 0x42, 0x82, 0x39, 0x52, 0x95, 0x60, 0x3d, 0xc9, 0xeb, 0xe4, 0x9d, 0xa8, 0xcf, 0x60, 0x23, 0x8f, + 0x64, 0x65, 0xdc, 0x83, 0x6a, 0x3c, 0xae, 0xe1, 0xe6, 0x9c, 0x1a, 0x1c, 0x82, 0xab, 0x31, 0x51, + 0x5f, 0xc3, 0xc6, 0x99, 0xcb, 0xfa, 0x1f, 0x9d, 0x7f, 0x37, 0x96, 0x6f, 0x02, 0x48, 0x85, 0xe6, + 0xb5, 0xca, 0xb9, 0xfe, 0x30, 0xd0, 0x0b, 0x68, 0xc4, 0xe1, 0x7b, 0x97, 0x91, 0x2e, 0x27, 0x2e, + 0x71, 0xa2, 0x5a, 0x46, 0x74, 0x38, 0x94, 0xd3, 0x21, 0xce, 0xcf, 0xea, 0x63, 0xf8, 0xbf, 0x4d, + 0x98, 0x19, 0x5f, 0xf4, 0x48, 0xe4, 0x18, 0xf9, 0x24, 0xb6, 0x60, 0xc5, 0xe7, 0x31, 0x5e, 0xf8, + 0x7f, 0x38, 0xbb, 0xa9, 0x1a, 0xdc, 0x98, 0x86, 0x67, 0x4d, 0x96, 0xe1, 0x37, 0x61, 0x03, 0x13, + 0x4a, 0x58, 0x8b, 0xb0, 0xc8, 0xeb, 0xd3, 0x16, 0xfd, 0xb0, 0xf7, 0x14, 0x6a, 0x49, 0x66, 0x54, + 0x87, 0x9a, 0x69, 0x99, 0x86, 0x54, 0x41, 0x6b, 0xb0, 0x7c, 0xa4, 0xeb, 0x86, 0x2e, 0x09, 0xa8, + 0x01, 0xab, 0xce, 0xa9, 0x7e, 0x64, 0x1b, 0xba, 0x54, 0x4d, 0x2e, 0xd8, 0x68, 0x59, 0x1d, 0x43, + 0x97, 0x96, 0xf6, 0x0c, 0x80, 0xa2, 0x05, 0x24, 0x81, 0x68, 0x5a, 0x29, 0xd2, 0x7e, 0x73, 0x9a, + 0x88, 0x88, 0x50, 0x3f, 0xb5, 0xda, 0xc7, 0xf6, 0xb1, 0x65, 0x4a, 0x42, 0x22, 0x69, 0x5b, 0x67, + 0x06, 0x96, 0xaa, 0xc9, 0xc3, 0xab, 0x23, 0x53, 0xb7, 0x3a, 0x06, 0x96, 0x96, 0x0e, 0x7f, 0xd4, + 0x60, 0xd5, 0x4e, 0xa7, 0x82, 0x3a, 0x20, 0xbe, 0x24, 0x2c, 0xdf, 0x18, 0xb4, 0x5b, 0x36, 0xbb, + 0xd9, 0xa5, 0x92, 0xb7, 0xe7, 0xfc, 0x8f, 0x85, 0x0e, 0x01, 0x28, 0xb6, 0x03, 0x3d, 0x28, 0x53, + 0xfd, 0x63, 0x2d, 0xe5, 0xbd, 0x45, 0xa0, 0xe9, 0xc4, 0x0f, 0x04, 0xf4, 0x16, 0x56, 0x33, 0xeb, + 0xa3, 0xfb, 0x7f, 0x23, 0x16, 0x06, 0x97, 0x77, 0xae, 0xc4, 0xe5, 0xea, 0x5d, 0xa8, 0x8f, 0xad, + 0x8c, 0x4a, 0x69, 0x33, 0x0b, 0x24, 0xef, 0x5e, 0x0d, 0xcc, 0x13, 0x78, 0x20, 0x4e, 0x5a, 0x09, + 0x3d, 0x2c, 0xe3, 0xce, 0xf1, 0xa7, 0xfc, 0x68, 0x31, 0x70, 0xe6, 0xce, 0x77, 0x20, 0x4e, 0xba, + 0xb0, 0xbc, 0x9f, 0x19, 0xaf, 0xca, 0x8b, 0x02, 0x9f, 0x37, 0xbf, 0x0f, 0x15, 0xe1, 0x72, 0xa8, + 0x08, 0xbf, 0x86, 0x8a, 0xf0, 0x75, 0xa4, 0x54, 0x2e, 0x47, 0x4a, 0xe5, 0xe7, 0x48, 0xa9, 0xf4, + 0x56, 0xf8, 0xa7, 0xf9, 0xc9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x88, 0x82, 0x26, 0xe6, 0xfc, + 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// TrafficClient is the client API for Traffic service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TrafficClient interface { + GetMapLayout(ctx context.Context, in *MapLayoutRequest, opts ...grpc.CallOption) (*types.MapLayout, error) + ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (Traffic_ListRoutesClient, error) + ListUes(ctx context.Context, in *ListUesRequest, opts ...grpc.CallOption) (Traffic_ListUesClient, error) + WatchUes(ctx context.Context, in *WatchUesRequest, opts ...grpc.CallOption) (Traffic_WatchUesClient, error) + SetNumberUEs(ctx context.Context, in *SetNumberUEsRequest, opts ...grpc.CallOption) (*SetNumberUEsResponse, error) + ResetMetrics(ctx context.Context, in *ResetMetricsMsg, opts ...grpc.CallOption) (*ResetMetricsMsg, error) +} + +type trafficClient struct { + cc *grpc.ClientConn +} + +func NewTrafficClient(cc *grpc.ClientConn) TrafficClient { + return &trafficClient{cc} +} + +func (c *trafficClient) GetMapLayout(ctx context.Context, in *MapLayoutRequest, opts ...grpc.CallOption) (*types.MapLayout, error) { + out := new(types.MapLayout) + err := c.cc.Invoke(ctx, "/onos.ransim.trafficsim.Traffic/GetMapLayout", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *trafficClient) ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (Traffic_ListRoutesClient, error) { + stream, err := c.cc.NewStream(ctx, &_Traffic_serviceDesc.Streams[0], "/onos.ransim.trafficsim.Traffic/ListRoutes", opts...) + if err != nil { + return nil, err + } + x := &trafficListRoutesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Traffic_ListRoutesClient interface { + Recv() (*ListRoutesResponse, error) + grpc.ClientStream +} + +type trafficListRoutesClient struct { + grpc.ClientStream +} + +func (x *trafficListRoutesClient) Recv() (*ListRoutesResponse, error) { + m := new(ListRoutesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *trafficClient) ListUes(ctx context.Context, in *ListUesRequest, opts ...grpc.CallOption) (Traffic_ListUesClient, error) { + stream, err := c.cc.NewStream(ctx, &_Traffic_serviceDesc.Streams[1], "/onos.ransim.trafficsim.Traffic/ListUes", opts...) + if err != nil { + return nil, err + } + x := &trafficListUesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Traffic_ListUesClient interface { + Recv() (*ListUesResponse, error) + grpc.ClientStream +} + +type trafficListUesClient struct { + grpc.ClientStream +} + +func (x *trafficListUesClient) Recv() (*ListUesResponse, error) { + m := new(ListUesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *trafficClient) WatchUes(ctx context.Context, in *WatchUesRequest, opts ...grpc.CallOption) (Traffic_WatchUesClient, error) { + stream, err := c.cc.NewStream(ctx, &_Traffic_serviceDesc.Streams[2], "/onos.ransim.trafficsim.Traffic/WatchUes", opts...) + if err != nil { + return nil, err + } + x := &trafficWatchUesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Traffic_WatchUesClient interface { + Recv() (*WatchUesResponse, error) + grpc.ClientStream +} + +type trafficWatchUesClient struct { + grpc.ClientStream +} + +func (x *trafficWatchUesClient) Recv() (*WatchUesResponse, error) { + m := new(WatchUesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *trafficClient) SetNumberUEs(ctx context.Context, in *SetNumberUEsRequest, opts ...grpc.CallOption) (*SetNumberUEsResponse, error) { + out := new(SetNumberUEsResponse) + err := c.cc.Invoke(ctx, "/onos.ransim.trafficsim.Traffic/SetNumberUEs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *trafficClient) ResetMetrics(ctx context.Context, in *ResetMetricsMsg, opts ...grpc.CallOption) (*ResetMetricsMsg, error) { + out := new(ResetMetricsMsg) + err := c.cc.Invoke(ctx, "/onos.ransim.trafficsim.Traffic/ResetMetrics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TrafficServer is the server API for Traffic service. +type TrafficServer interface { + GetMapLayout(context.Context, *MapLayoutRequest) (*types.MapLayout, error) + ListRoutes(*ListRoutesRequest, Traffic_ListRoutesServer) error + ListUes(*ListUesRequest, Traffic_ListUesServer) error + WatchUes(*WatchUesRequest, Traffic_WatchUesServer) error + SetNumberUEs(context.Context, *SetNumberUEsRequest) (*SetNumberUEsResponse, error) + ResetMetrics(context.Context, *ResetMetricsMsg) (*ResetMetricsMsg, error) +} + +// UnimplementedTrafficServer can be embedded to have forward compatible implementations. +type UnimplementedTrafficServer struct { +} + +func (*UnimplementedTrafficServer) GetMapLayout(ctx context.Context, req *MapLayoutRequest) (*types.MapLayout, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMapLayout not implemented") +} +func (*UnimplementedTrafficServer) ListRoutes(req *ListRoutesRequest, srv Traffic_ListRoutesServer) error { + return status.Errorf(codes.Unimplemented, "method ListRoutes not implemented") +} +func (*UnimplementedTrafficServer) ListUes(req *ListUesRequest, srv Traffic_ListUesServer) error { + return status.Errorf(codes.Unimplemented, "method ListUes not implemented") +} +func (*UnimplementedTrafficServer) WatchUes(req *WatchUesRequest, srv Traffic_WatchUesServer) error { + return status.Errorf(codes.Unimplemented, "method WatchUes not implemented") +} +func (*UnimplementedTrafficServer) SetNumberUEs(ctx context.Context, req *SetNumberUEsRequest) (*SetNumberUEsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetNumberUEs not implemented") +} +func (*UnimplementedTrafficServer) ResetMetrics(ctx context.Context, req *ResetMetricsMsg) (*ResetMetricsMsg, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetMetrics not implemented") +} + +func RegisterTrafficServer(s *grpc.Server, srv TrafficServer) { + s.RegisterService(&_Traffic_serviceDesc, srv) +} + +func _Traffic_GetMapLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MapLayoutRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TrafficServer).GetMapLayout(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.trafficsim.Traffic/GetMapLayout", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TrafficServer).GetMapLayout(ctx, req.(*MapLayoutRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Traffic_ListRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListRoutesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TrafficServer).ListRoutes(m, &trafficListRoutesServer{stream}) +} + +type Traffic_ListRoutesServer interface { + Send(*ListRoutesResponse) error + grpc.ServerStream +} + +type trafficListRoutesServer struct { + grpc.ServerStream +} + +func (x *trafficListRoutesServer) Send(m *ListRoutesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Traffic_ListUes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListUesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TrafficServer).ListUes(m, &trafficListUesServer{stream}) +} + +type Traffic_ListUesServer interface { + Send(*ListUesResponse) error + grpc.ServerStream +} + +type trafficListUesServer struct { + grpc.ServerStream +} + +func (x *trafficListUesServer) Send(m *ListUesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Traffic_WatchUes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchUesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TrafficServer).WatchUes(m, &trafficWatchUesServer{stream}) +} + +type Traffic_WatchUesServer interface { + Send(*WatchUesResponse) error + grpc.ServerStream +} + +type trafficWatchUesServer struct { + grpc.ServerStream +} + +func (x *trafficWatchUesServer) Send(m *WatchUesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Traffic_SetNumberUEs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetNumberUEsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TrafficServer).SetNumberUEs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.trafficsim.Traffic/SetNumberUEs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TrafficServer).SetNumberUEs(ctx, req.(*SetNumberUEsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Traffic_ResetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetMetricsMsg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TrafficServer).ResetMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/onos.ransim.trafficsim.Traffic/ResetMetrics", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TrafficServer).ResetMetrics(ctx, req.(*ResetMetricsMsg)) + } + return interceptor(ctx, in, info, handler) +} + +var _Traffic_serviceDesc = grpc.ServiceDesc{ + ServiceName: "onos.ransim.trafficsim.Traffic", + HandlerType: (*TrafficServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetMapLayout", + Handler: _Traffic_GetMapLayout_Handler, + }, + { + MethodName: "SetNumberUEs", + Handler: _Traffic_SetNumberUEs_Handler, + }, + { + MethodName: "ResetMetrics", + Handler: _Traffic_ResetMetrics_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListRoutes", + Handler: _Traffic_ListRoutes_Handler, + ServerStreams: true, + }, + { + StreamName: "ListUes", + Handler: _Traffic_ListUes_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchUes", + Handler: _Traffic_WatchUes_Handler, + ServerStreams: true, + }, + }, + Metadata: "onos/ransim/trafficsim/trafficsim.proto", +} + +func (m *MapLayoutRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MapLayoutRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapLayoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ListRoutesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListRoutesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListRoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoSubscribe { + i-- + if m.NoSubscribe { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.NoReplay { + i-- + if m.NoReplay { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListRoutesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListRoutesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListRoutesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Type != 0 { + i = encodeVarintTrafficsim(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Route != nil { + { + size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTrafficsim(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListUesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListUesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ListUesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListUesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Ue != nil { + { + size, err := m.Ue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTrafficsim(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WatchUesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchUesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchUesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoSubscribe { + i-- + if m.NoSubscribe { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.NoReplay { + i-- + if m.NoReplay { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *WatchUesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WatchUesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchUesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpdateType != 0 { + i = encodeVarintTrafficsim(dAtA, i, uint64(m.UpdateType)) + i-- + dAtA[i] = 0x18 + } + if m.Type != 0 { + i = encodeVarintTrafficsim(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Ue != nil { + { + size, err := m.Ue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTrafficsim(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetNumberUEsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetNumberUEsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetNumberUEsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Number != 0 { + i = encodeVarintTrafficsim(dAtA, i, uint64(m.Number)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SetNumberUEsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetNumberUEsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetNumberUEsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Number != 0 { + i = encodeVarintTrafficsim(dAtA, i, uint64(m.Number)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ResetMetricsMsg) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResetMetricsMsg) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResetMetricsMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTrafficsim(dAtA []byte, offset int, v uint64) int { + offset -= sovTrafficsim(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapLayoutRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ListRoutesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoReplay { + n += 2 + } + if m.NoSubscribe { + n += 2 + } + return n +} + +func (m *ListRoutesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Route != nil { + l = m.Route.Size() + n += 1 + l + sovTrafficsim(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovTrafficsim(uint64(m.Type)) + } + return n +} + +func (m *ListUesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ListUesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ue != nil { + l = m.Ue.Size() + n += 1 + l + sovTrafficsim(uint64(l)) + } + return n +} + +func (m *WatchUesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoReplay { + n += 2 + } + if m.NoSubscribe { + n += 2 + } + return n +} + +func (m *WatchUesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ue != nil { + l = m.Ue.Size() + n += 1 + l + sovTrafficsim(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovTrafficsim(uint64(m.Type)) + } + if m.UpdateType != 0 { + n += 1 + sovTrafficsim(uint64(m.UpdateType)) + } + return n +} + +func (m *SetNumberUEsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Number != 0 { + n += 1 + sovTrafficsim(uint64(m.Number)) + } + return n +} + +func (m *SetNumberUEsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Number != 0 { + n += 1 + sovTrafficsim(uint64(m.Number)) + } + return n +} + +func (m *ResetMetricsMsg) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTrafficsim(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTrafficsim(x uint64) (n int) { + return sovTrafficsim(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapLayoutRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MapLayoutRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapLayoutRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListRoutesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListRoutesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListRoutesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoReplay = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSubscribe", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSubscribe = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListRoutesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListRoutesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListRoutesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTrafficsim + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTrafficsim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Route == nil { + m.Route = &types.Route{} + } + if err := m.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTrafficsim + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTrafficsim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ue == nil { + m.Ue = &types.Ue{} + } + if err := m.Ue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchUesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchUesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchUesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoReplay = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSubscribe", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSubscribe = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchUesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchUesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchUesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTrafficsim + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTrafficsim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ue == nil { + m.Ue = &types.Ue{} + } + if err := m.Ue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateType", wireType) + } + m.UpdateType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpdateType |= UpdateType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetNumberUEsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetNumberUEsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetNumberUEsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) + } + m.Number = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Number |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetNumberUEsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetNumberUEsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetNumberUEsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) + } + m.Number = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Number |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResetMetricsMsg) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResetMetricsMsg: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResetMetricsMsg: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTrafficsim(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTrafficsim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTrafficsim(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTrafficsim + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTrafficsim + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTrafficsim + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTrafficsim + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTrafficsim = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTrafficsim = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTrafficsim = fmt.Errorf("proto: unexpected end of group") +) diff --git a/go/onos/ransim/types/types.go b/go/onos/ransim/types/types.go new file mode 100644 index 00000000..33f1acb5 --- /dev/null +++ b/go/onos/ransim/types/types.go @@ -0,0 +1,107 @@ +// SPDX-FileCopyrightText: 2020-present Open Networking Foundation