Class ConfigServiceV2StubSettings (3.16.2)

public class ConfigServiceV2StubSettings extends StubSettings<ConfigServiceV2StubSettings>

Settings class to configure an instance of ConfigServiceV2Stub.

The default instance has everything set to sensible defaults:

  • The default service address (logging.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 getBucket 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
 ConfigServiceV2StubSettings.Builder configSettingsBuilder =
     ConfigServiceV2StubSettings.newBuilder();
 configSettingsBuilder
     .getBucketSettings()
     .setRetrySettings(
         configSettingsBuilder
             .getBucketSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > ConfigServiceV2StubSettings

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

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default 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 ConfigServiceV2StubSettings.Builder newBuilder()

Returns a new builder for this class.

newBuilder(ClientContext clientContext)

public static ConfigServiceV2StubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext

Constructors

ConfigServiceV2StubSettings(ConfigServiceV2StubSettings.Builder settingsBuilder)

protected ConfigServiceV2StubSettings(ConfigServiceV2StubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderConfigServiceV2StubSettings.Builder

Methods

copyLogEntriesOperationSettings()

public OperationCallSettings<CopyLogEntriesRequest,CopyLogEntriesResponse,CopyLogEntriesMetadata> copyLogEntriesOperationSettings()

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

copyLogEntriesSettings()

public UnaryCallSettings<CopyLogEntriesRequest,Operation> copyLogEntriesSettings()

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

createBucketAsyncOperationSettings()

public OperationCallSettings<CreateBucketRequest,LogBucket,BucketMetadata> createBucketAsyncOperationSettings()

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

createBucketAsyncSettings()

public UnaryCallSettings<CreateBucketRequest,Operation> createBucketAsyncSettings()

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

createBucketSettings()

public UnaryCallSettings<CreateBucketRequest,LogBucket> createBucketSettings()

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

createExclusionSettings()

public UnaryCallSettings<CreateExclusionRequest,LogExclusion> createExclusionSettings()

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

createLinkOperationSettings()

public OperationCallSettings<CreateLinkRequest,Link,LinkMetadata> createLinkOperationSettings()

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

createLinkSettings()

public UnaryCallSettings<CreateLinkRequest,Operation> createLinkSettings()

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

createSinkSettings()

public UnaryCallSettings<CreateSinkRequest,LogSink> createSinkSettings()

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

createStub()

public ConfigServiceV2Stub createStub()
Returns
TypeDescription
ConfigServiceV2Stub
Exceptions
TypeDescription
IOException

createViewSettings()

public UnaryCallSettings<CreateViewRequest,LogView> createViewSettings()

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

deleteBucketSettings()

public UnaryCallSettings<DeleteBucketRequest,Empty> deleteBucketSettings()

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

deleteExclusionSettings()

public UnaryCallSettings<DeleteExclusionRequest,Empty> deleteExclusionSettings()

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

deleteLinkOperationSettings()

public OperationCallSettings<DeleteLinkRequest,Empty,LinkMetadata> deleteLinkOperationSettings()

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

deleteLinkSettings()

public UnaryCallSettings<DeleteLinkRequest,Operation> deleteLinkSettings()

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

deleteSinkSettings()

public UnaryCallSettings<DeleteSinkRequest,Empty> deleteSinkSettings()

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

deleteViewSettings()

public UnaryCallSettings<DeleteViewRequest,Empty> deleteViewSettings()

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

getBucketSettings()

public UnaryCallSettings<GetBucketRequest,LogBucket> getBucketSettings()

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

getCmekSettingsSettings()

public UnaryCallSettings<GetCmekSettingsRequest,CmekSettings> getCmekSettingsSettings()

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

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getExclusionSettings()

public UnaryCallSettings<GetExclusionRequest,LogExclusion> getExclusionSettings()

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

getLinkSettings()

public UnaryCallSettings<GetLinkRequest,Link> getLinkSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetLinkRequest,Link>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

getSettingsSettings()

public UnaryCallSettings<GetSettingsRequest,Settings> getSettingsSettings()

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

getSinkSettings()

public UnaryCallSettings<GetSinkRequest,LogSink> getSinkSettings()

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

getViewSettings()

public UnaryCallSettings<GetViewRequest,LogView> getViewSettings()

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

listBucketsSettings()

public PagedCallSettings<ListBucketsRequest,ListBucketsResponse,ConfigClient.ListBucketsPagedResponse> listBucketsSettings()

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

listExclusionsSettings()

public PagedCallSettings<ListExclusionsRequest,ListExclusionsResponse,ConfigClient.ListExclusionsPagedResponse> listExclusionsSettings()

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

listLinksSettings()

public PagedCallSettings<ListLinksRequest,ListLinksResponse,ConfigClient.ListLinksPagedResponse> listLinksSettings()

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

listSinksSettings()

public PagedCallSettings<ListSinksRequest,ListSinksResponse,ConfigClient.ListSinksPagedResponse> listSinksSettings()

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

listViewsSettings()

public PagedCallSettings<ListViewsRequest,ListViewsResponse,ConfigClient.ListViewsPagedResponse> listViewsSettings()

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

toBuilder()

public ConfigServiceV2StubSettings.Builder toBuilder()

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

Overrides

undeleteBucketSettings()

public UnaryCallSettings<UndeleteBucketRequest,Empty> undeleteBucketSettings()

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

updateBucketAsyncOperationSettings()

public OperationCallSettings<UpdateBucketRequest,LogBucket,BucketMetadata> updateBucketAsyncOperationSettings()

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

updateBucketAsyncSettings()

public UnaryCallSettings<UpdateBucketRequest,Operation> updateBucketAsyncSettings()

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

updateBucketSettings()

public UnaryCallSettings<UpdateBucketRequest,LogBucket> updateBucketSettings()

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

updateCmekSettingsSettings()

public UnaryCallSettings<UpdateCmekSettingsRequest,CmekSettings> updateCmekSettingsSettings()

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

updateExclusionSettings()

public UnaryCallSettings<UpdateExclusionRequest,LogExclusion> updateExclusionSettings()

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

updateSettingsSettings()

public UnaryCallSettings<UpdateSettingsRequest,Settings> updateSettingsSettings()

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

updateSinkSettings()

public UnaryCallSettings<UpdateSinkRequest,LogSink> updateSinkSettings()

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

updateViewSettings()

public UnaryCallSettings<UpdateViewRequest,LogView> updateViewSettings()

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