Class RegistryStubSettings (0.3.1)

public class RegistryStubSettings extends StubSettings<RegistryStubSettings>

Settings class to configure an instance of RegistryStub.

The default instance has everything set to sensible defaults:

  • The default service address (apigeeregistry.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 getApi 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
 RegistryStubSettings.Builder registrySettingsBuilder = RegistryStubSettings.newBuilder();
 registrySettingsBuilder
     .getApiSettings()
     .setRetrySettings(
         registrySettingsBuilder.getApiSettings().getRetrySettings().toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 RegistryStubSettings registrySettings = registrySettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > RegistryStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static RegistryStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
RegistryStubSettings.Builder

newBuilder(ClientContext clientContext)

public static RegistryStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
RegistryStubSettings.Builder

newHttpJsonBuilder()

public static RegistryStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
RegistryStubSettings.Builder

Constructors

RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)

protected RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderRegistryStubSettings.Builder

Methods

createApiDeploymentSettings()

public UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentSettings()

Returns the object with the settings used for calls to createApiDeployment.

Returns
TypeDescription
UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment>

createApiSettings()

public UnaryCallSettings<CreateApiRequest,Api> createApiSettings()

Returns the object with the settings used for calls to createApi.

Returns
TypeDescription
UnaryCallSettings<CreateApiRequest,Api>

createApiSpecSettings()

public UnaryCallSettings<CreateApiSpecRequest,ApiSpec> createApiSpecSettings()

Returns the object with the settings used for calls to createApiSpec.

Returns
TypeDescription
UnaryCallSettings<CreateApiSpecRequest,ApiSpec>

createApiVersionSettings()

public UnaryCallSettings<CreateApiVersionRequest,ApiVersion> createApiVersionSettings()

Returns the object with the settings used for calls to createApiVersion.

Returns
TypeDescription
UnaryCallSettings<CreateApiVersionRequest,ApiVersion>

createArtifactSettings()

public UnaryCallSettings<CreateArtifactRequest,Artifact> createArtifactSettings()

Returns the object with the settings used for calls to createArtifact.

Returns
TypeDescription
UnaryCallSettings<CreateArtifactRequest,Artifact>

createStub()

public RegistryStub createStub()
Returns
TypeDescription
RegistryStub
Exceptions
TypeDescription
IOException

deleteApiDeploymentRevisionSettings()

public UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionSettings()

Returns the object with the settings used for calls to deleteApiDeploymentRevision.

Returns
TypeDescription
UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment>

deleteApiDeploymentSettings()

public UnaryCallSettings<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentSettings()

Returns the object with the settings used for calls to deleteApiDeployment.

Returns
TypeDescription
UnaryCallSettings<DeleteApiDeploymentRequest,Empty>

deleteApiSettings()

public UnaryCallSettings<DeleteApiRequest,Empty> deleteApiSettings()

Returns the object with the settings used for calls to deleteApi.

Returns
TypeDescription
UnaryCallSettings<DeleteApiRequest,Empty>

deleteApiSpecRevisionSettings()

public UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionSettings()

Returns the object with the settings used for calls to deleteApiSpecRevision.

Returns
TypeDescription
UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec>

deleteApiSpecSettings()

public UnaryCallSettings<DeleteApiSpecRequest,Empty> deleteApiSpecSettings()

Returns the object with the settings used for calls to deleteApiSpec.

Returns
TypeDescription
UnaryCallSettings<DeleteApiSpecRequest,Empty>

deleteApiVersionSettings()

public UnaryCallSettings<DeleteApiVersionRequest,Empty> deleteApiVersionSettings()

Returns the object with the settings used for calls to deleteApiVersion.

Returns
TypeDescription
UnaryCallSettings<DeleteApiVersionRequest,Empty>

deleteArtifactSettings()

public UnaryCallSettings<DeleteArtifactRequest,Empty> deleteArtifactSettings()

Returns the object with the settings used for calls to deleteArtifact.

Returns
TypeDescription
UnaryCallSettings<DeleteArtifactRequest,Empty>

getApiDeploymentSettings()

public UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentSettings()

Returns the object with the settings used for calls to getApiDeployment.

Returns
TypeDescription
UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment>

getApiSettings()

public UnaryCallSettings<GetApiRequest,Api> getApiSettings()

Returns the object with the settings used for calls to getApi.

Returns
TypeDescription
UnaryCallSettings<GetApiRequest,Api>

getApiSpecContentsSettings()

public UnaryCallSettings<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsSettings()

Returns the object with the settings used for calls to getApiSpecContents.

Returns
TypeDescription
UnaryCallSettings<GetApiSpecContentsRequest,com.google.api.HttpBody>

getApiSpecSettings()

public UnaryCallSettings<GetApiSpecRequest,ApiSpec> getApiSpecSettings()

Returns the object with the settings used for calls to getApiSpec.

Returns
TypeDescription
UnaryCallSettings<GetApiSpecRequest,ApiSpec>

getApiVersionSettings()

public UnaryCallSettings<GetApiVersionRequest,ApiVersion> getApiVersionSettings()

Returns the object with the settings used for calls to getApiVersion.

Returns
TypeDescription
UnaryCallSettings<GetApiVersionRequest,ApiVersion>

getArtifactContentsSettings()

public UnaryCallSettings<GetArtifactContentsRequest,HttpBody> getArtifactContentsSettings()

Returns the object with the settings used for calls to getArtifactContents.

Returns
TypeDescription
UnaryCallSettings<GetArtifactContentsRequest,com.google.api.HttpBody>

getArtifactSettings()

public UnaryCallSettings<GetArtifactRequest,Artifact> getArtifactSettings()

Returns the object with the settings used for calls to getArtifact.

Returns
TypeDescription
UnaryCallSettings<GetArtifactRequest,Artifact>

getIamPolicySettings()

public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()

Returns the object with the settings used for calls to getIamPolicy.

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

getLocationSettings()

public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()

Returns the object with the settings used for calls to getLocation.

Returns
TypeDescription
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

listApiDeploymentRevisionsSettings()

public PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsSettings()

Returns the object with the settings used for calls to listApiDeploymentRevisions.

Returns
TypeDescription
PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,ListApiDeploymentRevisionsPagedResponse>

listApiDeploymentsSettings()

public PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsSettings()

Returns the object with the settings used for calls to listApiDeployments.

Returns
TypeDescription
PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,ListApiDeploymentsPagedResponse>

listApiSpecRevisionsSettings()

public PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsSettings()

Returns the object with the settings used for calls to listApiSpecRevisions.

Returns
TypeDescription
PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,ListApiSpecRevisionsPagedResponse>

listApiSpecsSettings()

public PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsSettings()

Returns the object with the settings used for calls to listApiSpecs.

Returns
TypeDescription
PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,ListApiSpecsPagedResponse>

listApiVersionsSettings()

public PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsSettings()

Returns the object with the settings used for calls to listApiVersions.

Returns
TypeDescription
PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,ListApiVersionsPagedResponse>

listApisSettings()

public PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse> listApisSettings()

Returns the object with the settings used for calls to listApis.

Returns
TypeDescription
PagedCallSettings<ListApisRequest,ListApisResponse,ListApisPagedResponse>

listArtifactsSettings()

public PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse> listArtifactsSettings()

Returns the object with the settings used for calls to listArtifacts.

Returns
TypeDescription
PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,ListArtifactsPagedResponse>

listLocationsSettings()

public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,RegistryClient.ListLocationsPagedResponse> listLocationsSettings()

Returns the object with the settings used for calls to listLocations.

Returns
TypeDescription
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

replaceArtifactSettings()

public UnaryCallSettings<ReplaceArtifactRequest,Artifact> replaceArtifactSettings()

Returns the object with the settings used for calls to replaceArtifact.

Returns
TypeDescription
UnaryCallSettings<ReplaceArtifactRequest,Artifact>

rollbackApiDeploymentSettings()

public UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentSettings()

Returns the object with the settings used for calls to rollbackApiDeployment.

Returns
TypeDescription
UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment>

rollbackApiSpecSettings()

public UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecSettings()

Returns the object with the settings used for calls to rollbackApiSpec.

Returns
TypeDescription
UnaryCallSettings<RollbackApiSpecRequest,ApiSpec>

setIamPolicySettings()

public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()

Returns the object with the settings used for calls to setIamPolicy.

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

tagApiDeploymentRevisionSettings()

public UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionSettings()

Returns the object with the settings used for calls to tagApiDeploymentRevision.

Returns
TypeDescription
UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment>

tagApiSpecRevisionSettings()

public UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionSettings()

Returns the object with the settings used for calls to tagApiSpecRevision.

Returns
TypeDescription
UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec>

testIamPermissionsSettings()

public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

Returns the object with the settings used for calls to testIamPermissions.

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

toBuilder()

public RegistryStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
RegistryStubSettings.Builder
Overrides

updateApiDeploymentSettings()

public UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentSettings()

Returns the object with the settings used for calls to updateApiDeployment.

Returns
TypeDescription
UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment>

updateApiSettings()

public UnaryCallSettings<UpdateApiRequest,Api> updateApiSettings()

Returns the object with the settings used for calls to updateApi.

Returns
TypeDescription
UnaryCallSettings<UpdateApiRequest,Api>

updateApiSpecSettings()

public UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> updateApiSpecSettings()

Returns the object with the settings used for calls to updateApiSpec.

Returns
TypeDescription
UnaryCallSettings<UpdateApiSpecRequest,ApiSpec>

updateApiVersionSettings()

public UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> updateApiVersionSettings()

Returns the object with the settings used for calls to updateApiVersion.

Returns
TypeDescription
UnaryCallSettings<UpdateApiVersionRequest,ApiVersion>