Returns a new CallOptions with the given call credentials.
(@Nullable CallCredentials credentials)
| 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 |