org.finos.tracdap.api.internal.TrustedMetadataApiGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracdap-api-services Show documentation
Show all versions of tracdap-api-services Show documentation
TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services
package org.finos.tracdap.api.internal;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.68.0)",
comments = "Source: tracdap/api/internal/metadata_trusted.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class TrustedMetadataApiGrpc {
private TrustedMetadataApiGrpc() {}
public static final java.lang.String SERVICE_NAME = "tracdap.api.internal.TrustedMetadataApi";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createObject",
requestType = org.finos.tracdap.api.MetadataWriteRequest.class,
responseType = org.finos.tracdap.metadata.TagHeader.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateObjectMethod() {
io.grpc.MethodDescriptor getCreateObjectMethod;
if ((getCreateObjectMethod = TrustedMetadataApiGrpc.getCreateObjectMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getCreateObjectMethod = TrustedMetadataApiGrpc.getCreateObjectMethod) == null) {
TrustedMetadataApiGrpc.getCreateObjectMethod = getCreateObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.TagHeader.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("createObject"))
.build();
}
}
}
return getCreateObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateObject",
requestType = org.finos.tracdap.api.MetadataWriteRequest.class,
responseType = org.finos.tracdap.metadata.TagHeader.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateObjectMethod() {
io.grpc.MethodDescriptor getUpdateObjectMethod;
if ((getUpdateObjectMethod = TrustedMetadataApiGrpc.getUpdateObjectMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getUpdateObjectMethod = TrustedMetadataApiGrpc.getUpdateObjectMethod) == null) {
TrustedMetadataApiGrpc.getUpdateObjectMethod = getUpdateObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.TagHeader.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("updateObject"))
.build();
}
}
}
return getUpdateObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTagMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "updateTag",
requestType = org.finos.tracdap.api.MetadataWriteRequest.class,
responseType = org.finos.tracdap.metadata.TagHeader.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateTagMethod() {
io.grpc.MethodDescriptor getUpdateTagMethod;
if ((getUpdateTagMethod = TrustedMetadataApiGrpc.getUpdateTagMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getUpdateTagMethod = TrustedMetadataApiGrpc.getUpdateTagMethod) == null) {
TrustedMetadataApiGrpc.getUpdateTagMethod = getUpdateTagMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "updateTag"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.TagHeader.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("updateTag"))
.build();
}
}
}
return getUpdateTagMethod;
}
private static volatile io.grpc.MethodDescriptor getPreallocateIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "preallocateId",
requestType = org.finos.tracdap.api.MetadataWriteRequest.class,
responseType = org.finos.tracdap.metadata.TagHeader.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPreallocateIdMethod() {
io.grpc.MethodDescriptor getPreallocateIdMethod;
if ((getPreallocateIdMethod = TrustedMetadataApiGrpc.getPreallocateIdMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getPreallocateIdMethod = TrustedMetadataApiGrpc.getPreallocateIdMethod) == null) {
TrustedMetadataApiGrpc.getPreallocateIdMethod = getPreallocateIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "preallocateId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.TagHeader.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("preallocateId"))
.build();
}
}
}
return getPreallocateIdMethod;
}
private static volatile io.grpc.MethodDescriptor getCreatePreallocatedObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createPreallocatedObject",
requestType = org.finos.tracdap.api.MetadataWriteRequest.class,
responseType = org.finos.tracdap.metadata.TagHeader.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreatePreallocatedObjectMethod() {
io.grpc.MethodDescriptor getCreatePreallocatedObjectMethod;
if ((getCreatePreallocatedObjectMethod = TrustedMetadataApiGrpc.getCreatePreallocatedObjectMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getCreatePreallocatedObjectMethod = TrustedMetadataApiGrpc.getCreatePreallocatedObjectMethod) == null) {
TrustedMetadataApiGrpc.getCreatePreallocatedObjectMethod = getCreatePreallocatedObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createPreallocatedObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.TagHeader.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("createPreallocatedObject"))
.build();
}
}
}
return getCreatePreallocatedObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getWriteBatchMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "writeBatch",
requestType = org.finos.tracdap.api.MetadataWriteBatchRequest.class,
responseType = org.finos.tracdap.api.MetadataWriteBatchResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getWriteBatchMethod() {
io.grpc.MethodDescriptor getWriteBatchMethod;
if ((getWriteBatchMethod = TrustedMetadataApiGrpc.getWriteBatchMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getWriteBatchMethod = TrustedMetadataApiGrpc.getWriteBatchMethod) == null) {
TrustedMetadataApiGrpc.getWriteBatchMethod = getWriteBatchMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "writeBatch"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteBatchRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataWriteBatchResponse.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("writeBatch"))
.build();
}
}
}
return getWriteBatchMethod;
}
private static volatile io.grpc.MethodDescriptor getReadObjectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "readObject",
requestType = org.finos.tracdap.api.MetadataReadRequest.class,
responseType = org.finos.tracdap.metadata.Tag.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReadObjectMethod() {
io.grpc.MethodDescriptor getReadObjectMethod;
if ((getReadObjectMethod = TrustedMetadataApiGrpc.getReadObjectMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getReadObjectMethod = TrustedMetadataApiGrpc.getReadObjectMethod) == null) {
TrustedMetadataApiGrpc.getReadObjectMethod = getReadObjectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "readObject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataReadRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.metadata.Tag.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("readObject"))
.build();
}
}
}
return getReadObjectMethod;
}
private static volatile io.grpc.MethodDescriptor getReadBatchMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "readBatch",
requestType = org.finos.tracdap.api.MetadataBatchRequest.class,
responseType = org.finos.tracdap.api.MetadataBatchResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReadBatchMethod() {
io.grpc.MethodDescriptor getReadBatchMethod;
if ((getReadBatchMethod = TrustedMetadataApiGrpc.getReadBatchMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getReadBatchMethod = TrustedMetadataApiGrpc.getReadBatchMethod) == null) {
TrustedMetadataApiGrpc.getReadBatchMethod = getReadBatchMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "readBatch"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataBatchRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataBatchResponse.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("readBatch"))
.build();
}
}
}
return getReadBatchMethod;
}
private static volatile io.grpc.MethodDescriptor getSearchMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "search",
requestType = org.finos.tracdap.api.MetadataSearchRequest.class,
responseType = org.finos.tracdap.api.MetadataSearchResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSearchMethod() {
io.grpc.MethodDescriptor getSearchMethod;
if ((getSearchMethod = TrustedMetadataApiGrpc.getSearchMethod) == null) {
synchronized (TrustedMetadataApiGrpc.class) {
if ((getSearchMethod = TrustedMetadataApiGrpc.getSearchMethod) == null) {
TrustedMetadataApiGrpc.getSearchMethod = getSearchMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "search"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataSearchRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.finos.tracdap.api.MetadataSearchResponse.getDefaultInstance()))
.setSchemaDescriptor(new TrustedMetadataApiMethodDescriptorSupplier("search"))
.build();
}
}
}
return getSearchMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TrustedMetadataApiStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TrustedMetadataApiStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiStub(channel, callOptions);
}
};
return TrustedMetadataApiStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TrustedMetadataApiBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TrustedMetadataApiBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiBlockingStub(channel, callOptions);
}
};
return TrustedMetadataApiBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TrustedMetadataApiFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TrustedMetadataApiFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiFutureStub(channel, callOptions);
}
};
return TrustedMetadataApiFutureStub.newStub(factory, channel);
}
/**
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
public interface AsyncService {
/**
*
**
* Create a new object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, without the
* restriction on which types of object can be saved.
* @see TracMetadataApi.createObject()
*
*/
default void createObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateObjectMethod(), responseObserver);
}
/**
*
**
* Update an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, however it
* can be used with any type of object that supports versioning (currently DATA
* and CUSTOM).
* @see TracMetadataApi.updateObject()
*
*/
default void updateObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateObjectMethod(), responseObserver);
}
/**
*
**
* Update the tag for an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.updateTag()
*
*/
default void updateTag(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTagMethod(), responseObserver);
}
/**
*
**
* Preallocate an object ID for an object that will be created later.
* This call is for use by TRAC components that need to reserve an ID before
* it is used, particularly if the object ID must be included in the definition
* of an object that has not been created yet. When creating an ID the tenant
* and object type must be specified, the object that is eventually saved must
* match these two conditions. Orphan IDs are expected - if a component request
* an ID and encounters an error before that ID is used, the orphan ID is just
* ignored.
*
*/
default void preallocateId(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPreallocateIdMethod(), responseObserver);
}
/**
*
**
* Create an object using an ID that was previously preallocated.
* This call behaves essentially the same as createObject(), with all the
* same validation. The only difference is that the new definition must be
* supplied with an object header, including the object ID returned from a
* prior call to preallocateId().
* Error conditions include all the error conditions for createObject().
* Using a preallocated ID twice, attempting to save to an unknown ID or the
* ID of another object that already exists are also errors.
*
*/
default void createPreallocatedObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePreallocatedObjectMethod(), responseObserver);
}
/**
*
**
* Perform a batch of write operations on the TRAC metadata store.
* This call behaves similarly to the equivalent public API call. However,
* the createObject, updateObject and updateTag request types take their
* semantics from the trusted API instead of the public one. It is also
* possible to include preallocateId and createPreallocatedObject in the
* batch request.
* @see TracMetadataApi.writeBatch()
*
*/
default void writeBatch(org.finos.tracdap.api.MetadataWriteBatchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteBatchMethod(), responseObserver);
}
/**
*
**
* Read a single object from the TRAC metadata store using a tag selector.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readObject()
*
*/
default void readObject(org.finos.tracdap.api.MetadataReadRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadObjectMethod(), responseObserver);
}
/**
*
**
* Read multiple objects from the TRAC metadata store using tag selectors.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readBatch()
*
*/
default void readBatch(org.finos.tracdap.api.MetadataBatchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadBatchMethod(), responseObserver);
}
/**
*
**
* Perform a search against the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.search()
*
*/
default void search(org.finos.tracdap.api.MetadataSearchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service TrustedMetadataApi.
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
public static abstract class TrustedMetadataApiImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return TrustedMetadataApiGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service TrustedMetadataApi.
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
public static final class TrustedMetadataApiStub
extends io.grpc.stub.AbstractAsyncStub {
private TrustedMetadataApiStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TrustedMetadataApiStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiStub(channel, callOptions);
}
/**
*
**
* Create a new object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, without the
* restriction on which types of object can be saved.
* @see TracMetadataApi.createObject()
*
*/
public void createObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Update an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, however it
* can be used with any type of object that supports versioning (currently DATA
* and CUSTOM).
* @see TracMetadataApi.updateObject()
*
*/
public void updateObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Update the tag for an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.updateTag()
*
*/
public void updateTag(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Preallocate an object ID for an object that will be created later.
* This call is for use by TRAC components that need to reserve an ID before
* it is used, particularly if the object ID must be included in the definition
* of an object that has not been created yet. When creating an ID the tenant
* and object type must be specified, the object that is eventually saved must
* match these two conditions. Orphan IDs are expected - if a component request
* an ID and encounters an error before that ID is used, the orphan ID is just
* ignored.
*
*/
public void preallocateId(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPreallocateIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Create an object using an ID that was previously preallocated.
* This call behaves essentially the same as createObject(), with all the
* same validation. The only difference is that the new definition must be
* supplied with an object header, including the object ID returned from a
* prior call to preallocateId().
* Error conditions include all the error conditions for createObject().
* Using a preallocated ID twice, attempting to save to an unknown ID or the
* ID of another object that already exists are also errors.
*
*/
public void createPreallocatedObject(org.finos.tracdap.api.MetadataWriteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreatePreallocatedObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Perform a batch of write operations on the TRAC metadata store.
* This call behaves similarly to the equivalent public API call. However,
* the createObject, updateObject and updateTag request types take their
* semantics from the trusted API instead of the public one. It is also
* possible to include preallocateId and createPreallocatedObject in the
* batch request.
* @see TracMetadataApi.writeBatch()
*
*/
public void writeBatch(org.finos.tracdap.api.MetadataWriteBatchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getWriteBatchMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Read a single object from the TRAC metadata store using a tag selector.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readObject()
*
*/
public void readObject(org.finos.tracdap.api.MetadataReadRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReadObjectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Read multiple objects from the TRAC metadata store using tag selectors.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readBatch()
*
*/
public void readBatch(org.finos.tracdap.api.MetadataBatchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReadBatchMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Perform a search against the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.search()
*
*/
public void search(org.finos.tracdap.api.MetadataSearchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service TrustedMetadataApi.
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
public static final class TrustedMetadataApiBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private TrustedMetadataApiBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TrustedMetadataApiBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiBlockingStub(channel, callOptions);
}
/**
*
**
* Create a new object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, without the
* restriction on which types of object can be saved.
* @see TracMetadataApi.createObject()
*
*/
public org.finos.tracdap.metadata.TagHeader createObject(org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateObjectMethod(), getCallOptions(), request);
}
/**
*
**
* Update an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, however it
* can be used with any type of object that supports versioning (currently DATA
* and CUSTOM).
* @see TracMetadataApi.updateObject()
*
*/
public org.finos.tracdap.metadata.TagHeader updateObject(org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateObjectMethod(), getCallOptions(), request);
}
/**
*
**
* Update the tag for an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.updateTag()
*
*/
public org.finos.tracdap.metadata.TagHeader updateTag(org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTagMethod(), getCallOptions(), request);
}
/**
*
**
* Preallocate an object ID for an object that will be created later.
* This call is for use by TRAC components that need to reserve an ID before
* it is used, particularly if the object ID must be included in the definition
* of an object that has not been created yet. When creating an ID the tenant
* and object type must be specified, the object that is eventually saved must
* match these two conditions. Orphan IDs are expected - if a component request
* an ID and encounters an error before that ID is used, the orphan ID is just
* ignored.
*
*/
public org.finos.tracdap.metadata.TagHeader preallocateId(org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPreallocateIdMethod(), getCallOptions(), request);
}
/**
*
**
* Create an object using an ID that was previously preallocated.
* This call behaves essentially the same as createObject(), with all the
* same validation. The only difference is that the new definition must be
* supplied with an object header, including the object ID returned from a
* prior call to preallocateId().
* Error conditions include all the error conditions for createObject().
* Using a preallocated ID twice, attempting to save to an unknown ID or the
* ID of another object that already exists are also errors.
*
*/
public org.finos.tracdap.metadata.TagHeader createPreallocatedObject(org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreatePreallocatedObjectMethod(), getCallOptions(), request);
}
/**
*
**
* Perform a batch of write operations on the TRAC metadata store.
* This call behaves similarly to the equivalent public API call. However,
* the createObject, updateObject and updateTag request types take their
* semantics from the trusted API instead of the public one. It is also
* possible to include preallocateId and createPreallocatedObject in the
* batch request.
* @see TracMetadataApi.writeBatch()
*
*/
public org.finos.tracdap.api.MetadataWriteBatchResponse writeBatch(org.finos.tracdap.api.MetadataWriteBatchRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getWriteBatchMethod(), getCallOptions(), request);
}
/**
*
**
* Read a single object from the TRAC metadata store using a tag selector.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readObject()
*
*/
public org.finos.tracdap.metadata.Tag readObject(org.finos.tracdap.api.MetadataReadRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReadObjectMethod(), getCallOptions(), request);
}
/**
*
**
* Read multiple objects from the TRAC metadata store using tag selectors.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readBatch()
*
*/
public org.finos.tracdap.api.MetadataBatchResponse readBatch(org.finos.tracdap.api.MetadataBatchRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReadBatchMethod(), getCallOptions(), request);
}
/**
*
**
* Perform a search against the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.search()
*
*/
public org.finos.tracdap.api.MetadataSearchResponse search(org.finos.tracdap.api.MetadataSearchRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSearchMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service TrustedMetadataApi.
*
**
* Trusted API reading, writing and searching for objects in the TRAC metadata store.
* This API is only available to other components of the TRAC platform, it is
* not exposed to clients via the platform gateway.
* Most of the calls in this interface are identical to their public equivalents.
* Extra calls are available for pre-allocating objects, a facility which is not
* available to clients of the platform. Restrictions on the creation of certain
* object types and manipulation of controlled tag attributes are lifted. Methods
* for performing HTTP GET requests of RESTFUL resources are not duplicated.
* @see TracMetadataApi
*
*/
public static final class TrustedMetadataApiFutureStub
extends io.grpc.stub.AbstractFutureStub {
private TrustedMetadataApiFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TrustedMetadataApiFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TrustedMetadataApiFutureStub(channel, callOptions);
}
/**
*
**
* Create a new object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, without the
* restriction on which types of object can be saved.
* @see TracMetadataApi.createObject()
*
*/
public com.google.common.util.concurrent.ListenableFuture createObject(
org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateObjectMethod(), getCallOptions()), request);
}
/**
*
**
* Update an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call, however it
* can be used with any type of object that supports versioning (currently DATA
* and CUSTOM).
* @see TracMetadataApi.updateObject()
*
*/
public com.google.common.util.concurrent.ListenableFuture updateObject(
org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request);
}
/**
*
**
* Update the tag for an existing object in the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.updateTag()
*
*/
public com.google.common.util.concurrent.ListenableFuture updateTag(
org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request);
}
/**
*
**
* Preallocate an object ID for an object that will be created later.
* This call is for use by TRAC components that need to reserve an ID before
* it is used, particularly if the object ID must be included in the definition
* of an object that has not been created yet. When creating an ID the tenant
* and object type must be specified, the object that is eventually saved must
* match these two conditions. Orphan IDs are expected - if a component request
* an ID and encounters an error before that ID is used, the orphan ID is just
* ignored.
*
*/
public com.google.common.util.concurrent.ListenableFuture preallocateId(
org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPreallocateIdMethod(), getCallOptions()), request);
}
/**
*
**
* Create an object using an ID that was previously preallocated.
* This call behaves essentially the same as createObject(), with all the
* same validation. The only difference is that the new definition must be
* supplied with an object header, including the object ID returned from a
* prior call to preallocateId().
* Error conditions include all the error conditions for createObject().
* Using a preallocated ID twice, attempting to save to an unknown ID or the
* ID of another object that already exists are also errors.
*
*/
public com.google.common.util.concurrent.ListenableFuture createPreallocatedObject(
org.finos.tracdap.api.MetadataWriteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreatePreallocatedObjectMethod(), getCallOptions()), request);
}
/**
*
**
* Perform a batch of write operations on the TRAC metadata store.
* This call behaves similarly to the equivalent public API call. However,
* the createObject, updateObject and updateTag request types take their
* semantics from the trusted API instead of the public one. It is also
* possible to include preallocateId and createPreallocatedObject in the
* batch request.
* @see TracMetadataApi.writeBatch()
*
*/
public com.google.common.util.concurrent.ListenableFuture writeBatch(
org.finos.tracdap.api.MetadataWriteBatchRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getWriteBatchMethod(), getCallOptions()), request);
}
/**
*
**
* Read a single object from the TRAC metadata store using a tag selector.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readObject()
*
*/
public com.google.common.util.concurrent.ListenableFuture readObject(
org.finos.tracdap.api.MetadataReadRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReadObjectMethod(), getCallOptions()), request);
}
/**
*
**
* Read multiple objects from the TRAC metadata store using tag selectors.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.readBatch()
*
*/
public com.google.common.util.concurrent.ListenableFuture readBatch(
org.finos.tracdap.api.MetadataBatchRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReadBatchMethod(), getCallOptions()), request);
}
/**
*
**
* Perform a search against the TRAC metadata store.
* This call behaves identically to the equivalent public API call.
* @see TracMetadataApi.search()
*
*/
public com.google.common.util.concurrent.ListenableFuture search(
org.finos.tracdap.api.MetadataSearchRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSearchMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_OBJECT = 0;
private static final int METHODID_UPDATE_OBJECT = 1;
private static final int METHODID_UPDATE_TAG = 2;
private static final int METHODID_PREALLOCATE_ID = 3;
private static final int METHODID_CREATE_PREALLOCATED_OBJECT = 4;
private static final int METHODID_WRITE_BATCH = 5;
private static final int METHODID_READ_OBJECT = 6;
private static final int METHODID_READ_BATCH = 7;
private static final int METHODID_SEARCH = 8;
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_CREATE_OBJECT:
serviceImpl.createObject((org.finos.tracdap.api.MetadataWriteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_OBJECT:
serviceImpl.updateObject((org.finos.tracdap.api.MetadataWriteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TAG:
serviceImpl.updateTag((org.finos.tracdap.api.MetadataWriteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PREALLOCATE_ID:
serviceImpl.preallocateId((org.finos.tracdap.api.MetadataWriteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_PREALLOCATED_OBJECT:
serviceImpl.createPreallocatedObject((org.finos.tracdap.api.MetadataWriteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_WRITE_BATCH:
serviceImpl.writeBatch((org.finos.tracdap.api.MetadataWriteBatchRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_READ_OBJECT:
serviceImpl.readObject((org.finos.tracdap.api.MetadataReadRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_READ_BATCH:
serviceImpl.readBatch((org.finos.tracdap.api.MetadataBatchRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SEARCH:
serviceImpl.search((org.finos.tracdap.api.MetadataSearchRequest) 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(
getCreateObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteRequest,
org.finos.tracdap.metadata.TagHeader>(
service, METHODID_CREATE_OBJECT)))
.addMethod(
getUpdateObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteRequest,
org.finos.tracdap.metadata.TagHeader>(
service, METHODID_UPDATE_OBJECT)))
.addMethod(
getUpdateTagMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteRequest,
org.finos.tracdap.metadata.TagHeader>(
service, METHODID_UPDATE_TAG)))
.addMethod(
getPreallocateIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteRequest,
org.finos.tracdap.metadata.TagHeader>(
service, METHODID_PREALLOCATE_ID)))
.addMethod(
getCreatePreallocatedObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteRequest,
org.finos.tracdap.metadata.TagHeader>(
service, METHODID_CREATE_PREALLOCATED_OBJECT)))
.addMethod(
getWriteBatchMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataWriteBatchRequest,
org.finos.tracdap.api.MetadataWriteBatchResponse>(
service, METHODID_WRITE_BATCH)))
.addMethod(
getReadObjectMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataReadRequest,
org.finos.tracdap.metadata.Tag>(
service, METHODID_READ_OBJECT)))
.addMethod(
getReadBatchMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataBatchRequest,
org.finos.tracdap.api.MetadataBatchResponse>(
service, METHODID_READ_BATCH)))
.addMethod(
getSearchMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.finos.tracdap.api.MetadataSearchRequest,
org.finos.tracdap.api.MetadataSearchResponse>(
service, METHODID_SEARCH)))
.build();
}
private static abstract class TrustedMetadataApiBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TrustedMetadataApiBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.finos.tracdap.api.internal.MetadataTrusted.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TrustedMetadataApi");
}
}
private static final class TrustedMetadataApiFileDescriptorSupplier
extends TrustedMetadataApiBaseDescriptorSupplier {
TrustedMetadataApiFileDescriptorSupplier() {}
}
private static final class TrustedMetadataApiMethodDescriptorSupplier
extends TrustedMetadataApiBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
TrustedMetadataApiMethodDescriptorSupplier(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 (TrustedMetadataApiGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TrustedMetadataApiFileDescriptorSupplier())
.addMethod(getCreateObjectMethod())
.addMethod(getUpdateObjectMethod())
.addMethod(getUpdateTagMethod())
.addMethod(getPreallocateIdMethod())
.addMethod(getCreatePreallocatedObjectMethod())
.addMethod(getWriteBatchMethod())
.addMethod(getReadObjectMethod())
.addMethod(getReadBatchMethod())
.addMethod(getSearchMethod())
.build();
}
}
}
return result;
}
}