publicclass ApiGatewayServiceStubSettingsextendsStubSettings<ApiGatewayServiceStubSettings>
Settings class to configure an instance of ApiGatewayServiceStub.
The default instance has everything set to sensible defaults:
- The default service address (apigateway.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 getGateway 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
ApiGatewayServiceStubSettings.BuilderapiGatewayServiceSettingsBuilder=
ApiGatewayServiceStubSettings.newBuilder();
apiGatewayServiceSettingsBuilder
.getGatewaySettings()
.setRetrySettings(
apiGatewayServiceSettingsBuilder
.getGatewaySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ApiGatewayServiceStubSettingsapiGatewayServiceSettings=
apiGatewayServiceSettingsBuilder.build();
Static Methods
publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
publicstaticApiClientHeaderProvider.BuilderdefaultGrpcApiClientHeaderProviderBuilder()
defaultGrpcTransportProviderBuilder()
publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
publicstaticApiClientHeaderProvider.BuilderdefaultHttpJsonApiClientHeaderProviderBuilder()
defaultHttpJsonTransportProviderBuilder()
publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
publicstaticTransportChannelProviderdefaultTransportChannelProvider()
getDefaultEndpoint()
publicstaticStringgetDefaultEndpoint()
Returns the default service endpoint.
| Returns |
| Type |
Description |
String |
getDefaultMtlsEndpoint()
publicstaticStringgetDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
| Returns |
| Type |
Description |
String |
getDefaultServiceScopes()
publicstaticList<String>getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
publicstaticApiGatewayServiceStubSettings.BuildernewBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
publicstaticApiGatewayServiceStubSettings.BuildernewBuilder(ClientContextclientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
publicstaticApiGatewayServiceStubSettings.BuildernewHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
ApiGatewayServiceStubSettings(ApiGatewayServiceStubSettings.Builder settingsBuilder)
protectedApiGatewayServiceStubSettings(ApiGatewayServiceStubSettings.BuildersettingsBuilder)
Methods
createApiConfigOperationSettings()
publicOperationCallSettings<CreateApiConfigRequest,ApiConfig,OperationMetadata>createApiConfigOperationSettings()
Returns the object with the settings used for calls to createApiConfig.
createApiConfigSettings()
publicUnaryCallSettings<CreateApiConfigRequest,Operation>createApiConfigSettings()
Returns the object with the settings used for calls to createApiConfig.
createApiOperationSettings()
publicOperationCallSettings<CreateApiRequest,Api,OperationMetadata>createApiOperationSettings()
Returns the object with the settings used for calls to createApi.
createApiSettings()
publicUnaryCallSettings<CreateApiRequest,Operation>createApiSettings()
Returns the object with the settings used for calls to createApi.
createGatewayOperationSettings()
publicOperationCallSettings<CreateGatewayRequest,Gateway,OperationMetadata>createGatewayOperationSettings()
Returns the object with the settings used for calls to createGateway.
createGatewaySettings()
publicUnaryCallSettings<CreateGatewayRequest,Operation>createGatewaySettings()
Returns the object with the settings used for calls to createGateway.
createStub()
publicApiGatewayServiceStubcreateStub()
deleteApiConfigOperationSettings()
publicOperationCallSettings<DeleteApiConfigRequest,Empty,OperationMetadata>deleteApiConfigOperationSettings()
Returns the object with the settings used for calls to deleteApiConfig.
deleteApiConfigSettings()
publicUnaryCallSettings<DeleteApiConfigRequest,Operation>deleteApiConfigSettings()
Returns the object with the settings used for calls to deleteApiConfig.
deleteApiOperationSettings()
publicOperationCallSettings<DeleteApiRequest,Empty,OperationMetadata>deleteApiOperationSettings()
Returns the object with the settings used for calls to deleteApi.
deleteApiSettings()
publicUnaryCallSettings<DeleteApiRequest,Operation>deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.
deleteGatewayOperationSettings()
publicOperationCallSettings<DeleteGatewayRequest,Empty,OperationMetadata>deleteGatewayOperationSettings()
Returns the object with the settings used for calls to deleteGateway.
deleteGatewaySettings()
publicUnaryCallSettings<DeleteGatewayRequest,Operation>deleteGatewaySettings()
Returns the object with the settings used for calls to deleteGateway.
getApiConfigSettings()
publicUnaryCallSettings<GetApiConfigRequest,ApiConfig>getApiConfigSettings()
Returns the object with the settings used for calls to getApiConfig.
getApiSettings()
publicUnaryCallSettings<GetApiRequest,Api>getApiSettings()
Returns the object with the settings used for calls to getApi.
getGatewaySettings()
publicUnaryCallSettings<GetGatewayRequest,Gateway>getGatewaySettings()
Returns the object with the settings used for calls to getGateway.
listApiConfigsSettings()
publicPagedCallSettings<ListApiConfigsRequest,ListApiConfigsResponse,ApiGatewayServiceClient.ListApiConfigsPagedResponse>listApiConfigsSettings()
Returns the object with the settings used for calls to listApiConfigs.
listApisSettings()
publicPagedCallSettings<ListApisRequest,ListApisResponse,ApiGatewayServiceClient.ListApisPagedResponse>listApisSettings()
Returns the object with the settings used for calls to listApis.
listGatewaysSettings()
publicPagedCallSettings<ListGatewaysRequest,ListGatewaysResponse,ApiGatewayServiceClient.ListGatewaysPagedResponse>listGatewaysSettings()
Returns the object with the settings used for calls to listGateways.
toBuilder()
publicApiGatewayServiceStubSettings.BuildertoBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateApiConfigOperationSettings()
publicOperationCallSettings<UpdateApiConfigRequest,ApiConfig,OperationMetadata>updateApiConfigOperationSettings()
Returns the object with the settings used for calls to updateApiConfig.
updateApiConfigSettings()
publicUnaryCallSettings<UpdateApiConfigRequest,Operation>updateApiConfigSettings()
Returns the object with the settings used for calls to updateApiConfig.
updateApiOperationSettings()
publicOperationCallSettings<UpdateApiRequest,Api,OperationMetadata>updateApiOperationSettings()
Returns the object with the settings used for calls to updateApi.
updateApiSettings()
publicUnaryCallSettings<UpdateApiRequest,Operation>updateApiSettings()
Returns the object with the settings used for calls to updateApi.
updateGatewayOperationSettings()
publicOperationCallSettings<UpdateGatewayRequest,Gateway,OperationMetadata>updateGatewayOperationSettings()
Returns the object with the settings used for calls to updateGateway.
updateGatewaySettings()
publicUnaryCallSettings<UpdateGatewayRequest,Operation>updateGatewaySettings()
Returns the object with the settings used for calls to updateGateway.