Summary: Nested Classes | Constants | Methods | Inherited Methods | [Expand All]
public final class

# MetadataChangeSet

extends Object

java.lang.Object
↳ | com.google.android.gms.drive.MetadataChangeSet

## Class Overview

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

## Summary

Nested Classes
class | MetadataChangeSet.Builder | A builder for creating a new MetadataChangeSet.

Constants
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 Methods
Map<CustomPropertyKey, String> | 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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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 (0x0000007c)

#### public static final int INDEXABLE_TEXT_SIZE_LIMIT_BYTES

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

Constant Value: 131072 (0x00020000)

#### 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 (0x0000001e)

#### public static final int MAX_PUBLIC_PROPERTIES_PER_RESOURCE

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

Constant Value: 30 (0x0000001e)

#### 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 (0x00000064)

## Public Methods

#### public Map<CustomPropertyKey, String> 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.