Class MetadataServiceStubSettings


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

    The default instance has everything set to sensible defaults:

    • The default service address (aiplatform.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 getMetadataStore 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
     MetadataServiceStubSettings.Builder metadataServiceSettingsBuilder =
         MetadataServiceStubSettings.newBuilder();
     metadataServiceSettingsBuilder
         .getMetadataStoreSettings()
         .setRetrySettings(
             metadataServiceSettingsBuilder
                 .getMetadataStoreSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     MetadataServiceStubSettings metadataServiceSettings = metadataServiceSettingsBuilder.build();
     
    • Method Detail

      • createMetadataStoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateMetadataStoreRequest,​com.google.longrunning.Operation> createMetadataStoreSettings()
        Returns the object with the settings used for calls to createMetadataStore.
      • getMetadataStoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetMetadataStoreRequest,​MetadataStore> getMetadataStoreSettings()
        Returns the object with the settings used for calls to getMetadataStore.
      • deleteMetadataStoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteMetadataStoreRequest,​com.google.longrunning.Operation> deleteMetadataStoreSettings()
        Returns the object with the settings used for calls to deleteMetadataStore.
      • createArtifactSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateArtifactRequest,​Artifact> createArtifactSettings()
        Returns the object with the settings used for calls to createArtifact.
      • getArtifactSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetArtifactRequest,​Artifact> getArtifactSettings()
        Returns the object with the settings used for calls to getArtifact.
      • updateArtifactSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateArtifactRequest,​Artifact> updateArtifactSettings()
        Returns the object with the settings used for calls to updateArtifact.
      • deleteArtifactSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteArtifactRequest,​com.google.longrunning.Operation> deleteArtifactSettings()
        Returns the object with the settings used for calls to deleteArtifact.
      • deleteArtifactOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteArtifactRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteArtifactOperationSettings()
        Returns the object with the settings used for calls to deleteArtifact.
      • purgeArtifactsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PurgeArtifactsRequest,​com.google.longrunning.Operation> purgeArtifactsSettings()
        Returns the object with the settings used for calls to purgeArtifacts.
      • createContextSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateContextRequest,​Context> createContextSettings()
        Returns the object with the settings used for calls to createContext.
      • getContextSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetContextRequest,​Context> getContextSettings()
        Returns the object with the settings used for calls to getContext.
      • updateContextSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateContextRequest,​Context> updateContextSettings()
        Returns the object with the settings used for calls to updateContext.
      • deleteContextSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteContextRequest,​com.google.longrunning.Operation> deleteContextSettings()
        Returns the object with the settings used for calls to deleteContext.
      • deleteContextOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteContextRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteContextOperationSettings()
        Returns the object with the settings used for calls to deleteContext.
      • purgeContextsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PurgeContextsRequest,​com.google.longrunning.Operation> purgeContextsSettings()
        Returns the object with the settings used for calls to purgeContexts.
      • queryContextLineageSubgraphSettings

        public com.google.api.gax.rpc.UnaryCallSettings<QueryContextLineageSubgraphRequest,​LineageSubgraph> queryContextLineageSubgraphSettings()
        Returns the object with the settings used for calls to queryContextLineageSubgraph.
      • createExecutionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateExecutionRequest,​Execution> createExecutionSettings()
        Returns the object with the settings used for calls to createExecution.
      • getExecutionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetExecutionRequest,​Execution> getExecutionSettings()
        Returns the object with the settings used for calls to getExecution.
      • updateExecutionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateExecutionRequest,​Execution> updateExecutionSettings()
        Returns the object with the settings used for calls to updateExecution.
      • deleteExecutionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteExecutionRequest,​com.google.longrunning.Operation> deleteExecutionSettings()
        Returns the object with the settings used for calls to deleteExecution.
      • deleteExecutionOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteExecutionRequest,​com.google.protobuf.Empty,​DeleteOperationMetadata> deleteExecutionOperationSettings()
        Returns the object with the settings used for calls to deleteExecution.
      • purgeExecutionsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PurgeExecutionsRequest,​com.google.longrunning.Operation> purgeExecutionsSettings()
        Returns the object with the settings used for calls to purgeExecutions.
      • queryExecutionInputsAndOutputsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<QueryExecutionInputsAndOutputsRequest,​LineageSubgraph> queryExecutionInputsAndOutputsSettings()
        Returns the object with the settings used for calls to queryExecutionInputsAndOutputs.
      • createMetadataSchemaSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateMetadataSchemaRequest,​MetadataSchema> createMetadataSchemaSettings()
        Returns the object with the settings used for calls to createMetadataSchema.
      • getMetadataSchemaSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetMetadataSchemaRequest,​MetadataSchema> getMetadataSchemaSettings()
        Returns the object with the settings used for calls to getMetadataSchema.
      • queryArtifactLineageSubgraphSettings

        public com.google.api.gax.rpc.UnaryCallSettings<QueryArtifactLineageSubgraphRequest,​LineageSubgraph> queryArtifactLineageSubgraphSettings()
        Returns the object with the settings used for calls to queryArtifactLineageSubgraph.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​MetadataServiceClient.ListLocationsPagedResponse> listLocationsSettings()
        Returns the object with the settings used for calls to listLocations.
      • getLocationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,​com.google.cloud.location.Location> getLocationSettings()
        Returns the object with the settings used for calls to getLocation.
      • setIamPolicySettings

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

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

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,​com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
        Returns the object with the settings used for calls to testIamPermissions.
      • 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.
      • defaultGrpcTransportProviderBuilder

        public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
        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()