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

Method setScheme

api/src/main/java/io/grpc/Uri.java:711–714  ·  view source on GitHub ↗

Sets the scheme, e.g. "https", "dns" or "xds". This field is required. @return this, for fluent building @throws IllegalArgumentException if the scheme is invalid.

(String scheme)

Source from the content-addressed store, hash-verified

709 * @throws IllegalArgumentException if the scheme is invalid.
710 */
711 @CanIgnoreReturnValue
712 public Builder setScheme(String scheme) {
713 return setRawScheme(scheme.toLowerCase(Locale.ROOT));
714 }
715
716 @CanIgnoreReturnValue
717 Builder setRawScheme(String scheme) {

Calls 1

setRawSchemeMethod · 0.95

Tested by 15

validAuthorityTargetMethod · 0.64
validUriTargetMethod · 0.64
validIpv4UriTargetMethod · 0.64
validIpv6UriTargetMethod · 0.64
builder_numericPortMethod · 0.64