@Generated(value="by gapic-generator-java") public class DeviceManagerSettings extends ClientSettings<DeviceManagerSettings>
DeviceManagerClient
.
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 createDeviceRegistry to 30 seconds:
// 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
DeviceManagerSettings.Builder deviceManagerSettingsBuilder = DeviceManagerSettings.newBuilder();
deviceManagerSettingsBuilder
.createDeviceRegistrySettings()
.setRetrySettings(
deviceManagerSettingsBuilder
.createDeviceRegistrySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DeviceManagerSettings deviceManagerSettings = deviceManagerSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
DeviceManagerSettings.Builder
Builder for DeviceManagerSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
DeviceManagerSettings(DeviceManagerSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> |
bindDeviceToGatewaySettings()
Returns the object with the settings used for calls to bindDeviceToGateway.
|
static DeviceManagerSettings |
create(DeviceManagerStubSettings stub) |
UnaryCallSettings<CreateDeviceRegistryRequest,DeviceRegistry> |
createDeviceRegistrySettings()
Returns the object with the settings used for calls to createDeviceRegistry.
|
UnaryCallSettings<CreateDeviceRequest,Device> |
createDeviceSettings()
Returns the object with the settings used for calls to createDevice.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<DeleteDeviceRegistryRequest,Empty> |
deleteDeviceRegistrySettings()
Returns the object with the settings used for calls to deleteDeviceRegistry.
|
UnaryCallSettings<DeleteDeviceRequest,Empty> |
deleteDeviceSettings()
Returns the object with the settings used for calls to deleteDevice.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<GetDeviceRegistryRequest,DeviceRegistry> |
getDeviceRegistrySettings()
Returns the object with the settings used for calls to getDeviceRegistry.
|
UnaryCallSettings<GetDeviceRequest,Device> |
getDeviceSettings()
Returns the object with the settings used for calls to getDevice.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
UnaryCallSettings<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> |
listDeviceConfigVersionsSettings()
Returns the object with the settings used for calls to listDeviceConfigVersions.
|
PagedCallSettings<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,DeviceManagerClient.ListDeviceRegistriesPagedResponse> |
listDeviceRegistriesSettings()
Returns the object with the settings used for calls to listDeviceRegistries.
|
PagedCallSettings<ListDevicesRequest,ListDevicesResponse,DeviceManagerClient.ListDevicesPagedResponse> |
listDevicesSettings()
Returns the object with the settings used for calls to listDevices.
|
UnaryCallSettings<ListDeviceStatesRequest,ListDeviceStatesResponse> |
listDeviceStatesSettings()
Returns the object with the settings used for calls to listDeviceStates.
|
UnaryCallSettings<ModifyCloudToDeviceConfigRequest,DeviceConfig> |
modifyCloudToDeviceConfigSettings()
Returns the object with the settings used for calls to modifyCloudToDeviceConfig.
|
static DeviceManagerSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static DeviceManagerSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
static DeviceManagerSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
UnaryCallSettings<SendCommandToDeviceRequest,SendCommandToDeviceResponse> |
sendCommandToDeviceSettings()
Returns the object with the settings used for calls to sendCommandToDevice.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
DeviceManagerSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> |
unbindDeviceFromGatewaySettings()
Returns the object with the settings used for calls to unbindDeviceFromGateway.
|
UnaryCallSettings<UpdateDeviceRegistryRequest,DeviceRegistry> |
updateDeviceRegistrySettings()
Returns the object with the settings used for calls to updateDeviceRegistry.
|
UnaryCallSettings<UpdateDeviceRequest,Device> |
updateDeviceSettings()
Returns the object with the settings used for calls to updateDevice.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected DeviceManagerSettings(DeviceManagerSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistrySettings()
public UnaryCallSettings<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistrySettings()
public UnaryCallSettings<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistrySettings()
public UnaryCallSettings<DeleteDeviceRegistryRequest,Empty> deleteDeviceRegistrySettings()
public PagedCallSettings<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings()
public UnaryCallSettings<CreateDeviceRequest,Device> createDeviceSettings()
public UnaryCallSettings<GetDeviceRequest,Device> getDeviceSettings()
public UnaryCallSettings<UpdateDeviceRequest,Device> updateDeviceSettings()
public UnaryCallSettings<DeleteDeviceRequest,Empty> deleteDeviceSettings()
public PagedCallSettings<ListDevicesRequest,ListDevicesResponse,DeviceManagerClient.ListDevicesPagedResponse> listDevicesSettings()
public UnaryCallSettings<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigSettings()
public UnaryCallSettings<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsSettings()
public UnaryCallSettings<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesSettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public UnaryCallSettings<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceSettings()
public UnaryCallSettings<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewaySettings()
public UnaryCallSettings<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewaySettings()
public static final DeviceManagerSettings create(DeviceManagerStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static DeviceManagerSettings.Builder newBuilder()
@BetaApi public static DeviceManagerSettings.Builder newHttpJsonBuilder()
public static DeviceManagerSettings.Builder newBuilder(ClientContext clientContext)
public DeviceManagerSettings.Builder toBuilder()
toBuilder
in class ClientSettings<DeviceManagerSettings>
Copyright © 2022 Google LLC. All rights reserved.