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

Commit

Permalink
fix: restore GAPIC v2 retry configs (#144)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/b94bacd6-05ee-45c2-be4d-b0f667030fab/targets

PiperOrigin-RevId: 312088359
Source-Link: googleapis/googleapis@5a90d46
  • Loading branch information
yoshi-automation committed Jun 3, 2020
1 parent bd79f7b commit f8ae7ba
Show file tree
Hide file tree
Showing 8 changed files with 1,106 additions and 1,090 deletions.
1,153 changes: 576 additions & 577 deletions google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java

Large diffs are not rendered by default.

Expand Up @@ -55,16 +55,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 createDeviceRegistry to 30 seconds:
* <p>For example, to set the total timeout of deleteDeviceRegistry to 30 seconds:
*
* <pre>
* <code>
* DeviceManagerSettings.Builder deviceManagerSettingsBuilder =
* DeviceManagerSettings.newBuilder();
* deviceManagerSettingsBuilder
* .createDeviceRegistrySettings()
* .deleteDeviceRegistrySettings()
* .setRetrySettings(
* deviceManagerSettingsBuilder.createDeviceRegistrySettings().getRetrySettings().toBuilder()
* deviceManagerSettingsBuilder.deleteDeviceRegistrySettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DeviceManagerSettings deviceManagerSettings = deviceManagerSettingsBuilder.build();
Expand All @@ -74,6 +74,28 @@
@Generated("by gapic-generator")
@BetaApi
public class DeviceManagerSettings extends ClientSettings<DeviceManagerSettings> {
/** Returns the object with the settings used for calls to deleteDeviceRegistry. */
public UnaryCallSettings<DeleteDeviceRegistryRequest, Empty> deleteDeviceRegistrySettings() {
return ((DeviceManagerStubSettings) getStubSettings()).deleteDeviceRegistrySettings();
}

/** Returns the object with the settings used for calls to deleteDevice. */
public UnaryCallSettings<DeleteDeviceRequest, Empty> deleteDeviceSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).deleteDeviceSettings();
}

/** Returns the object with the settings used for calls to modifyCloudToDeviceConfig. */
public UnaryCallSettings<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).modifyCloudToDeviceConfigSettings();
}

/** Returns the object with the settings used for calls to sendCommandToDevice. */
public UnaryCallSettings<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).sendCommandToDeviceSettings();
}

/** Returns the object with the settings used for calls to createDeviceRegistry. */
public UnaryCallSettings<CreateDeviceRegistryRequest, DeviceRegistry>
createDeviceRegistrySettings() {
Expand All @@ -91,11 +113,6 @@ public UnaryCallSettings<GetDeviceRegistryRequest, DeviceRegistry> getDeviceRegi
return ((DeviceManagerStubSettings) getStubSettings()).updateDeviceRegistrySettings();
}

/** Returns the object with the settings used for calls to deleteDeviceRegistry. */
public UnaryCallSettings<DeleteDeviceRegistryRequest, Empty> deleteDeviceRegistrySettings() {
return ((DeviceManagerStubSettings) getStubSettings()).deleteDeviceRegistrySettings();
}

/** Returns the object with the settings used for calls to listDeviceRegistries. */
public PagedCallSettings<
ListDeviceRegistriesRequest,
Expand All @@ -120,23 +137,12 @@ public UnaryCallSettings<UpdateDeviceRequest, Device> updateDeviceSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).updateDeviceSettings();
}

/** Returns the object with the settings used for calls to deleteDevice. */
public UnaryCallSettings<DeleteDeviceRequest, Empty> deleteDeviceSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).deleteDeviceSettings();
}

/** Returns the object with the settings used for calls to listDevices. */
public PagedCallSettings<ListDevicesRequest, ListDevicesResponse, ListDevicesPagedResponse>
listDevicesSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).listDevicesSettings();
}

/** Returns the object with the settings used for calls to modifyCloudToDeviceConfig. */
public UnaryCallSettings<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).modifyCloudToDeviceConfigSettings();
}

/** Returns the object with the settings used for calls to listDeviceConfigVersions. */
public UnaryCallSettings<ListDeviceConfigVersionsRequest, ListDeviceConfigVersionsResponse>
listDeviceConfigVersionsSettings() {
Expand Down Expand Up @@ -165,12 +171,6 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((DeviceManagerStubSettings) getStubSettings()).testIamPermissionsSettings();
}

/** Returns the object with the settings used for calls to sendCommandToDevice. */
public UnaryCallSettings<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceSettings() {
return ((DeviceManagerStubSettings) getStubSettings()).sendCommandToDeviceSettings();
}

/** Returns the object with the settings used for calls to bindDeviceToGateway. */
public UnaryCallSettings<BindDeviceToGatewayRequest, BindDeviceToGatewayResponse>
bindDeviceToGatewaySettings() {
Expand Down Expand Up @@ -280,6 +280,29 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteDeviceRegistry. */
public UnaryCallSettings.Builder<DeleteDeviceRegistryRequest, Empty>
deleteDeviceRegistrySettings() {
return getStubSettingsBuilder().deleteDeviceRegistrySettings();
}

/** Returns the builder for the settings used for calls to deleteDevice. */
public UnaryCallSettings.Builder<DeleteDeviceRequest, Empty> deleteDeviceSettings() {
return getStubSettingsBuilder().deleteDeviceSettings();
}

/** Returns the builder for the settings used for calls to modifyCloudToDeviceConfig. */
public UnaryCallSettings.Builder<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigSettings() {
return getStubSettingsBuilder().modifyCloudToDeviceConfigSettings();
}

/** Returns the builder for the settings used for calls to sendCommandToDevice. */
public UnaryCallSettings.Builder<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceSettings() {
return getStubSettingsBuilder().sendCommandToDeviceSettings();
}

/** Returns the builder for the settings used for calls to createDeviceRegistry. */
public UnaryCallSettings.Builder<CreateDeviceRegistryRequest, DeviceRegistry>
createDeviceRegistrySettings() {
Expand All @@ -298,12 +321,6 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().updateDeviceRegistrySettings();
}

/** Returns the builder for the settings used for calls to deleteDeviceRegistry. */
public UnaryCallSettings.Builder<DeleteDeviceRegistryRequest, Empty>
deleteDeviceRegistrySettings() {
return getStubSettingsBuilder().deleteDeviceRegistrySettings();
}

/** Returns the builder for the settings used for calls to listDeviceRegistries. */
public PagedCallSettings.Builder<
ListDeviceRegistriesRequest,
Expand All @@ -328,24 +345,13 @@ public UnaryCallSettings.Builder<UpdateDeviceRequest, Device> updateDeviceSettin
return getStubSettingsBuilder().updateDeviceSettings();
}

/** Returns the builder for the settings used for calls to deleteDevice. */
public UnaryCallSettings.Builder<DeleteDeviceRequest, Empty> deleteDeviceSettings() {
return getStubSettingsBuilder().deleteDeviceSettings();
}

/** Returns the builder for the settings used for calls to listDevices. */
public PagedCallSettings.Builder<
ListDevicesRequest, ListDevicesResponse, ListDevicesPagedResponse>
listDevicesSettings() {
return getStubSettingsBuilder().listDevicesSettings();
}

/** Returns the builder for the settings used for calls to modifyCloudToDeviceConfig. */
public UnaryCallSettings.Builder<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigSettings() {
return getStubSettingsBuilder().modifyCloudToDeviceConfigSettings();
}

/** Returns the builder for the settings used for calls to listDeviceConfigVersions. */
public UnaryCallSettings.Builder<
ListDeviceConfigVersionsRequest, ListDeviceConfigVersionsResponse>
Expand Down Expand Up @@ -375,12 +381,6 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return getStubSettingsBuilder().testIamPermissionsSettings();
}

