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()
Assembly: Google.Apis.CloudSearch.v1.dll
public class DriveMetadata : IDirectResponseSchema
Properties
Declaration
[JsonProperty("aclFixRequest")]
public virtual AclFixRequest AclFixRequest { get; set; }
Property Value
Declaration
[JsonProperty("aclFixStatus")]
public virtual AclFixStatus AclFixStatus { get; set; }
Property Value
Can the current user edit this resource
Declaration
[JsonProperty("canEdit")]
public virtual bool? CanEdit { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
Can the current user share this resource
Declaration
[JsonProperty("canShare")]
public virtual bool? CanShare { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
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 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 |
|
Declaration
[JsonProperty("driveState")]
public virtual string DriveState { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Output only. Trusted Resource URL for drive file embedding.
Declaration
[JsonProperty("embedUrl")]
public virtual TrustedResourceUrlProto EmbedUrl { get; set; }
Property Value
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> |
|
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 |
|
Declaration
public virtual string ETag { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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 |
|
Drive resource ID of the artifact.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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> |
|
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> |
|
Only present if this DriveMetadata is converted from an UploadMetadata.
Declaration
[JsonProperty("legacyUploadMetadata")]
public virtual LegacyUploadMetadata LegacyUploadMetadata { get; set; }
Property Value
Mimetype of the Drive Resource
Declaration
[JsonProperty("mimetype")]
public virtual string Mimetype { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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 |
|
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
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> |
|
Thumbnail image of the Drive Resource
Declaration
[JsonProperty("thumbnailHeight")]
public virtual int? ThumbnailHeight { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Thumbnail image of the Drive Resource
Declaration
[JsonProperty("thumbnailUrl")]
public virtual string ThumbnailUrl { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Thumbnail image of the Drive Resource
Declaration
[JsonProperty("thumbnailWidth")]
public virtual int? ThumbnailWidth { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Title of the Drive Resource
Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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 |
|
This is considered SPII and should not be logged.
Declaration
[JsonProperty("wrappedResourceKey")]
public virtual WrappedResourceKey WrappedResourceKey { get; set; }
Property Value
Implements
Google.Apis.Requests.IDirectResponseSchema