[JAVA] # Scala: vol2: [How to import google / protobuf / *. Proto with akka-grpc]

# Scala: vol2: [How to import google / protobuf / *. Proto with akka-grpc]

problem

During development at akka-grpc, I couldn't import google / protobuf /*.proto,

sbt-console


Import "google/protobuf/timestamp.proto" was not found or had errors
"google.protobuf.Timestamp" is not defined.

Now, I will introduce the solution.

solution

https://github.com/akka/akka-grpc/issues/681

Find the ones you need in protocolbuffers/protobuf:src/google/protobuf@master , download and put them alongside your projects' .proto resources

Download and place side by side with your project's .proto resource

It was written, but it can be handled more easily.

The solution is to add the following to build.sbt.

libraryDependencies ++= Seq(
  "com.google.protobuf" % "protobuf-java" % "3.6.1" % "protobuf"
)

Recommended Posts

# Scala: vol2: [How to import google / protobuf / *. Proto with akka-grpc]
How to install & import Auto Gluon with Google Colaboratory
How to use Z3 library in Scala with Eclipse
How to use JDD library in Scala with Eclipse
How to number (number) with html.erb
How to update with activerecord-import
How to scroll horizontally with ScrollView
How to get started with slim
How to enclose any character with "~"
How to use mssql-tools with alpine
How to get along with Rails
How to start Camunda with Docker
How to crop an image with libGDX
How to adjustTextPosition with iOS Keyboard Extension
How to share files with Docker Toolbox
How to compile Java with VsCode & Ant
[Java] How to compare with equals method
[Android] How to deal with dark themes
How to use BootStrap with Play Framework
[Rails] How to use rails console with docker
How to switch thumbnail images with JavaScript
How to do API-based control with cancancan
How to achieve file download with Feign
How to update related models with accepts_nested_attributes_for
How to use Java classes, definitions, import
How to set JAVA_HOME with Maven appassembler-maven-plugin
How to implement TextInputLayout with validation function
How to handle sign-in errors with devise
How to delete data with foreign key
How to test private scope with JUnit
How to monitor nginx with docker-compose with datadog
How to deal with Precompiling assets failed.
How to achieve file upload with Feign
How to run Blazor (C #) with Docker
How to build Rails 6 environment with Docker