Generating gRPC code

To generate classes for Kaspersky Industrial CyberSecurity for Networks API, you must compile .proto files.

Installing gRPC

Kaspersky Industrial CyberSecurity for Networks API uses gRPC. You must install gRPC and then invoke the protocol buffer compiler that comes with gRPC to compile .proto files.

To install gRPC, see the Quick Start guide for your preferred programming language on the gRPC documentation page.

Compiling .proto files

To compile .proto files, run the protocol buffer compiler that comes with gRPC. How you compile .proto files depends on your preferred programming language.

For Python, you can compile .proto files with the following commands:

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/asset_provider.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/asset_provider_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/common.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/configuration_provider.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/configuration_provider_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/dictionary_provider_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/event_provider.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/event_provider_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/event_registrar.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/event_registrar_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/product_facade_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/tag_notifier_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/tag_provider.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/tag_provider_service.proto

python -m grpc_tools.protoc -Iprotos --python_out=. --grpc_python_out=. protos/version.proto

For other programming languages, see the Quick Start guides on the gRPC documentation page.

Page top