MCPcopy Index your code
hub / github.com/ballerina-platform/module-ballerina-protobuf

github.com/ballerina-platform/module-ballerina-protobuf @v1.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.0 ↗ · + Follow
205 symbols 524 edges 43 files 44 documented · 21%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ballerina Protobuf Library

Build codecov Trivy GraalVM Check GitHub Last Commit Github issues

This library provides APIs to represent a set of pre-defined protobuf types.

Issues and projects

The Issues and Projects tabs are disabled for this repository as this is part of the Ballerina Standard Library. To report bugs, request new features, start new discussions, view project boards, etc., go to the Ballerina Standard Library parent repository.

This repository contains only the source code of the package.

Build from the source

Set up the prerequisites

  1. Download and install Java SE Development Kit (JDK) version 21 (from one of the following locations).

    Note: Set the JAVA_HOME environment variable to the path name of the directory into which you installed JDK.

  2. Export your Github Personal access token with the read package permissions as follows.

          export packageUser=<Username>
          export packagePAT=<Personal access token>
    

Build the source

Execute the commands below to build from source.

  1. To build the library: ./gradlew clean build

  2. To run the integration tests: ./gradlew clean test

  3. To build the module without the tests: ./gradlew clean build -x test
  4. To debug module implementation: ./gradlew clean build -Pdebug=<port> ./gradlew clean test -Pdebug=<port>
  5. To debug the module with Ballerina language: ./gradlew clean build -PbalJavaDebug=<port> ./gradlew clean test -PbalJavaDebug=<port>
  6. Publish ZIP artifact to the local .m2 repository: ./gradlew clean build publishToMavenLocal
  7. Publish the generated artifacts to the local Ballerina central repository: ./gradlew clean build -PpublishToLocalCentral=true
  8. Publish the generated artifacts to the Ballerina central repository: ./gradlew clean build -PpublishToCentral=true

Contribute to Ballerina

As an open source project, Ballerina welcomes contributions from the community.

For more information, go to the contribution guidelines.

Code of conduct

All contributors are encouraged to read the Ballerina Code of Conduct.

Useful links

Core symbols most depended-on inside this repo

Shape

Method 163
Class 41
Enum 1

Languages

Java100%

Modules by API surface

native/src/main/java/io/ballerina/stdlib/protobuf/utils/Utils.java12 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/deserializers/DeserializeHandler.java10 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/utils/DescriptorBuilder.java9 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/AbstractSerializer.java8 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/SerializeHandler.java7 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/messages/BMessage.java7 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/BytesSerializer.java6 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/nativeimpl/AnyTypeCreator.java6 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/utils/StandardDescriptorBuilder.java5 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/UInt64Serializer.java5 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/UInt32Serializer.java5 symbols
native/src/main/java/io/ballerina/stdlib/protobuf/serializers/StringSerializer.java5 symbols

For agents

$ claude mcp add module-ballerina-protobuf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page