Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit e8025d4

Browse files
feat(v1beta2): remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata (#411)
Breaking changes: 1. The `DOCKER` and `FLINK` values have been removed from the `Component` enum, and an `HBASE` value was added. Other changes: 1. There is a new `temp_bucket` field in `ClusterConfig`. 2. There is a new `preemptibility` field in `InstanceGroupConfig`. 3. The `project_id` field of `JobReference` is now optional instead of required. 4. There is a new `dag_timeout` field in `WorkflowTemplate`. 5. There are new `dag_timeout`, `dag_start_time`, and `dag_end_time` fields in `WorkflowMetadata`. 6. There are various updates to the doc comments. PiperOrigin-RevId: 347036369 Source-Link: googleapis/googleapis@6d65640 PiperOrigin-RevId: 347029491 Source-Link: googleapis/googleapis@bddb3d7 PiperOrigin-RevId: 346372957 Source-Link: googleapis/googleapis@857f70d PiperOrigin-RevId: 346132878 Source-Link: googleapis/googleapis@565b9a5 PiperOrigin-RevId: 345127100 Source-Link: googleapis/googleapis@269083b
1 parent b02deda commit e8025d4

File tree

134 files changed

+11518
-9638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+11518
-9638
lines changed

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java

Lines changed: 137 additions & 355 deletions
Large diffs are not rendered by default.

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.dataproc.v1;
1718

1819
import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
@@ -34,7 +35,7 @@
3435
import java.util.List;
3536
import javax.annotation.Generated;
3637

37-
// AUTO-GENERATED DOCUMENTATION AND CLASS
38+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
3839
/**
3940
* Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}.
4041
*
@@ -51,24 +52,26 @@
5152
*
5253
* <p>For example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
5354
*
54-
* <pre>
55-
* <code>
55+
* <pre>{@code
5656
* AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
5757
* AutoscalingPolicyServiceSettings.newBuilder();
5858
* autoscalingPolicyServiceSettingsBuilder
5959
* .createAutoscalingPolicySettings()
6060
* .setRetrySettings(
61-
* autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
61+
* autoscalingPolicyServiceSettingsBuilder
62+
* .createAutoscalingPolicySettings()
63+
* .getRetrySettings()
64+
* .toBuilder()
6265
* .setTotalTimeout(Duration.ofSeconds(30))
6366
* .build());
64-
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
65-
* </code>
66-
* </pre>
67+
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
68+
* autoscalingPolicyServiceSettingsBuilder.build();
69+
* }</pre>
6770
*/
68-
@Generated("by gapic-generator")
69-
@BetaApi
71+
@Generated("by gapic-generator-java")
7072
public class AutoscalingPolicyServiceSettings
7173
extends ClientSettings<AutoscalingPolicyServiceSettings> {
74+
7275
/** Returns the object with the settings used for calls to createAutoscalingPolicy. */
7376
public UnaryCallSettings<CreateAutoscalingPolicyRequest, AutoscalingPolicy>
7477
createAutoscalingPolicySettings() {
@@ -168,18 +171,15 @@ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOExc
168171
/** Builder for AutoscalingPolicyServiceSettings. */
169172
public static class Builder
170173
extends ClientSettings.Builder<AutoscalingPolicyServiceSettings, Builder> {
174+
171175
protected Builder() throws IOException {
172-
this((ClientContext) null);
176+
this(((ClientContext) null));
173177
}
174178

175179
protected Builder(ClientContext clientContext) {
176180
super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext));
177181
}
178182

179-
private static Builder createDefault() {
180-
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
181-
}
182-
183183
protected Builder(AutoscalingPolicyServiceSettings settings) {
184184
super(settings.getStubSettings().toBuilder());
185185
}
@@ -188,11 +188,15 @@ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) {
188188
super(stubSettings);
189189
}
190190

191+
private static Builder createDefault() {
192+
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
193+
}
194+
191195
public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
192196
return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
193197
}
194198

195-
// NEXT_MAJOR_VER: remove 'throws Exception'
199+
// NEXT_MAJOR_VER: remove 'throws Exception'.
196200
/**
197201
* Applies the given settings updater function to all of the unary API methods in this service.
198202
*

0 commit comments

Comments
 (0)