Returns the "raw" query string representation of these parameters, suitable for passing to the io.grpc.Uri.Builder#setRawQuery method. @return the raw query string
()
| 125 | * @return the raw query string |
| 126 | */ |
| 127 | @Nullable |
| 128 | public String toRawQuery() { |
| 129 | if (entries.isEmpty()) { |
| 130 | return null; |
| 131 | } |
| 132 | StringBuilder resultBuilder = new StringBuilder(); |
| 133 | boolean first = true; |
| 134 | for (Entry entry : entries) { |
| 135 | if (!first) { |
| 136 | resultBuilder.append('&'); |
| 137 | } |
| 138 | entry.appendToRawQueryStringBuilder(resultBuilder); |
| 139 | first = false; |
| 140 | } |
| 141 | return resultBuilder.toString(); |
| 142 | } |
| 143 | |
| 144 | @Override |
| 145 | public String toString() { |