Class MetricServiceStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<MetricServiceStubSettings,MetricServiceStubSettings.Builder>
-
- com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings.Builder
-
- Enclosing class:
- MetricServiceStubSettings
public static class MetricServiceStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<MetricServiceStubSettings,MetricServiceStubSettings.Builder>
Builder for MetricServiceStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(MetricServiceStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricServiceStubSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.MetricServiceStubSettings
build()
com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateMetricDescriptorRequest,com.google.api.MetricDescriptor>
createMetricDescriptorSettings()
Returns the builder for the settings used for calls to createMetricDescriptor.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTimeSeriesRequest,com.google.protobuf.Empty>
createServiceTimeSeriesSettings()
Returns the builder for the settings used for calls to createServiceTimeSeries.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTimeSeriesRequest,com.google.protobuf.Empty>
createTimeSeriesSettings()
Returns the builder for the settings used for calls to createTimeSeries.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteMetricDescriptorRequest,com.google.protobuf.Empty>
deleteMetricDescriptorSettings()
Returns the builder for the settings used for calls to deleteMetricDescriptor.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetMetricDescriptorRequest,com.google.api.MetricDescriptor>
getMetricDescriptorSettings()
Returns the builder for the settings used for calls to getMetricDescriptor.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor>
getMonitoredResourceDescriptorSettings()
Returns the builder for the settings used for calls to getMonitoredResourceDescriptor.com.google.api.gax.rpc.PagedCallSettings.Builder<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse,MetricServiceClient.ListMetricDescriptorsPagedResponse>
listMetricDescriptorsSettings()
Returns the builder for the settings used for calls to listMetricDescriptors.com.google.api.gax.rpc.PagedCallSettings.Builder<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse>
listMonitoredResourceDescriptorsSettings()
Returns the builder for the settings used for calls to listMonitoredResourceDescriptors.com.google.api.gax.rpc.PagedCallSettings.Builder<ListTimeSeriesRequest,ListTimeSeriesResponse,MetricServiceClient.ListTimeSeriesPagedResponse>
listTimeSeriesSettings()
Returns the builder for the settings used for calls to listTimeSeries.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(MetricServiceStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public MetricServiceStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
listMonitoredResourceDescriptorsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsSettings()
Returns the builder for the settings used for calls to listMonitoredResourceDescriptors.
-
getMonitoredResourceDescriptorSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> getMonitoredResourceDescriptorSettings()
Returns the builder for the settings used for calls to getMonitoredResourceDescriptor.
-
listMetricDescriptorsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsSettings()
Returns the builder for the settings used for calls to listMetricDescriptors.
-
getMetricDescriptorSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetMetricDescriptorRequest,com.google.api.MetricDescriptor> getMetricDescriptorSettings()
Returns the builder for the settings used for calls to getMetricDescriptor.
-
createMetricDescriptorSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> createMetricDescriptorSettings()
Returns the builder for the settings used for calls to createMetricDescriptor.
-
deleteMetricDescriptorSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteMetricDescriptorRequest,com.google.protobuf.Empty> deleteMetricDescriptorSettings()
Returns the builder for the settings used for calls to deleteMetricDescriptor.
-
listTimeSeriesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTimeSeriesRequest,ListTimeSeriesResponse,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesSettings()
Returns the builder for the settings used for calls to listTimeSeries.
-
createTimeSeriesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTimeSeriesRequest,com.google.protobuf.Empty> createTimeSeriesSettings()
Returns the builder for the settings used for calls to createTimeSeries.
-
createServiceTimeSeriesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateTimeSeriesRequest,com.google.protobuf.Empty> createServiceTimeSeriesSettings()
Returns the builder for the settings used for calls to createServiceTimeSeries.
-
build
public MetricServiceStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<MetricServiceStubSettings,MetricServiceStubSettings.Builder>
- Throws:
IOException
-
-