summaryrefslogtreecommitdiff
path: root/grpc
AgeCommit message (Collapse)AuthorFilesLines
2022-02-03replace framework include of flatbuffers (#7079)Derek Bailey1-145/+133
2022-02-03fix go_test implement error (#7012)godcong1-4/+10
* fix(grpc): fix go_test implement error * fix(grpc): fix go_test implement error
2022-02-02removed BSD-3-Clause license and Zlib licenses (#7073)Derek Bailey10-675/+514
2022-02-01Updates swift gen licence for grpc code (#7063)mustiikhalil1-27/+10
2022-01-29Convert flatbuffers_version_string to inline function (#7046)Derek Bailey1-2/+0
* Skip conditional for python executable * replaced flatbuffers_version_string with inline function * use const char* instead of string
2021-12-18Reverting grpc generated file suffix (#6995)Panagiotis Gourgaris2-3/+5
* Reverting grpc generated file suffix * - Setting the greeter sample as it was - Reverting the include of the generated message in grpc.cc file
2021-12-09Fix typo in variable name (#6973)David Sanders1-2/+2
2021-12-02Have grpc include file with correct filename-suffix given to flatc (#6954)Panagiotis Gourgaris2-4/+4
When generating code with --grpc, --cpp and using filename-suffix, the generated grpc files where not including the correct header that had the filename-suffix. As a suffix, they used the default "_generated". Free functions for these were used to get the suffix. FlatBufFile had such methods, but also needed to be into its base File and use these. - grpc generated files include the correct message header. - grpc generated files also have the suffix - grpc generated cc file does not include initial message header
2021-11-18Fix integer overflow warningsWouter van Oortmerssen1-1/+1
2021-11-04Keep methods with struct name and switch them to default (#6879)lu-wang-g2-24/+18
* Keep methods with struct name and switch them to default This PR can help fix the following two issues: 1): A set of simplified API (without struct name) was added in https://github.com/google/flatbuffers/pull/6336. It causes name conflict when merging all generated python file into a single one (the primary usage senario in Google). 2): Flatbuffers 2.0 generates absolute import path, which may cause name space conflicts. See more details in https://github.com/google/flatbuffers/issues/5840. The solution for both is to generate the merged Python code, similar C++. The merged code will not contain the simplied API, but only the method with struct name. For issue (1), it will mimic the exactly usage pattern for Google internal. For issue (2), users can generate the merged flatbuffer code, without worrying about the imports. The above idea will be implemented in the following steps: Step 1 (this PR): revert changes in https://github.com/google/flatbuffers/pull/6336 that set the simplified API as default. Remove statements that the original API will be deprecated, and reset the original API as default. Step 2 (the following PR): create a flag to generate the merged code. The Simplified API will be removed from the merged code, otherwise it will cause name conflict. * Update the generated sample code * Update the generated example code * Reverst the changes of GetRootAs * Update examples from grpc/example/generate.sh
2021-10-07Adds JSON encoding to swift (#6874)mustiikhalil3-1/+25
Updates generated code & removes unneeded protocol Updates cpp to only generate code when flag is passed Updates code gen script
2021-09-27Improves documentation, and adding DocC (#6784)mustiikhalil2-7/+15
Finished documenting flatbuffersbuilder Replaces swift 5.5 with 5.2 packages Starts building the tutorial for xcode 13 Finishes building the tutorial for xcode 13 Removes docc files from old swift versions Updates swift style guide
2021-08-14update Java version to 2.0.3Wouter van Oortmerssen3-4/+4
2021-07-29[C++] Use proper gRPC C++ API when using MemoryBuffer Slice (#6756)Esun Kim3-15/+8
* Use ByteBuffer * Use Slice * Upgrade gRPC to 1.39.0 * Update gRPC build script * Reformat * Added CMAKE_CXX_STANDARD=11 when building Abseil * Enabled ABSL_ENABLE_INSTALL * Added absl to grpctest deps
2021-06-17Add the file a symbol is declared in to Reflection (#6613)Casper1-4/+4
* Add the file a symbol is declared in to Reflection If we move a code-generator to depend on Reflection, it may need to know which file something was declared in to properly name generated files. * Doc comments in reflection, and more precise tests * Add --project-root flag to flatc, normalize declaraion_file to this root * fix --project-root stuff * posixpath * fix scripts * format * rename --project-root to --bfbs-filenames Also, make it optional, rather than defaulting to `./`, if its not specified, then don't serialize the filenames. * bfbs generation * fix some tests * uncomment a thing * add to project root directory conditionally * fix * git clang format * Added help description and removed != nullptr * " * Remove accidental change to docs * Remove accidental change to docs * Pool strings Co-authored-by: Casper Neo <cneo@google.com>
2021-06-06[C++/grpc] added hiding of unused variables in the generated code (#6677)Alexander Dzyuba1-48/+37
Co-authored-by: Alexander Dzyuba <a.dzyuba@seraphim.online>
2021-06-03avoiding more NoSuchMethod exceptions (#6671)Kamil Rojewski3-4/+4
refs #6657
2021-05-24Prepare for Java 2.0.1 releaseWouter van Oortmerssen3-4/+4
see https://github.com/google/flatbuffers/pull/6658
2021-05-20[TS/JS] Updates the grpc (#6654)mustiikhalil6-31/+43
* Updates go lang support to allow other languages to communicate with it * Update js grpc lib to use grpc-js Reformat code
2021-05-20Updates go lang support to allow other languages to communicate with it (#6653)mustiikhalil2-4/+3
2021-05-17Fix gRPC test to use EndVector without specifying the length. (#6646)Richard A Hofer1-3/+3
2021-05-14Implements verifier and code gen for swift (#6373)mustiikhalil1-2/+14
Updates test cases on linux Adhere to new protocol naming Adds fuzzing Adds documentation Adds support for string unions Updated fuzzer generated code
2021-05-13Fixed Java gRPC version number dependencyWouter van Oortmerssen1-1/+1
Change-Id: I6c4ed59ab4bb06edcef4b33c179f6e02ec86fdbb
2021-05-10More missing version changesHEADv2.0.0masterWouter van Oortmerssen1-2/+2
2021-05-10Updated main version numbers to 2.0Wouter van Oortmerssen4-6/+6
2021-04-24[swift] Implements union strings (#6589)mustiikhalil1-8/+8
2021-04-12[TS] Add Build TS to CI jobs (#6524)Björn Harrtell4-3/+3
* Add Build TS to CI jobs * Add npm compile step * Fix syntax * Add required code gen for TS * Exit on failure * Make TS code gen identical to test run * Remove duplicate TS code gen artifacts * Remove bad gitignore * Forgot parts of generate_code and make sure same settings for test run * Don't forget about the bat * Try and fix flatc args * Another attempt to fix args * Fix typo * Commit up to date code gen * Another attempt to fix sh/bat * Move -o param to after -I * Commit missing code gen file * Fix grpc code gen and test * Another grpc code gen fix * Rework to not use ts folder * Fix env vars in bat and make less churn * Move TS code gen to dedicated folder * Fix transpilation output folder and module paths * Fixes to code gen * Include generated js * Moved ts code gen * Remove test ts code gen folder
2021-04-05[CI] fixes buildkite (#6544)mustiikhalil1-1/+1
2021-03-25[grpc] Support latest version of grpc PoC (#6338)Jeong YunWon6-26/+46
* use grpcpp rather than deprecated grpc++ * grpcpp Deserialize take ByteBuffer instead of grpc_byte_buffer * grpc 1.36.0 * Fix to use grpc 1.36.0 * Fix CMakeLists to refer gRPC * add find_package(Threads) * Update bazel deps * Apply workaround about boringssl build error * Install latest cmake for osx on travis-ci Co-authored-by: Yeom Gyusun <omniavinco@gmail.com>
2021-03-18[GO] Tries to add go format to the CI (#6518)mustiikhalil1-0/+36
* Trys to add go format to the CI Adds Gofmt to CI * Adds formatting for go dir in grpc * Small fix
2021-03-09Bump grpc to 1.0.0 (#6507)mustiikhalil1-1/+1
Adds void to keywords
2021-02-25Working on a python example plus fixing python grpc code (#6456)mustiikhalil13-666/+401
Refactored python grpc code gen Adds example server & client + fixes ci Fixes generated code Making sure we encode the reply string as utf8 Adds Readme details to clarify issue regarding encoding when python is sending/receiving
2021-02-23[CI] Adds Code Generation tests on Github Actions (#6482)mustiikhalil1-1/+29
Moves check-grpc-generation to scripts
2021-02-20[Swift] Moves grpc example to grpc/examples (#6479)mustiikhalil7-3/+484
Updates generated Code Removes grpc generation code from tests dir Small fix to generate.sh
2021-02-20[TS] Moves grpc code to examples folder (#6476)mustiikhalil11-21/+33
Adds readme
2021-02-19[Go] Working on a go example plus fixing go grpc code (#6448)mustiikhalil16-54/+623
Implemented server.go and half implemented client.go Finishes implementation for greeter go example Update grpc code for monster.fbs Adds a couple of cpp methods Adhere to gofmt standards Adds a readme for issues with grpc
2021-02-11[CMake] Renames BUILD files (#6457)mustiikhalil1-0/+0
* Renamed build to build.bazel to stop xcode from complaining about it * Renamed all build to build.bazel * Fixes small ci issue
2021-02-10Updating working code (#6441)mustiikhalil9-288/+309
Fixes issues with namespaces in grpc ts Renamed welcome -> models
2021-02-04Upgrade swift grpc to alpha 24 (#6439)mustiikhalil1-103/+225
Upgrade swift grpc to alpha 24
2020-11-16[Swift] Adds a format file and reformats the swift project (#6250)mustiikhalil1-38/+42
* Formats files & adds licence * Revert arrays * Keeps array indentation as is * Adds licence to code formatter * Updates code generators
2020-10-15fix(go_test): remove deprecated grpc call (#6183)Niels Hofmans1-1/+2
2020-10-12Bump junit from 4.12 to 4.13.1 in /grpc/tests (#6173)dependabot[bot]1-1/+1
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12Bump junit from 4.12 to 4.13.1 in /grpc (#6172)dependabot[bot]1-1/+1
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-07[TS] GRPC Implementation (#6141)mustiikhalil12-2/+925
* GRPC implementation for Typescript * Fixes a couple of issues * Finished implementing the typescript support for grpc * Updated generated code * Fixes CI
2020-08-22Adds proper access types for swift object api & flatbuffers & grpc (#6081)mustiikhalil2-2/+3
Fixes accessor in greeter.swift Small fix for ci
2020-07-31[Swift] Append namespace for Swift Grpc implementation (#6049)Liu Liu2-16/+27
* [Swift] Append namespace for Swift Grpc implementation * Separate ServiceName from ServiceQualifiedName.
2020-07-21Allow to run cpp tests under grpc/tests/ using bazel. (#6040)Shengzhe4-1/+30
This is the first step to upgrade grpc dependency to the latest version. - Patch protobuf 3.6.1. and grpc 1.15.1 to fix build errors when using the latest Bazel version (3.4.1). - Add grpc/tests:grpc_test. One can kick off tests in Bazel by calling `bazel test grpc/tests/...`. - Add missing build targets in tests/BUILD in order to support grpc/tests/BUILD
2020-07-20[Swift] Optional Scalars Preparation (#6028)mustiikhalil1-4/+4
* Perpares swift to take optional scalars + adds optional string helper method + disables linters in generated code * Small fix for generated code * Update grpc support to alpha 17 for swift
2020-06-04Adds bool support in structs + updates grpc support + CI upgrades (#5943)mustiikhalil1-8/+2
2020-04-06Upgraded swift implementation for grpc (#5843)mustiikhalil1-3/+3
Updated version number