Class LoggingSettings.Builder (3.16.2)

public static class LoggingSettings.Builder extends ClientSettings.Builder<LoggingSettings,LoggingSettings.Builder>

Builder for LoggingSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > LoggingSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(LoggingSettings settings)

protected Builder(LoggingSettings settings)
Parameter
NameDescription
settingsLoggingSettings

Builder(LoggingServiceV2StubSettings.Builder stubSettings)

protected Builder(LoggingServiceV2StubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsLoggingServiceV2StubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public LoggingSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
LoggingSettings.Builder

build()

public LoggingSettings build()
Returns
TypeDescription
LoggingSettings
Overrides
Exceptions
TypeDescription
IOException

deleteLogSettings()

public UnaryCallSettings.Builder<DeleteLogRequest,Empty> deleteLogSettings()

Returns the builder for the settings used for calls to deleteLog.

Returns
TypeDescription
Builder<DeleteLogRequest,Empty>

getStubSettingsBuilder()

public LoggingServiceV2StubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
LoggingServiceV2StubSettings.Builder

listLogEntriesSettings()

public PagedCallSettings.Builder<ListLogEntriesRequest,ListLogEntriesResponse,LoggingClient.ListLogEntriesPagedResponse> listLogEntriesSettings()

Returns the builder for the settings used for calls to listLogEntries.

Returns
TypeDescription
Builder<ListLogEntriesRequest,ListLogEntriesResponse,ListLogEntriesPagedResponse>

listLogsSettings()

public PagedCallSettings.Builder<ListLogsRequest,ListLogsResponse,LoggingClient.ListLogsPagedResponse> listLogsSettings()

Returns the builder for the settings used for calls to listLogs.

Returns
TypeDescription
Builder<ListLogsRequest,ListLogsResponse,ListLogsPagedResponse>

listMonitoredResourceDescriptorsSettings()

public PagedCallSettings.Builder<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse,LoggingClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsSettings()

Returns the builder for the settings used for calls to listMonitoredResourceDescriptors.

Returns
TypeDescription
Builder<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse,ListMonitoredResourceDescriptorsPagedResponse>

tailLogEntriesSettings()

public StreamingCallSettings.Builder<TailLogEntriesRequest,TailLogEntriesResponse> tailLogEntriesSettings()

Returns the builder for the settings used for calls to tailLogEntries.

Returns
TypeDescription
Builder<TailLogEntriesRequest,TailLogEntriesResponse>

writeLogEntriesSettings()

public BatchingCallSettings.Builder<WriteLogEntriesRequest,WriteLogEntriesResponse> writeLogEntriesSettings()

Returns the builder for the settings used for calls to writeLogEntries.

Returns
TypeDescription
Builder<WriteLogEntriesRequest,WriteLogEntriesResponse>