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

Method build

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

Builds a new instance of Uri as specified by the setters.

()

Source from the content-addressed store, hash-verified

1035
1036 /** Builds a new instance of {@link Uri} as specified by the setters. */
1037 public Uri build() {
1038 checkState(scheme != null, "Missing required scheme.");
1039 if (host == null) {
1040 checkState(port == null, "Cannot set port without host.");
1041 checkState(userInfo == null, "Cannot set userInfo without host.");
1042 }
1043 return new Uri(this);
1044 }
1045 }
1046
1047 /**

Callers 3

createMethod · 0.95
parseMethod · 0.95
getSocketOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected