Struct FileUpdateHistoryDescriptor
This struct contains the identifiers for a file's update history entry.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public struct FileUpdateHistoryDescriptor
Constructors
FileUpdateHistoryDescriptor(FileDescriptor, int)
Creates an instance of the FileUpdateHistoryDescriptor struct.
Declaration
public FileUpdateHistoryDescriptor(FileDescriptor fileDescriptor, int sequenceNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| FileDescriptor | fileDescriptor | The history entry's file descriptor. |
| int | sequenceNumber | The history entry's sequence number. |
Properties
AssetId
Declaration
public AssetId AssetId { get; }
Property Value
| Type | Description |
|---|---|
| AssetId |
AssetVersion
Declaration
public AssetVersion AssetVersion { get; }
Property Value
| Type | Description |
|---|---|
| AssetVersion |
DatasetId
Declaration
public DatasetId DatasetId { get; }
Property Value
| Type | Description |
|---|---|
| DatasetId |
FileDescriptor
The file descriptor of the history entry.
Declaration
public readonly FileDescriptor FileDescriptor { get; }
Property Value
| Type | Description |
|---|---|
| FileDescriptor |
FilePath
Declaration
public string FilePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
OrganizationId
Declaration
public OrganizationId OrganizationId { get; }
Property Value
| Type | Description |
|---|---|
| OrganizationId |
ProjectId
Declaration
public ProjectId ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| ProjectId |
SequenceNumber
The sequence number of the history entry.
Declaration
public readonly int SequenceNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Equals(object)
Validate obj is a FileUpdateHistoryDescriptor instance and have the same values as this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Compare the values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
Overrides
Equals(FileUpdateHistoryDescriptor)
Returns whether two FileUpdateHistoryDescriptor objects are equals.
Declaration
public bool Equals(FileUpdateHistoryDescriptor other)
Parameters
| Type | Name | Description |
|---|---|---|
| FileUpdateHistoryDescriptor | other | Compare the values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
GetHashCode()
Compute a hash code for the object.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
- You should not assume that equal hash codes imply object equality.
- You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.
Operators
operator ==(FileUpdateHistoryDescriptor, FileUpdateHistoryDescriptor)
Checks whether two FileUpdateHistoryDescriptor are equal.
Declaration
public static bool operator ==(FileUpdateHistoryDescriptor left, FileUpdateHistoryDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| FileUpdateHistoryDescriptor | left | Compare with this first instance. |
| FileUpdateHistoryDescriptor | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(FileUpdateHistoryDescriptor, FileUpdateHistoryDescriptor)
Checks whether two FileUpdateHistoryDescriptor aren't equal.
Declaration
public static bool operator !=(FileUpdateHistoryDescriptor left, FileUpdateHistoryDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| FileUpdateHistoryDescriptor | left | Compare with this first instance. |
| FileUpdateHistoryDescriptor | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are not the same; false if both instances are the same. |