Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for grpc_proto_library (2.31 sec)

  1. examples/protos/BUILD

    load("//bazel:cc_grpc_library.bzl", "cc_grpc_library")
    load("//bazel:grpc_build_system.bzl", "grpc_proto_library")
    load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
    
    licenses(["notice"])
    
    package(default_visibility = ["//visibility:public"])
    
    grpc_proto_library(
        name = "auth_sample",
        srcs = ["auth_sample.proto"],
    )
    
    grpc_proto_library(
        name = "hellostreamingworld",
        srcs = ["hellostreamingworld.proto"],
    Plain Text
    - Registered: 2022-09-27 20:15
    - Last Modified: 2021-11-03 21:57
    - 2.1K bytes
    - Viewed (1)
  2. doc/unit_testing.md

    Protoc plugin flag:
    
    ```sh
    protoc -I . --grpc_out=generate_mock_code=true:. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` echo.proto
    ```
    
    Bazel rule:
    
    ```py
    grpc_proto_library(
      name = "echo_proto",
      srcs = ["echo.proto"],
      generate_mocks = True,
    )
    ```
    
    
    By adding such a flag now a header file `echo_mock.grpc.pb.h` containing the mocked stub will also be generated.
    
    Plain Text
    - Registered: 2022-09-27 20:15
    - Last Modified: 2020-06-30 00:56
    - 5.1K bytes
    - Viewed (0)
  3. bazel/grpc_build_system.bzl

            linkstatic = linkstatic,
        )
    
    def grpc_proto_plugin(name, srcs = [], deps = []):
        native.cc_binary(
            name = name,
            srcs = srcs,
            deps = deps,
        )
    
    def grpc_proto_library(
            name,
            srcs = [],
            deps = [],
            well_known_protos = False,
            has_services = True,
            use_external = False,
            generate_mocks = False):
    Plain Text
    - Registered: 2022-09-27 20:15
    - Last Modified: 2022-09-20 05:19
    - 23.2K bytes
    - Viewed (0)
Back to top