Class ServiceUsageStubSettings.Builder

    • Constructor Detail

      • Builder

        protected Builder()
      • Builder

        protected Builder​(com.google.api.gax.rpc.ClientContext clientContext)
    • Method Detail

      • applyToAllUnaryMethods

        public ServiceUsageStubSettings.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()
      • enableServiceSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<EnableServiceRequest,​com.google.longrunning.Operation> enableServiceSettings()
        Returns the builder for the settings used for calls to enableService.
      • enableServiceOperationSettings

        @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
        public com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,​EnableServiceResponse,​OperationMetadata> enableServiceOperationSettings()
        Returns the builder for the settings used for calls to enableService.
      • disableServiceSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<DisableServiceRequest,​com.google.longrunning.Operation> disableServiceSettings()
        Returns the builder for the settings used for calls to disableService.
      • disableServiceOperationSettings

        @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
        public com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,​DisableServiceResponse,​OperationMetadata> disableServiceOperationSettings()
        Returns the builder for the settings used for calls to disableService.
      • getServiceSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceRequest,​Service> getServiceSettings()
        Returns the builder for the settings used for calls to getService.
      • batchEnableServicesSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchEnableServicesRequest,​com.google.longrunning.Operation> batchEnableServicesSettings()
        Returns the builder for the settings used for calls to batchEnableServices.
      • batchEnableServicesOperationSettings

        @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
        public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchEnableServicesRequest,​BatchEnableServicesResponse,​OperationMetadata> batchEnableServicesOperationSettings()
        Returns the builder for the settings used for calls to batchEnableServices.
      • batchGetServicesSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchGetServicesRequest,​BatchGetServicesResponse> batchGetServicesSettings()
        Returns the builder for the settings used for calls to batchGetServices.