Class GrafeasV1Beta1Settings (2.81.0)

publicclass GrafeasV1Beta1SettingsextendsClientSettings<GrafeasV1Beta1Settings>

Settings class to configure an instance of GrafeasV1Beta1Client.

The default instance has everything set to sensible defaults:

  • The default service address (containeranalysis.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 RetrySettings of getOccurrence:


// 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
GrafeasV1Beta1Settings.BuildergrafeasV1Beta1SettingsBuilder=
GrafeasV1Beta1Settings.newBuilder();
grafeasV1Beta1SettingsBuilder
.getOccurrenceSettings()
.setRetrySettings(
grafeasV1Beta1SettingsBuilder
.getOccurrenceSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
GrafeasV1Beta1SettingsgrafeasV1Beta1Settings=grafeasV1Beta1SettingsBuilder.build();

Please refer to the Client Side Retry Guide for additional support in setting retries.

Inheritance

java.lang.Object > ClientSettings > GrafeasV1Beta1Settings

Inherited Members

Static Methods

create(GrafeasV1Beta1StubSettings stub)

publicstaticfinalGrafeasV1Beta1Settingscreate(GrafeasV1Beta1StubSettingsstub)
Parameter
Name Description
stub GrafeasV1Beta1StubSettings
Returns
Type Description
GrafeasV1Beta1Settings
Exceptions
Type Description
IOException

defaultApiClientHeaderProviderBuilder()

publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()

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

Returns
Type Description
Builder

defaultTransportChannelProvider()

publicstaticTransportChannelProviderdefaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

publicstaticStringgetDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

publicstaticList<String>getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

publicstaticGrafeasV1Beta1Settings.BuildernewBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
GrafeasV1Beta1Settings.Builder

newBuilder(ClientContext clientContext)

publicstaticGrafeasV1Beta1Settings.BuildernewBuilder(ClientContextclientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrafeasV1Beta1Settings.Builder

newHttpJsonBuilder()

publicstaticGrafeasV1Beta1Settings.BuildernewHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
GrafeasV1Beta1Settings.Builder

Constructors

GrafeasV1Beta1Settings(GrafeasV1Beta1Settings.Builder settingsBuilder)

protectedGrafeasV1Beta1Settings(GrafeasV1Beta1Settings.BuildersettingsBuilder)
Parameter
Name Description
settingsBuilder GrafeasV1Beta1Settings.Builder

Methods

batchCreateNotesSettings()

publicUnaryCallSettings<BatchCreateNotesRequest,BatchCreateNotesResponse>batchCreateNotesSettings()

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

Returns
Type Description
UnaryCallSettings<BatchCreateNotesRequest,BatchCreateNotesResponse>

batchCreateOccurrencesSettings()

publicUnaryCallSettings<BatchCreateOccurrencesRequest,BatchCreateOccurrencesResponse>batchCreateOccurrencesSettings()

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

Returns
Type Description
UnaryCallSettings<BatchCreateOccurrencesRequest,BatchCreateOccurrencesResponse>

createNoteSettings()

publicUnaryCallSettings<CreateNoteRequest,Note>createNoteSettings()

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

Returns
Type Description
UnaryCallSettings<CreateNoteRequest,Note>

createOccurrenceSettings()

publicUnaryCallSettings<CreateOccurrenceRequest,Occurrence>createOccurrenceSettings()

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

Returns
Type Description
UnaryCallSettings<CreateOccurrenceRequest,Occurrence>

deleteNoteSettings()

publicUnaryCallSettings<DeleteNoteRequest,Empty>deleteNoteSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteNoteRequest,Empty>

deleteOccurrenceSettings()

publicUnaryCallSettings<DeleteOccurrenceRequest,Empty>deleteOccurrenceSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteOccurrenceRequest,Empty>

getNoteSettings()

publicUnaryCallSettings<GetNoteRequest,Note>getNoteSettings()

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

Returns
Type Description
UnaryCallSettings<GetNoteRequest,Note>

getOccurrenceNoteSettings()

publicUnaryCallSettings<GetOccurrenceNoteRequest,Note>getOccurrenceNoteSettings()

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

Returns
Type Description
UnaryCallSettings<GetOccurrenceNoteRequest,Note>

getOccurrenceSettings()

publicUnaryCallSettings<GetOccurrenceRequest,Occurrence>getOccurrenceSettings()

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

Returns
Type Description
UnaryCallSettings<GetOccurrenceRequest,Occurrence>

getVulnerabilityOccurrencesSummarySettings()

publicUnaryCallSettings<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary>getVulnerabilityOccurrencesSummarySettings()

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

Returns
Type Description
UnaryCallSettings<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary>

listNoteOccurrencesSettings()

publicPagedCallSettings<ListNoteOccurrencesRequest,ListNoteOccurrencesResponse,GrafeasV1Beta1Client.ListNoteOccurrencesPagedResponse>listNoteOccurrencesSettings()

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

Returns
Type Description
PagedCallSettings<ListNoteOccurrencesRequest,ListNoteOccurrencesResponse,ListNoteOccurrencesPagedResponse>

listNotesSettings()

publicPagedCallSettings<ListNotesRequest,ListNotesResponse,GrafeasV1Beta1Client.ListNotesPagedResponse>listNotesSettings()

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

Returns
Type Description
PagedCallSettings<ListNotesRequest,ListNotesResponse,ListNotesPagedResponse>

listOccurrencesSettings()

publicPagedCallSettings<ListOccurrencesRequest,ListOccurrencesResponse,GrafeasV1Beta1Client.ListOccurrencesPagedResponse>listOccurrencesSettings()

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

Returns
Type Description
PagedCallSettings<ListOccurrencesRequest,ListOccurrencesResponse,ListOccurrencesPagedResponse>

toBuilder()

publicGrafeasV1Beta1Settings.BuildertoBuilder()

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

Returns
Type Description
GrafeasV1Beta1Settings.Builder
Overrides

updateNoteSettings()

publicUnaryCallSettings<UpdateNoteRequest,Note>updateNoteSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateNoteRequest,Note>

updateOccurrenceSettings()

publicUnaryCallSettings<UpdateOccurrenceRequest,Occurrence>updateOccurrenceSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateOccurrenceRequest,Occurrence>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.