@@ -134,16 +134,12 @@ public CredentialsProvider getCredentialsProvider() {
134134 return credentialsProvider ;
135135 }
136136
137- /**
138- * The address used to reach the service.
139- */
137+ /** The address used to reach the service. */
140138 public String getServiceAddress () {
141139 return serviceAddress ;
142140 }
143141
144- /**
145- * The port used to reach the service.
146- */
142+ /** The port used to reach the service. */
147143 public int getPort () {
148144 return port ;
149145 }
@@ -162,7 +158,7 @@ public String serviceHeader() {
162158
163159 String javaVersion = Runtime .class .getPackage ().getImplementationVersion ();
164160 return String .format (
165- "%s/%s gax/%s grpc/%s java/%s" ,
161+ "%s/%s gax/%s grpc/%s gl- java/%s" ,
166162 clientName ,
167163 clientVersion ,
168164 getGaxVersion (),
@@ -184,7 +180,6 @@ static String getGaxVersion() {
184180 return gaxVersion ;
185181 }
186182
187-
188183 public Builder toBuilder () {
189184 return new Builder (this );
190185 }
@@ -222,6 +217,7 @@ private Builder(InstantiatingChannelProvider provider) {
222217 /**
223218 * Sets the ExecutorProvider for this ChannelProvider.
224219 *
220+ * <p>
225221 * This is optional; if it is not provided, needsExecutor() will return true, meaning that an
226222 * Executor must be provided when getChannel is called on the constructed ChannelProvider
227223 * instance. Note: ClientSettings will automatically provide its own Executor in this
@@ -241,74 +237,53 @@ public Builder setCredentialsProvider(CredentialsProvider credentialsProvider) {
241237 return this ;
242238 }
243239
244- /**
245- * The previously set CredentialsProvider.
246- */
240+ /** The previously set CredentialsProvider. */
247241 public CredentialsProvider getCredentialsProvider () {
248242 return credentialsProvider ;
249243 }
250244
251- /**
252- * Sets the address used to reach the service.
253- */
245+ /** Sets the address used to reach the service. */
254246 public Builder setServiceAddress (String serviceAddress ) {
255247 this .serviceAddress = serviceAddress ;
256248 return this ;
257249 }
258250
259- /**
260- * The address used to reach the service.
261- */
251+ /** The address used to reach the service. */
262252 public String getServiceAddress () {
263253 return serviceAddress ;
264254 }
265255
266- /**
267- * Sets the port used to reach the service.
268- */
256+ /** Sets the port used to reach the service. */
269257 public Builder setPort (int port ) {
270258 this .port = port ;
271259 return this ;
272260 }
273261
274- /**
275- * The port used to reach the service.
276- */
262+ /** The port used to reach the service. */
277263 public int getPort () {
278264 return port ;
279265 }
280266
281- /**
282- * Sets the generator name and version for the GRPC custom header.
283- */
267+ /** Sets the generator name and version for the GRPC custom header. */
284268 public Builder setClientHeader (String name , String version ) {
285269 this .clientName = name ;
286270 this .clientVersion = version ;
287271 return this ;
288272 }
289273
290- /**
291- * The client name provided previously.
292- */
274+ /** The client name provided previously. */
293275 public String getClientName () {
294- return serviceGeneratorName ;
276+ return clientName ;
295277 }
296278
297- /**
298- * The client version provided previously.
299- */
300- public String getGeneratorVersion () {
301- return serviceGeneratorVersion ;
279+ /** The client version provided previously. */
280+ public String getClientVersion () {
281+ return clientVersion ;
302282 }
303283
304284 public InstantiatingChannelProvider build () {
305285 return new InstantiatingChannelProvider (
306- executorProvider ,
307- credentialsProvider ,
308- serviceAddress ,
309- port ,
310- serviceGeneratorName ,
311- serviceGeneratorVersion );
286+ executorProvider , credentialsProvider , serviceAddress , port , clientName , clientVersion );
312287 }
313288 }
314289}
0 commit comments