Package com.google.cloud.eventarc.v1
Class EventarcSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<EventarcSettings>
-
- com.google.cloud.eventarc.v1.EventarcSettings
-
@Generated("by gapic-generator-java") public class EventarcSettings extends com.google.api.gax.rpc.ClientSettings<EventarcSettings>
Settings class to configure an instance ofEventarcClient
.The default instance has everything set to sensible defaults:
- The default service address (eventarc.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 getTrigger 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 EventarcSettings.Builder eventarcSettingsBuilder = EventarcSettings.newBuilder(); eventarcSettingsBuilder .getTriggerSettings() .setRetrySettings( eventarcSettingsBuilder .getTriggerSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); EventarcSettings eventarcSettings = eventarcSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventarcSettings.Builder
Builder for EventarcSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventarcSettings(EventarcSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventarcSettings
create(EventarcStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateChannelConnectionRequest,ChannelConnection,OperationMetadata>
createChannelConnectionOperationSettings()
Returns the object with the settings used for calls to createChannelConnection.com.google.api.gax.rpc.UnaryCallSettings<CreateChannelConnectionRequest,com.google.longrunning.Operation>
createChannelConnectionSettings()
Returns the object with the settings used for calls to createChannelConnection.com.google.api.gax.rpc.OperationCallSettings<CreateChannelRequest,Channel,OperationMetadata>
createChannelOperationSettings()
Returns the object with the settings used for calls to createChannel.com.google.api.gax.rpc.UnaryCallSettings<CreateChannelRequest,com.google.longrunning.Operation>
createChannelSettings()
Returns the object with the settings used for calls to createChannel.com.google.api.gax.rpc.OperationCallSettings<CreateTriggerRequest,Trigger,OperationMetadata>
createTriggerOperationSettings()
Returns the object with the settings used for calls to createTrigger.com.google.api.gax.rpc.UnaryCallSettings<CreateTriggerRequest,com.google.longrunning.Operation>
createTriggerSettings()
Returns the object with the settings used for calls to createTrigger.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteChannelConnectionRequest,ChannelConnection,OperationMetadata>
deleteChannelConnectionOperationSettings()
Returns the object with the settings used for calls to deleteChannelConnection.com.google.api.gax.rpc.UnaryCallSettings<DeleteChannelConnectionRequest,com.google.longrunning.Operation>
deleteChannelConnectionSettings()
Returns the object with the settings used for calls to deleteChannelConnection.com.google.api.gax.rpc.OperationCallSettings<DeleteChannelRequest,Channel,OperationMetadata>
deleteChannelOperationSettings()
Returns the object with the settings used for calls to deleteChannel.com.google.api.gax.rpc.UnaryCallSettings<DeleteChannelRequest,com.google.longrunning.Operation>
deleteChannelSettings()
Returns the object with the settings used for calls to deleteChannel.com.google.api.gax.rpc.OperationCallSettings<DeleteTriggerRequest,Trigger,OperationMetadata>
deleteTriggerOperationSettings()
Returns the object with the settings used for calls to deleteTrigger.com.google.api.gax.rpc.UnaryCallSettings<DeleteTriggerRequest,com.google.longrunning.Operation>
deleteTriggerSettings()
Returns the object with the settings used for calls to deleteTrigger.com.google.api.gax.rpc.UnaryCallSettings<GetChannelConnectionRequest,ChannelConnection>
getChannelConnectionSettings()
Returns the object with the settings used for calls to getChannelConnection.com.google.api.gax.rpc.UnaryCallSettings<GetChannelRequest,Channel>
getChannelSettings()
Returns the object with the settings used for calls to getChannel.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetGoogleChannelConfigRequest,GoogleChannelConfig>
getGoogleChannelConfigSettings()
Returns the object with the settings used for calls to getGoogleChannelConfig.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.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.com.google.api.gax.rpc.UnaryCallSettings<GetProviderRequest,Provider>
getProviderSettings()
Returns the object with the settings used for calls to getProvider.com.google.api.gax.rpc.UnaryCallSettings<GetTriggerRequest,Trigger>
getTriggerSettings()
Returns the object with the settings used for calls to getTrigger.com.google.api.gax.rpc.PagedCallSettings<ListChannelConnectionsRequest,ListChannelConnectionsResponse,EventarcClient.ListChannelConnectionsPagedResponse>
listChannelConnectionsSettings()
Returns the object with the settings used for calls to listChannelConnections.com.google.api.gax.rpc.PagedCallSettings<ListChannelsRequest,ListChannelsResponse,EventarcClient.ListChannelsPagedResponse>
listChannelsSettings()
Returns the object with the settings used for calls to listChannels.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EventarcClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<ListProvidersRequest,ListProvidersResponse,EventarcClient.ListProvidersPagedResponse>
listProvidersSettings()
Returns the object with the settings used for calls to listProviders.com.google.api.gax.rpc.PagedCallSettings<ListTriggersRequest,ListTriggersResponse,EventarcClient.ListTriggersPagedResponse>
listTriggersSettings()
Returns the object with the settings used for calls to listTriggers.static EventarcSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static EventarcSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static EventarcSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.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.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.EventarcSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateChannelRequest,Channel,OperationMetadata>
updateChannelOperationSettings()
Returns the object with the settings used for calls to updateChannel.com.google.api.gax.rpc.UnaryCallSettings<UpdateChannelRequest,com.google.longrunning.Operation>
updateChannelSettings()
Returns the object with the settings used for calls to updateChannel.com.google.api.gax.rpc.UnaryCallSettings<UpdateGoogleChannelConfigRequest,GoogleChannelConfig>
updateGoogleChannelConfigSettings()
Returns the object with the settings used for calls to updateGoogleChannelConfig.com.google.api.gax.rpc.OperationCallSettings<UpdateTriggerRequest,Trigger,OperationMetadata>
updateTriggerOperationSettings()
Returns the object with the settings used for calls to updateTrigger.com.google.api.gax.rpc.UnaryCallSettings<UpdateTriggerRequest,com.google.longrunning.Operation>
updateTriggerSettings()
Returns the object with the settings used for calls to updateTrigger.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
EventarcSettings
protected EventarcSettings(EventarcSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetTriggerRequest,Trigger> getTriggerSettings()
Returns the object with the settings used for calls to getTrigger.
-
listTriggersSettings
public com.google.api.gax.rpc.PagedCallSettings<ListTriggersRequest,ListTriggersResponse,EventarcClient.ListTriggersPagedResponse> listTriggersSettings()
Returns the object with the settings used for calls to listTriggers.
-
createTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateTriggerRequest,com.google.longrunning.Operation> createTriggerSettings()
Returns the object with the settings used for calls to createTrigger.
-
createTriggerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateTriggerRequest,Trigger,OperationMetadata> createTriggerOperationSettings()
Returns the object with the settings used for calls to createTrigger.
-
updateTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateTriggerRequest,com.google.longrunning.Operation> updateTriggerSettings()
Returns the object with the settings used for calls to updateTrigger.
-
updateTriggerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateTriggerRequest,Trigger,OperationMetadata> updateTriggerOperationSettings()
Returns the object with the settings used for calls to updateTrigger.
-
deleteTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteTriggerRequest,com.google.longrunning.Operation> deleteTriggerSettings()
Returns the object with the settings used for calls to deleteTrigger.
-
deleteTriggerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteTriggerRequest,Trigger,OperationMetadata> deleteTriggerOperationSettings()
Returns the object with the settings used for calls to deleteTrigger.
-
getChannelSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetChannelRequest,Channel> getChannelSettings()
Returns the object with the settings used for calls to getChannel.
-
listChannelsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListChannelsRequest,ListChannelsResponse,EventarcClient.ListChannelsPagedResponse> listChannelsSettings()
Returns the object with the settings used for calls to listChannels.
-
createChannelSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateChannelRequest,com.google.longrunning.Operation> createChannelSettings()
Returns the object with the settings used for calls to createChannel.
-
createChannelOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateChannelRequest,Channel,OperationMetadata> createChannelOperationSettings()
Returns the object with the settings used for calls to createChannel.
-
updateChannelSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateChannelRequest,com.google.longrunning.Operation> updateChannelSettings()
Returns the object with the settings used for calls to updateChannel.
-
updateChannelOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateChannelRequest,Channel,OperationMetadata> updateChannelOperationSettings()
Returns the object with the settings used for calls to updateChannel.
-
deleteChannelSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteChannelRequest,com.google.longrunning.Operation> deleteChannelSettings()
Returns the object with the settings used for calls to deleteChannel.
-
deleteChannelOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteChannelRequest,Channel,OperationMetadata> deleteChannelOperationSettings()
Returns the object with the settings used for calls to deleteChannel.
-
getProviderSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetProviderRequest,Provider> getProviderSettings()
Returns the object with the settings used for calls to getProvider.
-
listProvidersSettings
public com.google.api.gax.rpc.PagedCallSettings<ListProvidersRequest,ListProvidersResponse,EventarcClient.ListProvidersPagedResponse> listProvidersSettings()
Returns the object with the settings used for calls to listProviders.
-
getChannelConnectionSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetChannelConnectionRequest,ChannelConnection> getChannelConnectionSettings()
Returns the object with the settings used for calls to getChannelConnection.
-
listChannelConnectionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListChannelConnectionsRequest,ListChannelConnectionsResponse,EventarcClient.ListChannelConnectionsPagedResponse> listChannelConnectionsSettings()
Returns the object with the settings used for calls to listChannelConnections.
-
createChannelConnectionSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateChannelConnectionRequest,com.google.longrunning.Operation> createChannelConnectionSettings()
Returns the object with the settings used for calls to createChannelConnection.
-
createChannelConnectionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateChannelConnectionRequest,ChannelConnection,OperationMetadata> createChannelConnectionOperationSettings()
Returns the object with the settings used for calls to createChannelConnection.
-
deleteChannelConnectionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteChannelConnectionRequest,com.google.longrunning.Operation> deleteChannelConnectionSettings()
Returns the object with the settings used for calls to deleteChannelConnection.
-
deleteChannelConnectionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteChannelConnectionRequest,ChannelConnection,OperationMetadata> deleteChannelConnectionOperationSettings()
Returns the object with the settings used for calls to deleteChannelConnection.
-
getGoogleChannelConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetGoogleChannelConfigRequest,GoogleChannelConfig> getGoogleChannelConfigSettings()
Returns the object with the settings used for calls to getGoogleChannelConfig.
-
updateGoogleChannelConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateGoogleChannelConfigRequest,GoogleChannelConfig> updateGoogleChannelConfigSettings()
Returns the object with the settings used for calls to updateGoogleChannelConfig.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EventarcClient.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.
-
create
public static final EventarcSettings create(EventarcStubSettings stub) throws IOException
- Throws:
IOException
-
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.
-
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 gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST 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 EventarcSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static EventarcSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static EventarcSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public EventarcSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<EventarcSettings>
-
-