public static class MetricServiceSettings.Builder extends ClientSettings.Builder<MetricServiceSettings,MetricServiceSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(MetricServiceSettings settings) |
protected |
Builder(MetricServiceStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
MetricServiceSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
MetricServiceSettings |
build() |
UnaryCallSettings.Builder<com.google.monitoring.v3.CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> |
createMetricDescriptorSettings()
Returns the builder for the settings used for calls to createMetricDescriptor.
|
UnaryCallSettings.Builder<com.google.monitoring.v3.CreateTimeSeriesRequest,Empty> |
createTimeSeriesSettings()
Returns the builder for the settings used for calls to createTimeSeries.
|
UnaryCallSettings.Builder<com.google.monitoring.v3.DeleteMetricDescriptorRequest,Empty> |
deleteMetricDescriptorSettings()
Returns the builder for the settings used for calls to deleteMetricDescriptor.
|
UnaryCallSettings.Builder<com.google.monitoring.v3.GetMetricDescriptorRequest,com.google.api.MetricDescriptor> |
getMetricDescriptorSettings()
Returns the builder for the settings used for calls to getMetricDescriptor.
|
UnaryCallSettings.Builder<com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> |
getMonitoredResourceDescriptorSettings()
Returns the builder for the settings used for calls to getMonitoredResourceDescriptor.
|
MetricServiceStubSettings.Builder |
getStubSettingsBuilder() |
PagedCallSettings.Builder<com.google.monitoring.v3.ListMetricDescriptorsRequest,com.google.monitoring.v3.ListMetricDescriptorsResponse,MetricServiceClient.ListMetricDescriptorsPagedResponse> |
listMetricDescriptorsSettings()
Returns the builder for the settings used for calls to listMetricDescriptors.
|
PagedCallSettings.Builder<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> |
listMonitoredResourceDescriptorsSettings()
Returns the builder for the settings used for calls to listMonitoredResourceDescriptors.
|
PagedCallSettings.Builder<com.google.monitoring.v3.ListTimeSeriesRequest,com.google.monitoring.v3.ListTimeSeriesResponse,MetricServiceClient.ListTimeSeriesPagedResponse> |
listTimeSeriesSettings()
Returns the builder for the settings used for calls to listTimeSeries.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(MetricServiceSettings settings)
protected Builder(MetricServiceStubSettings.Builder stubSettings)
public MetricServiceStubSettings.Builder getStubSettingsBuilder()
public MetricServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public PagedCallSettings.Builder<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsSettings()
public UnaryCallSettings.Builder<com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> getMonitoredResourceDescriptorSettings()
public PagedCallSettings.Builder<com.google.monitoring.v3.ListMetricDescriptorsRequest,com.google.monitoring.v3.ListMetricDescriptorsResponse,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsSettings()
public UnaryCallSettings.Builder<com.google.monitoring.v3.GetMetricDescriptorRequest,com.google.api.MetricDescriptor> getMetricDescriptorSettings()
public UnaryCallSettings.Builder<com.google.monitoring.v3.CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> createMetricDescriptorSettings()
public UnaryCallSettings.Builder<com.google.monitoring.v3.DeleteMetricDescriptorRequest,Empty> deleteMetricDescriptorSettings()
public PagedCallSettings.Builder<com.google.monitoring.v3.ListTimeSeriesRequest,com.google.monitoring.v3.ListTimeSeriesResponse,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesSettings()
public UnaryCallSettings.Builder<com.google.monitoring.v3.CreateTimeSeriesRequest,Empty> createTimeSeriesSettings()
public MetricServiceSettings build() throws IOException
build
in class ClientSettings.Builder<MetricServiceSettings,MetricServiceSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.