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

feat(v1beta2): remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata #411

Merged
merged 6 commits into from Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

Large diffs are not rendered by default.

Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.dataproc.v1;

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

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}.
*
Expand All @@ -51,24 +52,26 @@
*
* <p>For example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
*
* <pre>
* <code>
* <pre>{@code
* AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
* AutoscalingPolicyServiceSettings.newBuilder();
* autoscalingPolicyServiceSettingsBuilder
* .createAutoscalingPolicySettings()
* .setRetrySettings(
* autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
* autoscalingPolicyServiceSettingsBuilder
* .createAutoscalingPolicySettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
* </code>
* </pre>
* AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
* autoscalingPolicyServiceSettingsBuilder.build();
* }</pre>
*/
@Generated("by gapic-generator")
@BetaApi
@Generated("by gapic-generator-java")
public class AutoscalingPolicyServiceSettings
extends ClientSettings<AutoscalingPolicyServiceSettings> {

/** Returns the object with the settings used for calls to createAutoscalingPolicy. */
public UnaryCallSettings<CreateAutoscalingPolicyRequest, AutoscalingPolicy>
createAutoscalingPolicySettings() {
Expand Down Expand Up @@ -168,18 +171,15 @@ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOExc
/** Builder for AutoscalingPolicyServiceSettings. */
public static class Builder
extends ClientSettings.Builder<AutoscalingPolicyServiceSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
}

protected Builder(AutoscalingPolicyServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -188,11 +188,15 @@ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
}

public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
Expand Down