@Generated(value="by gapic-generator") @BetaApi public class ConfigSettings extends ClientSettings<ConfigSettings>
ConfigClient
.
The default instance has everything set to sensible defaults:
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 getSink to 30 seconds:
ConfigSettings.Builder configSettingsBuilder =
ConfigSettings.newBuilder();
configSettingsBuilder.getSinkSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
ConfigSettings configSettings = configSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
ConfigSettings.Builder
Builder for ConfigSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
ConfigSettings(ConfigSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
static ConfigSettings |
create(ConfigServiceV2StubSettings stub) |
UnaryCallSettings<com.google.logging.v2.CreateExclusionRequest,com.google.logging.v2.LogExclusion> |
createExclusionSettings()
Returns the object with the settings used for calls to createExclusion.
|
UnaryCallSettings<com.google.logging.v2.CreateSinkRequest,com.google.logging.v2.LogSink> |
createSinkSettings()
Returns the object with the settings used for calls to createSink.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.logging.v2.DeleteExclusionRequest,Empty> |
deleteExclusionSettings()
Returns the object with the settings used for calls to deleteExclusion.
|
UnaryCallSettings<com.google.logging.v2.DeleteSinkRequest,Empty> |
deleteSinkSettings()
Returns the object with the settings used for calls to deleteSink.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.logging.v2.GetExclusionRequest,com.google.logging.v2.LogExclusion> |
getExclusionSettings()
Returns the object with the settings used for calls to getExclusion.
|
UnaryCallSettings<com.google.logging.v2.GetSinkRequest,com.google.logging.v2.LogSink> |
getSinkSettings()
Returns the object with the settings used for calls to getSink.
|
PagedCallSettings<com.google.logging.v2.ListExclusionsRequest,com.google.logging.v2.ListExclusionsResponse,ConfigClient.ListExclusionsPagedResponse> |
listExclusionsSettings()
Returns the object with the settings used for calls to listExclusions.
|
PagedCallSettings<com.google.logging.v2.ListSinksRequest,com.google.logging.v2.ListSinksResponse,ConfigClient.ListSinksPagedResponse> |
listSinksSettings()
Returns the object with the settings used for calls to listSinks.
|
static ConfigSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static ConfigSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
ConfigSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.logging.v2.UpdateExclusionRequest,com.google.logging.v2.LogExclusion> |
updateExclusionSettings()
Returns the object with the settings used for calls to updateExclusion.
|
UnaryCallSettings<com.google.logging.v2.UpdateSinkRequest,com.google.logging.v2.LogSink> |
updateSinkSettings()
Returns the object with the settings used for calls to updateSink.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected ConfigSettings(ConfigSettings.Builder settingsBuilder) throws IOException
IOException
public PagedCallSettings<com.google.logging.v2.ListSinksRequest,com.google.logging.v2.ListSinksResponse,ConfigClient.ListSinksPagedResponse> listSinksSettings()
public UnaryCallSettings<com.google.logging.v2.GetSinkRequest,com.google.logging.v2.LogSink> getSinkSettings()
public UnaryCallSettings<com.google.logging.v2.CreateSinkRequest,com.google.logging.v2.LogSink> createSinkSettings()
public UnaryCallSettings<com.google.logging.v2.UpdateSinkRequest,com.google.logging.v2.LogSink> updateSinkSettings()
public UnaryCallSettings<com.google.logging.v2.DeleteSinkRequest,Empty> deleteSinkSettings()
public PagedCallSettings<com.google.logging.v2.ListExclusionsRequest,com.google.logging.v2.ListExclusionsResponse,ConfigClient.ListExclusionsPagedResponse> listExclusionsSettings()
public UnaryCallSettings<com.google.logging.v2.GetExclusionRequest,com.google.logging.v2.LogExclusion> getExclusionSettings()
public UnaryCallSettings<com.google.logging.v2.CreateExclusionRequest,com.google.logging.v2.LogExclusion> createExclusionSettings()
public UnaryCallSettings<com.google.logging.v2.UpdateExclusionRequest,com.google.logging.v2.LogExclusion> updateExclusionSettings()
public UnaryCallSettings<com.google.logging.v2.DeleteExclusionRequest,Empty> deleteExclusionSettings()
public static final ConfigSettings create(ConfigServiceV2StubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ConfigSettings.Builder newBuilder()
public static ConfigSettings.Builder newBuilder(ClientContext clientContext)
public ConfigSettings.Builder toBuilder()
toBuilder
in class ClientSettings<ConfigSettings>
Copyright © 2019 Google LLC. All rights reserved.