tech.figure.objectstore.gateway.GatewayGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
A library for interacting with the Figure Tech Object Store Gateway
The newest version!
package tech.figure.objectstore.gateway;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.57.2)",
comments = "Source: tech/figure/objectstore/gateway/gateway.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class GatewayGrpc {
private GatewayGrpc() {}
public static final java.lang.String SERVICE_NAME = "tech.figure.objectstore.gateway.Gateway";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getFetchObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchObject",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFetchObjectMethod() {
io.grpc.MethodDescriptor getFetchObjectMethod;
if ((getFetchObjectMethod = GatewayGrpc.getFetchObjectMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getFetchObjectMethod = GatewayGrpc.getFetchObjectMethod) == null) {
GatewayGrpc.getFetchObjectMethod = getFetchObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("FetchObject"))
.build();
}
}
}
return getFetchObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getPutObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PutObject",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPutObjectMethod() {
io.grpc.MethodDescriptor getPutObjectMethod;
if ((getPutObjectMethod = GatewayGrpc.getPutObjectMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getPutObjectMethod = GatewayGrpc.getPutObjectMethod) == null) {
GatewayGrpc.getPutObjectMethod = getPutObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PutObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("PutObject"))
.build();
}
}
}
return getPutObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getRegisterExistingObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterExistingObject",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRegisterExistingObjectMethod() {
io.grpc.MethodDescriptor getRegisterExistingObjectMethod;
if ((getRegisterExistingObjectMethod = GatewayGrpc.getRegisterExistingObjectMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getRegisterExistingObjectMethod = GatewayGrpc.getRegisterExistingObjectMethod) == null) {
GatewayGrpc.getRegisterExistingObjectMethod = getRegisterExistingObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterExistingObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("RegisterExistingObject"))
.build();
}
}
}
return getRegisterExistingObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getFetchObjectByHashMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchObjectByHash",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFetchObjectByHashMethod() {
io.grpc.MethodDescriptor getFetchObjectByHashMethod;
if ((getFetchObjectByHashMethod = GatewayGrpc.getFetchObjectByHashMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getFetchObjectByHashMethod = GatewayGrpc.getFetchObjectByHashMethod) == null) {
GatewayGrpc.getFetchObjectByHashMethod = getFetchObjectByHashMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchObjectByHash"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("FetchObjectByHash"))
.build();
}
}
}
return getFetchObjectByHashMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantObjectPermissionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GrantObjectPermissions",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGrantObjectPermissionsMethod() {
io.grpc.MethodDescriptor getGrantObjectPermissionsMethod;
if ((getGrantObjectPermissionsMethod = GatewayGrpc.getGrantObjectPermissionsMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getGrantObjectPermissionsMethod = GatewayGrpc.getGrantObjectPermissionsMethod) == null) {
GatewayGrpc.getGrantObjectPermissionsMethod = getGrantObjectPermissionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GrantObjectPermissions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("GrantObjectPermissions"))
.build();
}
}
}
return getGrantObjectPermissionsMethod;
}
private static volatile io.grpc.MethodDescriptor getBatchGrantObjectPermissionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchGrantObjectPermissions",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getBatchGrantObjectPermissionsMethod() {
io.grpc.MethodDescriptor getBatchGrantObjectPermissionsMethod;
if ((getBatchGrantObjectPermissionsMethod = GatewayGrpc.getBatchGrantObjectPermissionsMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getBatchGrantObjectPermissionsMethod = GatewayGrpc.getBatchGrantObjectPermissionsMethod) == null) {
GatewayGrpc.getBatchGrantObjectPermissionsMethod = getBatchGrantObjectPermissionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGrantObjectPermissions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("BatchGrantObjectPermissions"))
.build();
}
}
}
return getBatchGrantObjectPermissionsMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeObjectPermissionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RevokeObjectPermissions",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokeObjectPermissionsMethod() {
io.grpc.MethodDescriptor getRevokeObjectPermissionsMethod;
if ((getRevokeObjectPermissionsMethod = GatewayGrpc.getRevokeObjectPermissionsMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getRevokeObjectPermissionsMethod = GatewayGrpc.getRevokeObjectPermissionsMethod) == null) {
GatewayGrpc.getRevokeObjectPermissionsMethod = getRevokeObjectPermissionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeObjectPermissions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("RevokeObjectPermissions"))
.build();
}
}
}
return getRevokeObjectPermissionsMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantScopePermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GrantScopePermission",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGrantScopePermissionMethod() {
io.grpc.MethodDescriptor getGrantScopePermissionMethod;
if ((getGrantScopePermissionMethod = GatewayGrpc.getGrantScopePermissionMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getGrantScopePermissionMethod = GatewayGrpc.getGrantScopePermissionMethod) == null) {
GatewayGrpc.getGrantScopePermissionMethod = getGrantScopePermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GrantScopePermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("GrantScopePermission"))
.build();
}
}
}
return getGrantScopePermissionMethod;
}
private static volatile io.grpc.MethodDescriptor getBatchGrantScopePermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchGrantScopePermission",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBatchGrantScopePermissionMethod() {
io.grpc.MethodDescriptor getBatchGrantScopePermissionMethod;
if ((getBatchGrantScopePermissionMethod = GatewayGrpc.getBatchGrantScopePermissionMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getBatchGrantScopePermissionMethod = GatewayGrpc.getBatchGrantScopePermissionMethod) == null) {
GatewayGrpc.getBatchGrantScopePermissionMethod = getBatchGrantScopePermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGrantScopePermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("BatchGrantScopePermission"))
.build();
}
}
}
return getBatchGrantScopePermissionMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeScopePermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RevokeScopePermission",
requestType = tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.class,
responseType = tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokeScopePermissionMethod() {
io.grpc.MethodDescriptor getRevokeScopePermissionMethod;
if ((getRevokeScopePermissionMethod = GatewayGrpc.getRevokeScopePermissionMethod) == null) {
synchronized (GatewayGrpc.class) {
if ((getRevokeScopePermissionMethod = GatewayGrpc.getRevokeScopePermissionMethod) == null) {
GatewayGrpc.getRevokeScopePermissionMethod = getRevokeScopePermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeScopePermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse.getDefaultInstance()))
.setSchemaDescriptor(new GatewayMethodDescriptorSupplier("RevokeScopePermission"))
.build();
}
}
}
return getRevokeScopePermissionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static GatewayStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GatewayStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayStub(channel, callOptions);
}
};
return GatewayStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static GatewayBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GatewayBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayBlockingStub(channel, callOptions);
}
};
return GatewayBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static GatewayFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GatewayFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayFutureStub(channel, callOptions);
}
};
return GatewayFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void fetchObject(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchObjectMethod(), responseObserver);
}
/**
*/
default void putObject(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPutObjectMethod(), responseObserver);
}
/**
*/
default void registerExistingObject(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterExistingObjectMethod(), responseObserver);
}
/**
*/
default void fetchObjectByHash(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchObjectByHashMethod(), responseObserver);
}
/**
*/
default void grantObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantObjectPermissionsMethod(), responseObserver);
}
/**
*/
default void batchGrantObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGrantObjectPermissionsMethod(), responseObserver);
}
/**
*/
default void revokeObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeObjectPermissionsMethod(), responseObserver);
}
/**
*/
default void grantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantScopePermissionMethod(), responseObserver);
}
/**
*/
default void batchGrantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGrantScopePermissionMethod(), responseObserver);
}
/**
*/
default void revokeScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeScopePermissionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Gateway.
*/
public static abstract class GatewayImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return GatewayGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Gateway.
*/
public static final class GatewayStub
extends io.grpc.stub.AbstractAsyncStub {
private GatewayStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GatewayStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayStub(channel, callOptions);
}
/**
*/
public void fetchObject(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getFetchObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void putObject(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPutObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void registerExistingObject(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRegisterExistingObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void fetchObjectByHash(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getFetchObjectByHashMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void grantObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGrantObjectPermissionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void batchGrantObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getBatchGrantObjectPermissionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void revokeObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokeObjectPermissionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void grantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGrantScopePermissionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void batchGrantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBatchGrantScopePermissionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void revokeScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokeScopePermissionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Gateway.
*/
public static final class GatewayBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private GatewayBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GatewayBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayBlockingStub(channel, callOptions);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse fetchObject(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFetchObjectMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse putObject(tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPutObjectMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse registerExistingObject(tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRegisterExistingObjectMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse fetchObjectByHash(tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFetchObjectByHashMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse grantObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantObjectPermissionsMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator batchGrantObjectPermissions(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getBatchGrantObjectPermissionsMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse revokeObjectPermissions(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeObjectPermissionsMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse grantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantScopePermissionMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse batchGrantScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBatchGrantScopePermissionMethod(), getCallOptions(), request);
}
/**
*/
public tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse revokeScopePermission(tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeScopePermissionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Gateway.
*/
public static final class GatewayFutureStub
extends io.grpc.stub.AbstractFutureStub {
private GatewayFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GatewayFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GatewayFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchObject(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFetchObjectMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture putObject(
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPutObjectMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture registerExistingObject(
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRegisterExistingObjectMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchObjectByHash(
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFetchObjectByHashMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture grantObjectPermissions(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGrantObjectPermissionsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture revokeObjectPermissions(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokeObjectPermissionsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture grantScopePermission(
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGrantScopePermissionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture batchGrantScopePermission(
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBatchGrantScopePermissionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture revokeScopePermission(
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokeScopePermissionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FETCH_OBJECT = 0;
private static final int METHODID_PUT_OBJECT = 1;
private static final int METHODID_REGISTER_EXISTING_OBJECT = 2;
private static final int METHODID_FETCH_OBJECT_BY_HASH = 3;
private static final int METHODID_GRANT_OBJECT_PERMISSIONS = 4;
private static final int METHODID_BATCH_GRANT_OBJECT_PERMISSIONS = 5;
private static final int METHODID_REVOKE_OBJECT_PERMISSIONS = 6;
private static final int METHODID_GRANT_SCOPE_PERMISSION = 7;
private static final int METHODID_BATCH_GRANT_SCOPE_PERMISSION = 8;
private static final int METHODID_REVOKE_SCOPE_PERMISSION = 9;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_FETCH_OBJECT:
serviceImpl.fetchObject((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PUT_OBJECT:
serviceImpl.putObject((tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REGISTER_EXISTING_OBJECT:
serviceImpl.registerExistingObject((tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_FETCH_OBJECT_BY_HASH:
serviceImpl.fetchObjectByHash((tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_OBJECT_PERMISSIONS:
serviceImpl.grantObjectPermissions((tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BATCH_GRANT_OBJECT_PERMISSIONS:
serviceImpl.batchGrantObjectPermissions((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_OBJECT_PERMISSIONS:
serviceImpl.revokeObjectPermissions((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_SCOPE_PERMISSION:
serviceImpl.grantScopePermission((tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BATCH_GRANT_SCOPE_PERMISSION:
serviceImpl.batchGrantScopePermission((tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_SCOPE_PERMISSION:
serviceImpl.revokeScopePermission((tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getFetchObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectResponse>(
service, METHODID_FETCH_OBJECT)))
.addMethod(
getPutObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.PutObjectResponse>(
service, METHODID_PUT_OBJECT)))
.addMethod(
getRegisterExistingObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.RegisterExistingObjectResponse>(
service, METHODID_REGISTER_EXISTING_OBJECT)))
.addMethod(
getFetchObjectByHashMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.FetchObjectByHashResponse>(
service, METHODID_FETCH_OBJECT_BY_HASH)))
.addMethod(
getGrantObjectPermissionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.GrantObjectPermissionsResponse>(
service, METHODID_GRANT_OBJECT_PERMISSIONS)))
.addMethod(
getBatchGrantObjectPermissionsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantObjectPermissionsResponse>(
service, METHODID_BATCH_GRANT_OBJECT_PERMISSIONS)))
.addMethod(
getRevokeObjectPermissionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeObjectPermissionsResponse>(
service, METHODID_REVOKE_OBJECT_PERMISSIONS)))
.addMethod(
getGrantScopePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.GrantScopePermissionResponse>(
service, METHODID_GRANT_SCOPE_PERMISSION)))
.addMethod(
getBatchGrantScopePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.BatchGrantScopePermissionResponse>(
service, METHODID_BATCH_GRANT_SCOPE_PERMISSION)))
.addMethod(
getRevokeScopePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionRequest,
tech.figure.objectstore.gateway.GatewayOuterClass.RevokeScopePermissionResponse>(
service, METHODID_REVOKE_SCOPE_PERMISSION)))
.build();
}
private static abstract class GatewayBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
GatewayBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return tech.figure.objectstore.gateway.GatewayOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Gateway");
}
}
private static final class GatewayFileDescriptorSupplier
extends GatewayBaseDescriptorSupplier {
GatewayFileDescriptorSupplier() {}
}
private static final class GatewayMethodDescriptorSupplier
extends GatewayBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
GatewayMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (GatewayGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new GatewayFileDescriptorSupplier())
.addMethod(getFetchObjectMethod())
.addMethod(getPutObjectMethod())
.addMethod(getRegisterExistingObjectMethod())
.addMethod(getFetchObjectByHashMethod())
.addMethod(getGrantObjectPermissionsMethod())
.addMethod(getBatchGrantObjectPermissionsMethod())
.addMethod(getRevokeObjectPermissionsMethod())
.addMethod(getGrantScopePermissionMethod())
.addMethod(getBatchGrantScopePermissionMethod())
.addMethod(getRevokeScopePermissionMethod())
.build();
}
}
}
return result;
}
}