Class DeviceManagerSettings.Builder (2.48.0)

public static class DeviceManagerSettings.Builder extends ClientSettings.Builder<DeviceManagerSettings,DeviceManagerSettings.Builder>

Builder for DeviceManagerSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > DeviceManagerSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(DeviceManagerSettings settings)

protected Builder(DeviceManagerSettings settings)
Parameter
Name Description
settings DeviceManagerSettings

Builder(DeviceManagerStubSettings.Builder stubSettings)

protected Builder(DeviceManagerStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings DeviceManagerStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public DeviceManagerSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
DeviceManagerSettings.Builder

bindDeviceToGatewaySettings()

public UnaryCallSettings.Builder<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewaySettings()

Returns the builder for the settings used for calls to bindDeviceToGateway.

Returns
Type Description
Builder<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>

build()

public DeviceManagerSettings build()
Returns
Type Description
DeviceManagerSettings
Overrides
Exceptions
Type Description
IOException

createDeviceRegistrySettings()

public UnaryCallSettings.Builder<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistrySettings()

Returns the builder for the settings used for calls to createDeviceRegistry.

Returns
Type Description
Builder<CreateDeviceRegistryRequest,DeviceRegistry>

createDeviceSettings()

public UnaryCallSettings.Builder<CreateDeviceRequest,Device> createDeviceSettings()

Returns the builder for the settings used for calls to createDevice.

Returns
Type Description
Builder<CreateDeviceRequest,Device>

deleteDeviceRegistrySettings()

public UnaryCallSettings.Builder<DeleteDeviceRegistryRequest,Empty> deleteDeviceRegistrySettings()

Returns the builder for the settings used for calls to deleteDeviceRegistry.

Returns
Type Description
Builder<DeleteDeviceRegistryRequest,Empty>

deleteDeviceSettings()

public UnaryCallSettings.Builder<DeleteDeviceRequest,Empty> deleteDeviceSettings()

Returns the builder for the settings used for calls to deleteDevice.

Returns
Type Description
Builder<DeleteDeviceRequest,Empty>

getDeviceRegistrySettings()

public UnaryCallSettings.Builder<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistrySettings()

Returns the builder for the settings used for calls to getDeviceRegistry.

Returns
Type Description
Builder<GetDeviceRegistryRequest,DeviceRegistry>

getDeviceSettings()

public UnaryCallSettings.Builder<GetDeviceRequest,Device> getDeviceSettings()

Returns the builder for the settings used for calls to getDevice.

Returns
Type Description
Builder<GetDeviceRequest,Device>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyRequest,Policy> getIamPolicySettings()

Returns the builder for the settings used for calls to getIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getStubSettingsBuilder()

public DeviceManagerStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
DeviceManagerStubSettings.Builder

listDeviceConfigVersionsSettings()

public UnaryCallSettings.Builder<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsSettings()

Returns the builder for the settings used for calls to listDeviceConfigVersions.

Returns
Type Description
Builder<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse>

listDeviceRegistriesSettings()

public PagedCallSettings.Builder<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings()

Returns the builder for the settings used for calls to listDeviceRegistries.

Returns
Type Description
Builder<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,ListDeviceRegistriesPagedResponse>

listDeviceStatesSettings()

public UnaryCallSettings.Builder<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesSettings()

Returns the builder for the settings used for calls to listDeviceStates.

Returns
Type Description
Builder<ListDeviceStatesRequest,ListDeviceStatesResponse>

listDevicesSettings()

public PagedCallSettings.Builder<ListDevicesRequest,ListDevicesResponse,DeviceManagerClient.ListDevicesPagedResponse> listDevicesSettings()

Returns the builder for the settings used for calls to listDevices.

Returns
Type Description
Builder<ListDevicesRequest,ListDevicesResponse,ListDevicesPagedResponse>

modifyCloudToDeviceConfigSettings()

public UnaryCallSettings.Builder<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigSettings()

Returns the builder for the settings used for calls to modifyCloudToDeviceConfig.

Returns
Type Description
Builder<ModifyCloudToDeviceConfigRequest,DeviceConfig>

sendCommandToDeviceSettings()

public UnaryCallSettings.Builder<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceSettings()

Returns the builder for the settings used for calls to sendCommandToDevice.

Returns
Type Description
Builder<SendCommandToDeviceRequest,SendCommandToDeviceResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyRequest,Policy> setIamPolicySettings()

Returns the builder for the settings used for calls to setIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

Returns the builder for the settings used for calls to testIamPermissions.

Returns
Type Description
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

unbindDeviceFromGatewaySettings()

public UnaryCallSettings.Builder<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewaySettings()

Returns the builder for the settings used for calls to unbindDeviceFromGateway.

Returns
Type Description
Builder<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse>

updateDeviceRegistrySettings()

public UnaryCallSettings.Builder<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistrySettings()

Returns the builder for the settings used for calls to updateDeviceRegistry.

Returns
Type Description
Builder<UpdateDeviceRegistryRequest,DeviceRegistry>

updateDeviceSettings()

public UnaryCallSettings.Builder<UpdateDeviceRequest,Device> updateDeviceSettings()

Returns the builder for the settings used for calls to updateDevice.

Returns
Type Description
Builder<UpdateDeviceRequest,Device>