struct AssistantBroadcastTraitAPI for the AssistantBroadcast trait. It is used to broadcast message for automations only and is not available in Device and Structure APIs.
- 
                  
                  The trait identifier. DeclarationSwift 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.DeclarationSwift 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. DeclarationSwift static var supportedCommandTypes: [any Command.Type] { get }
- 
                  
                  Metadata about this Trait.DeclarationSwift let metadata: TraitMetadata
- 
                  
                  Creates a new Trait instance using data read from the given TraitDecoder.Throws HomeError.parseErrorwhen parsing fails.DeclarationSwift init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throwsParametersdecoderThe raw data representing this Trait. interactionProxyProxy to the Interaction Client. metadataMetadata about this Trait. 
- 
                  
                  Writes this object to the given TraitEncoder. ThrowsHomeError.encodingFailedif the data could not be encoded.DeclarationSwift 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.DeclarationParameterslhsA 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.DeclarationSwift func hash(into hasher: inout Hasher)
- 
                  
                  Broadcast the message on all the devices in a structure or on a particular device. DeclarationSwift func broadcast(msg: String?) async throws -> Google.AssistantBroadcastTrait.BroadcastCommandResponseParametersmsgThe message to be broadcast.