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

Commit

Permalink
fix(v1): migrate to grpc_service_config (#193)
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/26799c93-8ee3-4b0a-a39f-018d7fd4c10d/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 322642677
Source-Link: googleapis/googleapis@8d58283
  • Loading branch information
yoshi-automation committed Jul 28, 2020
1 parent dba4e11 commit 5dd9dcf
Show file tree
Hide file tree
Showing 9 changed files with 1,315 additions and 1,122 deletions.
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>8.0.0</version>
<version>8.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
1,135 changes: 568 additions & 567 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 deleteDeviceRegistry to 30 seconds:
* <p>For example, to set the total timeout of createDeviceRegistry to 30 seconds:
*
* <pre>
* <code>
* DeviceManagerSettings.Builder deviceManagerSettingsBuilder =
* DeviceManagerSettings.newBuilder();
* deviceManagerSettingsBuilder
* .deleteDeviceRegistrySettings()
* .createDeviceRegistrySettings()
* .setRetrySettings(
* deviceManagerSettingsBuilder.deleteDeviceRegistrySettings().getRetrySettings().toBuilder()
* deviceManagerSettingsBuilder.createDeviceRegistrySettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DeviceManagerSettings deviceManagerSettings = deviceManagerSettingsBuilder.build();
Expand All @@ -74,28 +74,6 @@
@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 @@ -113,6 +91,11 @@ 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 @@ -137,12 +120,23 @@ 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 @@ -171,6 +165,12 @@ 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,29 +280,6 @@ 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 @@ -321,6 +298,12 @@ public UnaryCallSettings.Builder<DeleteDeviceRequest, Empty> deleteDeviceSetting
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 @@ -345,13 +328,24 @@ 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 @@ -381,6 +375,12 @@ 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,8 +29,9 @@
* <pre>
* <code>
* try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
* RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
* deviceManagerClient.deleteDeviceRegistry(name);
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
* DeviceRegistry response = deviceManagerClient.createDeviceRegistry(parent, deviceRegistry);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -65,24 +65,6 @@
@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 @@ -95,6 +77,10 @@ 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 @@ -117,6 +103,10 @@ 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 @@ -125,6 +115,11 @@ 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 @@ -148,6 +143,11 @@ 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 5dd9dcf

Please sign in to comment.