Class DeviceManagerStubSettings.Builder (2.24.0)

public static class DeviceManagerStubSettings.Builder extends StubSettings.Builder<DeviceManagerStubSettings,DeviceManagerStubSettings.Builder>

Builder for DeviceManagerStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > DeviceManagerStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DeviceManagerStubSettings settings)

protected Builder(DeviceManagerStubSettings settings)
Parameter
NameDescription
settingsDeviceManagerStubSettings

Methods

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

public DeviceManagerStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
DeviceManagerStubSettings.Builder

bindDeviceToGatewaySettings()

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

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

Returns
TypeDescription
Builder<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>

build()

public DeviceManagerStubSettings build()
Returns
TypeDescription
DeviceManagerStubSettings
Overrides
Exceptions
TypeDescription
IOException

createDeviceRegistrySettings()

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

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

Returns
TypeDescription
Builder<CreateDeviceRegistryRequest,DeviceRegistry>

createDeviceSettings()

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

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

Returns
TypeDescription
Builder<CreateDeviceRequest,Device>

deleteDeviceRegistrySettings()

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

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

Returns
TypeDescription
Builder<DeleteDeviceRegistryRequest,Empty>

deleteDeviceSettings()

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

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

Returns
TypeDescription
Builder<DeleteDeviceRequest,Empty>

getDeviceRegistrySettings()

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

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

Returns
TypeDescription
Builder<GetDeviceRegistryRequest,DeviceRegistry>

getDeviceSettings()

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

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

Returns
TypeDescription
Builder<GetDeviceRequest,Device>

getIamPolicySettings()

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

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

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

listDeviceConfigVersionsSettings()

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

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

Returns
TypeDescription
Builder<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse>

listDeviceRegistriesSettings()

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

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

Returns
TypeDescription
Builder<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse,ListDeviceRegistriesPagedResponse>

listDeviceStatesSettings()

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

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

Returns
TypeDescription
Builder<ListDeviceStatesRequest,ListDeviceStatesResponse>

listDevicesSettings()

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

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

Returns
TypeDescription
Builder<ListDevicesRequest,ListDevicesResponse,ListDevicesPagedResponse>

modifyCloudToDeviceConfigSettings()

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

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

Returns
TypeDescription
Builder<ModifyCloudToDeviceConfigRequest,DeviceConfig>

sendCommandToDeviceSettings()

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

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

Returns
TypeDescription
Builder<SendCommandToDeviceRequest,SendCommandToDeviceResponse>

setIamPolicySettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

unbindDeviceFromGatewaySettings()

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

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

Returns
TypeDescription
Builder<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse>

updateDeviceRegistrySettings()

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

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

Returns
TypeDescription
Builder<UpdateDeviceRegistryRequest,DeviceRegistry>

updateDeviceSettings()

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

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

Returns
TypeDescription
Builder<UpdateDeviceRequest,Device>