Class InstancesSettings.Builder (1.7.2)

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

Builder for InstancesSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > InstancesSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(InstancesSettings settings)

protected Builder(InstancesSettings settings)
Parameter
NameDescription
settingsInstancesSettings

Builder(InstancesStubSettings.Builder stubSettings)

protected Builder(InstancesStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsInstancesStubSettings.Builder

Methods

addAccessConfigOperationSettings()

public OperationCallSettings.Builder<AddAccessConfigInstanceRequest,Operation,Operation> addAccessConfigOperationSettings()

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

Returns
TypeDescription
Builder<AddAccessConfigInstanceRequest,Operation,Operation>

addAccessConfigSettings()

public UnaryCallSettings.Builder<AddAccessConfigInstanceRequest,Operation> addAccessConfigSettings()

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

Returns
TypeDescription
Builder<AddAccessConfigInstanceRequest,Operation>

addResourcePoliciesOperationSettings()

public OperationCallSettings.Builder<AddResourcePoliciesInstanceRequest,Operation,Operation> addResourcePoliciesOperationSettings()

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

Returns
TypeDescription
Builder<AddResourcePoliciesInstanceRequest,Operation,Operation>

addResourcePoliciesSettings()

public UnaryCallSettings.Builder<AddResourcePoliciesInstanceRequest,Operation> addResourcePoliciesSettings()

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

Returns
TypeDescription
Builder<AddResourcePoliciesInstanceRequest,Operation>

aggregatedListSettings()

public PagedCallSettings.Builder<AggregatedListInstancesRequest,InstanceAggregatedList,InstancesClient.AggregatedListPagedResponse> aggregatedListSettings()

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

Returns
TypeDescription
Builder<AggregatedListInstancesRequest,InstanceAggregatedList,AggregatedListPagedResponse>

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

public InstancesSettings.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
InstancesSettings.Builder

attachDiskOperationSettings()

public OperationCallSettings.Builder<AttachDiskInstanceRequest,Operation,Operation> attachDiskOperationSettings()

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

Returns
TypeDescription
Builder<AttachDiskInstanceRequest,Operation,Operation>

attachDiskSettings()

public UnaryCallSettings.Builder<AttachDiskInstanceRequest,Operation> attachDiskSettings()

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

Returns
TypeDescription
Builder<AttachDiskInstanceRequest,Operation>

build()

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

bulkInsertOperationSettings()

public OperationCallSettings.Builder<BulkInsertInstanceRequest,Operation,Operation> bulkInsertOperationSettings()

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

Returns
TypeDescription
Builder<BulkInsertInstanceRequest,Operation,Operation>

bulkInsertSettings()

public UnaryCallSettings.Builder<BulkInsertInstanceRequest,Operation> bulkInsertSettings()

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

Returns
TypeDescription
Builder<BulkInsertInstanceRequest,Operation>

deleteAccessConfigOperationSettings()

public OperationCallSettings.Builder<DeleteAccessConfigInstanceRequest,Operation,Operation> deleteAccessConfigOperationSettings()

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

Returns
TypeDescription
Builder<DeleteAccessConfigInstanceRequest,Operation,Operation>

deleteAccessConfigSettings()

public UnaryCallSettings.Builder<DeleteAccessConfigInstanceRequest,Operation> deleteAccessConfigSettings()

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

Returns
TypeDescription
Builder<DeleteAccessConfigInstanceRequest,Operation>

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteInstanceRequest,Operation,Operation> deleteOperationSettings()

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

Returns
TypeDescription
Builder<DeleteInstanceRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteInstanceRequest,Operation> deleteSettings()

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

Returns
TypeDescription
Builder<DeleteInstanceRequest,Operation>

detachDiskOperationSettings()

public OperationCallSettings.Builder<DetachDiskInstanceRequest,Operation,Operation> detachDiskOperationSettings()

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

Returns
TypeDescription
Builder<DetachDiskInstanceRequest,Operation,Operation>

detachDiskSettings()

public UnaryCallSettings.Builder<DetachDiskInstanceRequest,Operation> detachDiskSettings()

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

Returns
TypeDescription
Builder<DetachDiskInstanceRequest,Operation>

getEffectiveFirewallsSettings()

public UnaryCallSettings.Builder<GetEffectiveFirewallsInstanceRequest,InstancesGetEffectiveFirewallsResponse> getEffectiveFirewallsSettings()

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

Returns
TypeDescription
Builder<GetEffectiveFirewallsInstanceRequest,InstancesGetEffectiveFirewallsResponse>

getGuestAttributesSettings()

public UnaryCallSettings.Builder<GetGuestAttributesInstanceRequest,GuestAttributes> getGuestAttributesSettings()

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

Returns
TypeDescription
Builder<GetGuestAttributesInstanceRequest,GuestAttributes>

getIamPolicySettings()

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

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

Returns
TypeDescription
Builder<GetIamPolicyInstanceRequest,Policy>

getScreenshotSettings()

public UnaryCallSettings.Builder<GetScreenshotInstanceRequest,Screenshot> getScreenshotSettings()

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

Returns
TypeDescription
Builder<GetScreenshotInstanceRequest,Screenshot>

getSerialPortOutputSettings()

public UnaryCallSettings.Builder<GetSerialPortOutputInstanceRequest,SerialPortOutput> getSerialPortOutputSettings()

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

Returns
TypeDescription
Builder<GetSerialPortOutputInstanceRequest,SerialPortOutput>

getSettings()

public UnaryCallSettings.Builder<GetInstanceRequest,Instance> getSettings()

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

Returns
TypeDescription
Builder<GetInstanceRequest,Instance>

getShieldedInstanceIdentitySettings()

public UnaryCallSettings.Builder<GetShieldedInstanceIdentityInstanceRequest,ShieldedInstanceIdentity> getShieldedInstanceIdentitySettings()

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

Returns
TypeDescription
Builder<GetShieldedInstanceIdentityInstanceRequest,ShieldedInstanceIdentity>

getStubSettingsBuilder()

public InstancesStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
InstancesStubSettings.Builder

insertOperationSettings()

public OperationCallSettings.Builder<InsertInstanceRequest,Operation,Operation> insertOperationSettings()

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

Returns
TypeDescription
Builder<InsertInstanceRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertInstanceRequest,Operation> insertSettings()

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

Returns
TypeDescription
Builder<InsertInstanceRequest,Operation>

listReferrersSettings()

public PagedCallSettings.Builder<ListReferrersInstancesRequest,InstanceListReferrers,InstancesClient.ListReferrersPagedResponse> listReferrersSettings()

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

Returns
TypeDescription
Builder<ListReferrersInstancesRequest,InstanceListReferrers,ListReferrersPagedResponse>

listSettings()

public PagedCallSettings.Builder<ListInstancesRequest,InstanceList,InstancesClient.ListPagedResponse> listSettings()

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

Returns
TypeDescription
Builder<ListInstancesRequest,InstanceList,ListPagedResponse>

removeResourcePoliciesOperationSettings()

public OperationCallSettings.Builder<RemoveResourcePoliciesInstanceRequest,Operation,Operation> removeResourcePoliciesOperationSettings()

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

Returns
TypeDescription
Builder<RemoveResourcePoliciesInstanceRequest,Operation,Operation>

removeResourcePoliciesSettings()

public UnaryCallSettings.Builder<RemoveResourcePoliciesInstanceRequest,Operation> removeResourcePoliciesSettings()

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

Returns
TypeDescription
Builder<RemoveResourcePoliciesInstanceRequest,Operation>

resetOperationSettings()

public OperationCallSettings.Builder<ResetInstanceRequest,Operation,Operation> resetOperationSettings()

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

Returns
TypeDescription
Builder<ResetInstanceRequest,Operation,Operation>

resetSettings()

public UnaryCallSettings.Builder<ResetInstanceRequest,Operation> resetSettings()

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

Returns
TypeDescription
Builder<ResetInstanceRequest,Operation>

sendDiagnosticInterruptSettings()

public UnaryCallSettings.Builder<SendDiagnosticInterruptInstanceRequest,SendDiagnosticInterruptInstanceResponse> sendDiagnosticInterruptSettings()

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

Returns
TypeDescription
Builder<SendDiagnosticInterruptInstanceRequest,SendDiagnosticInterruptInstanceResponse>

setDeletionProtectionOperationSettings()

public OperationCallSettings.Builder<SetDeletionProtectionInstanceRequest,Operation,Operation> setDeletionProtectionOperationSettings()

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

Returns
TypeDescription
Builder<SetDeletionProtectionInstanceRequest,Operation,Operation>

setDeletionProtectionSettings()

public UnaryCallSettings.Builder<SetDeletionProtectionInstanceRequest,Operation> setDeletionProtectionSettings()

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

Returns
TypeDescription
Builder<SetDeletionProtectionInstanceRequest,Operation>

setDiskAutoDeleteOperationSettings()

public OperationCallSettings.Builder<SetDiskAutoDeleteInstanceRequest,Operation,Operation> setDiskAutoDeleteOperationSettings()

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

Returns
TypeDescription
Builder<SetDiskAutoDeleteInstanceRequest,Operation,Operation>

setDiskAutoDeleteSettings()

public UnaryCallSettings.Builder<SetDiskAutoDeleteInstanceRequest,Operation> setDiskAutoDeleteSettings()

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

Returns
TypeDescription
Builder<SetDiskAutoDeleteInstanceRequest,Operation>

setIamPolicySettings()

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

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

Returns
TypeDescription
Builder<SetIamPolicyInstanceRequest,Policy>

setLabelsOperationSettings()

public OperationCallSettings.Builder<SetLabelsInstanceRequest,Operation,Operation> setLabelsOperationSettings()

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

Returns
TypeDescription
Builder<SetLabelsInstanceRequest,Operation,Operation>

setLabelsSettings()

public UnaryCallSettings.Builder<SetLabelsInstanceRequest,Operation> setLabelsSettings()

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

Returns
TypeDescription
Builder<SetLabelsInstanceRequest,Operation>

setMachineResourcesOperationSettings()

public OperationCallSettings.Builder<SetMachineResourcesInstanceRequest,Operation,Operation> setMachineResourcesOperationSettings()

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

Returns
TypeDescription
Builder<SetMachineResourcesInstanceRequest,Operation,Operation>

setMachineResourcesSettings()

public UnaryCallSettings.Builder<SetMachineResourcesInstanceRequest,Operation> setMachineResourcesSettings()

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

Returns
TypeDescription
Builder<SetMachineResourcesInstanceRequest,Operation>

setMachineTypeOperationSettings()

public OperationCallSettings.Builder<SetMachineTypeInstanceRequest,Operation,Operation> setMachineTypeOperationSettings()

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

Returns
TypeDescription
Builder<SetMachineTypeInstanceRequest,Operation,Operation>

setMachineTypeSettings()

public UnaryCallSettings.Builder<SetMachineTypeInstanceRequest,Operation> setMachineTypeSettings()

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

Returns
TypeDescription
Builder<SetMachineTypeInstanceRequest,Operation>

setMetadataOperationSettings()

public OperationCallSettings.Builder<SetMetadataInstanceRequest,Operation,Operation> setMetadataOperationSettings()

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

Returns
TypeDescription
Builder<SetMetadataInstanceRequest,Operation,Operation>

setMetadataSettings()

public UnaryCallSettings.Builder<SetMetadataInstanceRequest,Operation> setMetadataSettings()

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

Returns
TypeDescription
Builder<SetMetadataInstanceRequest,Operation>

setMinCpuPlatformOperationSettings()

public OperationCallSettings.Builder<SetMinCpuPlatformInstanceRequest,Operation,Operation> setMinCpuPlatformOperationSettings()

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

Returns
TypeDescription
Builder<SetMinCpuPlatformInstanceRequest,Operation,Operation>

setMinCpuPlatformSettings()

public UnaryCallSettings.Builder<SetMinCpuPlatformInstanceRequest,Operation> setMinCpuPlatformSettings()

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

Returns
TypeDescription
Builder<SetMinCpuPlatformInstanceRequest,Operation>

setSchedulingOperationSettings()

public OperationCallSettings.Builder<SetSchedulingInstanceRequest,Operation,Operation> setSchedulingOperationSettings()

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

Returns
TypeDescription
Builder<SetSchedulingInstanceRequest,Operation,Operation>

setSchedulingSettings()

public UnaryCallSettings.Builder<SetSchedulingInstanceRequest,Operation> setSchedulingSettings()

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

Returns
TypeDescription
Builder<SetSchedulingInstanceRequest,Operation>

setServiceAccountOperationSettings()

public OperationCallSettings.Builder<SetServiceAccountInstanceRequest,Operation,Operation> setServiceAccountOperationSettings()

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

Returns
TypeDescription
Builder<SetServiceAccountInstanceRequest,Operation,Operation>

setServiceAccountSettings()

public UnaryCallSettings.Builder<SetServiceAccountInstanceRequest,Operation> setServiceAccountSettings()

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

Returns
TypeDescription
Builder<SetServiceAccountInstanceRequest,Operation>

setShieldedInstanceIntegrityPolicyOperationSettings()

public OperationCallSettings.Builder<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation,Operation> setShieldedInstanceIntegrityPolicyOperationSettings()

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

Returns
TypeDescription
Builder<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation,Operation>

setShieldedInstanceIntegrityPolicySettings()

public UnaryCallSettings.Builder<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation> setShieldedInstanceIntegrityPolicySettings()

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

Returns
TypeDescription
Builder<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation>

setTagsOperationSettings()

public OperationCallSettings.Builder<SetTagsInstanceRequest,Operation,Operation> setTagsOperationSettings()

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

Returns
TypeDescription
Builder<SetTagsInstanceRequest,Operation,Operation>

setTagsSettings()

public UnaryCallSettings.Builder<SetTagsInstanceRequest,Operation> setTagsSettings()

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

Returns
TypeDescription
Builder<SetTagsInstanceRequest,Operation>

simulateMaintenanceEventOperationSettings()

public OperationCallSettings.Builder<SimulateMaintenanceEventInstanceRequest,Operation,Operation> simulateMaintenanceEventOperationSettings()

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

Returns
TypeDescription
Builder<SimulateMaintenanceEventInstanceRequest,Operation,Operation>

simulateMaintenanceEventSettings()

public UnaryCallSettings.Builder<SimulateMaintenanceEventInstanceRequest,Operation> simulateMaintenanceEventSettings()

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

Returns
TypeDescription
Builder<SimulateMaintenanceEventInstanceRequest,Operation>

startOperationSettings()

public OperationCallSettings.Builder<StartInstanceRequest,Operation,Operation> startOperationSettings()

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

Returns
TypeDescription
Builder<StartInstanceRequest,Operation,Operation>

startSettings()

public UnaryCallSettings.Builder<StartInstanceRequest,Operation> startSettings()

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

Returns
TypeDescription
Builder<StartInstanceRequest,Operation>

startWithEncryptionKeyOperationSettings()

public OperationCallSettings.Builder<StartWithEncryptionKeyInstanceRequest,Operation,Operation> startWithEncryptionKeyOperationSettings()

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

Returns
TypeDescription
Builder<StartWithEncryptionKeyInstanceRequest,Operation,Operation>

startWithEncryptionKeySettings()

public UnaryCallSettings.Builder<StartWithEncryptionKeyInstanceRequest,Operation> startWithEncryptionKeySettings()

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

Returns
TypeDescription
Builder<StartWithEncryptionKeyInstanceRequest,Operation>

stopOperationSettings()

public OperationCallSettings.Builder<StopInstanceRequest,Operation,Operation> stopOperationSettings()

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

Returns
TypeDescription
Builder<StopInstanceRequest,Operation,Operation>

stopSettings()

public UnaryCallSettings.Builder<StopInstanceRequest,Operation> stopSettings()

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

Returns
TypeDescription
Builder<StopInstanceRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsInstanceRequest,TestPermissionsResponse> testIamPermissionsSettings()

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

Returns
TypeDescription
Builder<TestIamPermissionsInstanceRequest,TestPermissionsResponse>

updateAccessConfigOperationSettings()

public OperationCallSettings.Builder<UpdateAccessConfigInstanceRequest,Operation,Operation> updateAccessConfigOperationSettings()

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

Returns
TypeDescription
Builder<UpdateAccessConfigInstanceRequest,Operation,Operation>

updateAccessConfigSettings()

public UnaryCallSettings.Builder<UpdateAccessConfigInstanceRequest,Operation> updateAccessConfigSettings()

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

Returns
TypeDescription
Builder<UpdateAccessConfigInstanceRequest,Operation>

updateDisplayDeviceOperationSettings()

public OperationCallSettings.Builder<UpdateDisplayDeviceInstanceRequest,Operation,Operation> updateDisplayDeviceOperationSettings()

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

Returns
TypeDescription
Builder<UpdateDisplayDeviceInstanceRequest,Operation,Operation>

updateDisplayDeviceSettings()

public UnaryCallSettings.Builder<UpdateDisplayDeviceInstanceRequest,Operation> updateDisplayDeviceSettings()

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

Returns
TypeDescription
Builder<UpdateDisplayDeviceInstanceRequest,Operation>

updateNetworkInterfaceOperationSettings()

public OperationCallSettings.Builder<UpdateNetworkInterfaceInstanceRequest,Operation,Operation> updateNetworkInterfaceOperationSettings()

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

Returns
TypeDescription
Builder<UpdateNetworkInterfaceInstanceRequest,Operation,Operation>

updateNetworkInterfaceSettings()

public UnaryCallSettings.Builder<UpdateNetworkInterfaceInstanceRequest,Operation> updateNetworkInterfaceSettings()

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

Returns
TypeDescription
Builder<UpdateNetworkInterfaceInstanceRequest,Operation>

updateOperationSettings()

public OperationCallSettings.Builder<UpdateInstanceRequest,Operation,Operation> updateOperationSettings()

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

Returns
TypeDescription
Builder<UpdateInstanceRequest,Operation,Operation>

updateSettings()

public UnaryCallSettings.Builder<UpdateInstanceRequest,Operation> updateSettings()

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

Returns
TypeDescription
Builder<UpdateInstanceRequest,Operation>

updateShieldedInstanceConfigOperationSettings()

public OperationCallSettings.Builder<UpdateShieldedInstanceConfigInstanceRequest,Operation,Operation> updateShieldedInstanceConfigOperationSettings()

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

Returns
TypeDescription
Builder<UpdateShieldedInstanceConfigInstanceRequest,Operation,Operation>

updateShieldedInstanceConfigSettings()

public UnaryCallSettings.Builder<UpdateShieldedInstanceConfigInstanceRequest,Operation> updateShieldedInstanceConfigSettings()

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

Returns
TypeDescription
Builder<UpdateShieldedInstanceConfigInstanceRequest,Operation>