From 422e0c91e82919e8c21ca0bdd026f7796f3ae907 Mon Sep 17 00:00:00 2001 From: Shin Fan Date: Thu, 24 Mar 2016 13:19:57 -0700 Subject: [PATCH] Rename ApiCallableBuilder -> Builder in gax. --- .../com/google/api/gax/grpc/ApiCallable.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/google/api/gax/grpc/ApiCallable.java b/src/main/java/com/google/api/gax/grpc/ApiCallable.java index 50192e9fc284..635787c1725f 100644 --- a/src/main/java/com/google/api/gax/grpc/ApiCallable.java +++ b/src/main/java/com/google/api/gax/grpc/ApiCallable.java @@ -230,16 +230,16 @@ public ApiCallable bundling( /** * A builder for ApiCallable. */ - public static class ApiCallableBuilder extends ApiCallSettings { + public static class Builder extends ApiCallSettings { private final ApiCallable baseCallable; /** - * Constructs an instance of ApiCallableBuilder. + * Constructs an instance of Builder. * * @param grpcMethodDescriptor A method descriptor obtained from the generated GRPC * class. */ - public ApiCallableBuilder(MethodDescriptor grpcMethodDescriptor) { + public Builder(MethodDescriptor grpcMethodDescriptor) { this.baseCallable = ApiCallable.create(grpcMethodDescriptor); } @@ -273,19 +273,19 @@ public ApiCallable build(ServiceApiSettings serviceApiSetti * A builder for an ApiCallable which presents an Iterable backed by page * streaming calls to an API method. */ - public static class PageStreamingApiCallableBuilder - extends ApiCallableBuilder { + public static class PageStreamingBuilder + extends Builder { private final PageStreamingDescriptor pageDescriptor; /** - * Constructs an instance of ApiCallableBuilder. + * Constructs an instance of Builder. * * @param grpcMethodDescriptor A method descriptor obtained from the generated GRPC * class. * @param pageDescriptor An object which injects and extracts fields related * to page streaming for a particular API method. */ - public PageStreamingApiCallableBuilder( + public PageStreamingBuilder( MethodDescriptor grpcMethodDescriptor, PageStreamingDescriptor pageDescriptor) { super(grpcMethodDescriptor); @@ -329,21 +329,20 @@ public static BundlableApiCallableInfo - extends ApiCallableBuilder { + public static class BundlableBuilder extends Builder { private final BundlingDescriptor bundlingDescriptor; private BundlingSettings bundlingSettings; /** - * Constructs an instance of BundlableApiCallableBuilder. + * Constructs an instance of BundlableBuilder. * * @param grpcMethodDescriptor A method descriptor obtained from the generated GRPC * class. * @param bundlingDescriptor An object which splits and merges requests for the * purpose of bundling. */ - public BundlableApiCallableBuilder( + public BundlableBuilder( MethodDescriptor grpcMethodDescriptor, BundlingDescriptor bundlingDescriptor) { super(grpcMethodDescriptor); @@ -354,7 +353,7 @@ public BundlableApiCallableBuilder( /** * Provides the bundling settings to use. */ - public BundlableApiCallableBuilder setBundlingSettings( + public BundlableBuilder setBundlingSettings( BundlingSettings bundlingSettings) { this.bundlingSettings = bundlingSettings; return this;