Show / Hide Table of Contents

Class DriveMetadata

Annotation metadata for Drive artifacts.

Inheritance
object
DriveMetadata
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSearch.v1.Data
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class DriveMetadata : IDirectResponseSchema

Properties

AclFixRequest

Declaration
[JsonProperty("aclFixRequest")]
public virtual AclFixRequest AclFixRequest { get; set; }
Property Value
Type Description
AclFixRequest

AclFixStatus

Declaration
[JsonProperty("aclFixStatus")]
public virtual AclFixStatus AclFixStatus { get; set; }
Property Value
Type Description
AclFixStatus

CanEdit

Can the current user edit this resource

Declaration
[JsonProperty("canEdit")]
public virtual bool? CanEdit { get; set; }
Property Value
Type Description
bool?

CanShare

Can the current user share this resource

Declaration
[JsonProperty("canShare")]
public virtual bool? CanShare { get; set; }
Property Value
Type Description
bool?

CanView

Can the current user view this resource

Declaration
[JsonProperty("canView")]
public virtual bool? CanView { get; set; }
Property Value
Type Description
bool?

DriveAction

DriveAction for organizing this file in Drive. If the user does not have access to the Drive file, the value will be DriveAction.DRIVE_ACTION_UNSPECIFIED. This field is only set when part of a FileResult in a ListFilesResponse.

Declaration
[JsonProperty("driveAction")]
public virtual string DriveAction { get; set; }
Property Value
Type Description
string

DriveState

Declaration
[JsonProperty("driveState")]
public virtual string DriveState { get; set; }
Property Value
Type Description
string

EmbedUrl

Output only. Trusted Resource URL for drive file embedding.

Declaration
[JsonProperty("embedUrl")]
public virtual TrustedResourceUrlProto EmbedUrl { get; set; }
Property Value
Type Description
TrustedResourceUrlProto

EncryptedDocId

Indicates whether the Drive link contains an encrypted doc ID. If true, Dynamite should not attempt to query the doc ID in Drive Service. See go/docid-encryption for details.

Declaration
[JsonProperty("encryptedDocId")]
public virtual bool? EncryptedDocId { get; set; }
Property Value
Type Description
bool?

EncryptedResourceKey

This is deprecated and unneeded. TODO (b/182479059): Remove this.

Declaration
[JsonProperty("encryptedResourceKey")]
public virtual string EncryptedResourceKey { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

ExternalMimetype

External mimetype of the Drive Resource (Useful for creating Drive URL) See: http://b/35219462

Declaration
[JsonProperty("externalMimetype")]
public virtual string ExternalMimetype { get; set; }
Property Value
Type Description
string

Id

Drive resource ID of the artifact.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

IsDownloadRestricted

Deprecated. Whether the setting to restrict downloads is enabled for this file. This was previously used to determine whether to hide the download and print buttons in the UI, but is no longer used by clients, because Projector now independently queries Drive to ensure that we have the most up-to-date value.

Declaration
[JsonProperty("isDownloadRestricted")]
public virtual bool? IsDownloadRestricted { get; set; }
Property Value
Type Description
bool?

IsOwner

If the current user is the Drive file's owner. The field is currently only set for Annotations for the ListFiles action (as opposed to fetching Topics/Messages with Drive annotations).

Declaration
[JsonProperty("isOwner")]
public virtual bool? IsOwner { get; set; }
Property Value
Type Description
bool?

LegacyUploadMetadata

Only present if this DriveMetadata is converted from an UploadMetadata.

Declaration
[JsonProperty("legacyUploadMetadata")]
public virtual LegacyUploadMetadata LegacyUploadMetadata { get; set; }
Property Value
Type Description
LegacyUploadMetadata

Mimetype

Mimetype of the Drive Resource

Declaration
[JsonProperty("mimetype")]
public virtual string Mimetype { get; set; }
Property Value
Type Description
string

OrganizationDisplayName

The display name of the organization owning the Drive item.

Declaration
[JsonProperty("organizationDisplayName")]
public virtual string OrganizationDisplayName { get; set; }
Property Value
Type Description
string

ShortcutAuthorizedItemId

Shortcut ID of this drive file in the shared drive, which is associated with a named room this file was shared in. Shortcuts will not be created for DMs or unnamed rooms. This is populated after the DriveMetadata is migrated to shared drive. go/chat-shared-drive-uploads.

Declaration
[JsonProperty("shortcutAuthorizedItemId")]
public virtual AuthorizedItemId ShortcutAuthorizedItemId { get; set; }
Property Value
Type Description
AuthorizedItemId

ShouldNotRender

If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip.

Declaration
[JsonProperty("shouldNotRender")]
public virtual bool? ShouldNotRender { get; set; }
Property Value
Type Description
bool?

ThumbnailHeight

Thumbnail image of the Drive Resource

Declaration
[JsonProperty("thumbnailHeight")]
public virtual int? ThumbnailHeight { get; set; }
Property Value
Type Description
int?

ThumbnailUrl

Thumbnail image of the Drive Resource

Declaration
[JsonProperty("thumbnailUrl")]
public virtual string ThumbnailUrl { get; set; }
Property Value
Type Description
string

ThumbnailWidth

Thumbnail image of the Drive Resource

Declaration
[JsonProperty("thumbnailWidth")]
public virtual int? ThumbnailWidth { get; set; }
Property Value
Type Description
int?

Title

Title of the Drive Resource

Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type Description
string

UrlFragment

Url string fragment that generally indicates the specific location in the linked file. Example: #header=h.123abc456. If the fragment is not present this will not be present and therefore default to an empty string. The "#" will not be included.

Declaration
[JsonProperty("urlFragment")]
public virtual string UrlFragment { get; set; }
Property Value
Type Description
string

WrappedResourceKey

This is considered SPII and should not be logged.

Declaration
[JsonProperty("wrappedResourceKey")]
public virtual WrappedResourceKey WrappedResourceKey { get; set; }
Property Value
Type Description
WrappedResourceKey

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX