Show / Hide Table of Contents

Class DriveMetadata

Annotation metadata for Drive artifacts.

Inheritance
System.Object
DriveMetadata
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Nullable<System.Boolean>

CanShare

Can the current user share this resource

Declaration
[JsonProperty("canShare")]
public virtual bool? CanShare { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

CanView

Can the current user view this resource

Declaration
[JsonProperty("canView")]
public virtual bool? CanView { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

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
System.String

DriveState

Declaration
[JsonProperty("driveState")]
public virtual string DriveState { get; set; }
Property Value
Type Description
System.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
System.Nullable<System.Boolean>

EncryptedResourceKey

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

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

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.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
System.String

Id

Drive resource ID of the artifact.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
System.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
System.Nullable<System.Boolean>

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
System.Nullable<System.Boolean>

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
System.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
System.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
System.Nullable<System.Boolean>

ThumbnailHeight

Thumbnail image of the Drive Resource

Declaration
[JsonProperty("thumbnailHeight")]
public virtual int? ThumbnailHeight { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

ThumbnailUrl

Thumbnail image of the Drive Resource

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

ThumbnailWidth

Thumbnail image of the Drive Resource

Declaration
[JsonProperty("thumbnailWidth")]
public virtual int? ThumbnailWidth { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Title

Title of the Drive Resource

Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type Description
System.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
System.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

Google.Apis.Requests.IDirectResponseSchema
In This Article
Back to top