@Override public Operation getOperation(String name) throws SpannerException { GetOperationRequest request = GetOperationRequest.newBuilder().setName(name).build(); GrpcCallContext context = newCallContext(null, name); return get( databaseAdminStub.getOperationsStub().getOperationCallable().futureCall(request, context)); }
@Override public boolean shouldRetry( Throwable prevThrowable, com.google.longrunning.Operation prevResponse) { if (prevResponse != null) { return !prevResponse.getDone(); } if (prevThrowable instanceof SpannerException) { SpannerException spannerException = (SpannerException) prevThrowable; return spannerException.getErrorCode() != ErrorCode.NOT_FOUND && spannerException.isRetryable(); } return false; } },
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudRedisClient(CloudRedisStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudRedisClient(CloudRedisStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AgentsClient(AgentsStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected DatabaseAdminClient(DatabaseAdminStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected EntityTypesClient(EntityTypesStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AgentsClient(AgentsStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SpeechClient(SpeechStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected IntentsClient(IntentsStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceAdminClient(InstanceAdminStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected IntentsClient(IntentsStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BaseBigtableInstanceAdminClient(BigtableInstanceAdminStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ClusterControllerClient(ClusterControllerStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected EntityTypesClient(EntityTypesStub stub) { this.settings = null; this.stub = stub; this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); }