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

org.finos.tracdap.api.TracMetadataApiGrpc Maven / Gradle / Ivy

package org.finos.tracdap.api;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 **
 * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
 * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
 * structural items (nouns and verbs) such as data, models and jobs that describe
 * resources and operations on the TRAC platform. Tags contain descriptive and
 * informational data and provide a means to classify, catalogue and control objects.
 * Tags can also be used to describe the structure of applications built on the TRAC
 * platform. For more information on the TRAC metadata model, refer to the
 * documentation for ObjectDefinition and Tag.
 * The write API allows objects to be created directly, by supplying an object
 * definition and a set of tags. These definitions and tags are validated,
 * assigned an ID and version (in a tag header) then saved as they are. Only
 * certain types of objects can be created / updated directly via the public API
 * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
 * as a result of operations on the platform, for example a model import job will
 * create a model definition.
 * Creating a new version of an object is very similar to creating a new object,
 * in that the entire metadata definition must be supplied. TRAC will perform
 * validation to make sure the new definition is a valid version update from the
 * previous version - the semantics of versioning depend on the particular object
 * type.
 * The metadata write API also provides a means for updating tags (i.e. creating
 * a new tag version); tag updates are allowed for all object types via the public
 * API. The current API requires a whole new tag to be supplied, this will be
 * replaced in a future version with an API that supplies attributes changes as a
 * set of add/modify/remove operations.
 * The read API is for reading metadata from the metadata store when the IDs of the
 * metadata items are known. The easiest way to read metadata is using TagSelectors,
 * which may be present in other metadata items (e.g. job definitions record tag
 * selectors to indicate which versions of resources were used in a job) or can be
 * easily constructed from an object ID or tag header. HTTP GET calls are also
 * available for REST clients (REST clients can still use selectors with POST
 * requests).
 * Metadata searches are performed using tag attributes, as well as an object type
 * and a few top-level parameters to handle versioning and temporality. See the
 * SearchParameters object for a more detailed description. The result of a search
 * call is a list of matching tags, which are always arranged with the most recent
 * tags first. A search that matches no results will return an empty list.
 * This API is a multi-tenant API. For gRPC requests every request includes a
 * tenant code, for REST requests the tenant code is the first element of every
 * path.
 * @see tracdap.metadata.ObjectDefinition
 * @see tracdap.metadata.Tag
 * @see tracdap.metadata.TagHeader
 * @see tracdap.metadata.TagSelector
 * @see tracdap.metadata.TagUpdate
 * @see tracdap.metadata.SearchParameters
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.68.0)", comments = "Source: tracdap/api/metadata.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TracMetadataApiGrpc { private TracMetadataApiGrpc() {} public static final java.lang.String SERVICE_NAME = "tracdap.api.TracMetadataApi"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getPlatformInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "platformInfo", requestType = org.finos.tracdap.api.PlatformInfoRequest.class, responseType = org.finos.tracdap.api.PlatformInfoResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getPlatformInfoMethod() { io.grpc.MethodDescriptor getPlatformInfoMethod; if ((getPlatformInfoMethod = TracMetadataApiGrpc.getPlatformInfoMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getPlatformInfoMethod = TracMetadataApiGrpc.getPlatformInfoMethod) == null) { TracMetadataApiGrpc.getPlatformInfoMethod = getPlatformInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "platformInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.PlatformInfoRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.PlatformInfoResponse.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("platformInfo")) .build(); } } } return getPlatformInfoMethod; } private static volatile io.grpc.MethodDescriptor getListTenantsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "listTenants", requestType = org.finos.tracdap.api.ListTenantsRequest.class, responseType = org.finos.tracdap.api.ListTenantsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListTenantsMethod() { io.grpc.MethodDescriptor getListTenantsMethod; if ((getListTenantsMethod = TracMetadataApiGrpc.getListTenantsMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getListTenantsMethod = TracMetadataApiGrpc.getListTenantsMethod) == null) { TracMetadataApiGrpc.getListTenantsMethod = getListTenantsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "listTenants")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ListTenantsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ListTenantsResponse.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("listTenants")) .build(); } } } return getListTenantsMethod; } private static volatile io.grpc.MethodDescriptor getListResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "listResources", requestType = org.finos.tracdap.api.ListResourcesRequest.class, responseType = org.finos.tracdap.api.ListResourcesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListResourcesMethod() { io.grpc.MethodDescriptor getListResourcesMethod; if ((getListResourcesMethod = TracMetadataApiGrpc.getListResourcesMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getListResourcesMethod = TracMetadataApiGrpc.getListResourcesMethod) == null) { TracMetadataApiGrpc.getListResourcesMethod = getListResourcesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "listResources")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ListResourcesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ListResourcesResponse.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("listResources")) .build(); } } } return getListResourcesMethod; } private static volatile io.grpc.MethodDescriptor getResourceInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "resourceInfo", requestType = org.finos.tracdap.api.ResourceInfoRequest.class, responseType = org.finos.tracdap.api.ResourceInfoResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getResourceInfoMethod() { io.grpc.MethodDescriptor getResourceInfoMethod; if ((getResourceInfoMethod = TracMetadataApiGrpc.getResourceInfoMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getResourceInfoMethod = TracMetadataApiGrpc.getResourceInfoMethod) == null) { TracMetadataApiGrpc.getResourceInfoMethod = getResourceInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "resourceInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ResourceInfoRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.ResourceInfoResponse.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("resourceInfo")) .build(); } } } return getResourceInfoMethod; } 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 = TracMetadataApiGrpc.getCreateObjectMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getCreateObjectMethod = TracMetadataApiGrpc.getCreateObjectMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("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 = TracMetadataApiGrpc.getUpdateObjectMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getUpdateObjectMethod = TracMetadataApiGrpc.getUpdateObjectMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("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 = TracMetadataApiGrpc.getUpdateTagMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getUpdateTagMethod = TracMetadataApiGrpc.getUpdateTagMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("updateTag")) .build(); } } } return getUpdateTagMethod; } 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 = TracMetadataApiGrpc.getWriteBatchMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getWriteBatchMethod = TracMetadataApiGrpc.getWriteBatchMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("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 = TracMetadataApiGrpc.getReadObjectMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getReadObjectMethod = TracMetadataApiGrpc.getReadObjectMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("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 = TracMetadataApiGrpc.getReadBatchMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getReadBatchMethod = TracMetadataApiGrpc.getReadBatchMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("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 = TracMetadataApiGrpc.getSearchMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getSearchMethod = TracMetadataApiGrpc.getSearchMethod) == null) { TracMetadataApiGrpc.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 TracMetadataApiMethodDescriptorSupplier("search")) .build(); } } } return getSearchMethod; } private static volatile io.grpc.MethodDescriptor getGetObjectMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "getObject", requestType = org.finos.tracdap.api.MetadataGetRequest.class, responseType = org.finos.tracdap.metadata.Tag.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetObjectMethod() { io.grpc.MethodDescriptor getGetObjectMethod; if ((getGetObjectMethod = TracMetadataApiGrpc.getGetObjectMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getGetObjectMethod = TracMetadataApiGrpc.getGetObjectMethod) == null) { TracMetadataApiGrpc.getGetObjectMethod = getGetObjectMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getObject")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.MetadataGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.metadata.Tag.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("getObject")) .build(); } } } return getGetObjectMethod; } private static volatile io.grpc.MethodDescriptor getGetLatestObjectMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "getLatestObject", requestType = org.finos.tracdap.api.MetadataGetRequest.class, responseType = org.finos.tracdap.metadata.Tag.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetLatestObjectMethod() { io.grpc.MethodDescriptor getGetLatestObjectMethod; if ((getGetLatestObjectMethod = TracMetadataApiGrpc.getGetLatestObjectMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getGetLatestObjectMethod = TracMetadataApiGrpc.getGetLatestObjectMethod) == null) { TracMetadataApiGrpc.getGetLatestObjectMethod = getGetLatestObjectMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getLatestObject")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.MetadataGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.metadata.Tag.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("getLatestObject")) .build(); } } } return getGetLatestObjectMethod; } private static volatile io.grpc.MethodDescriptor getGetLatestTagMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "getLatestTag", requestType = org.finos.tracdap.api.MetadataGetRequest.class, responseType = org.finos.tracdap.metadata.Tag.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetLatestTagMethod() { io.grpc.MethodDescriptor getGetLatestTagMethod; if ((getGetLatestTagMethod = TracMetadataApiGrpc.getGetLatestTagMethod) == null) { synchronized (TracMetadataApiGrpc.class) { if ((getGetLatestTagMethod = TracMetadataApiGrpc.getGetLatestTagMethod) == null) { TracMetadataApiGrpc.getGetLatestTagMethod = getGetLatestTagMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getLatestTag")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.api.MetadataGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.finos.tracdap.metadata.Tag.getDefaultInstance())) .setSchemaDescriptor(new TracMetadataApiMethodDescriptorSupplier("getLatestTag")) .build(); } } } return getGetLatestTagMethod; } /** * Creates a new async stub that supports all call types for the service */ public static TracMetadataApiStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TracMetadataApiStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiStub(channel, callOptions); } }; return TracMetadataApiStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TracMetadataApiBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TracMetadataApiBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiBlockingStub(channel, callOptions); } }; return TracMetadataApiBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TracMetadataApiFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TracMetadataApiFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiFutureStub(channel, callOptions); } }; return TracMetadataApiFutureStub.newStub(factory, channel); } /** *
   **
   * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
   * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
   * structural items (nouns and verbs) such as data, models and jobs that describe
   * resources and operations on the TRAC platform. Tags contain descriptive and
   * informational data and provide a means to classify, catalogue and control objects.
   * Tags can also be used to describe the structure of applications built on the TRAC
   * platform. For more information on the TRAC metadata model, refer to the
   * documentation for ObjectDefinition and Tag.
   * The write API allows objects to be created directly, by supplying an object
   * definition and a set of tags. These definitions and tags are validated,
   * assigned an ID and version (in a tag header) then saved as they are. Only
   * certain types of objects can be created / updated directly via the public API
   * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
   * as a result of operations on the platform, for example a model import job will
   * create a model definition.
   * Creating a new version of an object is very similar to creating a new object,
   * in that the entire metadata definition must be supplied. TRAC will perform
   * validation to make sure the new definition is a valid version update from the
   * previous version - the semantics of versioning depend on the particular object
   * type.
   * The metadata write API also provides a means for updating tags (i.e. creating
   * a new tag version); tag updates are allowed for all object types via the public
   * API. The current API requires a whole new tag to be supplied, this will be
   * replaced in a future version with an API that supplies attributes changes as a
   * set of add/modify/remove operations.
   * The read API is for reading metadata from the metadata store when the IDs of the
   * metadata items are known. The easiest way to read metadata is using TagSelectors,
   * which may be present in other metadata items (e.g. job definitions record tag
   * selectors to indicate which versions of resources were used in a job) or can be
   * easily constructed from an object ID or tag header. HTTP GET calls are also
   * available for REST clients (REST clients can still use selectors with POST
   * requests).
   * Metadata searches are performed using tag attributes, as well as an object type
   * and a few top-level parameters to handle versioning and temporality. See the
   * SearchParameters object for a more detailed description. The result of a search
   * call is a list of matching tags, which are always arranged with the most recent
   * tags first. A search that matches no results will return an empty list.
   * This API is a multi-tenant API. For gRPC requests every request includes a
   * tenant code, for REST requests the tenant code is the first element of every
   * path.
   * @see tracdap.metadata.ObjectDefinition
   * @see tracdap.metadata.Tag
   * @see tracdap.metadata.TagHeader
   * @see tracdap.metadata.TagSelector
   * @see tracdap.metadata.TagUpdate
   * @see tracdap.metadata.SearchParameters
   * 
*/ public interface AsyncService { /** *
     **
     * Get some general information about the TRAC platform.
     * Information returned includes what environment you are connected to
     * and what version of TRAC is running. Useful for displaying in "about"
     * boxes in a UI or client tool, and for submitting error reports.
     * 
*/ default void platformInfo(org.finos.tracdap.api.PlatformInfoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPlatformInfoMethod(), responseObserver); } /** *
     **
     * Get a list of tenants that the current user has access to.
     * Information returned includes the available tenant codes, as well
     * as human readable descriptions. Client tools that support multiple
     * tenants and tenant switching will need to fetch this list.
     * Only tenants accessible to the current user are returned.
     * 
*/ default void listTenants(org.finos.tracdap.api.ListTenantsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTenantsMethod(), responseObserver); } /** *
     **
     * Get a list of infrastructure resources of a given type.
     * For a given tenant and resource type, obtain a list of all the resources
     * accessible to the client. Client must have sufficient permissions within the
     * tenant to make this call and the list returned will be restricted by the
     * permissions of the logged in user. The returned list includes all the same
     * information that can be obtained by calling resourceInfo(), so there is no
     * need to make a second API call.
     * As an example, calling listResources() for resource type MODEL_REPOSITORY would
     * provide a list of repositories that are accessible to the current user to
     * import models from. The resource key of the selected repository can be used in an
     * IMPORT_MODEL job as the repository key.
     * Error conditions include permission denied, invalid request, unknown tenant and
     * unknown resource type.
     * @see tracdap.metadata.ResourceType
     * 
*/ default void listResources(org.finos.tracdap.api.ListResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListResourcesMethod(), responseObserver); } /** *
     **
     * Get information about a specific infrastructure resource.
     * Use this method to get the public properties associated with a specific
     * infrastructure resource, if you already know the resource type and key.
     * Client must have sufficient permissions within the tenant to make this
     * call and the result will only be returned if the user has permission to
     * access the specified resource.
     * This method is intended to allow integrations between client applications
     * and infrastructure resources. For example, if a model repository or data
     * location is available in TRAC as a resource, client applications can allow
     * users to browse or interact with those resources either by directing them to
     * an external URL or by making API calls to an external service. The resource
     * must be configured with the necessary public properties to make this work.
     * Typically the protocol and address of a resource can be public properties
     * but the user must supply their own credentials, which will be different
     * from the system credentials used by the TRAC platform. It is likely that
     * some resources available in the platform will not be accessible to all users,
     * and some resources accessible to a user will not be available on the platform.
     * Error conditions include permission denied, invalid request, unknown tenant,
     * unknown resource type and resource not found.
     * @see tracdap.metadata.ResourceType
     * 
*/ default void resourceInfo(org.finos.tracdap.api.ResourceInfoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResourceInfoMethod(), responseObserver); } /** *
     **
     * Create a new object in the TRAC metadata store.
     * To create an object, supply a metadata write request with the tenant code,
     * object type and a definition for the item you want to save. The tag should contain
     * all the attributes you want to set and the object definition, without an
     * object header. TRAC will create a header when it assigns and ID for the new
     * object. Only FLOW and CUSTOM objects can be created by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements).
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response to indicate the ID of the newly created
     * object, as well as the object and tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, object type does
     * not match the supplied definition, validation failure.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new version, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to set and the updated object definition, which
     * must be supplied with the header from the *previous* version of the object.
     * TRAC will apply the new version number when it creates the new version of
     * the object. Only the latest version of an object can be updated and only
     * CUSTOM objects can be updated by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements). For new versions, validation also covers
     * checking for compatibility with the previous version of the object.
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response with the ID object and the newly assigned
     * version number, as well as the tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID or version, wrong object type (not the same as the prior version), object
     * version is superseded.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new tag, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to include in the new tag, even if they have
     * not been changed. The object definition must be supplied with a header only,
     * supplying an object body is an invalid request. Tags for any type of object
     * can be updated by this API call. Only the latest version of a tag can be
     * updated.
     * The call returns an ID response with the ID and version of the object and
     * the newly assigned tag number.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object version or tag version, wrong object type (does not match what
     * is stored in TRAC), tag version is superseded.
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ default void updateTag(org.finos.tracdap.api.MetadataWriteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTagMethod(), responseObserver); } /** *
     **
     * Perform a batch of write operations on the TRAC metadata store.
     * A writeBatch request allows multiple createObject, updateObject and updateTag
     * requests to be combined into a single API call. It can result in considerable
     * performance gains when a large number of objects are created or updated together.
     * Using writeBatch() also gives a transactional guarantee on the metadata store,
     * so the whole batch will either succeed or fail. This can be useful for maintaining
     * consistency when updating multiple objects that refer to each other.
     * Each object ID can only occur once for updateObject, while each object version
     * can only occur once for updateTag. It is allowed to update tags for multiple
     * object versions in the same request. It is also allowed to use updateObject
     * and updateTag on the same object, which may be used e.g. to update an object
     * and also update the tag on the prior version. It is not possible to create a
     * new object version and update the tag of that new version in the same request.
     * Validation follows mostly the same rules as for individual write requests. The
     * tenant code must be specified in the batch and is optional in the individual
     * request objects, if specified it must match what is in the batch request.
     * Validation also checks for duplicate object IDs in updateObject and duplicates
     * of the same object version in updateTag.
     * The call returns tag headers for all the requested write operations in order.
     * For example if a request creates two objects and updates 3, then the response
     * will contain two tag headers for createObject and three for updateObject, in the
     * same order as the request.
     * Error conditions include all the error conditions that can occur for individual
     * write operations, as well as errors relating to duplicate updates for the same
     * object ID.
     * @see TracMetadataApi.createObject()
     * @see TracMetadataApi.updateObject()
     * @see TracMetadataApi.updateTag()
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes a single selector and returns a single Tag, including the
     * object definition. Error conditions include: Invalid request, unknown
     * tenant, unknown object ID, object type does not match ID, unknown object
     * version, unknown tag version.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes multiple selectors and returns multiple Tags in the same
     * order, including their object definitions. Selectors for different object
     * types and with different criteria for selecting versions can be mixed
     * freely in a single request. Error conditions include: Invalid request,
     * unknown tenant, unknown object ID, object type does not match ID, unknown
     * object version, unknown tag version. If there is an error for any of the
     * selectors the whole request will fail.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Searches are always for a specific tenant and object type. For details of the
     * available search parameters, see SearchParameters.
     * In gRPC calls, a MetadataSearchRequest specifies the tenant and includes the
     * SearchParameters, where object type and the search expression are set. For
     * REST calls the tenant is passed in the URL and searchParameters are supplied
     * as the request body.
     * @see tracdap.metadata.SearchParameters
     * 
*/ default void search(org.finos.tracdap.api.MetadataSearchRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); } /** *
     **
     * Get a single metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID, object version
     * and tag version. The call will return a tag for the exact object version
     * and tag version specified, including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version, unknown tag
     * version.
     * 
*/ default void getObject(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetObjectMethod(), responseObserver); } /** *
     **
     * Get the latest version of a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type and ID. The call will
     * return the latest version of the object with its latest tag, including
     * the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID.
     * 
*/ default void getLatestObject(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestObjectMethod(), responseObserver); } /** *
     **
     * Get the latest tag for a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID and version. The
     * call will return the latest tag for the specified version of the object,
     * including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version.
     * 
*/ default void getLatestTag(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestTagMethod(), responseObserver); } } /** * Base class for the server implementation of the service TracMetadataApi. *
   **
   * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
   * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
   * structural items (nouns and verbs) such as data, models and jobs that describe
   * resources and operations on the TRAC platform. Tags contain descriptive and
   * informational data and provide a means to classify, catalogue and control objects.
   * Tags can also be used to describe the structure of applications built on the TRAC
   * platform. For more information on the TRAC metadata model, refer to the
   * documentation for ObjectDefinition and Tag.
   * The write API allows objects to be created directly, by supplying an object
   * definition and a set of tags. These definitions and tags are validated,
   * assigned an ID and version (in a tag header) then saved as they are. Only
   * certain types of objects can be created / updated directly via the public API
   * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
   * as a result of operations on the platform, for example a model import job will
   * create a model definition.
   * Creating a new version of an object is very similar to creating a new object,
   * in that the entire metadata definition must be supplied. TRAC will perform
   * validation to make sure the new definition is a valid version update from the
   * previous version - the semantics of versioning depend on the particular object
   * type.
   * The metadata write API also provides a means for updating tags (i.e. creating
   * a new tag version); tag updates are allowed for all object types via the public
   * API. The current API requires a whole new tag to be supplied, this will be
   * replaced in a future version with an API that supplies attributes changes as a
   * set of add/modify/remove operations.
   * The read API is for reading metadata from the metadata store when the IDs of the
   * metadata items are known. The easiest way to read metadata is using TagSelectors,
   * which may be present in other metadata items (e.g. job definitions record tag
   * selectors to indicate which versions of resources were used in a job) or can be
   * easily constructed from an object ID or tag header. HTTP GET calls are also
   * available for REST clients (REST clients can still use selectors with POST
   * requests).
   * Metadata searches are performed using tag attributes, as well as an object type
   * and a few top-level parameters to handle versioning and temporality. See the
   * SearchParameters object for a more detailed description. The result of a search
   * call is a list of matching tags, which are always arranged with the most recent
   * tags first. A search that matches no results will return an empty list.
   * This API is a multi-tenant API. For gRPC requests every request includes a
   * tenant code, for REST requests the tenant code is the first element of every
   * path.
   * @see tracdap.metadata.ObjectDefinition
   * @see tracdap.metadata.Tag
   * @see tracdap.metadata.TagHeader
   * @see tracdap.metadata.TagSelector
   * @see tracdap.metadata.TagUpdate
   * @see tracdap.metadata.SearchParameters
   * 
*/ public static abstract class TracMetadataApiImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return TracMetadataApiGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service TracMetadataApi. *
   **
   * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
   * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
   * structural items (nouns and verbs) such as data, models and jobs that describe
   * resources and operations on the TRAC platform. Tags contain descriptive and
   * informational data and provide a means to classify, catalogue and control objects.
   * Tags can also be used to describe the structure of applications built on the TRAC
   * platform. For more information on the TRAC metadata model, refer to the
   * documentation for ObjectDefinition and Tag.
   * The write API allows objects to be created directly, by supplying an object
   * definition and a set of tags. These definitions and tags are validated,
   * assigned an ID and version (in a tag header) then saved as they are. Only
   * certain types of objects can be created / updated directly via the public API
   * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
   * as a result of operations on the platform, for example a model import job will
   * create a model definition.
   * Creating a new version of an object is very similar to creating a new object,
   * in that the entire metadata definition must be supplied. TRAC will perform
   * validation to make sure the new definition is a valid version update from the
   * previous version - the semantics of versioning depend on the particular object
   * type.
   * The metadata write API also provides a means for updating tags (i.e. creating
   * a new tag version); tag updates are allowed for all object types via the public
   * API. The current API requires a whole new tag to be supplied, this will be
   * replaced in a future version with an API that supplies attributes changes as a
   * set of add/modify/remove operations.
   * The read API is for reading metadata from the metadata store when the IDs of the
   * metadata items are known. The easiest way to read metadata is using TagSelectors,
   * which may be present in other metadata items (e.g. job definitions record tag
   * selectors to indicate which versions of resources were used in a job) or can be
   * easily constructed from an object ID or tag header. HTTP GET calls are also
   * available for REST clients (REST clients can still use selectors with POST
   * requests).
   * Metadata searches are performed using tag attributes, as well as an object type
   * and a few top-level parameters to handle versioning and temporality. See the
   * SearchParameters object for a more detailed description. The result of a search
   * call is a list of matching tags, which are always arranged with the most recent
   * tags first. A search that matches no results will return an empty list.
   * This API is a multi-tenant API. For gRPC requests every request includes a
   * tenant code, for REST requests the tenant code is the first element of every
   * path.
   * @see tracdap.metadata.ObjectDefinition
   * @see tracdap.metadata.Tag
   * @see tracdap.metadata.TagHeader
   * @see tracdap.metadata.TagSelector
   * @see tracdap.metadata.TagUpdate
   * @see tracdap.metadata.SearchParameters
   * 
