struct FaceLibraryTraitextension Google.FaceLibraryTrait : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable, Trait, TraitEncodableUndocumented
-
The trait identifier.
Declaration
Swift
static let identifier: String -
List of all event types on the given Trait.
Currently, only
MatterTraittraits support any events, but this will likely expand to other traits in the future.Declaration
Swift
static let supportedEventTypes: [any Event.Type] -
List of all commands supported by the Trait’s definition. The commands supported by a specific Trait instance may vary.
Declaration
Swift
static var supportedCommandTypes: [any Command.Type] { get } -
Metadata about this
Trait.Declaration
Swift
let metadata: TraitMetadata -
Undocumented
Declaration
Swift
let attributes: Google.FaceLibraryTrait.Attributes -
Creates a new Trait instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throwsParameters
decoderThe raw data representing this Trait.
interactionProxyProxy to the Interaction Client.
metadataMetadata about this Trait.
-
Undocumented
Declaration
Swift
init(attributes: Google.FaceLibraryTrait.Attributes, interactionProxy: any InteractionProxy, metadata: TraitMetadata = TraitMetadata()) -
Writes this object to the given
TraitEncoder. ThrowsHomeError.encodingFailedif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Parameters
lhsA value to compare.
rhsAnother value to compare.
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important
In your implementation of
hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.Declaration
Swift
func hash(into hasher: inout Hasher) -
Undocumented
Declaration
Swift
struct Attributesextension Google.FaceLibraryTrait.Attributes : Copyable, Equatable, Escapable, Hashable, Sendable -
Undocumented
Declaration
Swift
enum Attributeextension Google.FaceLibraryTrait.Attribute : Equatable, Field, Hashable, RawRepresentable, Sendable -
Undocumented
Declaration
Swift
static func attribute(id: UInt32) -> (any Field)? -
Undocumented
Declaration
Swift
struct Faceextension Google.FaceLibraryTrait.Face : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceInstanceextension Google.FaceLibraryTrait.FaceInstance : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceByInstanceextension Google.FaceLibraryTrait.FaceByInstance : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceIdsextension Google.FaceLibraryTrait.FaceIds : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceCategoriesextension Google.FaceLibraryTrait.FaceCategories : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceInstancePositiveFeedbackextension Google.FaceLibraryTrait.FaceInstancePositiveFeedback : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
struct FaceInstanceNegativeFeedbackextension Google.FaceLibraryTrait.FaceInstanceNegativeFeedback : AutomationValue, DefaultConstructible, Equatable, Hashable, Sendable, StructDataRepresentable -
Undocumented
Declaration
Swift
enum FaceLibraryStatusextension Google.FaceLibraryTrait.FaceLibraryStatus : AutomationValue, Enum, Enum32, Equatable, Hashable, PlatformEnum, RawRepresentable, Sendable -
Undocumented
Declaration
Swift
enum FaceCategoryextension Google.FaceLibraryTrait.FaceCategory : AutomationValue, Enum, Enum32, Equatable, Hashable, PlatformEnum, RawRepresentable, Sendable -
Undocumented
Declaration
-
Declaration
Swift
func getFaces(faceIds: Google.FaceLibraryTrait.FaceIds? = nil, faceCategories: Google.FaceLibraryTrait.FaceCategories? = nil) async throws -> Google.FaceLibraryTrait.GetFacesResponseParameters
faceIdsfaceCategories -
Undocumented
Declaration
Swift
static func getFaces(faceIds: Google.FaceLibraryTrait.FaceIds?, faceCategories: Google.FaceLibraryTrait.FaceCategories?) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias GetFacesByInstancesRequest = Google.FaceLibraryTrait.GetFacesByInstances.Request -
Undocumented
Declaration
Swift
typealias GetFacesByInstancesResponse = Google.FaceLibraryTrait.GetFacesByInstances.Response -
Undocumented
Declaration
Swift
struct GetFacesByInstancesextension Google.FaceLibraryTrait.GetFacesByInstances : Command, Sendable -
Declaration
Swift
func getFacesByInstances(faceInstanceIdsArray: [String]) async throws -> Google.FaceLibraryTrait.GetFacesByInstancesResponseParameters
faceInstanceIdsArray -
Undocumented
Declaration
Swift
static func getFacesByInstances(faceInstanceIdsArray: [String]) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias UpdateFaceRequest = Google.FaceLibraryTrait.UpdateFace.Request -
Undocumented
Declaration
Swift
typealias UpdateFaceResponse = Google.FaceLibraryTrait.UpdateFace.Response -
Undocumented
Declaration
-
Declaration
Swift
func updateFace(id: String? = nil, name: String? = nil, category: Google.FaceLibraryTrait.FaceCategory? = nil) async throws -> Google.FaceLibraryTrait.UpdateFaceResponseParameters
idnamecategory -
Undocumented
Declaration
Swift
static func updateFace(id: String?, name: String?, category: Google.FaceLibraryTrait.FaceCategory?) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias MergeFacesRequest = Google.FaceLibraryTrait.MergeFaces.Request -
Undocumented
Declaration
Swift
typealias MergeFacesResponse = Google.FaceLibraryTrait.MergeFaces.Response -
Undocumented
Declaration
-
Declaration
Swift
func mergeFaces(mergedFaceId: String? = nil, faceIdsToMergeArray: [String], name: String? = nil) async throws -> Google.FaceLibraryTrait.MergeFacesResponseParameters
mergedFaceIdfaceIdsToMergeArrayname -
Undocumented
Declaration
Swift
static func mergeFaces(mergedFaceId: String?, faceIdsToMergeArray: [String], name: String?) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias RemoveFacesRequest = Google.FaceLibraryTrait.RemoveFaces.Request -
Undocumented
Declaration
Swift
typealias RemoveFacesResponse = Google.FaceLibraryTrait.RemoveFaces.Response -
Undocumented
Declaration
-
Declaration
Swift
func removeFaces(faceIdsArray: [String]) async throws -> Google.FaceLibraryTrait.RemoveFacesResponseParameters
faceIdsArray -
Undocumented
Declaration
Swift
static func removeFaces(faceIdsArray: [String]) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias GetFaceInstancesRequest = Google.FaceLibraryTrait.GetFaceInstances.Request -
Undocumented
Declaration
Swift
typealias GetFaceInstancesResponse = Google.FaceLibraryTrait.GetFaceInstances.Response -
Undocumented
Declaration
Swift
struct GetFaceInstancesextension Google.FaceLibraryTrait.GetFaceInstances : Command, Sendable -
Declaration
Swift
func getFaceInstances(faceId: String? = nil) async throws -> Google.FaceLibraryTrait.GetFaceInstancesResponseParameters
faceId -
Undocumented
Declaration
Swift
static func getFaceInstances(faceId: String?) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias MoveFaceInstancesRequest = Google.FaceLibraryTrait.MoveFaceInstances.Request -
Undocumented
Declaration
Swift
typealias MoveFaceInstancesResponse = Google.FaceLibraryTrait.MoveFaceInstances.Response -
Undocumented
Declaration
Swift
struct MoveFaceInstancesextension Google.FaceLibraryTrait.MoveFaceInstances : Command, Sendable -
Declaration
Swift
func moveFaceInstances(faceId: String? = nil, faceInstanceIdsArray: [String], name: String? = nil) async throws -> Google.FaceLibraryTrait.MoveFaceInstancesResponseParameters
faceIdfaceInstanceIdsArrayname -
Undocumented
Declaration
Swift
static func moveFaceInstances(faceId: String?, faceInstanceIdsArray: [String], name: String?) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias RemoveFaceInstancesRequest = Google.FaceLibraryTrait.RemoveFaceInstances.Request -
Undocumented
Declaration
Swift
typealias RemoveFaceInstancesResponse = Google.FaceLibraryTrait.RemoveFaceInstances.Response -
Undocumented
Declaration
Swift
struct RemoveFaceInstancesextension Google.FaceLibraryTrait.RemoveFaceInstances : Command, Sendable -
Declaration
Swift
func removeFaceInstances(faceInstanceIdsArray: [String]) async throws -> Google.FaceLibraryTrait.RemoveFaceInstancesResponseParameters
faceInstanceIdsArray -
Undocumented
Declaration
Swift
static func removeFaceInstances(faceInstanceIdsArray: [String]) -> AutomationCommand -
Undocumented
Declaration
Swift
typealias RemoveLibraryResponse = Google.FaceLibraryTrait.RemoveLibrary.Response -
Undocumented
Declaration
-
Undocumented
Declaration
Swift
func removeLibrary() async throws -> Google.FaceLibraryTrait.RemoveLibraryResponse -
Undocumented
Declaration
Swift
static func removeLibrary() -> AutomationCommand -
Undocumented
Declaration
Swift
typealias GiveFaceFeedbackRequest = Google.FaceLibraryTrait.GiveFaceFeedback.Request -
Undocumented
Declaration
Swift
typealias GiveFaceFeedbackResponse = Google.FaceLibraryTrait.GiveFaceFeedback.Response -
Undocumented
Declaration
Swift
struct GiveFaceFeedbackextension Google.FaceLibraryTrait.GiveFaceFeedback : Command, Sendable -
Declaration
Swift
func giveFaceFeedback(faceInstancePositiveFeedback: Google.FaceLibraryTrait.FaceInstancePositiveFeedback? = nil, faceInstanceNegativeFeedback: Google.FaceLibraryTrait.FaceInstanceNegativeFeedback? = nil) async throws -> Google.FaceLibraryTrait.GiveFaceFeedbackResponseParameters
faceInstancePositiveFeedbackfaceInstanceNegativeFeedback -
Undocumented
Declaration
Swift
static func giveFaceFeedback(faceInstancePositiveFeedback: Google.FaceLibraryTrait.FaceInstancePositiveFeedback?, faceInstanceNegativeFeedback: Google.FaceLibraryTrait.FaceInstanceNegativeFeedback?) -> AutomationCommand