@Override public OperationsStubSettings build() throws IOException { return new OperationsStubSettings(this); } }
/** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { return OperationsStubSettings.defaultCredentialsProviderBuilder(); }
/** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return OperationsStubSettings.defaultExecutorProviderBuilder(); }
getOperationTransportSettings, settings.getOperationSettings(), clientContext); this.listOperationsCallable = callableFactory.createUnaryCallable( listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); this.listOperationsPagedCallable = callableFactory.createPagedCallable( listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); this.cancelOperationCallable = callableFactory.createUnaryCallable( cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); this.deleteOperationCallable = callableFactory.createUnaryCallable( deleteOperationTransportSettings, settings.deleteOperationSettings(), clientContext);
/** Returns the object with the settings used for calls to listOperations. */ public PagedCallSettings< ListOperationsRequest, ListOperationsResponse, ListOperationsPagedResponse> listOperationsSettings() { return ((OperationsStubSettings) getStubSettings()).listOperationsSettings(); }
/** * Constructs an instance of OperationsClient, using the given settings. This is protected so that * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. */ protected OperationsClient(OperationsSettings settings) throws IOException { this.settings = settings; this.stub = ((OperationsStubSettings) settings.getStubSettings()).createStub(); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public OperationsStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcOperationsStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
/** Returns the object with the settings used for calls to deleteOperation. */ public UnaryCallSettings<DeleteOperationRequest, Empty> deleteOperationSettings() { return ((OperationsStubSettings) getStubSettings()).deleteOperationSettings(); }
/** Returns the object with the settings used for calls to cancelOperation. */ public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() { return ((OperationsStubSettings) getStubSettings()).cancelOperationSettings(); }
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return OperationsStubSettings.defaultApiClientHeaderProviderBuilder(); }
/** Returns the object with the settings used for calls to getOperation. */ public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() { return ((OperationsStubSettings) getStubSettings()).getOperationSettings(); }
getOperationTransportSettings, settings.getOperationSettings(), clientContext); this.listOperationsCallable = callableFactory.createUnaryCallable( listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); this.listOperationsPagedCallable = callableFactory.createPagedCallable( listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); this.cancelOperationCallable = callableFactory.createUnaryCallable( cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); this.deleteOperationCallable = callableFactory.createUnaryCallable( deleteOperationTransportSettings, settings.deleteOperationSettings(), clientContext);
/** Returns the object with the settings used for calls to listOperations. */ public PagedCallSettings< ListOperationsRequest, ListOperationsResponse, ListOperationsPagedResponse> listOperationsSettings() { return ((OperationsStubSettings) getStubSettings()).listOperationsSettings(); }
/** * Constructs an instance of OperationsClient, using the given settings. This is protected so that * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. */ protected OperationsClient(OperationsSettings settings) throws IOException { this.settings = settings; this.stub = ((OperationsStubSettings) settings.getStubSettings()).createStub(); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public OperationsStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcOperationsStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
/** Returns the object with the settings used for calls to deleteOperation. */ public UnaryCallSettings<DeleteOperationRequest, Empty> deleteOperationSettings() { return ((OperationsStubSettings) getStubSettings()).deleteOperationSettings(); }
/** Returns the object with the settings used for calls to cancelOperation. */ public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() { return ((OperationsStubSettings) getStubSettings()).cancelOperationSettings(); }
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return OperationsStubSettings.defaultApiClientHeaderProviderBuilder(); }
/** Returns the object with the settings used for calls to getOperation. */ public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() { return ((OperationsStubSettings) getStubSettings()).getOperationSettings(); }
/** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return OperationsStubSettings.defaultExecutorProviderBuilder(); }