/** Returns the object with the settings used for calls to listOperations. */ public PagedCallSettings< ListOperationsRequest, ListOperationsResponse, ListOperationsPagedResponse> listOperationsSettings() { return ((OperationsStubSettings) getStubSettings()).listOperationsSettings(); }
@Override public OperationsSettings build() throws IOException { return new OperationsSettings(this); } }
pollingAlgorithm = OperationTimedPollAlgorithm.create(FAST_RETRY_SETTINGS, clock); OperationsSettings.Builder settingsBuilder = OperationsSettings.newBuilder(); settingsBuilder .getOperationSettings() .setRetrySettings(FAST_RETRY_SETTINGS.toBuilder().setMaxAttempts(1).build()); OperationsSettings settings = OperationsSettings.newBuilder() .setTransportChannelProvider(operationsChannelProvider) .build(); operationsStub = GrpcOperationsStub.create(((OperationsStubSettings) settings.getStubSettings()));
@Before public void setUp() throws IOException { serviceHelper.reset(); channelProvider = serviceHelper.createChannelProvider(); OperationsSettings settings = OperationsSettings.newBuilder() .setTransportChannelProvider(channelProvider) .setCredentialsProvider(NoCredentialsProvider.create()) .build(); client = OperationsClient.create(settings); }
FixedChannelProvider channelProvider = FixedChannelProvider.create(this.channel); OperationsSettings operationsSettings = OperationsSettings.defaultBuilder() .setExecutorProvider(executorProvider) .setChannelProvider(channelProvider)
/** Returns the object with the settings used for calls to listOperations. */ public PagedCallSettings< ListOperationsRequest, ListOperationsResponse, ListOperationsPagedResponse> listOperationsSettings() { return ((OperationsStubSettings) getStubSettings()).listOperationsSettings(); }
@Override public OperationsSettings build() throws IOException { return new OperationsSettings(this); } }
/** * 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(); }
/** * 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(); }
/** Returns the object with the settings used for calls to getOperation. */ public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() { return ((OperationsStubSettings) getStubSettings()).getOperationSettings(); }
/** Returns the object with the settings used for calls to cancelOperation. */ public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() { return ((OperationsStubSettings) getStubSettings()).cancelOperationSettings(); }
/** 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 getOperation. */ public UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings() { return ((OperationsStubSettings) getStubSettings()).getOperationSettings(); }
/** Returns the object with the settings used for calls to deleteOperation. */ public UnaryCallSettings<DeleteOperationRequest, Empty> deleteOperationSettings() { return ((OperationsStubSettings) getStubSettings()).deleteOperationSettings(); }
protected Builder(OperationsSettings settings) { super(settings.getStubSettings().toBuilder()); }
/** Returns the object with the settings used for calls to cancelOperation. */ public UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings() { return ((OperationsStubSettings) getStubSettings()).cancelOperationSettings(); }
protected Builder(OperationsSettings settings) { super(settings.getStubSettings().toBuilder()); }