aboutsummaryrefslogtreecommitdiff
path: root/stub
AgeCommit message (Collapse)Author
2020-11-18Add a lite OkHttp gRPC Client Library.Karl Shaffer
Updates several targets within grpc-grpc-java to allow for Android and Host targets to allow the building of a gRPC client library that uess OkHttp and Protobuf Lite. This provides a lightweight client library for gRPC clients that works on both Android and Host since it uses lite protos rather than full protos. Test: m grpc-java-okhttp-client-lite Test: mm Test: Manual testing using client library on Android. Change-Id: Ib9dc14a44856914b38662c01905337f98bd8d108
2018-10-22Fix grpc-java targetandroid-wear-8.0.0_r2Julien Desprez
Test: make grpc-java Bug: None Change-Id: I55dc3d537c87c7ffc80b23cdec48fa830e9c87db
2018-10-02Start adding Soong build files for grpc-grpc-javamaster-cuttlefish-testing-releaseJulien Desprez
Add basic build files for the grpc-java modules. Still need to be added: netty, protobuf Test: make Bug: None Change-Id: I9248dd23c0ec24ec0f9a15aa6f6d826b7b90d617
2018-09-14all: use Java7 bracketsCarl Mastrangelo
2018-08-29stub: stablize AbstractStub.withExecutor APIZHANG Dapeng
Resolves #3605
2018-08-23stub: disableAutoInboundFlowControl javadoc correction (#4785)zpencer
The docs refer to the wrong places where this feature is ignored.
2018-08-13stub: update docs about Call lifetime + minor cleanupsCarl Mastrangelo
* Reflowed some method parameters to be on the same line, else one parameter per line * Used `@link` where appropriate * Made some parameters non-final where it had no effect * Renamed some parameters to be consistent
2018-08-09all: update animalsniffer to Java 7 and add Android 14 (#4727)Eric Gribkoff
2018-07-31all: add tracking issues for all experimental APIs and make it requiredCarl Mastrangelo
Additionally, make Status*Exception.getTrailers() non experimental
2018-07-30bazel: Remove http_file trick for neverlinkEric Anderson
The trick wasn't necessary, as any java_library can mark itself as neverlink which applies to its dependencies.
2018-07-23all: remove unneeded deps on errorproneCarl Mastrangelo
2018-07-20Remove DoNotMock annotation in favor of JavaDocEric Anderson
DoNotMock was removed from error_prone_annotations in 2.1.3, because there was no enforcement mechanism (which is in google/error-prone#572). Guava and Trust also depend on error_prone_annotations and are beginning to use newer versions, so our usage of DoNotMock is causing diamond dependency problems. This allows us to update to 2.2.0. The annotations were useful internally; we're solving that in cl/205294089.
2018-07-12compiler,stub: update RpcMethod docs and usageCarl Mastrangelo
2018-07-10compiler, stub: Rename inputType and outputType in @RpcMethodjbingham-google
2018-07-06compiler, stub: Add @RpcMethod annotationjbingham-google
This annotation will enable Java APT to generate code. Addresses part of #3173.
2018-06-26stub: clarify StreamObservers interactionCarl Mastrangelo
2018-06-11all: add gradle format checkerZHANG Dapeng
This PR adds an automatic gradle format checker and reformats all the *.gradle files. After this, new changes to *.gradle files will fail to build if not in good format, just like checkStyle failure.
2018-05-04stub: add @CheckReturnValue to AbstractStubGrant Oakley
2018-05-03 all: normalize copyright header Carl Mastrangelo
2018-05-02core/stub: fix lint warningsZHANG Dapeng
2018-05-01core,stub: Add toString() to ClientCallImpl and GrpcFutureGrant Oakley
2018-04-26Bazel: Fix compilation in Java 9David Ostrovsky
Fixes: #3633. Test Plan: On most recent Bazel version run: $ bazel --host_javabase=/usr/lib64/jvm/java-9-openjdk \ build --javacopt='--release 9' \ --java_toolchain=@bazel_tools//tools/jdk:toolchain_jdk9 \ examples:helloworld_java_grpc
2018-01-09Update ErrorProne to 2.1.3 and fix failuresEric Anderson
The fixes could have subtle side-effects, but I did take care when making them.
2017-12-04all: add Status messages to all statusesCarl Mastrangelo
2017-11-10stub: Improve threading expectation docsEric Anderson
This mainly copies documentation from other places, like StreamObserver and ClientCall, but does fix some missing important threading notes. Fixes #3413
2017-11-02stub: update ServerCalls to include status messagesCarl Mastrangelo
Additionally: * Prefer RuntimeException from status * remove redundant "static" on interfaces * use checkState to shorten code
2017-11-01stub: clean up call cancellationCarl Mastrangelo
2017-10-24stub: add withExecutor APIZHANG Dapeng
2017-10-18stub: add missing bazel dep ↵zpencer
@com_google_errorprone_error_prone_annotations//jar (#3584)
2017-10-05stub: avoid mocking stub classesCarl Mastrangelo
2017-08-11all: Fix mismatch in naming Bazel Maven jarsPaul Gross
This commit aligns the naming of the Bazel Maven jars with the names used by Bazel's migration-tooling project: https://github.com/bazelbuild/migration-tooling Unfortunately, we can't fix @com_google_protobuf_java because it's required by Bazel itself. Fixes #3328
2017-07-27core,auth: Stabilize auth flow using CallCredentialsEric Anderson
As discussed in #1914, we need CallCredentials and MoreCallCredentials to be stable, but there's less of a strong need for the contents of CallCredentials to be stable. We're willing to commit to the name, without needing to commit to the plumbing.
2017-07-25Implemented ClientCallStreamObserver.cancel()Ryan Michela
2017-07-14stub: name more anonymous classesCarl Mastrangelo
2017-07-14stub: clean up client calls to avoid synthetic classCarl Mastrangelo
2017-07-13stub: Use named classes rather than anonymous in ServerCallsCarl Mastrangelo
This has a number of small benefits. First, it makes stack traces easier to read. For example: Old class names: ``` ServerCalls$1$1.class ServerCalls$1.class ServerCalls$2$1.class ServerCalls$2.class ``` New class names: ``` ServerCalls$StreamingServerCallHandler.class ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.class ServerCalls$UnaryServerCallHandler.class ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.class ``` This is much easier to read quickly, espcially if line numbers don't match between HEAD and the code that prints the stack trace. Another benefit of this is that it drops a class file from the jar (`EmptyServerCallListener`). Lastly, it makes it easier in the future to test, since the specific class can be referenced from a test. Traditionally this class hasn't been easy to test.
2017-07-12doc: update external linkZHANG Dapeng
2017-07-12doc: Uppercase JavaMehrdad Afshari
2017-07-10Canonicalize URL prefixes to https://grpc.ioMehrdad Afshari
2017-06-30all: Use fixed version number for java 6/7 signaturesEric Anderson
This is important for stable builds, as if the signature changes the old source may no longer validate.
2017-06-22testing: move NoopClientCall & NoopServerCall to internalZHANG Dapeng
one step for #3105
2017-06-22build: Add Bazel java_grpc_library ruleSimon Horlick
Bazel third party dependencies are specified in repositories.bzl which gives the consumer the ability to opt-out of any dependencies they use directly in their own project. Fixes #2756
2017-06-15core: detect invalid states on server side (eg zero responses for unary) (#3068)zpencer
The current check in ServerCallImpl is theoretically unsafe (#3059). Move that check into the stub, and expand the unit tests to cover other interesting edge cases on the server side: client sends one, but zero requests received at onHalfClose client sends one, but > 1 requests received at onHalfClose server sends one, but zero responses sent at onComplete server sends one, but > 1 responses sent via onNext fixes #2243 fixes #3059
2017-06-01all: fix licence whitespaceCarl Mastrangelo
2017-05-31all: update to Apache 2 licenceCarl Mastrangelo
Also, update the authors.
2017-05-15Javadoc improvements, especially to ContextEric Anderson
2017-05-10doc: initiate some package javadocZHANG Dapeng
Initated package javadoc for * `io.grpc.stub`, * `io.grpc.auth`, * `io.grpc.util`, * `io.grpc.protobuf`, * `io.grpc.protobuf.lite`, * `io.grpc.protobuf.nano`
2017-04-27stub: rm redundant call field in StreamObserverToCallListenerAdapterZHANG Dapeng
All that the `call` field was used for was to call `request` and nothing else. The `request` can be done by the `adapter` field, so the `call` field is redundant.
2017-03-15stub: document withChannel and document method historyCarl Mastrangelo
2017-02-07all: swap to newer animalsniffer pluginEric Anderson
The new plugin uses a newer version of animalsniffer, allows overriding the animalsniffer version used, and has up-to-date handling. The up-to-date handling cuts fully incremental parallel build times in half, from 5.5s to 2.7s. The previous plugin was supposed to be verifying tests. However, either it wasn't verifying them or its verification was broken.