7171 * <p>The builder of this class is recursive, so contained classes are themselves builders. When
7272 * build() is called, the tree of builders is called to create the complete settings object.
7373 *
74- * <p>For example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
74+ * <p>For example, to set the total timeout of updateAutoscalingPolicy to 30 seconds:
7575 *
7676 * <pre>
7777 * <code>
7878 * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
7979 * AutoscalingPolicyServiceStubSettings.newBuilder();
8080 * autoscalingPolicyServiceSettingsBuilder
81- * .createAutoscalingPolicySettings ()
81+ * .updateAutoscalingPolicySettings ()
8282 * .setRetrySettings(
83- * autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings ().getRetrySettings().toBuilder()
83+ * autoscalingPolicyServiceSettingsBuilder.updateAutoscalingPolicySettings ().getRetrySettings().toBuilder()
8484 * .setTotalTimeout(Duration.ofSeconds(30))
8585 * .build());
8686 * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
@@ -95,10 +95,10 @@ public class AutoscalingPolicyServiceStubSettings
9595 private static final ImmutableList <String > DEFAULT_SERVICE_SCOPES =
9696 ImmutableList .<String >builder ().add ("https://www.googleapis.com/auth/cloud-platform" ).build ();
9797
98- private final UnaryCallSettings <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
99- createAutoscalingPolicySettings ;
10098 private final UnaryCallSettings <UpdateAutoscalingPolicyRequest , AutoscalingPolicy >
10199 updateAutoscalingPolicySettings ;
100+ private final UnaryCallSettings <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
101+ createAutoscalingPolicySettings ;
102102 private final UnaryCallSettings <GetAutoscalingPolicyRequest , AutoscalingPolicy >
103103 getAutoscalingPolicySettings ;
104104 private final PagedCallSettings <
@@ -109,18 +109,18 @@ public class AutoscalingPolicyServiceStubSettings
109109 private final UnaryCallSettings <DeleteAutoscalingPolicyRequest , Empty >
110110 deleteAutoscalingPolicySettings ;
111111
112- /** Returns the object with the settings used for calls to createAutoscalingPolicy. */
113- public UnaryCallSettings <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
114- createAutoscalingPolicySettings () {
115- return createAutoscalingPolicySettings ;
116- }
117-
118112 /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */
119113 public UnaryCallSettings <UpdateAutoscalingPolicyRequest , AutoscalingPolicy >
120114 updateAutoscalingPolicySettings () {
121115 return updateAutoscalingPolicySettings ;
122116 }
123117
118+ /** Returns the object with the settings used for calls to createAutoscalingPolicy. */
119+ public UnaryCallSettings <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
120+ createAutoscalingPolicySettings () {
121+ return createAutoscalingPolicySettings ;
122+ }
123+
124124 /** Returns the object with the settings used for calls to getAutoscalingPolicy. */
125125 public UnaryCallSettings <GetAutoscalingPolicyRequest , AutoscalingPolicy >
126126 getAutoscalingPolicySettings () {
@@ -211,8 +211,8 @@ public Builder toBuilder() {
211211 protected AutoscalingPolicyServiceStubSettings (Builder settingsBuilder ) throws IOException {
212212 super (settingsBuilder );
213213
214- createAutoscalingPolicySettings = settingsBuilder .createAutoscalingPolicySettings ().build ();
215214 updateAutoscalingPolicySettings = settingsBuilder .updateAutoscalingPolicySettings ().build ();
215+ createAutoscalingPolicySettings = settingsBuilder .createAutoscalingPolicySettings ().build ();
216216 getAutoscalingPolicySettings = settingsBuilder .getAutoscalingPolicySettings ().build ();
217217 listAutoscalingPoliciesSettings = settingsBuilder .listAutoscalingPoliciesSettings ().build ();
218218 deleteAutoscalingPolicySettings = settingsBuilder .deleteAutoscalingPolicySettings ().build ();
@@ -295,10 +295,10 @@ public static class Builder
295295 extends StubSettings .Builder <AutoscalingPolicyServiceStubSettings , Builder > {
296296 private final ImmutableList <UnaryCallSettings .Builder <?, ?>> unaryMethodSettingsBuilders ;
297297
298- private final UnaryCallSettings .Builder <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
299- createAutoscalingPolicySettings ;
300298 private final UnaryCallSettings .Builder <UpdateAutoscalingPolicyRequest , AutoscalingPolicy >
301299 updateAutoscalingPolicySettings ;
300+ private final UnaryCallSettings .Builder <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
301+ createAutoscalingPolicySettings ;
302302 private final UnaryCallSettings .Builder <GetAutoscalingPolicyRequest , AutoscalingPolicy >
303303 getAutoscalingPolicySettings ;
304304 private final PagedCallSettings .Builder <
@@ -350,10 +350,10 @@ protected Builder() {
350350 protected Builder (ClientContext clientContext ) {
351351 super (clientContext );
352352
353- createAutoscalingPolicySettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
354-
355353 updateAutoscalingPolicySettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
356354
355+ createAutoscalingPolicySettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
356+
357357 getAutoscalingPolicySettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
358358
359359 listAutoscalingPoliciesSettings =
@@ -363,8 +363,8 @@ protected Builder(ClientContext clientContext) {
363363
364364 unaryMethodSettingsBuilders =
365365 ImmutableList .<UnaryCallSettings .Builder <?, ?>>of (
366- createAutoscalingPolicySettings ,
367366 updateAutoscalingPolicySettings ,
367+ createAutoscalingPolicySettings ,
368368 getAutoscalingPolicySettings ,
369369 listAutoscalingPoliciesSettings ,
370370 deleteAutoscalingPolicySettings );
@@ -384,13 +384,13 @@ private static Builder createDefault() {
384384 private static Builder initDefaults (Builder builder ) {
385385
386386 builder
387- .createAutoscalingPolicySettings ()
388- .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent " ))
387+ .updateAutoscalingPolicySettings ()
388+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent " ))
389389 .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
390390
391391 builder
392- .updateAutoscalingPolicySettings ()
393- .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent " ))
392+ .createAutoscalingPolicySettings ()
393+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent " ))
394394 .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
395395
396396 builder
@@ -414,16 +414,16 @@ private static Builder initDefaults(Builder builder) {
414414 protected Builder (AutoscalingPolicyServiceStubSettings settings ) {
415415 super (settings );
416416
417- createAutoscalingPolicySettings = settings .createAutoscalingPolicySettings .toBuilder ();
418417 updateAutoscalingPolicySettings = settings .updateAutoscalingPolicySettings .toBuilder ();
418+ createAutoscalingPolicySettings = settings .createAutoscalingPolicySettings .toBuilder ();
419419 getAutoscalingPolicySettings = settings .getAutoscalingPolicySettings .toBuilder ();
420420 listAutoscalingPoliciesSettings = settings .listAutoscalingPoliciesSettings .toBuilder ();
421421 deleteAutoscalingPolicySettings = settings .deleteAutoscalingPolicySettings .toBuilder ();
422422
423423 unaryMethodSettingsBuilders =
424424 ImmutableList .<UnaryCallSettings .Builder <?, ?>>of (
425- createAutoscalingPolicySettings ,
426425 updateAutoscalingPolicySettings ,
426+ createAutoscalingPolicySettings ,
427427 getAutoscalingPolicySettings ,
428428 listAutoscalingPoliciesSettings ,
429429 deleteAutoscalingPolicySettings );
@@ -445,18 +445,18 @@ public Builder applyToAllUnaryMethods(
445445 return unaryMethodSettingsBuilders ;
446446 }
447447
448- /** Returns the builder for the settings used for calls to createAutoscalingPolicy. */
449- public UnaryCallSettings .Builder <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
450- createAutoscalingPolicySettings () {
451- return createAutoscalingPolicySettings ;
452- }
453-
454448 /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */
455449 public UnaryCallSettings .Builder <UpdateAutoscalingPolicyRequest , AutoscalingPolicy >
456450 updateAutoscalingPolicySettings () {
457451 return updateAutoscalingPolicySettings ;
458452 }
459453
454+ /** Returns the builder for the settings used for calls to createAutoscalingPolicy. */
455+ public UnaryCallSettings .Builder <CreateAutoscalingPolicyRequest , AutoscalingPolicy >
456+ createAutoscalingPolicySettings () {
457+ return createAutoscalingPolicySettings ;
458+ }
459+
460460 /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */
461461 public UnaryCallSettings .Builder <GetAutoscalingPolicyRequest , AutoscalingPolicy >
462462 getAutoscalingPolicySettings () {
0 commit comments