MetadataChangeSet.Builder | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# MetadataChangeSet.Builder

extends Object

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

## Class Overview

A builder for creating a new MetadataChangeSet.

## Summary

Public Constructors
| MetadataChangeSet.Builder()

Public Methods
MetadataChangeSet | build()
MetadataChangeSet.Builder | setDescription(String description) Sets the description for the resource.
MetadataChangeSet.Builder | setIndexableText(String text) Sets the text to be indexed for the resource.
MetadataChangeSet.Builder | setLastViewedByMeDate(Date date) Sets the date when the user most recently viewed the resource.
MetadataChangeSet.Builder | setMimeType(String mimeType) Sets a MIME type for the resource.
MetadataChangeSet.Builder | setPinned(boolean pinned) If true, the file's contents will be kept up to date locally and thus the contents will be available when the device is offline.
MetadataChangeSet.Builder | setStarred(boolean starred) Sets whether the resource will be starred.
MetadataChangeSet.Builder | setTitle(String title) Sets the title for the resource.
MetadataChangeSet.Builder | setViewed(boolean viewed) Sets whether the resource has been viewed.

[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()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Constructors

#### public MetadataChangeSet.Builder ()

## Public Methods

#### public MetadataChangeSet build ()

#### public MetadataChangeSet.Builder setDescription (String description)

Sets the description for the resource.

#### public MetadataChangeSet.Builder setIndexableText (String text)

Sets the text to be indexed for the resource.

#### public MetadataChangeSet.Builder setLastViewedByMeDate (Date date)

Sets the date when the user most recently viewed the resource.

#### public MetadataChangeSet.Builder setMimeType (String mimeType)

Sets a MIME type for the resource.

#### public MetadataChangeSet.Builder setPinned (boolean pinned)

If true, the file's contents will be kept up to date locally and thus the contents will be available when the device is offline. Pinning a file uses bandwidth and storage space, so it should only be done in response to an explicit user request.

Note that only files where `isPinnable()` is true can be pinned.

#### public MetadataChangeSet.Builder setStarred (boolean starred)

Sets whether the resource will be starred.

#### public MetadataChangeSet.Builder setTitle (String title)

Sets the title for the resource.

#### public MetadataChangeSet.Builder setViewed (boolean viewed)

Sets whether the resource has been viewed.