docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct FieldDefinitionDescriptor

    This struct contains the identifiers for a project.

    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public readonly struct FieldDefinitionDescriptor

    Constructors

    FieldDefinitionDescriptor(OrganizationId, string)

    Creates an instance of the FieldDefinitionDescriptor struct.

    Declaration
    public FieldDefinitionDescriptor(OrganizationId organizationId, string fieldKey)
    Parameters
    Type Name Description
    OrganizationId organizationId

    The project's organization genesis ID.

    string fieldKey

    The key of the field.

    Fields

    FieldKey

    A unique name for the field. Uniqueness is scoped to the organization.

    Declaration
    public readonly string FieldKey
    Field Value
    Type Description
    string

    OrganizationId

    The project's organization genesis ID.

    Declaration
    public readonly OrganizationId OrganizationId
    Field Value
    Type Description
    OrganizationId

    Methods

    Equals(object)

    Validate obj is a FieldDefinitionDescriptor 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
    ValueType.Equals(object)

    Equals(FieldDefinitionDescriptor)

    Returns whether two FieldDefinitionDescriptor objects are equals.

    Declaration
    public bool Equals(FieldDefinitionDescriptor other)
    Parameters
    Type Name Description
    FieldDefinitionDescriptor other

    Compare the values with this instance.

    Returns
    Type Description
    bool

    true if both instance have the same values; false otherwise.

    FromJson(string)

    Deserializes the given JSON string into a FieldDefinitionDescriptor object.

    Declaration
    public static FieldDefinitionDescriptor FromJson(string json)
    Parameters
    Type Name Description
    string json

    A FieldDefinitionDescriptor serialized as a JSON string.

    Returns
    Type Description
    FieldDefinitionDescriptor

    A FieldDefinitionDescriptor.

    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
    ValueType.GetHashCode()
    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.

    ToJson()

    Serializes the FieldDefinitionDescriptor into a JSON string.

    Declaration
    public string ToJson()
    Returns
    Type Description
    string

    A FieldDefinitionDescriptor serialized as a JSON string.

    Operators

    operator ==(FieldDefinitionDescriptor, FieldDefinitionDescriptor)

    Get if two FieldDefinitionDescriptor represent the same.

    Declaration
    public static bool operator ==(FieldDefinitionDescriptor left, FieldDefinitionDescriptor right)
    Parameters
    Type Name Description
    FieldDefinitionDescriptor left

    Compare with this first instance.

    FieldDefinitionDescriptor right

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    operator !=(FieldDefinitionDescriptor, FieldDefinitionDescriptor)

    Get if two FieldDefinitionDescriptor does not represent the same.

    Declaration
    public static bool operator !=(FieldDefinitionDescriptor left, FieldDefinitionDescriptor right)
    Parameters
    Type Name Description
    FieldDefinitionDescriptor left

    Compare with this first instance.

    FieldDefinitionDescriptor 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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)