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

Commit d886694

Browse files
Merge 81bbb1f into 7949d63
2 parents 7949d63 + 81bbb1f commit d886694

4 files changed

Lines changed: 167 additions & 22 deletions

File tree

google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,94 +698,115 @@ public GrpcOperationsStub getOperationsStub() {
698698
return operationsStub;
699699
}
700700

701+
@Override
701702
public UnaryCallable<CreateDeviceRegistryRequest, DeviceRegistry> createDeviceRegistryCallable() {
702703
return createDeviceRegistryCallable;
703704
}
704705

706+
@Override
705707
public UnaryCallable<GetDeviceRegistryRequest, DeviceRegistry> getDeviceRegistryCallable() {
706708
return getDeviceRegistryCallable;
707709
}
708710

711+
@Override
709712
public UnaryCallable<UpdateDeviceRegistryRequest, DeviceRegistry> updateDeviceRegistryCallable() {
710713
return updateDeviceRegistryCallable;
711714
}
712715

716+
@Override
713717
public UnaryCallable<DeleteDeviceRegistryRequest, Empty> deleteDeviceRegistryCallable() {
714718
return deleteDeviceRegistryCallable;
715719
}
716720

721+
@Override
717722
public UnaryCallable<ListDeviceRegistriesRequest, ListDeviceRegistriesResponse>
718723
listDeviceRegistriesCallable() {
719724
return listDeviceRegistriesCallable;
720725
}
721726

727+
@Override
722728
public UnaryCallable<ListDeviceRegistriesRequest, ListDeviceRegistriesPagedResponse>
723729
listDeviceRegistriesPagedCallable() {
724730
return listDeviceRegistriesPagedCallable;
725731
}
726732

733+
@Override
727734
public UnaryCallable<CreateDeviceRequest, Device> createDeviceCallable() {
728735
return createDeviceCallable;
729736
}
730737

738+
@Override
731739
public UnaryCallable<GetDeviceRequest, Device> getDeviceCallable() {
732740
return getDeviceCallable;
733741
}
734742

743+
@Override
735744
public UnaryCallable<UpdateDeviceRequest, Device> updateDeviceCallable() {
736745
return updateDeviceCallable;
737746
}
738747

748+
@Override
739749
public UnaryCallable<DeleteDeviceRequest, Empty> deleteDeviceCallable() {
740750
return deleteDeviceCallable;
741751
}
742752

753+
@Override
743754
public UnaryCallable<ListDevicesRequest, ListDevicesResponse> listDevicesCallable() {
744755
return listDevicesCallable;
745756
}
746757

758+
@Override
747759
public UnaryCallable<ListDevicesRequest, ListDevicesPagedResponse> listDevicesPagedCallable() {
748760
return listDevicesPagedCallable;
749761
}
750762

763+
@Override
751764
public UnaryCallable<ModifyCloudToDeviceConfigRequest, DeviceConfig>
752765
modifyCloudToDeviceConfigCallable() {
753766
return modifyCloudToDeviceConfigCallable;
754767
}
755768

769+
@Override
756770
public UnaryCallable<ListDeviceConfigVersionsRequest, ListDeviceConfigVersionsResponse>
757771
listDeviceConfigVersionsCallable() {
758772
return listDeviceConfigVersionsCallable;
759773
}
760774

775+
@Override
761776
public UnaryCallable<ListDeviceStatesRequest, ListDeviceStatesResponse>
762777
listDeviceStatesCallable() {
763778
return listDeviceStatesCallable;
764779
}
765780

781+
@Override
766782
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
767783
return setIamPolicyCallable;
768784
}
769785

786+
@Override
770787
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
771788
return getIamPolicyCallable;
772789
}
773790

791+
@Override
774792
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
775793
testIamPermissionsCallable() {
776794
return testIamPermissionsCallable;
777795
}
778796

797+
@Override
779798
public UnaryCallable<SendCommandToDeviceRequest, SendCommandToDeviceResponse>
780799
sendCommandToDeviceCallable() {
781800
return sendCommandToDeviceCallable;
782801
}
783802

803+
@Override
784804
public UnaryCallable<BindDeviceToGatewayRequest, BindDeviceToGatewayResponse>
785805
bindDeviceToGatewayCallable() {
786806
return bindDeviceToGatewayCallable;
787807
}
788808

