Search in sources :

Example 1 with PutAttributeType

use of ai.grakn.rpc.generated.GrpcGrakn.PutAttributeType in project grakn by graknlabs.

the class TxObserver method putAttributeType.

private void putAttributeType(PutAttributeType putAttributeType) {
    Label label = GrpcUtil.convert(putAttributeType.getLabel());
    AttributeType.DataType<?> dataType = GrpcUtil.convert(putAttributeType.getDataType());
    AttributeType<?> attributeType = tx().putAttributeType(label, dataType);
    responseObserver.onNext(GrpcUtil.conceptResponse(attributeType));
}
Also used : AttributeType(ai.grakn.concept.AttributeType) PutAttributeType(ai.grakn.rpc.generated.GrpcGrakn.PutAttributeType) Label(ai.grakn.concept.Label)

Aggregations

AttributeType (ai.grakn.concept.AttributeType)1 Label (ai.grakn.concept.Label)1 PutAttributeType (ai.grakn.rpc.generated.GrpcGrakn.PutAttributeType)1