*/ public static final class TracMetadataApiStub extends io.grpc.stub.AbstractAsyncStub { private TracMetadataApiStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TracMetadataApiStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiStub(channel, callOptions); } /** *
     **
     * Get some general information about the TRAC platform.
     * Information returned includes what environment you are connected to
     * and what version of TRAC is running. Useful for displaying in "about"
     * boxes in a UI or client tool, and for submitting error reports.
     * 
*/ public void platformInfo(org.finos.tracdap.api.PlatformInfoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPlatformInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get a list of tenants that the current user has access to.
     * Information returned includes the available tenant codes, as well
     * as human readable descriptions. Client tools that support multiple
     * tenants and tenant switching will need to fetch this list.
     * Only tenants accessible to the current user are returned.
     * 
*/ public void listTenants(org.finos.tracdap.api.ListTenantsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTenantsMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get a list of infrastructure resources of a given type.
     * For a given tenant and resource type, obtain a list of all the resources
     * accessible to the client. Client must have sufficient permissions within the
     * tenant to make this call and the list returned will be restricted by the
     * permissions of the logged in user. The returned list includes all the same
     * information that can be obtained by calling resourceInfo(), so there is no
     * need to make a second API call.
     * As an example, calling listResources() for resource type MODEL_REPOSITORY would
     * provide a list of repositories that are accessible to the current user to
     * import models from. The resource key of the selected repository can be used in an
     * IMPORT_MODEL job as the repository key.
     * Error conditions include permission denied, invalid request, unknown tenant and
     * unknown resource type.
     * @see tracdap.metadata.ResourceType
     * 
*/ public void listResources(org.finos.tracdap.api.ListResourcesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListResourcesMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get information about a specific infrastructure resource.
     * Use this method to get the public properties associated with a specific
     * infrastructure resource, if you already know the resource type and key.
     * Client must have sufficient permissions within the tenant to make this
     * call and the result will only be returned if the user has permission to
     * access the specified resource.
     * This method is intended to allow integrations between client applications
     * and infrastructure resources. For example, if a model repository or data
     * location is available in TRAC as a resource, client applications can allow
     * users to browse or interact with those resources either by directing them to
     * an external URL or by making API calls to an external service. The resource
     * must be configured with the necessary public properties to make this work.
     * Typically the protocol and address of a resource can be public properties
     * but the user must supply their own credentials, which will be different
     * from the system credentials used by the TRAC platform. It is likely that
     * some resources available in the platform will not be accessible to all users,
     * and some resources accessible to a user will not be available on the platform.
     * Error conditions include permission denied, invalid request, unknown tenant,
     * unknown resource type and resource not found.
     * @see tracdap.metadata.ResourceType
     * 
*/ public void resourceInfo(org.finos.tracdap.api.ResourceInfoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResourceInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Create a new object in the TRAC metadata store.
     * To create an object, supply a metadata write request with the tenant code,
     * object type and a definition for the item you want to save. The tag should contain
     * all the attributes you want to set and the object definition, without an
     * object header. TRAC will create a header when it assigns and ID for the new
     * object. Only FLOW and CUSTOM objects can be created by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements).
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response to indicate the ID of the newly created
     * object, as well as the object and tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, object type does
     * not match the supplied definition, validation failure.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new version, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to set and the updated object definition, which
     * must be supplied with the header from the *previous* version of the object.
     * TRAC will apply the new version number when it creates the new version of
     * the object. Only the latest version of an object can be updated and only
     * CUSTOM objects can be updated by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements). For new versions, validation also covers
     * checking for compatibility with the previous version of the object.
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response with the ID object and the newly assigned
     * version number, as well as the tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID or version, wrong object type (not the same as the prior version), object
     * version is superseded.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new tag, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to include in the new tag, even if they have
     * not been changed. The object definition must be supplied with a header only,
     * supplying an object body is an invalid request. Tags for any type of object
     * can be updated by this API call. Only the latest version of a tag can be
     * updated.
     * The call returns an ID response with the ID and version of the object and
     * the newly assigned tag number.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object version or tag version, wrong object type (does not match what
     * is stored in TRAC), tag version is superseded.
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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); } /** *
     **
     * Perform a batch of write operations on the TRAC metadata store.
     * A writeBatch request allows multiple createObject, updateObject and updateTag
     * requests to be combined into a single API call. It can result in considerable
     * performance gains when a large number of objects are created or updated together.
     * Using writeBatch() also gives a transactional guarantee on the metadata store,
     * so the whole batch will either succeed or fail. This can be useful for maintaining
     * consistency when updating multiple objects that refer to each other.
     * Each object ID can only occur once for updateObject, while each object version
     * can only occur once for updateTag. It is allowed to update tags for multiple
     * object versions in the same request. It is also allowed to use updateObject
     * and updateTag on the same object, which may be used e.g. to update an object
     * and also update the tag on the prior version. It is not possible to create a
     * new object version and update the tag of that new version in the same request.
     * Validation follows mostly the same rules as for individual write requests. The
     * tenant code must be specified in the batch and is optional in the individual
     * request objects, if specified it must match what is in the batch request.
     * Validation also checks for duplicate object IDs in updateObject and duplicates
     * of the same object version in updateTag.
     * The call returns tag headers for all the requested write operations in order.
     * For example if a request creates two objects and updates 3, then the response
     * will contain two tag headers for createObject and three for updateObject, in the
     * same order as the request.
     * Error conditions include all the error conditions that can occur for individual
     * write operations, as well as errors relating to duplicate updates for the same
     * object ID.
     * @see TracMetadataApi.createObject()
     * @see TracMetadataApi.updateObject()
     * @see TracMetadataApi.updateTag()
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes a single selector and returns a single Tag, including the
     * object definition. Error conditions include: Invalid request, unknown
     * tenant, unknown object ID, object type does not match ID, unknown object
     * version, unknown tag version.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes multiple selectors and returns multiple Tags in the same
     * order, including their object definitions. Selectors for different object
     * types and with different criteria for selecting versions can be mixed
     * freely in a single request. Error conditions include: Invalid request,
     * unknown tenant, unknown object ID, object type does not match ID, unknown
     * object version, unknown tag version. If there is an error for any of the
     * selectors the whole request will fail.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Searches are always for a specific tenant and object type. For details of the
     * available search parameters, see SearchParameters.
     * In gRPC calls, a MetadataSearchRequest specifies the tenant and includes the
     * SearchParameters, where object type and the search expression are set. For
     * REST calls the tenant is passed in the URL and searchParameters are supplied
     * as the request body.
     * @see tracdap.metadata.SearchParameters
     * 
*/ 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); } /** *
     **
     * Get a single metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID, object version
     * and tag version. The call will return a tag for the exact object version
     * and tag version specified, including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version, unknown tag
     * version.
     * 
*/ public void getObject(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get the latest version of a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type and ID. The call will
     * return the latest version of the object with its latest tag, including
     * the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID.
     * 
*/ public void getLatestObject(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLatestObjectMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Get the latest tag for a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID and version. The
     * call will return the latest tag for the specified version of the object,
     * including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version.
     * 
*/ public void getLatestTag(org.finos.tracdap.api.MetadataGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLatestTagMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service TracMetadataApi. *
   **
   * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
   * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
   * structural items (nouns and verbs) such as data, models and jobs that describe
   * resources and operations on the TRAC platform. Tags contain descriptive and
   * informational data and provide a means to classify, catalogue and control objects.
   * Tags can also be used to describe the structure of applications built on the TRAC
   * platform. For more information on the TRAC metadata model, refer to the
   * documentation for ObjectDefinition and Tag.
   * The write API allows objects to be created directly, by supplying an object
   * definition and a set of tags. These definitions and tags are validated,
   * assigned an ID and version (in a tag header) then saved as they are. Only
   * certain types of objects can be created / updated directly via the public API
   * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
   * as a result of operations on the platform, for example a model import job will
   * create a model definition.
   * Creating a new version of an object is very similar to creating a new object,
   * in that the entire metadata definition must be supplied. TRAC will perform
   * validation to make sure the new definition is a valid version update from the
   * previous version - the semantics of versioning depend on the particular object
   * type.
   * The metadata write API also provides a means for updating tags (i.e. creating
   * a new tag version); tag updates are allowed for all object types via the public
   * API. The current API requires a whole new tag to be supplied, this will be
   * replaced in a future version with an API that supplies attributes changes as a
   * set of add/modify/remove operations.
   * The read API is for reading metadata from the metadata store when the IDs of the
   * metadata items are known. The easiest way to read metadata is using TagSelectors,
   * which may be present in other metadata items (e.g. job definitions record tag
   * selectors to indicate which versions of resources were used in a job) or can be
   * easily constructed from an object ID or tag header. HTTP GET calls are also
   * available for REST clients (REST clients can still use selectors with POST
   * requests).
   * Metadata searches are performed using tag attributes, as well as an object type
   * and a few top-level parameters to handle versioning and temporality. See the
   * SearchParameters object for a more detailed description. The result of a search
   * call is a list of matching tags, which are always arranged with the most recent
   * tags first. A search that matches no results will return an empty list.
   * This API is a multi-tenant API. For gRPC requests every request includes a
   * tenant code, for REST requests the tenant code is the first element of every
   * path.
   * @see tracdap.metadata.ObjectDefinition
   * @see tracdap.metadata.Tag
   * @see tracdap.metadata.TagHeader
   * @see tracdap.metadata.TagSelector
   * @see tracdap.metadata.TagUpdate
   * @see tracdap.metadata.SearchParameters
   * 
*/ public static final class TracMetadataApiBlockingStub extends io.grpc.stub.AbstractBlockingStub { private TracMetadataApiBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TracMetadataApiBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiBlockingStub(channel, callOptions); } /** *
     **
     * Get some general information about the TRAC platform.
     * Information returned includes what environment you are connected to
     * and what version of TRAC is running. Useful for displaying in "about"
     * boxes in a UI or client tool, and for submitting error reports.
     * 
*/ public org.finos.tracdap.api.PlatformInfoResponse platformInfo(org.finos.tracdap.api.PlatformInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPlatformInfoMethod(), getCallOptions(), request); } /** *
     **
     * Get a list of tenants that the current user has access to.
     * Information returned includes the available tenant codes, as well
     * as human readable descriptions. Client tools that support multiple
     * tenants and tenant switching will need to fetch this list.
     * Only tenants accessible to the current user are returned.
     * 
*/ public org.finos.tracdap.api.ListTenantsResponse listTenants(org.finos.tracdap.api.ListTenantsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTenantsMethod(), getCallOptions(), request); } /** *
     **
     * Get a list of infrastructure resources of a given type.
     * For a given tenant and resource type, obtain a list of all the resources
     * accessible to the client. Client must have sufficient permissions within the
     * tenant to make this call and the list returned will be restricted by the
     * permissions of the logged in user. The returned list includes all the same
     * information that can be obtained by calling resourceInfo(), so there is no
     * need to make a second API call.
     * As an example, calling listResources() for resource type MODEL_REPOSITORY would
     * provide a list of repositories that are accessible to the current user to
     * import models from. The resource key of the selected repository can be used in an
     * IMPORT_MODEL job as the repository key.
     * Error conditions include permission denied, invalid request, unknown tenant and
     * unknown resource type.
     * @see tracdap.metadata.ResourceType
     * 
*/ public org.finos.tracdap.api.ListResourcesResponse listResources(org.finos.tracdap.api.ListResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListResourcesMethod(), getCallOptions(), request); } /** *
     **
     * Get information about a specific infrastructure resource.
     * Use this method to get the public properties associated with a specific
     * infrastructure resource, if you already know the resource type and key.
     * Client must have sufficient permissions within the tenant to make this
     * call and the result will only be returned if the user has permission to
     * access the specified resource.
     * This method is intended to allow integrations between client applications
     * and infrastructure resources. For example, if a model repository or data
     * location is available in TRAC as a resource, client applications can allow
     * users to browse or interact with those resources either by directing them to
     * an external URL or by making API calls to an external service. The resource
     * must be configured with the necessary public properties to make this work.
     * Typically the protocol and address of a resource can be public properties
     * but the user must supply their own credentials, which will be different
     * from the system credentials used by the TRAC platform. It is likely that
     * some resources available in the platform will not be accessible to all users,
     * and some resources accessible to a user will not be available on the platform.
     * Error conditions include permission denied, invalid request, unknown tenant,
     * unknown resource type and resource not found.
     * @see tracdap.metadata.ResourceType
     * 
*/ public org.finos.tracdap.api.ResourceInfoResponse resourceInfo(org.finos.tracdap.api.ResourceInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getResourceInfoMethod(), getCallOptions(), request); } /** *
     **
     * Create a new object in the TRAC metadata store.
     * To create an object, supply a metadata write request with the tenant code,
     * object type and a definition for the item you want to save. The tag should contain
     * all the attributes you want to set and the object definition, without an
     * object header. TRAC will create a header when it assigns and ID for the new
     * object. Only FLOW and CUSTOM objects can be created by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements).
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response to indicate the ID of the newly created
     * object, as well as the object and tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, object type does
     * not match the supplied definition, validation failure.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new version, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to set and the updated object definition, which
     * must be supplied with the header from the *previous* version of the object.
     * TRAC will apply the new version number when it creates the new version of
     * the object. Only the latest version of an object can be updated and only
     * CUSTOM objects can be updated by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements). For new versions, validation also covers
     * checking for compatibility with the previous version of the object.
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response with the ID object and the newly assigned
     * version number, as well as the tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID or version, wrong object type (not the same as the prior version), object
     * version is superseded.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new tag, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to include in the new tag, even if they have
     * not been changed. The object definition must be supplied with a header only,
     * supplying an object body is an invalid request. Tags for any type of object
     * can be updated by this API call. Only the latest version of a tag can be
     * updated.
     * The call returns an ID response with the ID and version of the object and
     * the newly assigned tag number.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object version or tag version, wrong object type (does not match what
     * is stored in TRAC), tag version is superseded.
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ public org.finos.tracdap.metadata.TagHeader updateTag(org.finos.tracdap.api.MetadataWriteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateTagMethod(), getCallOptions(), request); } /** *
     **
     * Perform a batch of write operations on the TRAC metadata store.
     * A writeBatch request allows multiple createObject, updateObject and updateTag
     * requests to be combined into a single API call. It can result in considerable
     * performance gains when a large number of objects are created or updated together.
     * Using writeBatch() also gives a transactional guarantee on the metadata store,
     * so the whole batch will either succeed or fail. This can be useful for maintaining
     * consistency when updating multiple objects that refer to each other.
     * Each object ID can only occur once for updateObject, while each object version
     * can only occur once for updateTag. It is allowed to update tags for multiple
     * object versions in the same request. It is also allowed to use updateObject
     * and updateTag on the same object, which may be used e.g. to update an object
     * and also update the tag on the prior version. It is not possible to create a
     * new object version and update the tag of that new version in the same request.
     * Validation follows mostly the same rules as for individual write requests. The
     * tenant code must be specified in the batch and is optional in the individual
     * request objects, if specified it must match what is in the batch request.
     * Validation also checks for duplicate object IDs in updateObject and duplicates
     * of the same object version in updateTag.
     * The call returns tag headers for all the requested write operations in order.
     * For example if a request creates two objects and updates 3, then the response
     * will contain two tag headers for createObject and three for updateObject, in the
     * same order as the request.
     * Error conditions include all the error conditions that can occur for individual
     * write operations, as well as errors relating to duplicate updates for the same
     * object ID.
     * @see TracMetadataApi.createObject()
     * @see TracMetadataApi.updateObject()
     * @see TracMetadataApi.updateTag()
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes a single selector and returns a single Tag, including the
     * object definition. Error conditions include: Invalid request, unknown
     * tenant, unknown object ID, object type does not match ID, unknown object
     * version, unknown tag version.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes multiple selectors and returns multiple Tags in the same
     * order, including their object definitions. Selectors for different object
     * types and with different criteria for selecting versions can be mixed
     * freely in a single request. Error conditions include: Invalid request,
     * unknown tenant, unknown object ID, object type does not match ID, unknown
     * object version, unknown tag version. If there is an error for any of the
     * selectors the whole request will fail.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Searches are always for a specific tenant and object type. For details of the
     * available search parameters, see SearchParameters.
     * In gRPC calls, a MetadataSearchRequest specifies the tenant and includes the
     * SearchParameters, where object type and the search expression are set. For
     * REST calls the tenant is passed in the URL and searchParameters are supplied
     * as the request body.
     * @see tracdap.metadata.SearchParameters
     * 
*/ public org.finos.tracdap.api.MetadataSearchResponse search(org.finos.tracdap.api.MetadataSearchRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } /** *
     **
     * Get a single metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID, object version
     * and tag version. The call will return a tag for the exact object version
     * and tag version specified, including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version, unknown tag
     * version.
     * 
*/ public org.finos.tracdap.metadata.Tag getObject(org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetObjectMethod(), getCallOptions(), request); } /** *
     **
     * Get the latest version of a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type and ID. The call will
     * return the latest version of the object with its latest tag, including
     * the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID.
     * 
*/ public org.finos.tracdap.metadata.Tag getLatestObject(org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLatestObjectMethod(), getCallOptions(), request); } /** *
     **
     * Get the latest tag for a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID and version. The
     * call will return the latest tag for the specified version of the object,
     * including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version.
     * 
*/ public org.finos.tracdap.metadata.Tag getLatestTag(org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLatestTagMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service TracMetadataApi. *
   **
   * Public API for creating, updating, reading and searching for objects in the TRAC metadata store.
   * The TRAC metadata API is expressed in terms of Objects and Tags. Objects are
   * structural items (nouns and verbs) such as data, models and jobs that describe
   * resources and operations on the TRAC platform. Tags contain descriptive and
   * informational data and provide a means to classify, catalogue and control objects.
   * Tags can also be used to describe the structure of applications built on the TRAC
   * platform. For more information on the TRAC metadata model, refer to the
   * documentation for ObjectDefinition and Tag.
   * The write API allows objects to be created directly, by supplying an object
   * definition and a set of tags. These definitions and tags are validated,
   * assigned an ID and version (in a tag header) then saved as they are. Only
   * certain types of objects can be created / updated directly via the public API
   * (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC
   * as a result of operations on the platform, for example a model import job will
   * create a model definition.
   * Creating a new version of an object is very similar to creating a new object,
   * in that the entire metadata definition must be supplied. TRAC will perform
   * validation to make sure the new definition is a valid version update from the
   * previous version - the semantics of versioning depend on the particular object
   * type.
   * The metadata write API also provides a means for updating tags (i.e. creating
   * a new tag version); tag updates are allowed for all object types via the public
   * API. The current API requires a whole new tag to be supplied, this will be
   * replaced in a future version with an API that supplies attributes changes as a
   * set of add/modify/remove operations.
   * The read API is for reading metadata from the metadata store when the IDs of the
   * metadata items are known. The easiest way to read metadata is using TagSelectors,
   * which may be present in other metadata items (e.g. job definitions record tag
   * selectors to indicate which versions of resources were used in a job) or can be
   * easily constructed from an object ID or tag header. HTTP GET calls are also
   * available for REST clients (REST clients can still use selectors with POST
   * requests).
   * Metadata searches are performed using tag attributes, as well as an object type
   * and a few top-level parameters to handle versioning and temporality. See the
   * SearchParameters object for a more detailed description. The result of a search
   * call is a list of matching tags, which are always arranged with the most recent
   * tags first. A search that matches no results will return an empty list.
   * This API is a multi-tenant API. For gRPC requests every request includes a
   * tenant code, for REST requests the tenant code is the first element of every
   * path.
   * @see tracdap.metadata.ObjectDefinition
   * @see tracdap.metadata.Tag
   * @see tracdap.metadata.TagHeader
   * @see tracdap.metadata.TagSelector
   * @see tracdap.metadata.TagUpdate
   * @see tracdap.metadata.SearchParameters
   * 
*/ public static final class TracMetadataApiFutureStub extends io.grpc.stub.AbstractFutureStub { private TracMetadataApiFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TracMetadataApiFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TracMetadataApiFutureStub(channel, callOptions); } /** *
     **
     * Get some general information about the TRAC platform.
     * Information returned includes what environment you are connected to
     * and what version of TRAC is running. Useful for displaying in "about"
     * boxes in a UI or client tool, and for submitting error reports.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture platformInfo( org.finos.tracdap.api.PlatformInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPlatformInfoMethod(), getCallOptions()), request); } /** *
     **
     * Get a list of tenants that the current user has access to.
     * Information returned includes the available tenant codes, as well
     * as human readable descriptions. Client tools that support multiple
     * tenants and tenant switching will need to fetch this list.
     * Only tenants accessible to the current user are returned.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listTenants( org.finos.tracdap.api.ListTenantsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTenantsMethod(), getCallOptions()), request); } /** *
     **
     * Get a list of infrastructure resources of a given type.
     * For a given tenant and resource type, obtain a list of all the resources
     * accessible to the client. Client must have sufficient permissions within the
     * tenant to make this call and the list returned will be restricted by the
     * permissions of the logged in user. The returned list includes all the same
     * information that can be obtained by calling resourceInfo(), so there is no
     * need to make a second API call.
     * As an example, calling listResources() for resource type MODEL_REPOSITORY would
     * provide a list of repositories that are accessible to the current user to
     * import models from. The resource key of the selected repository can be used in an
     * IMPORT_MODEL job as the repository key.
     * Error conditions include permission denied, invalid request, unknown tenant and
     * unknown resource type.
     * @see tracdap.metadata.ResourceType
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listResources( org.finos.tracdap.api.ListResourcesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListResourcesMethod(), getCallOptions()), request); } /** *
     **
     * Get information about a specific infrastructure resource.
     * Use this method to get the public properties associated with a specific
     * infrastructure resource, if you already know the resource type and key.
     * Client must have sufficient permissions within the tenant to make this
     * call and the result will only be returned if the user has permission to
     * access the specified resource.
     * This method is intended to allow integrations between client applications
     * and infrastructure resources. For example, if a model repository or data
     * location is available in TRAC as a resource, client applications can allow
     * users to browse or interact with those resources either by directing them to
     * an external URL or by making API calls to an external service. The resource
     * must be configured with the necessary public properties to make this work.
     * Typically the protocol and address of a resource can be public properties
     * but the user must supply their own credentials, which will be different
     * from the system credentials used by the TRAC platform. It is likely that
     * some resources available in the platform will not be accessible to all users,
     * and some resources accessible to a user will not be available on the platform.
     * Error conditions include permission denied, invalid request, unknown tenant,
     * unknown resource type and resource not found.
     * @see tracdap.metadata.ResourceType
     * 
*/ public com.google.common.util.concurrent.ListenableFuture resourceInfo( org.finos.tracdap.api.ResourceInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResourceInfoMethod(), getCallOptions()), request); } /** *
     **
     * Create a new object in the TRAC metadata store.
     * To create an object, supply a metadata write request with the tenant code,
     * object type and a definition for the item you want to save. The tag should contain
     * all the attributes you want to set and the object definition, without an
     * object header. TRAC will create a header when it assigns and ID for the new
     * object. Only FLOW and CUSTOM objects can be created by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements).
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response to indicate the ID of the newly created
     * object, as well as the object and tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, object type does
     * not match the supplied definition, validation failure.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new version, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to set and the updated object definition, which
     * must be supplied with the header from the *previous* version of the object.
     * TRAC will apply the new version number when it creates the new version of
     * the object. Only the latest version of an object can be updated and only
     * CUSTOM objects can be updated by this API call.
     * Validation is performed on new objects before they are saved. Objects can
     * fail validation because they are semantically invalid (e.g. missing
     * required fields or inconsistencies within the object definition) or due to
     * consistency errors (referring to other metadata items that don't exist or
     * don't meet certain requirements). For new versions, validation also covers
     * checking for compatibility with the previous version of the object.
     * NOTE: Validation is only partially implemented in the current release.
     * The call returns an ID response with the ID object and the newly assigned
     * version number, as well as the tag version (which will always be 1).
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID or version, wrong object type (not the same as the prior version), object
     * version is superseded.
     * @see tracdap.metadata.ObjectDefinition
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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.
     * To save a new tag, supply a metadata write request with the tenant code,
     * object type and a tag for the item you want to save. The tag should contain
     * all the attributes you want to include in the new tag, even if they have
     * not been changed. The object definition must be supplied with a header only,
     * supplying an object body is an invalid request. Tags for any type of object
     * can be updated by this API call. Only the latest version of a tag can be
     * updated.
     * The call returns an ID response with the ID and version of the object and
     * the newly assigned tag number.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object version or tag version, wrong object type (does not match what
     * is stored in TRAC), tag version is superseded.
     * @see tracdap.metadata.TagSelector
     * @see tracdap.metadata.TagUpdate
     * 
*/ 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); } /** *
     **
     * Perform a batch of write operations on the TRAC metadata store.
     * A writeBatch request allows multiple createObject, updateObject and updateTag
     * requests to be combined into a single API call. It can result in considerable
     * performance gains when a large number of objects are created or updated together.
     * Using writeBatch() also gives a transactional guarantee on the metadata store,
     * so the whole batch will either succeed or fail. This can be useful for maintaining
     * consistency when updating multiple objects that refer to each other.
     * Each object ID can only occur once for updateObject, while each object version
     * can only occur once for updateTag. It is allowed to update tags for multiple
     * object versions in the same request. It is also allowed to use updateObject
     * and updateTag on the same object, which may be used e.g. to update an object
     * and also update the tag on the prior version. It is not possible to create a
     * new object version and update the tag of that new version in the same request.
     * Validation follows mostly the same rules as for individual write requests. The
     * tenant code must be specified in the batch and is optional in the individual
     * request objects, if specified it must match what is in the batch request.
     * Validation also checks for duplicate object IDs in updateObject and duplicates
     * of the same object version in updateTag.
     * The call returns tag headers for all the requested write operations in order.
     * For example if a request creates two objects and updates 3, then the response
     * will contain two tag headers for createObject and three for updateObject, in the
     * same order as the request.
     * Error conditions include all the error conditions that can occur for individual
     * write operations, as well as errors relating to duplicate updates for the same
     * object ID.
     * @see TracMetadataApi.createObject()
     * @see TracMetadataApi.updateObject()
     * @see TracMetadataApi.updateTag()
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes a single selector and returns a single Tag, including the
     * object definition. Error conditions include: Invalid request, unknown
     * tenant, unknown object ID, object type does not match ID, unknown object
     * version, unknown tag version.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Tag selectors are used throughout the TRAC metadata structures and API
     * calls to refer to objects. For example, a job definition includes
     * selectors to define the data sets and models that were selected for the
     * job. Those selectors can be passed directly into this call.
     * Tag selectors can refer to object and tag versions either using explicit
     * version numbers, with as-of times or by referring to the current latest
     * version. Combinations are also possible (e.g. object version x, latest
     * tag).
     * This call takes multiple selectors and returns multiple Tags in the same
     * order, including their object definitions. Selectors for different object
     * types and with different criteria for selecting versions can be mixed
     * freely in a single request. Error conditions include: Invalid request,
     * unknown tenant, unknown object ID, object type does not match ID, unknown
     * object version, unknown tag version. If there is an error for any of the
     * selectors the whole request will fail.
     * @see tracdap.metadata.TagSelector
     * 
*/ 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.
     * Searches are always for a specific tenant and object type. For details of the
     * available search parameters, see SearchParameters.
     * In gRPC calls, a MetadataSearchRequest specifies the tenant and includes the
     * SearchParameters, where object type and the search expression are set. For
     * REST calls the tenant is passed in the URL and searchParameters are supplied
     * as the request body.
     * @see tracdap.metadata.SearchParameters
     * 
*/ 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); } /** *
     **
     * Get a single metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID, object version
     * and tag version. The call will return a tag for the exact object version
     * and tag version specified, including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version, unknown tag
     * version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getObject( org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request); } /** *
     **
     * Get the latest version of a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type and ID. The call will
     * return the latest version of the object with its latest tag, including
     * the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getLatestObject( org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLatestObjectMethod(), getCallOptions()), request); } /** *
     **
     * Get the latest tag for a metadata object using an HTTP GET request.
     * This call is intended for use by REST clients to provide TRAC metadata
     * objects as RESTFUL resources. For gRPC clients it is recommended to use
     * readObject instead and supply a TagSelector.
     * @see readObject
     * To use this call, supply a tenant code, object type, ID and version. The
     * call will return the latest tag for the specified version of the object,
     * including the full object definition.
     * Error conditions include: Invalid request, unknown tenant, unknown object
     * ID, object type does not match ID, unknown object version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getLatestTag( org.finos.tracdap.api.MetadataGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLatestTagMethod(), getCallOptions()), request); } } private static final int METHODID_PLATFORM_INFO = 0; private static final int METHODID_LIST_TENANTS = 1; private static final int METHODID_LIST_RESOURCES = 2; private static final int METHODID_RESOURCE_INFO = 3; private static final int METHODID_CREATE_OBJECT = 4; private static final int METHODID_UPDATE_OBJECT = 5; private static final int METHODID_UPDATE_TAG = 6; private static final int METHODID_WRITE_BATCH = 7; private static final int METHODID_READ_OBJECT = 8; private static final int METHODID_READ_BATCH = 9; private static final int METHODID_SEARCH = 10; private static final int METHODID_GET_OBJECT = 11; private static final int METHODID_GET_LATEST_OBJECT = 12; private static final int METHODID_GET_LATEST_TAG = 13; 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_PLATFORM_INFO: serviceImpl.platformInfo((org.finos.tracdap.api.PlatformInfoRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_TENANTS: serviceImpl.listTenants((org.finos.tracdap.api.ListTenantsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_RESOURCES: serviceImpl.listResources((org.finos.tracdap.api.ListResourcesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESOURCE_INFO: serviceImpl.resourceInfo((org.finos.tracdap.api.ResourceInfoRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; 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_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; case METHODID_GET_OBJECT: serviceImpl.getObject((org.finos.tracdap.api.MetadataGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LATEST_OBJECT: serviceImpl.getLatestObject((org.finos.tracdap.api.MetadataGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LATEST_TAG: serviceImpl.getLatestTag((org.finos.tracdap.api.MetadataGetRequest) 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( getPlatformInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.PlatformInfoRequest, org.finos.tracdap.api.PlatformInfoResponse>( service, METHODID_PLATFORM_INFO))) .addMethod( getListTenantsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.ListTenantsRequest, org.finos.tracdap.api.ListTenantsResponse>( service, METHODID_LIST_TENANTS))) .addMethod( getListResourcesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.ListResourcesRequest, org.finos.tracdap.api.ListResourcesResponse>( service, METHODID_LIST_RESOURCES))) .addMethod( getResourceInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.ResourceInfoRequest, org.finos.tracdap.api.ResourceInfoResponse>( service, METHODID_RESOURCE_INFO))) .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( 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))) .addMethod( getGetObjectMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.MetadataGetRequest, org.finos.tracdap.metadata.Tag>( service, METHODID_GET_OBJECT))) .addMethod( getGetLatestObjectMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.MetadataGetRequest, org.finos.tracdap.metadata.Tag>( service, METHODID_GET_LATEST_OBJECT))) .addMethod( getGetLatestTagMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.finos.tracdap.api.MetadataGetRequest, org.finos.tracdap.metadata.Tag>( service, METHODID_GET_LATEST_TAG))) .build(); } private static abstract class TracMetadataApiBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TracMetadataApiBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return org.finos.tracdap.api.Metadata.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("TracMetadataApi"); } } private static final class TracMetadataApiFileDescriptorSupplier extends TracMetadataApiBaseDescriptorSupplier { TracMetadataApiFileDescriptorSupplier() {} } private static final class TracMetadataApiMethodDescriptorSupplier extends TracMetadataApiBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; TracMetadataApiMethodDescriptorSupplier(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 (TracMetadataApiGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TracMetadataApiFileDescriptorSupplier()) .addMethod(getPlatformInfoMethod()) .addMethod(getListTenantsMethod()) .addMethod(getListResourcesMethod()) .addMethod(getResourceInfoMethod()) .addMethod(getCreateObjectMethod()) .addMethod(getUpdateObjectMethod()) .addMethod(getUpdateTagMethod()) .addMethod(getWriteBatchMethod()) .addMethod(getReadObjectMethod()) .addMethod(getReadBatchMethod()) .addMethod(getSearchMethod()) .addMethod(getGetObjectMethod()) .addMethod(getGetLatestObjectMethod()) .addMethod(getGetLatestTagMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy