MCPcopy Create free account
hub / github.com/grpc/grpc-java / withCallCredentials

Method withCallCredentials

api/src/main/java/io/grpc/CallOptions.java:139–143  ·  view source on GitHub ↗

Returns a new CallOptions with the given call credentials.

(@Nullable CallCredentials credentials)

Source from the content-addressed store, hash-verified

137 * Returns a new {@code CallOptions} with the given call credentials.
138 */
139 public CallOptions withCallCredentials(@Nullable CallCredentials credentials) {
140 Builder builder = toBuilder(this);
141 builder.credentials = credentials;
142 return builder.build();
143 }
144
145 /**
146 * Sets the compression to use for the call. The compressor must be a valid name known in the

Calls 2

toBuilderMethod · 0.95
buildMethod · 0.95