MetadataChangeSet

public final class MetadataChangeSet extends Object

A collection of metadata changes. Any fields with null values will retain their current value.

Nested Class Summary

class MetadataChangeSet.Builder A builder for creating a new MetadataChangeSet. 

Constant Summary

int CUSTOM_PROPERTY_SIZE_LIMIT_BYTES The limit on the total number of bytes (in UTF-8 encoding) of the key string and the value string together.
int INDEXABLE_TEXT_SIZE_LIMIT_BYTES The limit on the indexable text size in bytes (for UTF-8 encoding).
int MAX_PRIVATE_PROPERTIES_PER_RESOURCE_PER_APP The maximum number of private properties an application can have on a Drive resource.
int MAX_PUBLIC_PROPERTIES_PER_RESOURCE The maximum number of public properties allowed on a Drive resource.
int MAX_TOTAL_PROPERTIES_PER_RESOURCE The maximum number of properties allowed on a Drive resource.

Public Method Summary

Map<CustomPropertyKeyString>
getCustomPropertyChangeMap()
Returns a map that defines the custom property changes for the resource.
String
getDescription()
Returns the new description for the resource or null if unchanged.
String
getIndexableText()
Returns the new text to be indexed for the resource or null if unchanged.
Date
getLastViewedByMeDate()
Returns the date which will be recorded as when the user most recently viewed the resource or null if unchanged.
String
getMimeType()
Returns the new MIME type for the resource or null if unchanged.
String
getTitle()
Returns the new title for the resource or null if unchanged.
Boolean
isPinned()
Returns the new pinned state for the resource or null if unchanged.
Boolean
isStarred()
Returns the new starred state for the resource or null if unchanged.
Boolean
isViewed()
Returns the new viewed state for the resource or null if unchanged.

Inherited Method Summary

Constants

public static final int CUSTOM_PROPERTY_SIZE_LIMIT_BYTES

The limit on the total number of bytes (in UTF-8 encoding) of the key string and the value string together.

Constant Value: 124

public static final int INDEXABLE_TEXT_SIZE_LIMIT_BYTES

The limit on the indexable text size in bytes (for UTF-8 encoding). See: //developers.google.com/drive/web/file

Constant Value: 131072

public static final int MAX_PRIVATE_PROPERTIES_PER_RESOURCE_PER_APP

The maximum number of private properties an application can have on a Drive resource.

Constant Value: 30

public static final int MAX_PUBLIC_PROPERTIES_PER_RESOURCE

The maximum number of public properties allowed on a Drive resource.

Constant Value: 30

public static final int MAX_TOTAL_PROPERTIES_PER_RESOURCE

The maximum number of properties allowed on a Drive resource. This includes the public properties on the resource as well as the private properties from all the applications having access to this Drive resource.

Constant Value: 100

Public Methods

public Map<CustomPropertyKeyString> getCustomPropertyChangeMap ()

Returns a map that defines the custom property changes for the resource. The map is from the property keys to the new or updated values. Null values correspond to properties that are going to be deleted.

public String getDescription ()

Returns the new description for the resource or null if unchanged.

public String getIndexableText ()

Returns the new text to be indexed for the resource or null if unchanged.

public Date getLastViewedByMeDate ()

Returns the date which will be recorded as when the user most recently viewed the resource or null if unchanged.

public String getMimeType ()

Returns the new MIME type for the resource or null if unchanged.

public String getTitle ()

Returns the new title for the resource or null if unchanged.

public Boolean isPinned ()

Returns the new pinned state for the resource or null if unchanged.

public Boolean isStarred ()

Returns the new starred state for the resource or null if unchanged.

public Boolean isViewed ()

Returns the new viewed state for the resource or null if unchanged.