public class AppPlatformStubSettings extends StubSettings<AppPlatformStubSettings>
Settings class to configure an instance of AppPlatformStub .
The default instance has everything set to sensible defaults:
The default service address (visionai.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 getApplication 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
AppPlatformStubSettings . Builder appPlatformSettingsBuilder =
AppPlatformStubSettings . newBuilder ();
appPlatformSettingsBuilder
. getApplicationSettings ()
. setRetrySettings (
appPlatformSettingsBuilder
. getApplicationSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
AppPlatformStubSettings appPlatformSettings = appPlatformSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
public static TransportChannelProvider defaultTransportChannelProvider ()
public static String getDefaultEndpoint ()
Obsolete
Use getEndpoint() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
Returns the default service endpoint.
Returns
Type
Description
String
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
public static AppPlatformStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static AppPlatformStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
public static AppPlatformStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
protected AppPlatformStubSettings ( AppPlatformStubSettings . Builder settingsBuilder )
Methods
public OperationCallSettings<AddApplicationStreamInputRequest , AddApplicationStreamInputResponse , OperationMetadata > addApplicationStreamInputOperationSettings ()
Returns the object with the settings used for calls to addApplicationStreamInput.
public UnaryCallSettings<AddApplicationStreamInputRequest , Operation > addApplicationStreamInputSettings ()
Returns the object with the settings used for calls to addApplicationStreamInput.
public OperationCallSettings<CreateApplicationInstancesRequest , CreateApplicationInstancesResponse , OperationMetadata > createApplicationInstancesOperationSettings ()
Returns the object with the settings used for calls to createApplicationInstances.
public UnaryCallSettings<CreateApplicationInstancesRequest , Operation > createApplicationInstancesSettings ()
Returns the object with the settings used for calls to createApplicationInstances.
public OperationCallSettings<CreateApplicationRequest , Application , OperationMetadata > createApplicationOperationSettings ()
Returns the object with the settings used for calls to createApplication.
public UnaryCallSettings<CreateApplicationRequest , Operation > createApplicationSettings ()
Returns the object with the settings used for calls to createApplication.
public OperationCallSettings<CreateDraftRequest , Draft , OperationMetadata > createDraftOperationSettings ()
Returns the object with the settings used for calls to createDraft.
public UnaryCallSettings<CreateDraftRequest , Operation > createDraftSettings ()
Returns the object with the settings used for calls to createDraft.
public OperationCallSettings<CreateProcessorRequest , Processor , OperationMetadata > createProcessorOperationSettings ()
Returns the object with the settings used for calls to createProcessor.
public UnaryCallSettings<CreateProcessorRequest , Operation > createProcessorSettings ()
Returns the object with the settings used for calls to createProcessor.
public AppPlatformStub createStub ()
public OperationCallSettings<DeleteApplicationInstancesRequest , Instance , OperationMetadata > deleteApplicationInstancesOperationSettings ()
Returns the object with the settings used for calls to deleteApplicationInstances.
public UnaryCallSettings<DeleteApplicationInstancesRequest , Operation > deleteApplicationInstancesSettings ()
Returns the object with the settings used for calls to deleteApplicationInstances.
public OperationCallSettings<DeleteApplicationRequest , Empty , OperationMetadata > deleteApplicationOperationSettings ()
Returns the object with the settings used for calls to deleteApplication.
public UnaryCallSettings<DeleteApplicationRequest , Operation > deleteApplicationSettings ()
Returns the object with the settings used for calls to deleteApplication.
public OperationCallSettings<DeleteDraftRequest , Empty , OperationMetadata > deleteDraftOperationSettings ()
Returns the object with the settings used for calls to deleteDraft.
public UnaryCallSettings<DeleteDraftRequest , Operation > deleteDraftSettings ()
Returns the object with the settings used for calls to deleteDraft.
public OperationCallSettings<DeleteProcessorRequest , Empty , OperationMetadata > deleteProcessorOperationSettings ()
Returns the object with the settings used for calls to deleteProcessor.
public UnaryCallSettings<DeleteProcessorRequest , Operation > deleteProcessorSettings ()
Returns the object with the settings used for calls to deleteProcessor.
public OperationCallSettings<DeployApplicationRequest , DeployApplicationResponse , OperationMetadata > deployApplicationOperationSettings ()
Returns the object with the settings used for calls to deployApplication.
public UnaryCallSettings<DeployApplicationRequest , Operation > deployApplicationSettings ()
Returns the object with the settings used for calls to deployApplication.
public UnaryCallSettings<GetApplicationRequest , Application > getApplicationSettings ()
Returns the object with the settings used for calls to getApplication.
public UnaryCallSettings<GetDraftRequest , Draft > getDraftSettings ()
Returns the object with the settings used for calls to getDraft.
public UnaryCallSettings<GetInstanceRequest , Instance > getInstanceSettings ()
Returns the object with the settings used for calls to getInstance.
public UnaryCallSettings<GetProcessorRequest , Processor > getProcessorSettings ()
Returns the object with the settings used for calls to getProcessor.
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
public PagedCallSettings<ListApplicationsRequest , ListApplicationsResponse , AppPlatformClient . ListApplicationsPagedResponse > listApplicationsSettings ()
Returns the object with the settings used for calls to listApplications.
public PagedCallSettings<ListDraftsRequest , ListDraftsResponse , AppPlatformClient . ListDraftsPagedResponse > listDraftsSettings ()
Returns the object with the settings used for calls to listDrafts.
public PagedCallSettings<ListInstancesRequest , ListInstancesResponse , AppPlatformClient . ListInstancesPagedResponse > listInstancesSettings ()
Returns the object with the settings used for calls to listInstances.
public UnaryCallSettings<ListPrebuiltProcessorsRequest , ListPrebuiltProcessorsResponse > listPrebuiltProcessorsSettings ()
Returns the object with the settings used for calls to listPrebuiltProcessors.
public PagedCallSettings<ListProcessorsRequest , ListProcessorsResponse , AppPlatformClient . ListProcessorsPagedResponse > listProcessorsSettings ()
Returns the object with the settings used for calls to listProcessors.
public OperationCallSettings<RemoveApplicationStreamInputRequest , RemoveApplicationStreamInputResponse , OperationMetadata > removeApplicationStreamInputOperationSettings ()
Returns the object with the settings used for calls to removeApplicationStreamInput.
public UnaryCallSettings<RemoveApplicationStreamInputRequest , Operation > removeApplicationStreamInputSettings ()
Returns the object with the settings used for calls to removeApplicationStreamInput.
public AppPlatformStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
public OperationCallSettings<UndeployApplicationRequest , UndeployApplicationResponse , OperationMetadata > undeployApplicationOperationSettings ()
Returns the object with the settings used for calls to undeployApplication.
public UnaryCallSettings<UndeployApplicationRequest , Operation > undeployApplicationSettings ()
Returns the object with the settings used for calls to undeployApplication.
public OperationCallSettings<UpdateApplicationInstancesRequest , UpdateApplicationInstancesResponse , OperationMetadata > updateApplicationInstancesOperationSettings ()
Returns the object with the settings used for calls to updateApplicationInstances.
public UnaryCallSettings<UpdateApplicationInstancesRequest , Operation > updateApplicationInstancesSettings ()
Returns the object with the settings used for calls to updateApplicationInstances.
public OperationCallSettings<UpdateApplicationRequest , Application , OperationMetadata > updateApplicationOperationSettings ()
Returns the object with the settings used for calls to updateApplication.
public UnaryCallSettings<UpdateApplicationRequest , Operation > updateApplicationSettings ()
Returns the object with the settings used for calls to updateApplication.
public OperationCallSettings<UpdateApplicationStreamInputRequest , UpdateApplicationStreamInputResponse , OperationMetadata > updateApplicationStreamInputOperationSettings ()
Returns the object with the settings used for calls to updateApplicationStreamInput.
public UnaryCallSettings<UpdateApplicationStreamInputRequest , Operation > updateApplicationStreamInputSettings ()
Returns the object with the settings used for calls to updateApplicationStreamInput.
public OperationCallSettings<UpdateDraftRequest , Draft , OperationMetadata > updateDraftOperationSettings ()
Returns the object with the settings used for calls to updateDraft.
public UnaryCallSettings<UpdateDraftRequest , Operation > updateDraftSettings ()
Returns the object with the settings used for calls to updateDraft.
public OperationCallSettings<UpdateProcessorRequest , Processor , OperationMetadata > updateProcessorOperationSettings ()
Returns the object with the settings used for calls to updateProcessor.
public UnaryCallSettings<UpdateProcessorRequest , Operation > updateProcessorSettings ()
Returns the object with the settings used for calls to updateProcessor.