All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.bridge.proto.StargateBridgeBean Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
package io.stargate.bridge.proto;

import io.grpc.BindableService;
import io.quarkus.grpc.GrpcService;
import io.quarkus.grpc.MutinyBean;

@jakarta.annotation.Generated(value = "by Mutiny Grpc generator", comments = "Source: bridge.proto")
public class StargateBridgeBean extends MutinyStargateBridgeGrpc.StargateBridgeImplBase implements BindableService, MutinyBean {

    private final StargateBridge delegate;

    StargateBridgeBean(@GrpcService StargateBridge delegate) {
        this.delegate = delegate;
    }

    @Override
    public io.smallrye.mutiny.Uni executeQuery(io.stargate.bridge.proto.QueryOuterClass.Query request) {
        try {
            return delegate.executeQuery(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }

    @Override
    public io.smallrye.mutiny.Uni executeQueryWithSchema(io.stargate.bridge.proto.Schema.QueryWithSchema request) {
        try {
            return delegate.executeQueryWithSchema(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }

    @Override
    public io.smallrye.mutiny.Uni executeBatch(io.stargate.bridge.proto.QueryOuterClass.Batch request) {
        try {
            return delegate.executeBatch(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }

    @Override
    public io.smallrye.mutiny.Uni describeKeyspace(io.stargate.bridge.proto.Schema.DescribeKeyspaceQuery request) {
        try {
            return delegate.describeKeyspace(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }

    @Override
    public io.smallrye.mutiny.Uni authorizeSchemaReads(io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsRequest request) {
        try {
            return delegate.authorizeSchemaReads(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }

    @Override
    public io.smallrye.mutiny.Uni getSupportedFeatures(io.stargate.bridge.proto.Schema.SupportedFeaturesRequest request) {
        try {
            return delegate.getSupportedFeatures(request);
        } catch (UnsupportedOperationException e) {
            throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy