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));
}
Aggregations