809+
@Override
789810
public UnaryCallable<UnbindDeviceFromGatewayRequest, UnbindDeviceFromGatewayResponse>
790811
unbindDeviceFromGatewayCallable() {
791812
return unbindDeviceFromGatewayCallable;

google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public void createDeviceRegistryTest() throws Exception {
103103
.setStateNotificationConfig(StateNotificationConfig.newBuilder().build())
104104
.setMqttConfig(MqttConfig.newBuilder().build())
105105
.setHttpConfig(HttpConfig.newBuilder().build())
106+
.setLogLevel(LogLevel.forNumber(0))
106107
.addAllCredentials(new ArrayList<RegistryCredential>())
107108
.build();
108109
mockDeviceManager.addResponse(expectedResponse);
@@ -151,6 +152,7 @@ public void createDeviceRegistryTest2() throws Exception {
151152
.setStateNotificationConfig(StateNotificationConfig.newBuilder().build())
152153
.setMqttConfig(MqttConfig.newBuilder().build())
153154
.setHttpConfig(HttpConfig.newBuilder().build())
155+
.setLogLevel(LogLevel.forNumber(0))
154156
.addAllCredentials(new ArrayList<RegistryCredential>())
155157
.build();
156158
mockDeviceManager.addResponse(expectedResponse);
@@ -199,6 +201,7 @@ public void getDeviceRegistryTest() throws Exception {
199201
.setStateNotificationConfig(StateNotificationConfig.newBuilder().build())
200202
.setMqttConfig(MqttConfig.newBuilder().build())
201203
.setHttpConfig(HttpConfig.newBuilder().build())
204+
.setLogLevel(LogLevel.forNumber(0))
202205
.addAllCredentials(new ArrayList<RegistryCredential>())
203206
.build();
204207
mockDeviceManager.addResponse(expectedResponse);
@@ -243,6 +246,7 @@ public void getDeviceRegistryTest2() throws Exception {
243246
.setStateNotificationConfig(StateNotificationConfig.newBuilder().build())
244247
.setMqttConfig(MqttConfig.newBuilder().build())
245248
.setHttpConfig(HttpConfig.newBuilder().build())
249+
.setLogLevel(LogLevel.forNumber(0))
246250
.addAllCredentials(new ArrayList<RegistryCredential>())
247251
.build();
248252
mockDeviceManager.addResponse(expectedResponse);
@@ -287,6 +291,7 @@ public void updateDeviceRegistryTest() throws Exception {
287291
.setStateNotificationConfig(StateNotificationConfig.newBuilder().build())
288292
.setMqttConfig(MqttConfig.newBuilder().build())
289293
.setHttpConfig(HttpConfig.newBuilder().build())
294+
.setLogLevel(LogLevel.forNumber(0))
290295
.addAllCredentials(new ArrayList<RegistryCredential>())
291296
.build();
292297
mockDeviceManager.addResponse(expectedResponse);
@@ -503,6 +508,7 @@ public void createDeviceTest() throws Exception {
503508
.setLastErrorStatus(Status.newBuilder().build())
504509
.setConfig(DeviceConfig.newBuilder().build())
505510
.setState(DeviceState.newBuilder().build())
511+
.setLogLevel(LogLevel.forNumber(0))
506512
.putAllMetadata(new HashMap<String, String>())
507513
.setGatewayConfig(GatewayConfig.newBuilder().build())
508514
.build();
@@ -559,6 +565,7 @@ public void createDeviceTest2() throws Exception {
559565
.setLastErrorStatus(Status.newBuilder().build())
560566
.setConfig(DeviceConfig.newBuilder().build())
561567
.setState(DeviceState.newBuilder().build())
568+
.setLogLevel(LogLevel.forNumber(0))
562569
.putAllMetadata(new HashMap<String, String>())
563570
.setGatewayConfig(GatewayConfig.newBuilder().build())
564571
.build();
@@ -615,6 +622,7 @@ public void getDeviceTest() throws Exception {
615622
.setLastErrorStatus(Status.newBuilder().build())
616623
.setConfig(DeviceConfig.newBuilder().build())
617624
.setState(DeviceState.newBuilder().build())
625+
.setLogLevel(LogLevel.forNumber(0))
618626
.putAllMetadata(new HashMap<String, String>())
619627
.setGatewayConfig(GatewayConfig.newBuilder().build())
620628
.build();
@@ -668,6 +676,7 @@ public void getDeviceTest2() throws Exception {
668676
.setLastErrorStatus(Status.newBuilder().build())
669677
.setConfig(DeviceConfig.newBuilder().build())
670678
.setState(DeviceState.newBuilder().build())
679+
.setLogLevel(LogLevel.forNumber(0))
671680
.putAllMetadata(new HashMap<String, String>())
672681
.setGatewayConfig(GatewayConfig.newBuilder().build())
673682
.build();
@@ -721,6 +730,7 @@ public void updateDeviceTest() throws Exception {
721730
.setLastErrorStatus(Status.newBuilder().build())
722731
.setConfig(DeviceConfig.newBuilder().build())
723732
.setState(DeviceState.newBuilder().build())
733+
.setLogLevel(LogLevel.forNumber(0))
724734
.putAllMetadata(new HashMap<String, String>())
725735
.setGatewayConfig(GatewayConfig.newBuilder().build())
726736
.build();

0 commit comments

Comments
 (0)