Class InstancesStubSettings


  • @Generated("by gapic-generator-java")
    public class InstancesStubSettings
    extends com.google.api.gax.rpc.StubSettings<InstancesStubSettings>
    Settings class to configure an instance of InstancesStub.

    The default instance has everything set to sensible defaults:

    • The default service address (compute.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 get 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
     InstancesStubSettings.Builder instancesSettingsBuilder = InstancesStubSettings.newBuilder();
     instancesSettingsBuilder
         .getSettings()
         .setRetrySettings(
             instancesSettingsBuilder
                 .getSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     InstancesStubSettings instancesSettings = instancesSettingsBuilder.build();
     
    • Method Detail

      • addAccessConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<AddAccessConfigInstanceRequest,​Operation> addAccessConfigSettings()
        Returns the object with the settings used for calls to addAccessConfig.
      • addAccessConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<AddAccessConfigInstanceRequest,​Operation,​Operation> addAccessConfigOperationSettings()
        Returns the object with the settings used for calls to addAccessConfig.
      • addResourcePoliciesSettings

        public com.google.api.gax.rpc.UnaryCallSettings<AddResourcePoliciesInstanceRequest,​Operation> addResourcePoliciesSettings()
        Returns the object with the settings used for calls to addResourcePolicies.
      • addResourcePoliciesOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<AddResourcePoliciesInstanceRequest,​Operation,​Operation> addResourcePoliciesOperationSettings()
        Returns the object with the settings used for calls to addResourcePolicies.
      • attachDiskSettings

        public com.google.api.gax.rpc.UnaryCallSettings<AttachDiskInstanceRequest,​Operation> attachDiskSettings()
        Returns the object with the settings used for calls to attachDisk.
      • attachDiskOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<AttachDiskInstanceRequest,​Operation,​Operation> attachDiskOperationSettings()
        Returns the object with the settings used for calls to attachDisk.
      • bulkInsertSettings

        public com.google.api.gax.rpc.UnaryCallSettings<BulkInsertInstanceRequest,​Operation> bulkInsertSettings()
        Returns the object with the settings used for calls to bulkInsert.
      • bulkInsertOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<BulkInsertInstanceRequest,​Operation,​Operation> bulkInsertOperationSettings()
        Returns the object with the settings used for calls to bulkInsert.
      • deleteSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteInstanceRequest,​Operation> deleteSettings()
        Returns the object with the settings used for calls to delete.
      • deleteOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteInstanceRequest,​Operation,​Operation> deleteOperationSettings()
        Returns the object with the settings used for calls to delete.
      • deleteAccessConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteAccessConfigInstanceRequest,​Operation> deleteAccessConfigSettings()
        Returns the object with the settings used for calls to deleteAccessConfig.
      • deleteAccessConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteAccessConfigInstanceRequest,​Operation,​Operation> deleteAccessConfigOperationSettings()
        Returns the object with the settings used for calls to deleteAccessConfig.
      • detachDiskSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DetachDiskInstanceRequest,​Operation> detachDiskSettings()
        Returns the object with the settings used for calls to detachDisk.
      • detachDiskOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DetachDiskInstanceRequest,​Operation,​Operation> detachDiskOperationSettings()
        Returns the object with the settings used for calls to detachDisk.
      • getSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetInstanceRequest,​Instance> getSettings()
        Returns the object with the settings used for calls to get.
      • getIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetIamPolicyInstanceRequest,​Policy> getIamPolicySettings()
        Returns the object with the settings used for calls to getIamPolicy.
      • getScreenshotSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetScreenshotInstanceRequest,​Screenshot> getScreenshotSettings()
        Returns the object with the settings used for calls to getScreenshot.
      • insertSettings

        public com.google.api.gax.rpc.UnaryCallSettings<InsertInstanceRequest,​Operation> insertSettings()
        Returns the object with the settings used for calls to insert.
      • insertOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<InsertInstanceRequest,​Operation,​Operation> insertOperationSettings()
        Returns the object with the settings used for calls to insert.
      • removeResourcePoliciesSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RemoveResourcePoliciesInstanceRequest,​Operation> removeResourcePoliciesSettings()
        Returns the object with the settings used for calls to removeResourcePolicies.
      • removeResourcePoliciesOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<RemoveResourcePoliciesInstanceRequest,​Operation,​Operation> removeResourcePoliciesOperationSettings()
        Returns the object with the settings used for calls to removeResourcePolicies.
      • resetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResetInstanceRequest,​Operation> resetSettings()
        Returns the object with the settings used for calls to reset.
      • resetOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ResetInstanceRequest,​Operation,​Operation> resetOperationSettings()
        Returns the object with the settings used for calls to reset.
      • resumeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResumeInstanceRequest,​Operation> resumeSettings()
        Returns the object with the settings used for calls to resume.
      • resumeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ResumeInstanceRequest,​Operation,​Operation> resumeOperationSettings()
        Returns the object with the settings used for calls to resume.
      • setDeletionProtectionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetDeletionProtectionInstanceRequest,​Operation> setDeletionProtectionSettings()
        Returns the object with the settings used for calls to setDeletionProtection.
      • setDeletionProtectionOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetDeletionProtectionInstanceRequest,​Operation,​Operation> setDeletionProtectionOperationSettings()
        Returns the object with the settings used for calls to setDeletionProtection.
      • setDiskAutoDeleteSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetDiskAutoDeleteInstanceRequest,​Operation> setDiskAutoDeleteSettings()
        Returns the object with the settings used for calls to setDiskAutoDelete.
      • setDiskAutoDeleteOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetDiskAutoDeleteInstanceRequest,​Operation,​Operation> setDiskAutoDeleteOperationSettings()
        Returns the object with the settings used for calls to setDiskAutoDelete.
      • setIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetIamPolicyInstanceRequest,​Policy> setIamPolicySettings()
        Returns the object with the settings used for calls to setIamPolicy.
      • setLabelsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetLabelsInstanceRequest,​Operation> setLabelsSettings()
        Returns the object with the settings used for calls to setLabels.
      • setLabelsOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetLabelsInstanceRequest,​Operation,​Operation> setLabelsOperationSettings()
        Returns the object with the settings used for calls to setLabels.
      • setMachineResourcesSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetMachineResourcesInstanceRequest,​Operation> setMachineResourcesSettings()
        Returns the object with the settings used for calls to setMachineResources.
      • setMachineResourcesOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetMachineResourcesInstanceRequest,​Operation,​Operation> setMachineResourcesOperationSettings()
        Returns the object with the settings used for calls to setMachineResources.
      • setMachineTypeSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetMachineTypeInstanceRequest,​Operation> setMachineTypeSettings()
        Returns the object with the settings used for calls to setMachineType.
      • setMachineTypeOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetMachineTypeInstanceRequest,​Operation,​Operation> setMachineTypeOperationSettings()
        Returns the object with the settings used for calls to setMachineType.
      • setMetadataSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetMetadataInstanceRequest,​Operation> setMetadataSettings()
        Returns the object with the settings used for calls to setMetadata.
      • setMetadataOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetMetadataInstanceRequest,​Operation,​Operation> setMetadataOperationSettings()
        Returns the object with the settings used for calls to setMetadata.
      • setMinCpuPlatformSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetMinCpuPlatformInstanceRequest,​Operation> setMinCpuPlatformSettings()
        Returns the object with the settings used for calls to setMinCpuPlatform.
      • setMinCpuPlatformOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetMinCpuPlatformInstanceRequest,​Operation,​Operation> setMinCpuPlatformOperationSettings()
        Returns the object with the settings used for calls to setMinCpuPlatform.
      • setNameSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetNameInstanceRequest,​Operation> setNameSettings()
        Returns the object with the settings used for calls to setName.
      • setNameOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetNameInstanceRequest,​Operation,​Operation> setNameOperationSettings()
        Returns the object with the settings used for calls to setName.
      • setSchedulingSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetSchedulingInstanceRequest,​Operation> setSchedulingSettings()
        Returns the object with the settings used for calls to setScheduling.
      • setSchedulingOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetSchedulingInstanceRequest,​Operation,​Operation> setSchedulingOperationSettings()
        Returns the object with the settings used for calls to setScheduling.
      • setServiceAccountSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetServiceAccountInstanceRequest,​Operation> setServiceAccountSettings()
        Returns the object with the settings used for calls to setServiceAccount.
      • setServiceAccountOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetServiceAccountInstanceRequest,​Operation,​Operation> setServiceAccountOperationSettings()
        Returns the object with the settings used for calls to setServiceAccount.
      • setShieldedInstanceIntegrityPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetShieldedInstanceIntegrityPolicyInstanceRequest,​Operation> setShieldedInstanceIntegrityPolicySettings()
        Returns the object with the settings used for calls to setShieldedInstanceIntegrityPolicy.
      • setTagsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SetTagsInstanceRequest,​Operation> setTagsSettings()
        Returns the object with the settings used for calls to setTags.
      • setTagsOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SetTagsInstanceRequest,​Operation,​Operation> setTagsOperationSettings()
        Returns the object with the settings used for calls to setTags.
      • simulateMaintenanceEventSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SimulateMaintenanceEventInstanceRequest,​Operation> simulateMaintenanceEventSettings()
        Returns the object with the settings used for calls to simulateMaintenanceEvent.
      • simulateMaintenanceEventOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SimulateMaintenanceEventInstanceRequest,​Operation,​Operation> simulateMaintenanceEventOperationSettings()
        Returns the object with the settings used for calls to simulateMaintenanceEvent.
      • startSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StartInstanceRequest,​Operation> startSettings()
        Returns the object with the settings used for calls to start.
      • startOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StartInstanceRequest,​Operation,​Operation> startOperationSettings()
        Returns the object with the settings used for calls to start.
      • startWithEncryptionKeySettings

        public com.google.api.gax.rpc.UnaryCallSettings<StartWithEncryptionKeyInstanceRequest,​Operation> startWithEncryptionKeySettings()
        Returns the object with the settings used for calls to startWithEncryptionKey.
      • startWithEncryptionKeyOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StartWithEncryptionKeyInstanceRequest,​Operation,​Operation> startWithEncryptionKeyOperationSettings()
        Returns the object with the settings used for calls to startWithEncryptionKey.
      • stopSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StopInstanceRequest,​Operation> stopSettings()
        Returns the object with the settings used for calls to stop.
      • stopOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StopInstanceRequest,​Operation,​Operation> stopOperationSettings()
        Returns the object with the settings used for calls to stop.
      • suspendSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SuspendInstanceRequest,​Operation> suspendSettings()
        Returns the object with the settings used for calls to suspend.
      • suspendOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<SuspendInstanceRequest,​Operation,​Operation> suspendOperationSettings()
        Returns the object with the settings used for calls to suspend.
      • updateSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateInstanceRequest,​Operation> updateSettings()
        Returns the object with the settings used for calls to update.
      • updateOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateInstanceRequest,​Operation,​Operation> updateOperationSettings()
        Returns the object with the settings used for calls to update.
      • updateAccessConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateAccessConfigInstanceRequest,​Operation> updateAccessConfigSettings()
        Returns the object with the settings used for calls to updateAccessConfig.
      • updateAccessConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateAccessConfigInstanceRequest,​Operation,​Operation> updateAccessConfigOperationSettings()
        Returns the object with the settings used for calls to updateAccessConfig.
      • updateDisplayDeviceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateDisplayDeviceInstanceRequest,​Operation> updateDisplayDeviceSettings()
        Returns the object with the settings used for calls to updateDisplayDevice.
      • updateDisplayDeviceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateDisplayDeviceInstanceRequest,​Operation,​Operation> updateDisplayDeviceOperationSettings()
        Returns the object with the settings used for calls to updateDisplayDevice.
      • updateNetworkInterfaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateNetworkInterfaceInstanceRequest,​Operation> updateNetworkInterfaceSettings()
        Returns the object with the settings used for calls to updateNetworkInterface.
      • updateNetworkInterfaceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateNetworkInterfaceInstanceRequest,​Operation,​Operation> updateNetworkInterfaceOperationSettings()
        Returns the object with the settings used for calls to updateNetworkInterface.
      • updateShieldedInstanceConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateShieldedInstanceConfigInstanceRequest,​Operation> updateShieldedInstanceConfigSettings()
        Returns the object with the settings used for calls to updateShieldedInstanceConfig.
      • updateShieldedInstanceConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateShieldedInstanceConfigInstanceRequest,​Operation,​Operation> updateShieldedInstanceConfigOperationSettings()
        Returns the object with the settings used for calls to updateShieldedInstanceConfig.
      • 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.
      • defaultHttpJsonTransportProviderBuilder

        public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
        Returns a builder for the default ChannelProvider for this service.
      • defaultTransportChannelProvider

        public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
      • defaultApiClientHeaderProviderBuilder

        @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 defaultApiClientHeaderProviderBuilder()
      • newBuilder

        public static InstancesStubSettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.