本文介绍了Google Drive API中comment.Patch和comment.Update之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时浏览了方法文档补丁更新,看起来它们都在做同样的事情.

I went through method documentations both patch and update and it looks they both doing the same.

我还注意到补丁不需要修补程序注释的content,即使调用patch()方法也是必需的.

And i also note that the patch doesn't required the content of the patching comment even though its required to call the patch() method.

那么Google Drive API中comment.patch()comment.update()方法之间的区别是什么吗?

So, is the difference between comment.patch() and the comment.update() methods in Google Drive API?

PS:我正在使用Google Drive Java SDK进行实施.

PS : I'm using Google-Drive Java SDK for my implementation.

谢谢.

推荐答案

例如,当您只想更新资源中的单个字段时,修补程序用于执行部分更新并节省一些带宽.

Patch is used to perform partial updates and save some bandwidth when, for instance, you only want to update a single field in a resource.

有关补丁工作方式的更多详细信息以及其他性能提示,请查看Google Drive SDK文档:

For more details about how patch work and for other performance tips, please check the Google Drive SDK documentation:

https://developers.google.com/drive/performance#patch

这篇关于Google Drive API中comment.Patch和comment.Update之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 06:14