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)
| 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) { |