public sealed class ListDeviceStatesRequest : IMessage<ListDeviceStatesRequest>, IEquatable<ListDeviceStatesRequest>, IDeepCloneable<ListDeviceStatesRequest>, IBufferMessage, IMessage
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0 or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
Property Value
Type
Description
System.String
NumStates
public int NumStates { get; set; }
The number of states to list. States are listed in descending order of
update time. The maximum number of states retained is 10. If this
value is zero, it will return all the states available.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides information about the \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e class, which is part of the Google Cloud IoT V1 library, specifically within version 2.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e is used to request a list of device states and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eObject\u003c/code\u003e and includes properties like \u003ccode\u003eDeviceName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eNumStates\u003c/code\u003e, with \u003ccode\u003eName\u003c/code\u003e being a required field for specifying the device's resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNumStates\u003c/code\u003e property determines how many device states to list, with a maximum of 10, and if set to zero, it returns all available states.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple previous versions of \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e available for access, in addition to the latest version 2.2.0.\u003c/p\u003e\n"]]],[],null,[]]