/** Returns the builder for the settings used for calls to sendCommandToDevice. */
public UnaryCallSettings.Builder<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceSettings() {
return getStubSettingsBuilder().sendCommandToDeviceSettings();
}

/** Returns the builder for the settings used for calls to bindDeviceToGateway. */
public UnaryCallSettings.Builder<BindDeviceToGatewayRequest, BindDeviceToGatewayResponse>
bindDeviceToGatewaySettings() {
Expand Down
Expand Up @@ -29,9 +29,8 @@
* <pre>
* <code>
* try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
* DeviceRegistry response = deviceManagerClient.createDeviceRegistry(parent, deviceRegistry);
* RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
* deviceManagerClient.deleteDeviceRegistry(name);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -65,6 +65,24 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class DeviceManagerStub implements BackgroundResource {

public UnaryCallable<DeleteDeviceRegistryRequest, Empty> deleteDeviceRegistryCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDeviceRegistryCallable()");
}

public UnaryCallable<DeleteDeviceRequest, Empty> deleteDeviceCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDeviceCallable()");
}

public UnaryCallable<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigCallable() {
throw new UnsupportedOperationException("Not implemented: modifyCloudToDeviceConfigCallable()");
}

public UnaryCallable<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceCallable() {
throw new UnsupportedOperationException("Not implemented: sendCommandToDeviceCallable()");
}

public UnaryCallable<CreateDeviceRegistryRequest, DeviceRegistry> createDeviceRegistryCallable() {
throw new UnsupportedOperationException("Not implemented: createDeviceRegistryCallable()");
}
Expand All @@ -77,10 +95,6 @@ public UnaryCallable<UpdateDeviceRegistryRequest, DeviceRegistry> updateDeviceRe
throw new UnsupportedOperationException("Not implemented: updateDeviceRegistryCallable()");
}

public UnaryCallable<DeleteDeviceRegistryRequest, Empty> deleteDeviceRegistryCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDeviceRegistryCallable()");
}

public UnaryCallable<ListDeviceRegistriesRequest, ListDeviceRegistriesPagedResponse>
listDeviceRegistriesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listDeviceRegistriesPagedCallable()");
Expand All @@ -103,10 +117,6 @@ public UnaryCallable<UpdateDeviceRequest, Device> updateDeviceCallable() {
throw new UnsupportedOperationException("Not implemented: updateDeviceCallable()");
}

public UnaryCallable<DeleteDeviceRequest, Empty> deleteDeviceCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDeviceCallable()");
}

public UnaryCallable<ListDevicesRequest, ListDevicesPagedResponse> listDevicesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listDevicesPagedCallable()");
}
Expand All @@ -115,11 +125,6 @@ public UnaryCallable<ListDevicesRequest, ListDevicesResponse> listDevicesCallabl
throw new UnsupportedOperationException("Not implemented: listDevicesCallable()");
}

public UnaryCallable<ModifyCloudToDeviceConfigRequest, DeviceConfig>
modifyCloudToDeviceConfigCallable() {
throw new UnsupportedOperationException("Not implemented: modifyCloudToDeviceConfigCallable()");
}

public UnaryCallable<ListDeviceConfigVersionsRequest, ListDeviceConfigVersionsResponse>
listDeviceConfigVersionsCallable() {
throw new UnsupportedOperationException("Not implemented: listDeviceConfigVersionsCallable()");
Expand All @@ -143,11 +148,6 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

public UnaryCallable<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
sendCommandToDeviceCallable() {
throw new UnsupportedOperationException("Not implemented: sendCommandToDeviceCallable()");
}

public UnaryCallable<BindDeviceToGatewayRequest, BindDeviceToGatewayResponse>
bindDeviceToGatewayCallable() {
throw new UnsupportedOperationException("Not implemented: bindDeviceToGatewayCallable()");
Expand Down

0 comments on commit f8ae7ba

Please sign in to comment.