diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java new file mode 100644 index 000000000000..4a7cc8076b11 --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -0,0 +1,585 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * 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.container.v1; + +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; +import com.google.container.v1.CancelOperationRequest; +import com.google.container.v1.Cluster; +import com.google.container.v1.CompleteIPRotationRequest; +import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CreateClusterRequest; +import com.google.container.v1.CreateNodePoolRequest; +import com.google.container.v1.DeleteClusterRequest; +import com.google.container.v1.DeleteNodePoolRequest; +import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; +import com.google.container.v1.GetNodePoolRequest; +import com.google.container.v1.GetOperationRequest; +import com.google.container.v1.GetServerConfigRequest; +import com.google.container.v1.ListClustersRequest; +import com.google.container.v1.ListClustersResponse; +import com.google.container.v1.ListNodePoolsRequest; +import com.google.container.v1.ListNodePoolsResponse; +import com.google.container.v1.ListOperationsRequest; +import com.google.container.v1.ListOperationsResponse; +import com.google.container.v1.ListUsableSubnetworksRequest; +import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.NodePool; +import com.google.container.v1.Operation; +import com.google.container.v1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1.ServerConfig; +import com.google.container.v1.SetAddonsConfigRequest; +import com.google.container.v1.SetLabelsRequest; +import com.google.container.v1.SetLegacyAbacRequest; +import com.google.container.v1.SetLocationsRequest; +import com.google.container.v1.SetLoggingServiceRequest; +import com.google.container.v1.SetMaintenancePolicyRequest; +import com.google.container.v1.SetMasterAuthRequest; +import com.google.container.v1.SetMonitoringServiceRequest; +import com.google.container.v1.SetNetworkPolicyRequest; +import com.google.container.v1.SetNodePoolAutoscalingRequest; +import com.google.container.v1.SetNodePoolManagementRequest; +import com.google.container.v1.SetNodePoolSizeRequest; +import com.google.container.v1.StartIPRotationRequest; +import com.google.container.v1.UpdateClusterRequest; +import com.google.container.v1.UpdateMasterRequest; +import com.google.container.v1.UpdateNodePoolRequest; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ClusterManagerClient}. + * + *
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of listClusters to 30 seconds: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * ClusterManagerSettings.Builder clusterManagerSettingsBuilder = + * ClusterManagerSettings.newBuilder(); + * clusterManagerSettingsBuilder + * .listClustersSettings() + * .setRetrySettings( + * clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build(); + * }+ */ +@Generated("by gapic-generator-java") +public class ClusterManagerSettings extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcClusterManagerStub extends ClusterManagerStub {
+ private static final MethodDescriptor