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

fix: migrate to grpc_service_config #202

Merged
merged 2 commits into from Jun 26, 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
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>7.0.0</version>
<version>7.0.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -88,16 +88,16 @@
* <p>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.
*
* <p>For example, to set the total timeout of deleteCluster to 30 seconds:
* <p>For example, to set the total timeout of listClusters to 30 seconds:
*
* <pre>
* <code>
* ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
* ClusterManagerSettings.newBuilder();
* clusterManagerSettingsBuilder
* .deleteClusterSettings()
* .listClustersSettings()
* .setRetrySettings(
* clusterManagerSettingsBuilder.deleteClusterSettings().getRetrySettings().toBuilder()
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
Expand All @@ -107,16 +107,6 @@
@Generated("by gapic-generator")
@BetaApi
public class ClusterManagerSettings extends ClientSettings<ClusterManagerSettings> {
/** Returns the object with the settings used for calls to deleteCluster. */
public UnaryCallSettings<DeleteClusterRequest, Operation> deleteClusterSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings();
}

/** Returns the object with the settings used for calls to deleteNodePool. */
public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to listClusters. */
public UnaryCallSettings<ListClustersRequest, ListClustersResponse> listClustersSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings();
Expand Down Expand Up @@ -178,6 +168,11 @@ public UnaryCallSettings<SetMasterAuthRequest, Operation> setMasterAuthSettings(
return ((ClusterManagerStubSettings) getStubSettings()).setMasterAuthSettings();
}

/** Returns the object with the settings used for calls to deleteCluster. */
public UnaryCallSettings<DeleteClusterRequest, Operation> deleteClusterSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings();
}

/** Returns the object with the settings used for calls to listOperations. */
public UnaryCallSettings<ListOperationsRequest, ListOperationsResponse> listOperationsSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings();
Expand Down Expand Up @@ -213,6 +208,11 @@ public UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSetting
return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings();
}

/** Returns the object with the settings used for calls to deleteNodePool. */
public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -366,16 +366,6 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteCluster. */
public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterSettings() {
return getStubSettingsBuilder().deleteClusterSettings();
}

/** Returns the builder for the settings used for calls to deleteNodePool. */
public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to listClusters. */
public UnaryCallSettings.Builder<ListClustersRequest, ListClustersResponse>
listClustersSettings() {
Expand Down Expand Up @@ -440,6 +430,11 @@ public UnaryCallSettings.Builder<SetMasterAuthRequest, Operation> setMasterAuthS
return getStubSettingsBuilder().setMasterAuthSettings();
}

/** Returns the builder for the settings used for calls to deleteCluster. */
public UnaryCallSettings.Builder<DeleteClusterRequest, Operation> deleteClusterSettings() {
return getStubSettingsBuilder().deleteClusterSettings();
}

/** Returns the builder for the settings used for calls to listOperations. */
public UnaryCallSettings.Builder<ListOperationsRequest, ListOperationsResponse>
listOperationsSettings() {
Expand Down Expand Up @@ -478,6 +473,11 @@ public UnaryCallSettings.Builder<CreateNodePoolRequest, Operation> createNodePoo
return getStubSettingsBuilder().createNodePoolSettings();
}

/** Returns the builder for the settings used for calls to deleteNodePool. */
public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoolSettings() {
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Expand Up @@ -30,8 +30,7 @@
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
* String projectId = "";
* String zone = "";
* String clusterId = "";
* Operation response = clusterManagerClient.deleteCluster(projectId, zone, clusterId);
* ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -72,14 +72,6 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class ClusterManagerStub implements BackgroundResource {

public UnaryCallable<DeleteClusterRequest, Operation> deleteClusterCallable() {
throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()");
}

public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable() {
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<ListClustersRequest, ListClustersResponse> listClustersCallable() {
throw new UnsupportedOperationException("Not implemented: listClustersCallable()");
}
Expand Down Expand Up @@ -128,6 +120,10 @@ public UnaryCallable<SetMasterAuthRequest, Operation> setMasterAuthCallable() {
throw new UnsupportedOperationException("Not implemented: setMasterAuthCallable()");
}

public UnaryCallable<DeleteClusterRequest, Operation> deleteClusterCallable() {
throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()");
}

public UnaryCallable<ListOperationsRequest, ListOperationsResponse> listOperationsCallable() {
throw new UnsupportedOperationException("Not implemented: listOperationsCallable()");
}
Expand Down Expand Up @@ -156,6 +152,10 @@ public UnaryCallable<CreateNodePoolRequest, Operation> createNodePoolCallable()
throw new UnsupportedOperationException("Not implemented: createNodePoolCallable()");
}

public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable() {
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()");
Expand Down