Show / Hide Table of Contents

Class GdataMedia

A reference to data stored on the filesystem, on GFS or in blobstore.

Inheritance
object
GdataMedia
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.DiscoveryEngine.v1alpha.Data
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class GdataMedia : IDirectResponseSchema

Properties

Algorithm

Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time.

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

BigstoreObjectRef

Use object_id instead.

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

BlobRef

Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.

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

Blobstore2Info

Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.

Declaration
[JsonProperty("blobstore2Info")]
public virtual GdataBlobstore2Info Blobstore2Info { get; set; }
Property Value
Type Description
GdataBlobstore2Info

CompositeMedia

A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.

Declaration
[JsonProperty("compositeMedia")]
public virtual IList<GdataCompositeMedia> CompositeMedia { get; set; }
Property Value
Type Description
IList<GdataCompositeMedia>

ContentType

MIME type of the data

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

ContentTypeInfo

Extended content type information provided for Scotty uploads.

Declaration
[JsonProperty("contentTypeInfo")]
public virtual GdataContentTypeInfo ContentTypeInfo { get; set; }
Property Value
Type Description
GdataContentTypeInfo

CosmoBinaryReference

A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.

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

Crc32cHash

For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.

Declaration
[JsonProperty("crc32cHash")]
public virtual long? Crc32cHash { get; set; }
Property Value
Type Description
long?

DiffChecksumsResponse

Set if reference_type is DIFF_CHECKSUMS_RESPONSE.

Declaration
[JsonProperty("diffChecksumsResponse")]
public virtual GdataDiffChecksumsResponse DiffChecksumsResponse { get; set; }
Property Value
Type Description
GdataDiffChecksumsResponse

DiffDownloadResponse

Set if reference_type is DIFF_DOWNLOAD_RESPONSE.

Declaration
[JsonProperty("diffDownloadResponse")]
public virtual GdataDiffDownloadResponse DiffDownloadResponse { get; set; }
Property Value
Type Description
GdataDiffDownloadResponse

DiffUploadRequest

Set if reference_type is DIFF_UPLOAD_REQUEST.

Declaration
[JsonProperty("diffUploadRequest")]
public virtual GdataDiffUploadRequest DiffUploadRequest { get; set; }
Property Value
Type Description
GdataDiffUploadRequest

DiffUploadResponse

Set if reference_type is DIFF_UPLOAD_RESPONSE.

Declaration
[JsonProperty("diffUploadResponse")]
public virtual GdataDiffUploadResponse DiffUploadResponse { get; set; }
Property Value
Type Description
GdataDiffUploadResponse

DiffVersionResponse

Set if reference_type is DIFF_VERSION_RESPONSE.

Declaration
[JsonProperty("diffVersionResponse")]
public virtual GdataDiffVersionResponse DiffVersionResponse { get; set; }
Property Value
Type Description
GdataDiffVersionResponse

DownloadParameters

Parameters for a media download.

Declaration
[JsonProperty("downloadParameters")]
public virtual GdataDownloadParameters DownloadParameters { get; set; }
Property Value
Type Description
GdataDownloadParameters

ETag

The ETag of the item.

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

Filename

Original file name

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

Hash

Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&amp;q=class:Hash Hex encoded hash value of the uploaded media.

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

HashVerified

For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.

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

Inline

Media data, set if reference_type is INLINE

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

IsPotentialRetry

|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.

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

Length

Size of the data, in bytes

Declaration
[JsonProperty("length")]
public virtual long? Length { get; set; }
Property Value
Type Description
long?

Md5Hash

Scotty-provided MD5 hash for an upload.

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

MediaId

Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.

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

ObjectId

Reference to a TI Blob, set if reference_type is BIGSTORE_REF.

Declaration
[JsonProperty("objectId")]
public virtual GdataObjectId ObjectId { get; set; }
Property Value
Type Description
GdataObjectId

Path

Path to the data, set if reference_type is PATH

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

ReferenceType

Describes what the field reference contains.

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

Sha1Hash

Scotty-provided SHA1 hash for an upload.

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

Sha256Hash

Scotty-provided SHA256 hash for an upload.

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

Timestamp

Time at which the media data was last updated, in milliseconds since UNIX epoch

Declaration
[JsonProperty("timestamp")]
public virtual ulong? Timestamp { get; set; }
Property Value
Type Description
ulong?

Token

A unique fingerprint/version id for the media data

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX