Reputation: 4399
Using the following API allows you to obtain multiple properties assigned to a file:
props = service.properties().list(fileId=fileId).execute().get('items', [])
However, I don't see any way to set multiple properties. Is this just missing from the documentation, or have Google really overlooked this?
Upvotes: 0
Views: 215
Reputation: 22306
Think of properties as a list, rather than a map. So the answer is no.
To save http traffic you could batch your requests as described here https://code.google.com/p/google-api-java-client/wiki/Batch
Upvotes: 1