Package com.google.cloud.iot.v1.stub
Class DeviceManagerStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<DeviceManagerStubSettings>
-
- com.google.cloud.iot.v1.stub.DeviceManagerStubSettings
-
@Generated("by gapic-generator-java") public class DeviceManagerStubSettings extends com.google.api.gax.rpc.StubSettings<DeviceManagerStubSettings>
Settings class to configure an instance ofDeviceManagerStub
.The default instance has everything set to sensible defaults:
- The default service address (cloudiot.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
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 DeviceManagerStubSettings.Builder deviceManagerSettingsBuilder = DeviceManagerStubSettings.newBuilder(); deviceManagerSettingsBuilder .createDeviceRegistrySettings() .setRetrySettings( deviceManagerSettingsBuilder .createDeviceRegistrySettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DeviceManagerStubSettings deviceManagerSettings = deviceManagerSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceManagerStubSettings.Builder
Builder for DeviceManagerStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeviceManagerStubSettings(DeviceManagerStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>
bindDeviceToGatewaySettings()
Returns the object with the settings used for calls to bindDeviceToGateway.com.google.api.gax.rpc.UnaryCallSettings<CreateDeviceRegistryRequest,DeviceRegistry>
createDeviceRegistrySettings()
Returns the object with the settings used for calls to createDeviceRegistry.com.google.api.gax.rpc.UnaryCallSettings<CreateDeviceRequest,Device>
createDeviceSettings()
Returns the object with the settings used for calls to createDevice.DeviceManagerStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultGrpcApiClientHeaderProviderBuilder()
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultHttpJsonApiClientHeaderProviderBuilder()
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<DeleteDeviceRegistryRequest,com.google.protobuf.Empty>
deleteDeviceRegistrySettings()
Returns the object with the settings used for calls to deleteDeviceRegistry.com.google.api.gax.rpc.UnaryCallSettings<DeleteDeviceRequest,com.google.protobuf.Empty>
deleteDeviceSettings()
Returns the object with the settings used for calls to deleteDevice.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetDeviceRegistryRequest,DeviceRegistry>
getDeviceRegistrySettings()
Returns the object with the settings used for calls to getDeviceRegistry.com.google.api.gax.rpc.UnaryCallSettings<GetDeviceRequest,Device>
getDeviceSettings()
Returns the object with the settings used for calls to getDevice.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse>
listDeviceConfigVersionsSettings()
Returns the object with the settings used for calls to listDeviceConfigVersions.com.google.api.gax.rpc.PagedCallSettings<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,DeviceManagerClient.ListDeviceRegistriesPagedResponse>
listDeviceRegistriesSettings()
Returns the object with the settings used for calls to listDeviceRegistries.com.google.api.gax.rpc.PagedCallSettings<ListDevicesRequest,ListDevicesResponse,DeviceManagerClient.ListDevicesPagedResponse>
listDevicesSettings()
Returns the object with the settings used for calls to listDevices.com.google.api.gax.rpc.UnaryCallSettings<ListDeviceStatesRequest,ListDeviceStatesResponse>
listDeviceStatesSettings()
Returns the object with the settings used for calls to listDeviceStates.com.google.api.gax.rpc.UnaryCallSettings<ModifyCloudToDeviceConfigRequest,DeviceConfig>
modifyCloudToDeviceConfigSettings()
Returns the object with the settings used for calls to modifyCloudToDeviceConfig.static DeviceManagerStubSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static DeviceManagerStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static DeviceManagerStubSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<SendCommandToDeviceRequest,SendCommandToDeviceResponse>
sendCommandToDeviceSettings()
Returns the object with the settings used for calls to sendCommandToDevice.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.DeviceManagerStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse>
unbindDeviceFromGatewaySettings()
Returns the object with the settings used for calls to unbindDeviceFromGateway.com.google.api.gax.rpc.UnaryCallSettings<UpdateDeviceRegistryRequest,DeviceRegistry>
updateDeviceRegistrySettings()
Returns the object with the settings used for calls to updateDeviceRegistry.com.google.api.gax.rpc.UnaryCallSettings<UpdateDeviceRequest,Device>
updateDeviceSettings()
Returns the object with the settings used for calls to updateDevice.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
DeviceManagerStubSettings
protected DeviceManagerStubSettings(DeviceManagerStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createDeviceRegistrySettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistrySettings()
Returns the object with the settings used for calls to createDeviceRegistry.
-
getDeviceRegistrySettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistrySettings()
Returns the object with the settings used for calls to getDeviceRegistry.
-
updateDeviceRegistrySettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistrySettings()
Returns the object with the settings used for calls to updateDeviceRegistry.
-
deleteDeviceRegistrySettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDeviceRegistryRequest,com.google.protobuf.Empty> deleteDeviceRegistrySettings()
Returns the object with the settings used for calls to deleteDeviceRegistry.
-
listDeviceRegistriesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings()
Returns the object with the settings used for calls to listDeviceRegistries.
-
createDeviceSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDeviceRequest,Device> createDeviceSettings()
Returns the object with the settings used for calls to createDevice.
-
getDeviceSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDeviceRequest,Device> getDeviceSettings()
Returns the object with the settings used for calls to getDevice.
-
updateDeviceSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDeviceRequest,Device> updateDeviceSettings()
Returns the object with the settings used for calls to updateDevice.
-
deleteDeviceSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDeviceRequest,com.google.protobuf.Empty> deleteDeviceSettings()
Returns the object with the settings used for calls to deleteDevice.
-
listDevicesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDevicesRequest,ListDevicesResponse,DeviceManagerClient.ListDevicesPagedResponse> listDevicesSettings()
Returns the object with the settings used for calls to listDevices.
-
modifyCloudToDeviceConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigSettings()
Returns the object with the settings used for calls to modifyCloudToDeviceConfig.
-
listDeviceConfigVersionsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsSettings()
Returns the object with the settings used for calls to listDeviceConfigVersions.
-
listDeviceStatesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesSettings()
Returns the object with the settings used for calls to listDeviceStates.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
-
sendCommandToDeviceSettings
public com.google.api.gax.rpc.UnaryCallSettings<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceSettings()
Returns the object with the settings used for calls to sendCommandToDevice.
-
bindDeviceToGatewaySettings
public com.google.api.gax.rpc.UnaryCallSettings<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewaySettings()
Returns the object with the settings used for calls to bindDeviceToGateway.
-
unbindDeviceFromGatewaySettings
public com.google.api.gax.rpc.UnaryCallSettings<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewaySettings()
Returns the object with the settings used for calls to unbindDeviceFromGateway.
-
createStub
public DeviceManagerStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultGrpcApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static DeviceManagerStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static DeviceManagerStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static DeviceManagerStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public DeviceManagerStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<DeviceManagerStubSettings>
-
-