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 within the Google.Cloud.Iot.V1 namespace, specifically for version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e class is used to request a list of device states and inherits from System.Object while implementing multiple interfaces like \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\u003eKey properties of the \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e class include \u003ccode\u003eDeviceName\u003c/code\u003e (a typed view of the resource name), \u003ccode\u003eName\u003c/code\u003e (the string name of the device), and \u003ccode\u003eNumStates\u003c/code\u003e (the number of states to retrieve, up to a maximum of 10).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e class has two constructors; one is parameterless and the other one takes another \u003ccode\u003eListDeviceStatesRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]