public sealed class Spoke.Types.StateReason : IMessage<Spoke.Types.StateReason>, IEquatable<Spoke.Types.StateReason>, IDeepCloneable<Spoke.Types.StateReason>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Connectivity v1 API class Spoke.Types.StateReason.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eSpoke.Types.StateReason\u003c/code\u003e class within the Google Cloud Network Connectivity v1 API, detailing the reasons a spoke might be inactive.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpoke.Types.StateReason\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message management, comparison, cloning, and efficient data handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties including \u003ccode\u003eCode\u003c/code\u003e, \u003ccode\u003eMessage\u003c/code\u003e, and \u003ccode\u003eUserDetails\u003c/code\u003e, which are used to provide structured and detailed information on why a spoke might be inactive, including an associated code, a descriptive message, and user-provided details.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions of the \u003ccode\u003eSpoke.Types.StateReason\u003c/code\u003e class range from version 1.0.0 up to the most recent version 2.9.0, which is the latest release.\u003c/p\u003e\n"]]],[],null,["# Network Connectivity v1 API - Class Spoke.Types.StateReason (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason) \n\n public sealed class Spoke.Types.StateReason : IMessage\u003cSpoke.Types.StateReason\u003e, IEquatable\u003cSpoke.Types.StateReason\u003e, IDeepCloneable\u003cSpoke.Types.StateReason\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Connectivity v1 API class Spoke.Types.StateReason.\n\nThe reason a spoke is inactive. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Spoke.Types.StateReason \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Spoke](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types)[StateReason](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Spoke](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types)[StateReason](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Spoke](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types)[StateReason](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.Spoke.Types.StateReason), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.NetworkConnectivity.V1](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkConnectivity.V1.dll\n\nConstructors\n------------\n\n### StateReason()\n\n public StateReason()\n\n### StateReason(StateReason)\n\n public StateReason(Spoke.Types.StateReason other)\n\nProperties\n----------\n\n### Code\n\n public Spoke.Types.StateReason.Types.Code Code { get; set; }\n\nThe code associated with this reason.\n\n### Message\n\n public string Message { get; set; }\n\nHuman-readable details about this reason.\n\n### UserDetails\n\n public string UserDetails { get; set; }\n\nAdditional information provided by the user in the RejectSpoke call."]]