Skip to main content

opcua_kit/ua/
generated.rs

1// Generated from OPC Foundation UA-Nodeset ed0b821f6a6f1f0c440c442ed95a9146ae8b7f8d.
2// Regenerate with tools/generate-ua.py. See LICENSE-OPC-Foundation.
3use super::*;
4ua_enum!(ApplicationType {
5    Server = 0,
6    Client = 1,
7    ClientAndServer = 2,
8    DiscoveryServer = 3,
9});
10ua_enum!(BrowseDirection {
11    Forward = 0,
12    Inverse = 1,
13    Both = 2,
14    Invalid = 3,
15});
16ua_enum!(DataChangeTrigger {
17    Status = 0,
18    StatusValue = 1,
19    StatusValueTimestamp = 2,
20});
21ua_enum!(FilterOperator {
22    Equals = 0,
23    IsNull = 1,
24    GreaterThan = 2,
25    LessThan = 3,
26    GreaterThanOrEqual = 4,
27    LessThanOrEqual = 5,
28    Like = 6,
29    Not = 7,
30    Between = 8,
31    InList = 9,
32    And = 10,
33    Or = 11,
34    Cast = 12,
35    InView = 13,
36    OfType = 14,
37    RelatedTo = 15,
38    BitwiseAnd = 16,
39    BitwiseOr = 17,
40});
41ua_enum!(MessageSecurityMode {
42    Invalid = 0,
43    None = 1,
44    Sign = 2,
45    SignAndEncrypt = 3,
46});
47ua_enum!(MonitoringMode {
48    Disabled = 0,
49    Sampling = 1,
50    Reporting = 2,
51});
52ua_enum!(NodeClass {
53    Unspecified = 0,
54    Object = 1,
55    Variable = 2,
56    Method = 4,
57    ObjectType = 8,
58    VariableType = 16,
59    ReferenceType = 32,
60    DataType = 64,
61    View = 128,
62});
63ua_enum!(SecurityTokenRequestType {
64    Issue = 0,
65    Renew = 1,
66});
67ua_enum!(ServerState {
68    Running = 0,
69    Failed = 1,
70    NoConfiguration = 2,
71    Suspended = 3,
72    Shutdown = 4,
73    Test = 5,
74    CommunicationFault = 6,
75    Unknown = 7,
76});
77ua_enum!(TimestampsToReturn {
78    Source = 0,
79    Server = 1,
80    Both = 2,
81    Neither = 3,
82    Invalid = 4,
83});
84ua_enum!(UserTokenType {
85    Anonymous = 0,
86    UserName = 1,
87    Certificate = 2,
88    IssuedToken = 3,
89});
90ua_struct!(ActivateSessionRequest {
91    request_header: RequestHeader,
92    client_signature: SignatureData,
93    client_software_certificates: Option<Vec<SignedSoftwareCertificate>>,
94    locale_ids: Option<Vec<UAString>>,
95    user_identity_token: ExtensionObject,
96    user_token_signature: SignatureData,
97});
98ua_struct!(ActivateSessionResponse {
99    response_header: ResponseHeader,
100    server_nonce: ByteString,
101    results: Option<Vec<StatusCode>>,
102    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
103});
104ua_struct!(AnonymousIdentityToken {
105    policy_id: UAString,
106});
107ua_struct!(ApplicationDescription {
108    application_uri: UAString,
109    product_uri: UAString,
110    application_name: LocalizedText,
111    application_type: ApplicationType,
112    gateway_server_uri: UAString,
113    discovery_profile_uri: UAString,
114    discovery_urls: Option<Vec<UAString>>,
115});
116ua_struct!(Argument {
117    name: UAString,
118    data_type: NodeId,
119    value_rank: i32,
120    array_dimensions: Option<Vec<u32>>,
121    description: LocalizedText,
122});
123ua_struct!(BrowseDescription {
124    node_id: NodeId,
125    browse_direction: BrowseDirection,
126    reference_type_id: NodeId,
127    include_subtypes: bool,
128    node_class_mask: u32,
129    result_mask: u32,
130});
131ua_struct!(BrowseNextRequest {
132    request_header: RequestHeader,
133    release_continuation_points: bool,
134    continuation_points: Option<Vec<ByteString>>,
135});
136ua_struct!(BrowseNextResponse {
137    response_header: ResponseHeader,
138    results: Option<Vec<BrowseResult>>,
139    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
140});
141ua_struct!(BrowsePath {
142    starting_node: NodeId,
143    relative_path: RelativePath,
144});
145ua_struct!(BrowsePathResult {
146    status_code: StatusCode,
147    targets: Option<Vec<BrowsePathTarget>>,
148});
149ua_struct!(BrowsePathTarget {
150    target_id: ExpandedNodeId,
151    remaining_path_index: u32,
152});
153ua_struct!(BrowseRequest {
154    request_header: RequestHeader,
155    view: ViewDescription,
156    requested_max_references_per_node: u32,
157    nodes_to_browse: Option<Vec<BrowseDescription>>,
158});
159ua_struct!(BrowseResponse {
160    response_header: ResponseHeader,
161    results: Option<Vec<BrowseResult>>,
162    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
163});
164ua_struct!(BrowseResult {
165    status_code: StatusCode,
166    continuation_point: ByteString,
167    references: Option<Vec<ReferenceDescription>>,
168});
169ua_struct!(BuildInfo {
170    product_uri: UAString,
171    manufacturer_name: UAString,
172    product_name: UAString,
173    software_version: UAString,
174    build_number: UAString,
175    build_date: DateTime,
176});
177ua_struct!(CallMethodRequest {
178    object_id: NodeId,
179    method_id: NodeId,
180    input_arguments: Option<Vec<Variant>>,
181});
182ua_struct!(CallMethodResult {
183    status_code: StatusCode,
184    input_argument_results: Option<Vec<StatusCode>>,
185    input_argument_diagnostic_infos: Option<Vec<DiagnosticInfo>>,
186    output_arguments: Option<Vec<Variant>>,
187});
188ua_struct!(CallRequest {
189    request_header: RequestHeader,
190    methods_to_call: Option<Vec<CallMethodRequest>>,
191});
192ua_struct!(CallResponse {
193    response_header: ResponseHeader,
194    results: Option<Vec<CallMethodResult>>,
195    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
196});
197ua_struct!(ChannelSecurityToken {
198    channel_id: u32,
199    token_id: u32,
200    created_at: DateTime,
201    revised_lifetime: u32,
202});
203ua_struct!(CloseSecureChannelRequest {
204    request_header: RequestHeader,
205});
206ua_struct!(CloseSecureChannelResponse {
207    response_header: ResponseHeader,
208});
209ua_struct!(CloseSessionRequest {
210    request_header: RequestHeader,
211    delete_subscriptions: bool,
212});
213ua_struct!(CloseSessionResponse {
214    response_header: ResponseHeader,
215});
216ua_struct!(ContentFilter {
217    elements: Option<Vec<ContentFilterElement>>,
218});
219ua_struct!(ContentFilterElement {
220    filter_operator: FilterOperator,
221    filter_operands: Option<Vec<ExtensionObject>>,
222});
223ua_struct!(ContentFilterElementResult {
224    status_code: StatusCode,
225    operand_status_codes: Option<Vec<StatusCode>>,
226    operand_diagnostic_infos: Option<Vec<DiagnosticInfo>>,
227});
228ua_struct!(ContentFilterResult {
229    element_results: Option<Vec<ContentFilterElementResult>>,
230    element_diagnostic_infos: Option<Vec<DiagnosticInfo>>,
231});
232ua_struct!(CreateMonitoredItemsRequest {
233    request_header: RequestHeader,
234    subscription_id: u32,
235    timestamps_to_return: TimestampsToReturn,
236    items_to_create: Option<Vec<MonitoredItemCreateRequest>>,
237});
238ua_struct!(CreateMonitoredItemsResponse {
239    response_header: ResponseHeader,
240    results: Option<Vec<MonitoredItemCreateResult>>,
241    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
242});
243ua_struct!(CreateSessionRequest {
244    request_header: RequestHeader,
245    client_description: ApplicationDescription,
246    server_uri: UAString,
247    endpoint_url: UAString,
248    session_name: UAString,
249    client_nonce: ByteString,
250    client_certificate: ByteString,
251    requested_session_timeout: f64,
252    max_response_message_size: u32,
253});
254ua_struct!(CreateSessionResponse {
255    response_header: ResponseHeader,
256    session_id: NodeId,
257    authentication_token: NodeId,
258    revised_session_timeout: f64,
259    server_nonce: ByteString,
260    server_certificate: ByteString,
261    server_endpoints: Option<Vec<EndpointDescription>>,
262    server_software_certificates: Option<Vec<SignedSoftwareCertificate>>,
263    server_signature: SignatureData,
264    max_request_message_size: u32,
265});
266ua_struct!(CreateSubscriptionRequest {
267    request_header: RequestHeader,
268    requested_publishing_interval: f64,
269    requested_lifetime_count: u32,
270    requested_max_keep_alive_count: u32,
271    max_notifications_per_publish: u32,
272    publishing_enabled: bool,
273    priority: u8,
274});
275ua_struct!(CreateSubscriptionResponse {
276    response_header: ResponseHeader,
277    subscription_id: u32,
278    revised_publishing_interval: f64,
279    revised_lifetime_count: u32,
280    revised_max_keep_alive_count: u32,
281});
282ua_struct!(DataChangeFilter {
283    trigger: DataChangeTrigger,
284    deadband_type: u32,
285    deadband_value: f64,
286});
287ua_struct!(DataChangeNotification {
288    monitored_items: Option<Vec<MonitoredItemNotification>>,
289    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
290});
291ua_struct!(DeleteMonitoredItemsRequest {
292    request_header: RequestHeader,
293    subscription_id: u32,
294    monitored_item_ids: Option<Vec<u32>>,
295});
296ua_struct!(DeleteMonitoredItemsResponse {
297    response_header: ResponseHeader,
298    results: Option<Vec<StatusCode>>,
299    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
300});
301ua_struct!(DeleteSubscriptionsRequest {
302    request_header: RequestHeader,
303    subscription_ids: Option<Vec<u32>>,
304});
305ua_struct!(DeleteSubscriptionsResponse {
306    response_header: ResponseHeader,
307    results: Option<Vec<StatusCode>>,
308    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
309});
310ua_struct!(EUInformation {
311    namespace_uri: UAString,
312    unit_id: i32,
313    display_name: LocalizedText,
314    description: LocalizedText,
315});
316ua_struct!(EndpointDescription {
317    endpoint_url: UAString,
318    server: ApplicationDescription,
319    server_certificate: ByteString,
320    security_mode: MessageSecurityMode,
321    security_policy_uri: UAString,
322    user_identity_tokens: Option<Vec<UserTokenPolicy>>,
323    transport_profile_uri: UAString,
324    security_level: u8,
325});
326ua_struct!(EventFieldList {
327    client_handle: u32,
328    event_fields: Option<Vec<Variant>>,
329});
330ua_struct!(EventFilter {
331    select_clauses: Option<Vec<SimpleAttributeOperand>>,
332    where_clause: ContentFilter,
333});
334ua_struct!(EventFilterResult {
335    select_clause_results: Option<Vec<StatusCode>>,
336    select_clause_diagnostic_infos: Option<Vec<DiagnosticInfo>>,
337    where_clause_result: ContentFilterResult,
338});
339ua_struct!(EventNotificationList {
340    events: Option<Vec<EventFieldList>>,
341});
342ua_struct!(FindServersRequest {
343    request_header: RequestHeader,
344    endpoint_url: UAString,
345    locale_ids: Option<Vec<UAString>>,
346    server_uris: Option<Vec<UAString>>,
347});
348ua_struct!(FindServersResponse {
349    response_header: ResponseHeader,
350    servers: Option<Vec<ApplicationDescription>>,
351});
352ua_struct!(GetEndpointsRequest {
353    request_header: RequestHeader,
354    endpoint_url: UAString,
355    locale_ids: Option<Vec<UAString>>,
356    profile_uris: Option<Vec<UAString>>,
357});
358ua_struct!(GetEndpointsResponse {
359    response_header: ResponseHeader,
360    endpoints: Option<Vec<EndpointDescription>>,
361});
362ua_struct!(HistoryData {
363    data_values: Option<Vec<DataValue>>,
364});
365ua_struct!(HistoryReadRequest {
366    request_header: RequestHeader,
367    history_read_details: ExtensionObject,
368    timestamps_to_return: TimestampsToReturn,
369    release_continuation_points: bool,
370    nodes_to_read: Option<Vec<HistoryReadValueId>>,
371});
372ua_struct!(HistoryReadResponse {
373    response_header: ResponseHeader,
374    results: Option<Vec<HistoryReadResult>>,
375    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
376});
377ua_struct!(HistoryReadResult {
378    status_code: StatusCode,
379    continuation_point: ByteString,
380    history_data: ExtensionObject,
381});
382ua_struct!(HistoryReadValueId {
383    node_id: NodeId,
384    index_range: UAString,
385    data_encoding: QualifiedName,
386    continuation_point: ByteString,
387});
388ua_struct!(ModifyMonitoredItemsRequest {
389    request_header: RequestHeader,
390    subscription_id: u32,
391    timestamps_to_return: TimestampsToReturn,
392    items_to_modify: Option<Vec<MonitoredItemModifyRequest>>,
393});
394ua_struct!(ModifyMonitoredItemsResponse {
395    response_header: ResponseHeader,
396    results: Option<Vec<MonitoredItemModifyResult>>,
397    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
398});
399ua_struct!(ModifySubscriptionRequest {
400    request_header: RequestHeader,
401    subscription_id: u32,
402    requested_publishing_interval: f64,
403    requested_lifetime_count: u32,
404    requested_max_keep_alive_count: u32,
405    max_notifications_per_publish: u32,
406    priority: u8,
407});
408ua_struct!(ModifySubscriptionResponse {
409    response_header: ResponseHeader,
410    revised_publishing_interval: f64,
411    revised_lifetime_count: u32,
412    revised_max_keep_alive_count: u32,
413});
414ua_struct!(MonitoredItemCreateRequest {
415    item_to_monitor: ReadValueId,
416    monitoring_mode: MonitoringMode,
417    requested_parameters: MonitoringParameters,
418});
419ua_struct!(MonitoredItemCreateResult {
420    status_code: StatusCode,
421    monitored_item_id: u32,
422    revised_sampling_interval: f64,
423    revised_queue_size: u32,
424    filter_result: ExtensionObject,
425});
426ua_struct!(MonitoredItemModifyRequest {
427    monitored_item_id: u32,
428    requested_parameters: MonitoringParameters,
429});
430ua_struct!(MonitoredItemModifyResult {
431    status_code: StatusCode,
432    revised_sampling_interval: f64,
433    revised_queue_size: u32,
434    filter_result: ExtensionObject,
435});
436ua_struct!(MonitoredItemNotification {
437    client_handle: u32,
438    value: DataValue,
439});
440ua_struct!(MonitoringParameters {
441    client_handle: u32,
442    sampling_interval: f64,
443    filter: ExtensionObject,
444    queue_size: u32,
445    discard_oldest: bool,
446});
447ua_struct!(NotificationMessage {
448    sequence_number: u32,
449    publish_time: DateTime,
450    notification_data: Option<Vec<ExtensionObject>>,
451});
452ua_struct!(OpenSecureChannelRequest {
453    request_header: RequestHeader,
454    client_protocol_version: u32,
455    request_type: SecurityTokenRequestType,
456    security_mode: MessageSecurityMode,
457    client_nonce: ByteString,
458    requested_lifetime: u32,
459});
460ua_struct!(OpenSecureChannelResponse {
461    response_header: ResponseHeader,
462    server_protocol_version: u32,
463    security_token: ChannelSecurityToken,
464    server_nonce: ByteString,
465});
466ua_struct!(PublishRequest {
467    request_header: RequestHeader,
468    subscription_acknowledgements: Option<Vec<SubscriptionAcknowledgement>>,
469});
470ua_struct!(PublishResponse {
471    response_header: ResponseHeader,
472    subscription_id: u32,
473    available_sequence_numbers: Option<Vec<u32>>,
474    more_notifications: bool,
475    notification_message: NotificationMessage,
476    results: Option<Vec<StatusCode>>,
477    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
478});
479ua_struct!(ReadRawModifiedDetails {
480    is_read_modified: bool,
481    start_time: DateTime,
482    end_time: DateTime,
483    num_values_per_node: u32,
484    return_bounds: bool,
485});
486ua_struct!(ReadRequest {
487    request_header: RequestHeader,
488    max_age: f64,
489    timestamps_to_return: TimestampsToReturn,
490    nodes_to_read: Option<Vec<ReadValueId>>,
491});
492ua_struct!(ReadResponse {
493    response_header: ResponseHeader,
494    results: Option<Vec<DataValue>>,
495    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
496});
497ua_struct!(ReadValueId {
498    node_id: NodeId,
499    attribute_id: u32,
500    index_range: UAString,
501    data_encoding: QualifiedName,
502});
503ua_struct!(ReferenceDescription {
504    reference_type_id: NodeId,
505    is_forward: bool,
506    node_id: ExpandedNodeId,
507    browse_name: QualifiedName,
508    display_name: LocalizedText,
509    node_class: NodeClass,
510    type_definition: ExpandedNodeId,
511});
512ua_struct!(RelativePath {
513    elements: Option<Vec<RelativePathElement>>,
514});
515ua_struct!(RelativePathElement {
516    reference_type_id: NodeId,
517    is_inverse: bool,
518    include_subtypes: bool,
519    target_name: QualifiedName,
520});
521ua_struct!(RepublishRequest {
522    request_header: RequestHeader,
523    subscription_id: u32,
524    retransmit_sequence_number: u32,
525});
526ua_struct!(RepublishResponse {
527    response_header: ResponseHeader,
528    notification_message: NotificationMessage,
529});
530ua_struct!(RequestHeader {
531    authentication_token: NodeId,
532    timestamp: DateTime,
533    request_handle: u32,
534    return_diagnostics: u32,
535    audit_entry_id: UAString,
536    timeout_hint: u32,
537    additional_header: ExtensionObject,
538});
539ua_struct!(ResponseHeader {
540    timestamp: DateTime,
541    request_handle: u32,
542    service_result: StatusCode,
543    service_diagnostics: DiagnosticInfo,
544    string_table: Option<Vec<UAString>>,
545    additional_header: ExtensionObject,
546});
547ua_struct!(ServerStatusDataType {
548    start_time: DateTime,
549    current_time: DateTime,
550    state: ServerState,
551    build_info: BuildInfo,
552    seconds_till_shutdown: u32,
553    shutdown_reason: LocalizedText,
554});
555ua_struct!(ServiceFault {
556    response_header: ResponseHeader,
557});
558ua_struct!(SetMonitoringModeRequest {
559    request_header: RequestHeader,
560    subscription_id: u32,
561    monitoring_mode: MonitoringMode,
562    monitored_item_ids: Option<Vec<u32>>,
563});
564ua_struct!(SetMonitoringModeResponse {
565    response_header: ResponseHeader,
566    results: Option<Vec<StatusCode>>,
567    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
568});
569ua_struct!(SetPublishingModeRequest {
570    request_header: RequestHeader,
571    publishing_enabled: bool,
572    subscription_ids: Option<Vec<u32>>,
573});
574ua_struct!(SetPublishingModeResponse {
575    response_header: ResponseHeader,
576    results: Option<Vec<StatusCode>>,
577    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
578});
579ua_struct!(SignatureData {
580    algorithm: UAString,
581    signature: ByteString,
582});
583ua_struct!(SignedSoftwareCertificate {
584    certificate_data: ByteString,
585    signature: ByteString,
586});
587ua_struct!(SimpleAttributeOperand {
588    type_definition_id: NodeId,
589    browse_path: Option<Vec<QualifiedName>>,
590    attribute_id: u32,
591    index_range: UAString,
592});
593ua_struct!(StatusChangeNotification {
594    status: StatusCode,
595    diagnostic_info: DiagnosticInfo,
596});
597ua_struct!(SubscriptionAcknowledgement {
598    subscription_id: u32,
599    sequence_number: u32,
600});
601ua_struct!(TranslateBrowsePathsToNodeIdsRequest {
602    request_header: RequestHeader,
603    browse_paths: Option<Vec<BrowsePath>>,
604});
605ua_struct!(TranslateBrowsePathsToNodeIdsResponse {
606    response_header: ResponseHeader,
607    results: Option<Vec<BrowsePathResult>>,
608    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
609});
610ua_struct!(UserNameIdentityToken {
611    policy_id: UAString,
612    user_name: UAString,
613    password: ByteString,
614    encryption_algorithm: UAString,
615});
616ua_struct!(UserTokenPolicy {
617    policy_id: UAString,
618    token_type: UserTokenType,
619    issued_token_type: UAString,
620    issuer_endpoint_url: UAString,
621    security_policy_uri: UAString,
622});
623ua_struct!(ViewDescription {
624    view_id: NodeId,
625    timestamp: DateTime,
626    view_version: u32,
627});
628ua_struct!(WriteRequest {
629    request_header: RequestHeader,
630    nodes_to_write: Option<Vec<WriteValue>>,
631});
632ua_struct!(WriteResponse {
633    response_header: ResponseHeader,
634    results: Option<Vec<StatusCode>>,
635    diagnostic_infos: Option<Vec<DiagnosticInfo>>,
636});
637ua_struct!(WriteValue {
638    node_id: NodeId,
639    attribute_id: u32,
640    index_range: UAString,
641    value: DataValue,
642});
643object_ids! {
644    ActivateSessionRequest_Encoding_DefaultBinary = 467,
645    ActivateSessionResponse_Encoding_DefaultBinary = 470,
646    AddNodesRequest_Encoding_DefaultBinary = 488,
647    AddReferencesRequest_Encoding_DefaultBinary = 494,
648    AnonymousIdentityToken_Encoding_DefaultBinary = 321,
649    ApplicationDescription_Encoding_DefaultBinary = 310,
650    Argument_Encoding_DefaultBinary = 298,
651    BrowseDescription_Encoding_DefaultBinary = 516,
652    BrowseNextRequest_Encoding_DefaultBinary = 533,
653    BrowseNextResponse_Encoding_DefaultBinary = 536,
654    BrowsePath_Encoding_DefaultBinary = 545,
655    BrowsePathResult_Encoding_DefaultBinary = 551,
656    BrowsePathTarget_Encoding_DefaultBinary = 548,
657    BrowseRequest_Encoding_DefaultBinary = 527,
658    BrowseResponse_Encoding_DefaultBinary = 530,
659    BrowseResult_Encoding_DefaultBinary = 524,
660    BuildInfo_Encoding_DefaultBinary = 340,
661    CallMethodRequest_Encoding_DefaultBinary = 706,
662    CallMethodResult_Encoding_DefaultBinary = 709,
663    CallRequest_Encoding_DefaultBinary = 712,
664    CallResponse_Encoding_DefaultBinary = 715,
665    ChannelSecurityToken_Encoding_DefaultBinary = 443,
666    CloseSecureChannelRequest_Encoding_DefaultBinary = 452,
667    CloseSecureChannelResponse_Encoding_DefaultBinary = 455,
668    CloseSessionRequest_Encoding_DefaultBinary = 473,
669    CloseSessionResponse_Encoding_DefaultBinary = 476,
670    ContentFilter_Encoding_DefaultBinary = 588,
671    ContentFilterElement_Encoding_DefaultBinary = 585,
672    ContentFilterElementResult_Encoding_DefaultBinary = 606,
673    ContentFilterResult_Encoding_DefaultBinary = 609,
674    CreateMonitoredItemsRequest_Encoding_DefaultBinary = 751,
675    CreateMonitoredItemsResponse_Encoding_DefaultBinary = 754,
676    CreateSessionRequest_Encoding_DefaultBinary = 461,
677    CreateSessionResponse_Encoding_DefaultBinary = 464,
678    CreateSubscriptionRequest_Encoding_DefaultBinary = 787,
679    CreateSubscriptionResponse_Encoding_DefaultBinary = 790,
680    DataChangeFilter_Encoding_DefaultBinary = 724,
681    DataChangeNotification_Encoding_DefaultBinary = 811,
682    DeleteMonitoredItemsRequest_Encoding_DefaultBinary = 781,
683    DeleteMonitoredItemsResponse_Encoding_DefaultBinary = 784,
684    DeleteNodesRequest_Encoding_DefaultBinary = 500,
685    DeleteReferencesRequest_Encoding_DefaultBinary = 506,
686    DeleteSubscriptionsRequest_Encoding_DefaultBinary = 847,
687    DeleteSubscriptionsResponse_Encoding_DefaultBinary = 850,
688    EUInformation_Encoding_DefaultBinary = 889,
689    EndpointDescription_Encoding_DefaultBinary = 314,
690    EventFieldList_Encoding_DefaultBinary = 919,
691    EventFilter_Encoding_DefaultBinary = 727,
692    EventFilterResult_Encoding_DefaultBinary = 736,
693    EventNotificationList_Encoding_DefaultBinary = 916,
694    FindServersRequest_Encoding_DefaultBinary = 422,
695    FindServersResponse_Encoding_DefaultBinary = 425,
696    GetEndpointsRequest_Encoding_DefaultBinary = 428,
697    GetEndpointsResponse_Encoding_DefaultBinary = 431,
698    HistoryData_Encoding_DefaultBinary = 658,
699    HistoryReadRequest_Encoding_DefaultBinary = 664,
700    HistoryReadResponse_Encoding_DefaultBinary = 667,
701    HistoryReadResult_Encoding_DefaultBinary = 640,
702    HistoryReadValueId_Encoding_DefaultBinary = 637,
703    HistoryUpdateRequest_Encoding_DefaultBinary = 700,
704    ModifyMonitoredItemsRequest_Encoding_DefaultBinary = 763,
705    ModifyMonitoredItemsResponse_Encoding_DefaultBinary = 766,
706    ModifySubscriptionRequest_Encoding_DefaultBinary = 793,
707    ModifySubscriptionResponse_Encoding_DefaultBinary = 796,
708    MonitoredItemCreateRequest_Encoding_DefaultBinary = 745,
709    MonitoredItemCreateResult_Encoding_DefaultBinary = 748,
710    MonitoredItemModifyRequest_Encoding_DefaultBinary = 757,
711    MonitoredItemModifyResult_Encoding_DefaultBinary = 760,
712    MonitoredItemNotification_Encoding_DefaultBinary = 808,
713    MonitoringParameters_Encoding_DefaultBinary = 742,
714    NotificationMessage_Encoding_DefaultBinary = 805,
715    OpenSecureChannelRequest_Encoding_DefaultBinary = 446,
716    OpenSecureChannelResponse_Encoding_DefaultBinary = 449,
717    PublishRequest_Encoding_DefaultBinary = 826,
718    PublishResponse_Encoding_DefaultBinary = 829,
719    ReadRawModifiedDetails_Encoding_DefaultBinary = 649,
720    ReadRequest_Encoding_DefaultBinary = 631,
721    ReadResponse_Encoding_DefaultBinary = 634,
722    ReadValueId_Encoding_DefaultBinary = 628,
723    ReferenceDescription_Encoding_DefaultBinary = 520,
724    RelativePath_Encoding_DefaultBinary = 542,
725    RelativePathElement_Encoding_DefaultBinary = 539,
726    RepublishRequest_Encoding_DefaultBinary = 832,
727    RepublishResponse_Encoding_DefaultBinary = 835,
728    RequestHeader_Encoding_DefaultBinary = 391,
729    ResponseHeader_Encoding_DefaultBinary = 394,
730    ServerStatusDataType_Encoding_DefaultBinary = 864,
731    ServiceFault_Encoding_DefaultBinary = 397,
732    SetMonitoringModeRequest_Encoding_DefaultBinary = 769,
733    SetMonitoringModeResponse_Encoding_DefaultBinary = 772,
734    SetPublishingModeRequest_Encoding_DefaultBinary = 799,
735    SetPublishingModeResponse_Encoding_DefaultBinary = 802,
736    SignatureData_Encoding_DefaultBinary = 458,
737    SignedSoftwareCertificate_Encoding_DefaultBinary = 346,
738    SimpleAttributeOperand_Encoding_DefaultBinary = 603,
739    StatusChangeNotification_Encoding_DefaultBinary = 820,
740    SubscriptionAcknowledgement_Encoding_DefaultBinary = 823,
741    TranslateBrowsePathsToNodeIdsRequest_Encoding_DefaultBinary = 554,
742    TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary = 557,
743    UserNameIdentityToken_Encoding_DefaultBinary = 324,
744    UserTokenPolicy_Encoding_DefaultBinary = 306,
745    ViewDescription_Encoding_DefaultBinary = 513,
746    WriteRequest_Encoding_DefaultBinary = 673,
747    WriteResponse_Encoding_DefaultBinary = 676,
748    WriteValue_Encoding_DefaultBinary = 670,
749}
750message!(
751    ActivateSessionRequest,
752    ActivateSessionRequest_Encoding_DefaultBinary
753);
754message!(
755    ActivateSessionResponse,
756    ActivateSessionResponse_Encoding_DefaultBinary
757);
758message!(
759    AnonymousIdentityToken,
760    AnonymousIdentityToken_Encoding_DefaultBinary
761);
762message!(
763    ApplicationDescription,
764    ApplicationDescription_Encoding_DefaultBinary
765);
766message!(Argument, Argument_Encoding_DefaultBinary);
767message!(BrowseDescription, BrowseDescription_Encoding_DefaultBinary);
768message!(BrowseNextRequest, BrowseNextRequest_Encoding_DefaultBinary);
769message!(
770    BrowseNextResponse,
771    BrowseNextResponse_Encoding_DefaultBinary
772);
773message!(BrowsePath, BrowsePath_Encoding_DefaultBinary);
774message!(BrowsePathResult, BrowsePathResult_Encoding_DefaultBinary);
775message!(BrowsePathTarget, BrowsePathTarget_Encoding_DefaultBinary);
776message!(BrowseRequest, BrowseRequest_Encoding_DefaultBinary);
777message!(BrowseResponse, BrowseResponse_Encoding_DefaultBinary);
778message!(BrowseResult, BrowseResult_Encoding_DefaultBinary);
779message!(BuildInfo, BuildInfo_Encoding_DefaultBinary);
780message!(CallMethodRequest, CallMethodRequest_Encoding_DefaultBinary);
781message!(CallMethodResult, CallMethodResult_Encoding_DefaultBinary);
782message!(CallRequest, CallRequest_Encoding_DefaultBinary);
783message!(CallResponse, CallResponse_Encoding_DefaultBinary);
784message!(
785    ChannelSecurityToken,
786    ChannelSecurityToken_Encoding_DefaultBinary
787);
788message!(
789    CloseSecureChannelRequest,
790    CloseSecureChannelRequest_Encoding_DefaultBinary
791);
792message!(
793    CloseSecureChannelResponse,
794    CloseSecureChannelResponse_Encoding_DefaultBinary
795);
796message!(
797    CloseSessionRequest,
798    CloseSessionRequest_Encoding_DefaultBinary
799);
800message!(
801    CloseSessionResponse,
802    CloseSessionResponse_Encoding_DefaultBinary
803);
804message!(ContentFilter, ContentFilter_Encoding_DefaultBinary);
805message!(
806    ContentFilterElement,
807    ContentFilterElement_Encoding_DefaultBinary
808);
809message!(
810    ContentFilterElementResult,
811    ContentFilterElementResult_Encoding_DefaultBinary
812);
813message!(
814    ContentFilterResult,
815    ContentFilterResult_Encoding_DefaultBinary
816);
817message!(
818    CreateMonitoredItemsRequest,
819    CreateMonitoredItemsRequest_Encoding_DefaultBinary
820);
821message!(
822    CreateMonitoredItemsResponse,
823    CreateMonitoredItemsResponse_Encoding_DefaultBinary
824);
825message!(
826    CreateSessionRequest,
827    CreateSessionRequest_Encoding_DefaultBinary
828);
829message!(
830    CreateSessionResponse,
831    CreateSessionResponse_Encoding_DefaultBinary
832);
833message!(
834    CreateSubscriptionRequest,
835    CreateSubscriptionRequest_Encoding_DefaultBinary
836);
837message!(
838    CreateSubscriptionResponse,
839    CreateSubscriptionResponse_Encoding_DefaultBinary
840);
841message!(DataChangeFilter, DataChangeFilter_Encoding_DefaultBinary);
842message!(
843    DataChangeNotification,
844    DataChangeNotification_Encoding_DefaultBinary
845);
846message!(
847    DeleteMonitoredItemsRequest,
848    DeleteMonitoredItemsRequest_Encoding_DefaultBinary
849);
850message!(
851    DeleteMonitoredItemsResponse,
852    DeleteMonitoredItemsResponse_Encoding_DefaultBinary
853);
854message!(
855    DeleteSubscriptionsRequest,
856    DeleteSubscriptionsRequest_Encoding_DefaultBinary
857);
858message!(
859    DeleteSubscriptionsResponse,
860    DeleteSubscriptionsResponse_Encoding_DefaultBinary
861);
862message!(EUInformation, EUInformation_Encoding_DefaultBinary);
863message!(
864    EndpointDescription,
865    EndpointDescription_Encoding_DefaultBinary
866);
867message!(EventFieldList, EventFieldList_Encoding_DefaultBinary);
868message!(EventFilter, EventFilter_Encoding_DefaultBinary);
869message!(EventFilterResult, EventFilterResult_Encoding_DefaultBinary);
870message!(
871    EventNotificationList,
872    EventNotificationList_Encoding_DefaultBinary
873);
874message!(
875    FindServersRequest,
876    FindServersRequest_Encoding_DefaultBinary
877);
878message!(
879    FindServersResponse,
880    FindServersResponse_Encoding_DefaultBinary
881);
882message!(
883    GetEndpointsRequest,
884    GetEndpointsRequest_Encoding_DefaultBinary
885);
886message!(
887    GetEndpointsResponse,
888    GetEndpointsResponse_Encoding_DefaultBinary
889);
890message!(HistoryData, HistoryData_Encoding_DefaultBinary);
891message!(
892    HistoryReadRequest,
893    HistoryReadRequest_Encoding_DefaultBinary
894);
895message!(
896    HistoryReadResponse,
897    HistoryReadResponse_Encoding_DefaultBinary
898);
899message!(HistoryReadResult, HistoryReadResult_Encoding_DefaultBinary);
900message!(
901    HistoryReadValueId,
902    HistoryReadValueId_Encoding_DefaultBinary
903);
904message!(
905    ModifyMonitoredItemsRequest,
906    ModifyMonitoredItemsRequest_Encoding_DefaultBinary
907);
908message!(
909    ModifyMonitoredItemsResponse,
910    ModifyMonitoredItemsResponse_Encoding_DefaultBinary
911);
912message!(
913    ModifySubscriptionRequest,
914    ModifySubscriptionRequest_Encoding_DefaultBinary
915);
916message!(
917    ModifySubscriptionResponse,
918    ModifySubscriptionResponse_Encoding_DefaultBinary
919);
920message!(
921    MonitoredItemCreateRequest,
922    MonitoredItemCreateRequest_Encoding_DefaultBinary
923);
924message!(
925    MonitoredItemCreateResult,
926    MonitoredItemCreateResult_Encoding_DefaultBinary
927);
928message!(
929    MonitoredItemModifyRequest,
930    MonitoredItemModifyRequest_Encoding_DefaultBinary
931);
932message!(
933    MonitoredItemModifyResult,
934    MonitoredItemModifyResult_Encoding_DefaultBinary
935);
936message!(
937    MonitoredItemNotification,
938    MonitoredItemNotification_Encoding_DefaultBinary
939);
940message!(
941    MonitoringParameters,
942    MonitoringParameters_Encoding_DefaultBinary
943);
944message!(
945    NotificationMessage,
946    NotificationMessage_Encoding_DefaultBinary
947);
948message!(
949    OpenSecureChannelRequest,
950    OpenSecureChannelRequest_Encoding_DefaultBinary
951);
952message!(
953    OpenSecureChannelResponse,
954    OpenSecureChannelResponse_Encoding_DefaultBinary
955);
956message!(PublishRequest, PublishRequest_Encoding_DefaultBinary);
957message!(PublishResponse, PublishResponse_Encoding_DefaultBinary);
958message!(
959    ReadRawModifiedDetails,
960    ReadRawModifiedDetails_Encoding_DefaultBinary
961);
962message!(ReadRequest, ReadRequest_Encoding_DefaultBinary);
963message!(ReadResponse, ReadResponse_Encoding_DefaultBinary);
964message!(ReadValueId, ReadValueId_Encoding_DefaultBinary);
965message!(
966    ReferenceDescription,
967    ReferenceDescription_Encoding_DefaultBinary
968);
969message!(RelativePath, RelativePath_Encoding_DefaultBinary);
970message!(
971    RelativePathElement,
972    RelativePathElement_Encoding_DefaultBinary
973);
974message!(RepublishRequest, RepublishRequest_Encoding_DefaultBinary);
975message!(RepublishResponse, RepublishResponse_Encoding_DefaultBinary);
976message!(RequestHeader, RequestHeader_Encoding_DefaultBinary);
977message!(ResponseHeader, ResponseHeader_Encoding_DefaultBinary);
978message!(
979    ServerStatusDataType,
980    ServerStatusDataType_Encoding_DefaultBinary
981);
982message!(ServiceFault, ServiceFault_Encoding_DefaultBinary);
983message!(
984    SetMonitoringModeRequest,
985    SetMonitoringModeRequest_Encoding_DefaultBinary
986);
987message!(
988    SetMonitoringModeResponse,
989    SetMonitoringModeResponse_Encoding_DefaultBinary
990);
991message!(
992    SetPublishingModeRequest,
993    SetPublishingModeRequest_Encoding_DefaultBinary
994);
995message!(
996    SetPublishingModeResponse,
997    SetPublishingModeResponse_Encoding_DefaultBinary
998);
999message!(SignatureData, SignatureData_Encoding_DefaultBinary);
1000message!(
1001    SignedSoftwareCertificate,
1002    SignedSoftwareCertificate_Encoding_DefaultBinary
1003);
1004message!(
1005    SimpleAttributeOperand,
1006    SimpleAttributeOperand_Encoding_DefaultBinary
1007);
1008message!(
1009    StatusChangeNotification,
1010    StatusChangeNotification_Encoding_DefaultBinary
1011);
1012message!(
1013    SubscriptionAcknowledgement,
1014    SubscriptionAcknowledgement_Encoding_DefaultBinary
1015);
1016message!(
1017    TranslateBrowsePathsToNodeIdsRequest,
1018    TranslateBrowsePathsToNodeIdsRequest_Encoding_DefaultBinary
1019);
1020message!(
1021    TranslateBrowsePathsToNodeIdsResponse,
1022    TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary
1023);
1024message!(
1025    UserNameIdentityToken,
1026    UserNameIdentityToken_Encoding_DefaultBinary
1027);
1028message!(UserTokenPolicy, UserTokenPolicy_Encoding_DefaultBinary);
1029message!(ViewDescription, ViewDescription_Encoding_DefaultBinary);
1030message!(WriteRequest, WriteRequest_Encoding_DefaultBinary);
1031message!(WriteResponse, WriteResponse_Encoding_DefaultBinary);
1032message!(WriteValue, WriteValue_Encoding_DefaultBinary);
1033pub(super) fn decode_extension(
1034    id: u32,
1035    mut bytes: &[u8],
1036    ctx: &Context<'_>,
1037) -> Result<Option<ExtensionObject>, StatusCode> {
1038    let object = match id {
1039        321 => ExtensionObject::decode_known::<AnonymousIdentityToken>(&mut bytes, ctx)?,
1040        298 => ExtensionObject::decode_known::<Argument>(&mut bytes, ctx)?,
1041        340 => ExtensionObject::decode_known::<BuildInfo>(&mut bytes, ctx)?,
1042        724 => ExtensionObject::decode_known::<DataChangeFilter>(&mut bytes, ctx)?,
1043        811 => ExtensionObject::decode_known::<DataChangeNotification>(&mut bytes, ctx)?,
1044        889 => ExtensionObject::decode_known::<EUInformation>(&mut bytes, ctx)?,
1045        727 => ExtensionObject::decode_known::<EventFilter>(&mut bytes, ctx)?,
1046        736 => ExtensionObject::decode_known::<EventFilterResult>(&mut bytes, ctx)?,
1047        916 => ExtensionObject::decode_known::<EventNotificationList>(&mut bytes, ctx)?,
1048        658 => ExtensionObject::decode_known::<HistoryData>(&mut bytes, ctx)?,
1049        649 => ExtensionObject::decode_known::<ReadRawModifiedDetails>(&mut bytes, ctx)?,
1050        864 => ExtensionObject::decode_known::<ServerStatusDataType>(&mut bytes, ctx)?,
1051        820 => ExtensionObject::decode_known::<StatusChangeNotification>(&mut bytes, ctx)?,
1052        324 => ExtensionObject::decode_known::<UserNameIdentityToken>(&mut bytes, ctx)?,
1053        _ => return Ok(None),
1054    };
1055    if !bytes.is_empty() {
1056        return Err(StatusCode::BadDecodingError);
1057    }
1058    Ok(Some(object))
1059}
1060#[allow(non_upper_case_globals)]
1061impl StatusCode {
1062    /// The operation succeeded.
1063    pub const Good: Self = Self(0x00000000);
1064    /// The operation was uncertain.
1065    pub const Uncertain: Self = Self(0x40000000);
1066    /// The operation failed.
1067    pub const Bad: Self = Self(0x80000000);
1068    /// An unexpected error occurred.
1069    pub const BadUnexpectedError: Self = Self(0x80010000);
1070    /// An internal error occurred as a result of a programming or configuration error.
1071    pub const BadInternalError: Self = Self(0x80020000);
1072    /// Not enough memory to complete the operation.
1073    pub const BadOutOfMemory: Self = Self(0x80030000);
1074    /// An operating system resource is not available.
1075    pub const BadResourceUnavailable: Self = Self(0x80040000);
1076    /// A low level communication error occurred.
1077    pub const BadCommunicationError: Self = Self(0x80050000);
1078    /// Encoding halted because of invalid data in the objects being serialized.
1079    pub const BadEncodingError: Self = Self(0x80060000);
1080    /// Decoding halted because of invalid data in the stream.
1081    pub const BadDecodingError: Self = Self(0x80070000);
1082    /// The message encoding/decoding limits imposed by the stack have been exceeded.
1083    pub const BadEncodingLimitsExceeded: Self = Self(0x80080000);
1084    /// The request message size exceeds limits set by the server.
1085    pub const BadRequestTooLarge: Self = Self(0x80B80000);
1086    /// The response message size exceeds limits set by the client or server.
1087    pub const BadResponseTooLarge: Self = Self(0x80B90000);
1088    /// An unrecognized response was received from the server.
1089    pub const BadUnknownResponse: Self = Self(0x80090000);
1090    /// The operation timed out.
1091    pub const BadTimeout: Self = Self(0x800A0000);
1092    /// The server does not support the requested service.
1093    pub const BadServiceUnsupported: Self = Self(0x800B0000);
1094    /// The operation was cancelled because the application is shutting down.
1095    pub const BadShutdown: Self = Self(0x800C0000);
1096    /// The operation could not complete because the client is not connected to the server.
1097    pub const BadServerNotConnected: Self = Self(0x800D0000);
1098    /// The server has stopped and cannot process any requests.
1099    pub const BadServerHalted: Self = Self(0x800E0000);
1100    /// No processing could be done because there was nothing to do.
1101    pub const BadNothingToDo: Self = Self(0x800F0000);
1102    /// The request could not be processed because it specified too many operations.
1103    pub const BadTooManyOperations: Self = Self(0x80100000);
1104    /// The request could not be processed because there are too many monitored items in the subscription.
1105    pub const BadTooManyMonitoredItems: Self = Self(0x80DB0000);
1106    /// The extension object cannot be (de)serialized because the data type id is not recognized.
1107    pub const BadDataTypeIdUnknown: Self = Self(0x80110000);
1108    /// The certificate provided as a parameter is not valid.
1109    pub const BadCertificateInvalid: Self = Self(0x80120000);
1110    /// An error occurred verifying security.
1111    pub const BadSecurityChecksFailed: Self = Self(0x80130000);
1112    /// The certificate does not meet the requirements of the security policy.
1113    pub const BadCertificatePolicyCheckFailed: Self = Self(0x81140000);
1114    /// The certificate has expired or is not yet valid.
1115    pub const BadCertificateTimeInvalid: Self = Self(0x80140000);
1116    /// An issuer certificate has expired or is not yet valid.
1117    pub const BadCertificateIssuerTimeInvalid: Self = Self(0x80150000);
1118    /// The HostName used to connect to a server does not match a HostName in the certificate.
1119    pub const BadCertificateHostNameInvalid: Self = Self(0x80160000);
1120    /// The URI specified in the ApplicationDescription does not match the URI in the certificate.
1121    pub const BadCertificateUriInvalid: Self = Self(0x80170000);
1122    /// The certificate may not be used for the requested operation.
1123    pub const BadCertificateUseNotAllowed: Self = Self(0x80180000);
1124    /// The issuer certificate may not be used for the requested operation.
1125    pub const BadCertificateIssuerUseNotAllowed: Self = Self(0x80190000);
1126    /// The certificate is not trusted.
1127    pub const BadCertificateUntrusted: Self = Self(0x801A0000);
1128    /// It was not possible to determine if the certificate has been revoked.
1129    pub const BadCertificateRevocationUnknown: Self = Self(0x801B0000);
1130    /// It was not possible to determine if the issuer certificate has been revoked.
1131    pub const BadCertificateIssuerRevocationUnknown: Self = Self(0x801C0000);
1132    /// The certificate has been revoked.
1133    pub const BadCertificateRevoked: Self = Self(0x801D0000);
1134    /// The issuer certificate has been revoked.
1135    pub const BadCertificateIssuerRevoked: Self = Self(0x801E0000);
1136    /// The certificate chain is incomplete.
1137    pub const BadCertificateChainIncomplete: Self = Self(0x810D0000);
1138    /// User does not have permission to perform the requested operation.
1139    pub const BadUserAccessDenied: Self = Self(0x801F0000);
1140    /// The user identity token is not valid.
1141    pub const BadIdentityTokenInvalid: Self = Self(0x80200000);
1142    /// The user identity token is valid but the server has rejected it.
1143    pub const BadIdentityTokenRejected: Self = Self(0x80210000);
1144    /// The specified secure channel is no longer valid.
1145    pub const BadSecureChannelIdInvalid: Self = Self(0x80220000);
1146    /// The timestamp is outside the range allowed by the server.
1147    pub const BadInvalidTimestamp: Self = Self(0x80230000);
1148    /// The nonce does appear to be not a random value or it is not the correct length.
1149    pub const BadNonceInvalid: Self = Self(0x80240000);
1150    /// The session id is not valid.
1151    pub const BadSessionIdInvalid: Self = Self(0x80250000);
1152    /// The session was closed by the client.
1153    pub const BadSessionClosed: Self = Self(0x80260000);
1154    /// The session cannot be used because ActivateSession has not been called.
1155    pub const BadSessionNotActivated: Self = Self(0x80270000);
1156    /// The subscription id is not valid.
1157    pub const BadSubscriptionIdInvalid: Self = Self(0x80280000);
1158    /// The header for the request is missing or invalid.
1159    pub const BadRequestHeaderInvalid: Self = Self(0x802A0000);
1160    /// The timestamps to return parameter is invalid.
1161    pub const BadTimestampsToReturnInvalid: Self = Self(0x802B0000);
1162    /// The request was cancelled by the client.
1163    pub const BadRequestCancelledByClient: Self = Self(0x802C0000);
1164    /// Too many arguments were provided.
1165    pub const BadTooManyArguments: Self = Self(0x80E50000);
1166    /// The server requires a license to operate in general or to perform a service or operation, but existing license is expired.
1167    pub const BadLicenseExpired: Self = Self(0x810E0000);
1168    /// The server has limits on number of allowed operations / objects, based on installed licenses, and these limits where exceeded.
1169    pub const BadLicenseLimitsExceeded: Self = Self(0x810F0000);
1170    /// The server does not have a license which is required to operate in general or to perform a service or operation.
1171    pub const BadLicenseNotAvailable: Self = Self(0x81100000);
1172    /// The Server does not have the resources to process the request at this time.
1173    pub const BadServerTooBusy: Self = Self(0x80EE0000);
1174    /// The log-on for the user succeeded but the user is required to change the password.
1175    pub const GoodPasswordChangeRequired: Self = Self(0x00EF0000);
1176    /// The subscription was transferred to another session.
1177    pub const GoodSubscriptionTransferred: Self = Self(0x002D0000);
1178    /// The processing will complete asynchronously.
1179    pub const GoodCompletesAsynchronously: Self = Self(0x002E0000);
1180    /// Sampling has slowed down due to resource limitations.
1181    pub const GoodOverload: Self = Self(0x002F0000);
1182    /// The value written was accepted but was clamped.
1183    pub const GoodClamped: Self = Self(0x00300000);
1184    /// Communication with the data source is defined, but not established, and there is no last known value available.
1185    pub const BadNoCommunication: Self = Self(0x80310000);
1186    /// Waiting for the server to obtain values from the underlying data source.
1187    pub const BadWaitingForInitialData: Self = Self(0x80320000);
1188    /// The syntax the node id is not valid or refers to a node that is not valid for the operation.
1189    pub const BadNodeIdInvalid: Self = Self(0x80330000);
1190    /// The node id refers to a node that does not exist in the server address space.
1191    pub const BadNodeIdUnknown: Self = Self(0x80340000);
1192    /// The attribute is not supported for the specified Node.
1193    pub const BadAttributeIdInvalid: Self = Self(0x80350000);
1194    /// The syntax of the index range parameter is invalid.
1195    pub const BadIndexRangeInvalid: Self = Self(0x80360000);
1196    /// No data exists within the range of indexes specified.
1197    pub const BadIndexRangeNoData: Self = Self(0x80370000);
1198    /// The written data does not match the IndexRange specified.
1199    pub const BadIndexRangeDataMismatch: Self = Self(0x80EA0000);
1200    /// The data encoding is invalid.
1201    pub const BadDataEncodingInvalid: Self = Self(0x80380000);
1202    /// The server does not support the requested data encoding for the node.
1203    pub const BadDataEncodingUnsupported: Self = Self(0x80390000);
1204    /// The access level does not allow reading or subscribing to the Node.
1205    pub const BadNotReadable: Self = Self(0x803A0000);
1206    /// The access level does not allow writing to the Node.
1207    pub const BadNotWritable: Self = Self(0x803B0000);
1208    /// The value was out of range.
1209    pub const BadOutOfRange: Self = Self(0x803C0000);
1210    /// The value is over the allowed range.
1211    pub const UncertainOverRange: Self = Self(0x40F20000);
1212    /// The value is under the allowed range.
1213    pub const UncertainUnderRange: Self = Self(0x40F30000);
1214    /// The requested operation is not supported.
1215    pub const BadNotSupported: Self = Self(0x803D0000);
1216    /// A requested item was not found or a search operation ended without success.
1217    pub const BadNotFound: Self = Self(0x803E0000);
1218    /// The object cannot be used because it has been deleted.
1219    pub const BadObjectDeleted: Self = Self(0x803F0000);
1220    /// Requested operation is not implemented.
1221    pub const BadNotImplemented: Self = Self(0x80400000);
1222    /// The monitoring mode is invalid.
1223    pub const BadMonitoringModeInvalid: Self = Self(0x80410000);
1224    /// The monitoring item id does not refer to a valid monitored item.
1225    pub const BadMonitoredItemIdInvalid: Self = Self(0x80420000);
1226    /// The monitored item filter parameter is not valid.
1227    pub const BadMonitoredItemFilterInvalid: Self = Self(0x80430000);
1228    /// The server does not support the requested monitored item filter.
1229    pub const BadMonitoredItemFilterUnsupported: Self = Self(0x80440000);
1230    /// A monitoring filter cannot be used in combination with the attribute specified.
1231    pub const BadFilterNotAllowed: Self = Self(0x80450000);
1232    /// A mandatory structured parameter was missing or null.
1233    pub const BadStructureMissing: Self = Self(0x80460000);
1234    /// The event filter is not valid.
1235    pub const BadEventFilterInvalid: Self = Self(0x80470000);
1236    /// The content filter is not valid.
1237    pub const BadContentFilterInvalid: Self = Self(0x80480000);
1238    /// An unrecognized operator was provided in a filter.
1239    pub const BadFilterOperatorInvalid: Self = Self(0x80C10000);
1240    /// A valid operator was provided, but the server does not provide support for this filter operator.
1241    pub const BadFilterOperatorUnsupported: Self = Self(0x80C20000);
1242    /// The number of operands provided for the filter operator was less then expected for the operand provided.
1243    pub const BadFilterOperandCountMismatch: Self = Self(0x80C30000);
1244    /// The operand used in a content filter is not valid.
1245    pub const BadFilterOperandInvalid: Self = Self(0x80490000);
1246    /// The referenced element is not a valid element in the content filter.
1247    pub const BadFilterElementInvalid: Self = Self(0x80C40000);
1248    /// The referenced literal is not a valid value.
1249    pub const BadFilterLiteralInvalid: Self = Self(0x80C50000);
1250    /// The continuation point provide is longer valid.
1251    pub const BadContinuationPointInvalid: Self = Self(0x804A0000);
1252    /// The operation could not be processed because all continuation points have been allocated.
1253    pub const BadNoContinuationPoints: Self = Self(0x804B0000);
1254    /// The reference type id does not refer to a valid reference type node.
1255    pub const BadReferenceTypeIdInvalid: Self = Self(0x804C0000);
1256    /// The browse direction is not valid.
1257    pub const BadBrowseDirectionInvalid: Self = Self(0x804D0000);
1258    /// The node is not part of the view.
1259    pub const BadNodeNotInView: Self = Self(0x804E0000);
1260    /// The number was not accepted because of a numeric overflow.
1261    pub const BadNumericOverflow: Self = Self(0x81120000);
1262    /// The locale in the requested write operation is not supported.
1263    pub const BadLocaleNotSupported: Self = Self(0x80ED0000);
1264    /// The variable has no default value and no initial value.
1265    pub const BadNoValue: Self = Self(0x80F00000);
1266    /// The ServerUri is not a valid URI.
1267    pub const BadServerUriInvalid: Self = Self(0x804F0000);
1268    /// No ServerName was specified.
1269    pub const BadServerNameMissing: Self = Self(0x80500000);
1270    /// No DiscoveryUrl was specified.
1271    pub const BadDiscoveryUrlMissing: Self = Self(0x80510000);
1272    /// The semaphore file specified by the client is not valid.
1273    pub const BadSemaphoreFileMissing: Self = Self(0x80520000);
1274    /// The security token request type is not valid.
1275    pub const BadRequestTypeInvalid: Self = Self(0x80530000);
1276    /// The security mode does not meet the requirements set by the server.
1277    pub const BadSecurityModeRejected: Self = Self(0x80540000);
1278    /// The security policy does not meet the requirements set by the server.
1279    pub const BadSecurityPolicyRejected: Self = Self(0x80550000);
1280    /// The server has reached its maximum number of sessions.
1281    pub const BadTooManySessions: Self = Self(0x80560000);
1282    /// The user token signature is missing or invalid.
1283    pub const BadUserSignatureInvalid: Self = Self(0x80570000);
1284    /// The signature generated with the client certificate is missing or invalid.
1285    pub const BadApplicationSignatureInvalid: Self = Self(0x80580000);
1286    /// The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.
1287    pub const BadNoValidCertificates: Self = Self(0x80590000);
1288    /// The server does not support changing the user identity assigned to the session.
1289    pub const BadIdentityChangeNotSupported: Self = Self(0x80C60000);
1290    /// The request was cancelled by the client with the Cancel service.
1291    pub const BadRequestCancelledByRequest: Self = Self(0x805A0000);
1292    /// The parent node id does not to refer to a valid node.
1293    pub const BadParentNodeIdInvalid: Self = Self(0x805B0000);
1294    /// The reference could not be created because it violates constraints imposed by the data model.
1295    pub const BadReferenceNotAllowed: Self = Self(0x805C0000);
1296    /// The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.
1297    pub const BadNodeIdRejected: Self = Self(0x805D0000);
1298    /// The requested node id is already used by another node.
1299    pub const BadNodeIdExists: Self = Self(0x805E0000);
1300    /// The node class is not valid.
1301    pub const BadNodeClassInvalid: Self = Self(0x805F0000);
1302    /// The browse name is invalid.
1303    pub const BadBrowseNameInvalid: Self = Self(0x80600000);
1304    /// The browse name is not unique among nodes that share the same relationship with the parent.
1305    pub const BadBrowseNameDuplicated: Self = Self(0x80610000);
1306    /// The node attributes are not valid for the node class.
1307    pub const BadNodeAttributesInvalid: Self = Self(0x80620000);
1308    /// The type definition node id does not reference an appropriate type node.
1309    pub const BadTypeDefinitionInvalid: Self = Self(0x80630000);
1310    /// The source node id does not reference a valid node.
1311    pub const BadSourceNodeIdInvalid: Self = Self(0x80640000);
1312    /// The target node id does not reference a valid node.
1313    pub const BadTargetNodeIdInvalid: Self = Self(0x80650000);
1314    /// The reference type between the nodes is already defined.
1315    pub const BadDuplicateReferenceNotAllowed: Self = Self(0x80660000);
1316    /// The server does not allow this type of self reference on this node.
1317    pub const BadInvalidSelfReference: Self = Self(0x80670000);
1318    /// The reference type is not valid for a reference to a remote server.
1319    pub const BadReferenceLocalOnly: Self = Self(0x80680000);
1320    /// The server will not allow the node to be deleted.
1321    pub const BadNoDeleteRights: Self = Self(0x80690000);
1322    /// The server was not able to delete all target references.
1323    pub const UncertainReferenceNotDeleted: Self = Self(0x40BC0000);
1324    /// The server index is not valid.
1325    pub const BadServerIndexInvalid: Self = Self(0x806A0000);
1326    /// The view id does not refer to a valid view node.
1327    pub const BadViewIdUnknown: Self = Self(0x806B0000);
1328    /// The view timestamp is not available or not supported.
1329    pub const BadViewTimestampInvalid: Self = Self(0x80C90000);
1330    /// The view parameters are not consistent with each other.
1331    pub const BadViewParameterMismatch: Self = Self(0x80CA0000);
1332    /// The view version is not available or not supported.
1333    pub const BadViewVersionInvalid: Self = Self(0x80CB0000);
1334    /// The list of references may not be complete because the underlying system is not available.
1335    pub const UncertainNotAllNodesAvailable: Self = Self(0x40C00000);
1336    /// The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.
1337    pub const GoodResultsMayBeIncomplete: Self = Self(0x00BA0000);
1338    /// The provided Nodeid was not a type definition nodeid.
1339    pub const BadNotTypeDefinition: Self = Self(0x80C80000);
1340    /// One of the references to follow in the relative path references to a node in the address space in another server.
1341    pub const UncertainReferenceOutOfServer: Self = Self(0x406C0000);
1342    /// The requested operation has too many matches to return.
1343    pub const BadTooManyMatches: Self = Self(0x806D0000);
1344    /// The requested operation requires too many resources in the server.
1345    pub const BadQueryTooComplex: Self = Self(0x806E0000);
1346    /// The requested operation has no match to return.
1347    pub const BadNoMatch: Self = Self(0x806F0000);
1348    /// The max age parameter is invalid.
1349    pub const BadMaxAgeInvalid: Self = Self(0x80700000);
1350    /// The operation is not permitted over the current secure channel.
1351    pub const BadSecurityModeInsufficient: Self = Self(0x80E60000);
1352    /// The history details parameter is not valid.
1353    pub const BadHistoryOperationInvalid: Self = Self(0x80710000);
1354    /// The server does not support the requested operation.
1355    pub const BadHistoryOperationUnsupported: Self = Self(0x80720000);
1356    /// The defined timestamp to return was invalid.
1357    pub const BadInvalidTimestampArgument: Self = Self(0x80BD0000);
1358    /// The server does not support writing the combination of value, status and timestamps provided.
1359    pub const BadWriteNotSupported: Self = Self(0x80730000);
1360    /// The value supplied for the attribute is not of the same type as the attribute's value.
1361    pub const BadTypeMismatch: Self = Self(0x80740000);
1362    /// The method id does not refer to a method for the specified object.
1363    pub const BadMethodInvalid: Self = Self(0x80750000);
1364    /// The client did not specify all of the input arguments for the method.
1365    pub const BadArgumentsMissing: Self = Self(0x80760000);
1366    /// The executable attribute does not allow the execution of the method.
1367    pub const BadNotExecutable: Self = Self(0x81110000);
1368    /// The server has reached its maximum number of subscriptions.
1369    pub const BadTooManySubscriptions: Self = Self(0x80770000);
1370    /// The server has reached the maximum number of queued publish requests.
1371    pub const BadTooManyPublishRequests: Self = Self(0x80780000);
1372    /// There is no subscription available for this session.
1373    pub const BadNoSubscription: Self = Self(0x80790000);
1374    /// The sequence number is unknown to the server.
1375    pub const BadSequenceNumberUnknown: Self = Self(0x807A0000);
1376    /// The Server does not support retransmission queue and acknowledgement of sequence numbers is not available.
1377    pub const GoodRetransmissionQueueNotSupported: Self = Self(0x00DF0000);
1378    /// The requested notification message is no longer available.
1379    pub const BadMessageNotAvailable: Self = Self(0x807B0000);
1380    /// The client of the current session does not support one or more Profiles that are necessary for the subscription.
1381    pub const BadInsufficientClientProfile: Self = Self(0x807C0000);
1382    /// The sub-state machine is not currently active.
1383    pub const BadStateNotActive: Self = Self(0x80BF0000);
1384    /// An equivalent rule already exists.
1385    pub const BadAlreadyExists: Self = Self(0x81150000);
1386    /// The server cannot process the request because it is too busy.
1387    pub const BadTcpServerTooBusy: Self = Self(0x807D0000);
1388    /// The type of the message specified in the header invalid.
1389    pub const BadTcpMessageTypeInvalid: Self = Self(0x807E0000);
1390    /// The SecureChannelId and/or TokenId are not currently in use.
1391    pub const BadTcpSecureChannelUnknown: Self = Self(0x807F0000);
1392    /// The size of the message chunk specified in the header is too large.
1393    pub const BadTcpMessageTooLarge: Self = Self(0x80800000);
1394    /// There are not enough resources to process the request.
1395    pub const BadTcpNotEnoughResources: Self = Self(0x80810000);
1396    /// An internal error occurred.
1397    pub const BadTcpInternalError: Self = Self(0x80820000);
1398    /// The server does not recognize the QueryString specified.
1399    pub const BadTcpEndpointUrlInvalid: Self = Self(0x80830000);
1400    /// The request could not be sent because of a network interruption.
1401    pub const BadRequestInterrupted: Self = Self(0x80840000);
1402    /// Timeout occurred while processing the request.
1403    pub const BadRequestTimeout: Self = Self(0x80850000);
1404    /// The secure channel has been closed.
1405    pub const BadSecureChannelClosed: Self = Self(0x80860000);
1406    /// The token has expired or is not recognized.
1407    pub const BadSecureChannelTokenUnknown: Self = Self(0x80870000);
1408    /// The sequence number is not valid.
1409    pub const BadSequenceNumberInvalid: Self = Self(0x80880000);
1410    /// The applications do not have compatible protocol versions.
1411    pub const BadProtocolVersionUnsupported: Self = Self(0x80BE0000);
1412    /// There is a problem with the configuration that affects the usefulness of the value.
1413    pub const BadConfigurationError: Self = Self(0x80890000);
1414    /// The variable should receive its value from another variable, but has never been configured to do so.
1415    pub const BadNotConnected: Self = Self(0x808A0000);
1416    /// There has been a failure in the device/data source that generates the value that has affected the value.
1417    pub const BadDeviceFailure: Self = Self(0x808B0000);
1418    /// There has been a failure in the sensor from which the value is derived by the device/data source.
1419    pub const BadSensorFailure: Self = Self(0x808C0000);
1420    /// The source of the data is not operational.
1421    pub const BadOutOfService: Self = Self(0x808D0000);
1422    /// The deadband filter is not valid.
1423    pub const BadDeadbandFilterInvalid: Self = Self(0x808E0000);
1424    /// Communication to the data source has failed. The variable value is the last value that had a good quality.
1425    pub const UncertainNoCommunicationLastUsableValue: Self = Self(0x408F0000);
1426    /// Whatever was updating this value has stopped doing so.
1427    pub const UncertainLastUsableValue: Self = Self(0x40900000);
1428    /// The value is an operational value that was manually overwritten.
1429    pub const UncertainSubstituteValue: Self = Self(0x40910000);
1430    /// The value is an initial value for a variable that normally receives its value from another variable.
1431    pub const UncertainInitialValue: Self = Self(0x40920000);
1432    /// The value is at one of the sensor limits.
1433    pub const UncertainSensorNotAccurate: Self = Self(0x40930000);
1434    /// The value is outside of the range of values defined for this parameter.
1435    pub const UncertainEngineeringUnitsExceeded: Self = Self(0x40940000);
1436    /// The data value is derived from multiple sources and has less than the required number of Good sources.
1437    pub const UncertainSubNormal: Self = Self(0x40950000);
1438    /// The value has been overridden.
1439    pub const GoodLocalOverride: Self = Self(0x00960000);
1440    /// The value is derived from multiple sources and has the required number of Good sources, but less than the full number of Good sources.
1441    pub const GoodSubNormal: Self = Self(0x00EB0000);
1442    /// This Condition refresh failed, a Condition refresh operation is already in progress.
1443    pub const BadRefreshInProgress: Self = Self(0x80970000);
1444    /// This condition has already been disabled.
1445    pub const BadConditionAlreadyDisabled: Self = Self(0x80980000);
1446    /// This condition has already been enabled.
1447    pub const BadConditionAlreadyEnabled: Self = Self(0x80CC0000);
1448    /// Property not available, this condition is disabled.
1449    pub const BadConditionDisabled: Self = Self(0x80990000);
1450    /// The specified event id is not recognized.
1451    pub const BadEventIdUnknown: Self = Self(0x809A0000);
1452    /// The event cannot be acknowledged.
1453    pub const BadEventNotAcknowledgeable: Self = Self(0x80BB0000);
1454    /// The dialog condition is not active.
1455    pub const BadDialogNotActive: Self = Self(0x80CD0000);
1456    /// The response is not valid for the dialog.
1457    pub const BadDialogResponseInvalid: Self = Self(0x80CE0000);
1458    /// The condition branch has already been acknowledged.
1459    pub const BadConditionBranchAlreadyAcked: Self = Self(0x80CF0000);
1460    /// The condition branch has already been confirmed.
1461    pub const BadConditionBranchAlreadyConfirmed: Self = Self(0x80D00000);
1462    /// The condition has already been shelved.
1463    pub const BadConditionAlreadyShelved: Self = Self(0x80D10000);
1464    /// The condition is not currently shelved.
1465    pub const BadConditionNotShelved: Self = Self(0x80D20000);
1466    /// The shelving time not within an acceptable range.
1467    pub const BadShelvingTimeOutOfRange: Self = Self(0x80D30000);
1468    /// No data exists for the requested time range or event filter.
1469    pub const BadNoData: Self = Self(0x809B0000);
1470    /// No data found to provide upper or lower bound value.
1471    pub const BadBoundNotFound: Self = Self(0x80D70000);
1472    /// The server cannot retrieve a bound for the variable.
1473    pub const BadBoundNotSupported: Self = Self(0x80D80000);
1474    /// Data is missing due to collection started/stopped/lost.
1475    pub const BadDataLost: Self = Self(0x809D0000);
1476    /// Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability.
1477    pub const BadDataUnavailable: Self = Self(0x809E0000);
1478    /// The data or event was not successfully inserted because a matching entry exists.
1479    pub const BadEntryExists: Self = Self(0x809F0000);
1480    /// The data or event was not successfully updated because no matching entry exists.
1481    pub const BadNoEntryExists: Self = Self(0x80A00000);
1482    /// The Client requested history using a TimestampsToReturn the Server does not support.
1483    pub const BadTimestampNotSupported: Self = Self(0x80A10000);
1484    /// The data or event was successfully inserted into the historical database.
1485    pub const GoodEntryInserted: Self = Self(0x00A20000);
1486    /// The data or event field was successfully replaced in the historical database.
1487    pub const GoodEntryReplaced: Self = Self(0x00A30000);
1488    /// The aggregate value is derived from multiple values and has less than the required number of Good values.
1489    pub const UncertainDataSubNormal: Self = Self(0x40A40000);
1490    /// No data exists for the requested time range or event filter.
1491    pub const GoodNoData: Self = Self(0x00A50000);
1492    /// More data is available in the time range beyond the number of values requested.
1493    pub const GoodMoreData: Self = Self(0x00A60000);
1494    /// The requested number of Aggregates does not match the requested number of NodeIds.
1495    pub const BadAggregateListMismatch: Self = Self(0x80D40000);
1496    /// The requested Aggregate is not support by the server.
1497    pub const BadAggregateNotSupported: Self = Self(0x80D50000);
1498    /// The aggregate value could not be derived due to invalid data inputs.
1499    pub const BadAggregateInvalidInputs: Self = Self(0x80D60000);
1500    /// The aggregate configuration is not valid for specified node.
1501    pub const BadAggregateConfigurationRejected: Self = Self(0x80DA0000);
1502    /// The request specifies fields which are not valid for the EventType or cannot be saved by the historian.
1503    pub const GoodDataIgnored: Self = Self(0x00D90000);
1504    /// The request was rejected by the server because it did not meet the criteria set by the server.
1505    pub const BadRequestNotAllowed: Self = Self(0x80E40000);
1506    /// The request has not been processed by the server yet.
1507    pub const BadRequestNotComplete: Self = Self(0x81130000);
1508    /// The operation is not allowed because a transaction is in progress.
1509    pub const BadTransactionPending: Self = Self(0x80E80000);
1510    /// The operation failed and all changes which were part of the transaction are rolled back.
1511    pub const BadTransactionFailed: Self = Self(0x80F10000);
1512    /// The device identity needs a ticket before it can be accepted.
1513    pub const BadTicketRequired: Self = Self(0x811F0000);
1514    /// The device identity needs a ticket before it can be accepted.
1515    pub const BadTicketInvalid: Self = Self(0x81200000);
1516    /// The requested operation is not allowed, because the Node is locked by a different application.
1517    pub const BadLocked: Self = Self(0x80E90000);
1518    /// The requested operation is not allowed, because the Node is not locked by the application.
1519    pub const BadRequiresLock: Self = Self(0x80EC0000);
1520    /// The value does not come from the real source and has been edited by the server.
1521    pub const GoodEdited: Self = Self(0x00DC0000);
1522    /// There was an error in execution of these post-actions.
1523    pub const GoodPostActionFailed: Self = Self(0x00DD0000);
1524    /// The related EngineeringUnit has been changed but the Variable Value is still provided based on the previous unit.
1525    pub const UncertainDominantValueChanged: Self = Self(0x40DE0000);
1526    /// A dependent value has been changed but the change has not been applied to the device.
1527    pub const GoodDependentValueChanged: Self = Self(0x00E00000);
1528    /// The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad.
1529    pub const BadDominantValueChanged: Self = Self(0x80E10000);
1530    /// A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is uncertain.
1531    pub const UncertainDependentValueChanged: Self = Self(0x40E20000);
1532    /// A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad.
1533    pub const BadDependentValueChanged: Self = Self(0x80E30000);
1534    /// It is delivered with a dominant Variable value when a dependent Variable has changed but the change has not been applied.
1535    pub const GoodEdited_DependentValueChanged: Self = Self(0x01160000);
1536    /// It is delivered with a dependent Variable value when a dominant Variable has changed but the change has not been applied.
1537    pub const GoodEdited_DominantValueChanged: Self = Self(0x01170000);
1538    /// It is delivered with a dependent Variable value when a dominant or dependent Variable has changed but change has not been applied.
1539    pub const GoodEdited_DominantValueChanged_DependentValueChanged: Self = Self(0x01180000);
1540    /// It is delivered with a Variable value when Variable has changed but the value is not legal.
1541    pub const BadEdited_OutOfRange: Self = Self(0x81190000);
1542    /// It is delivered with a Variable value when a source Variable has changed but the value is not legal.
1543    pub const BadInitialValue_OutOfRange: Self = Self(0x811A0000);
1544    /// It is delivered with a dependent Variable value when a dominant Variable has changed and the value is not legal.
1545    pub const BadOutOfRange_DominantValueChanged: Self = Self(0x811B0000);
1546    /// It is delivered with a dependent Variable value when a dominant Variable has changed, the value is not legal and the change has not been applied.
1547    pub const BadEdited_OutOfRange_DominantValueChanged: Self = Self(0x811C0000);
1548    /// It is delivered with a dependent Variable value when a dominant or dependent Variable has changed and the value is not legal.
1549    pub const BadOutOfRange_DominantValueChanged_DependentValueChanged: Self = Self(0x811D0000);
1550    /// It is delivered with a dependent Variable value when a dominant or dependent Variable has changed, the value is not legal and the change has not been applied.
1551    pub const BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged: Self =
1552        Self(0x811E0000);
1553    /// The communication layer has raised an event.
1554    pub const GoodCommunicationEvent: Self = Self(0x00A70000);
1555    /// The system is shutting down.
1556    pub const GoodShutdownEvent: Self = Self(0x00A80000);
1557    /// The operation is not finished and needs to be called again.
1558    pub const GoodCallAgain: Self = Self(0x00A90000);
1559    /// A non-critical timeout occurred.
1560    pub const GoodNonCriticalTimeout: Self = Self(0x00AA0000);
1561    /// One or more arguments are invalid.
1562    pub const BadInvalidArgument: Self = Self(0x80AB0000);
1563    /// Could not establish a network connection to remote server.
1564    pub const BadConnectionRejected: Self = Self(0x80AC0000);
1565    /// The server has disconnected from the client.
1566    pub const BadDisconnect: Self = Self(0x80AD0000);
1567    /// The network connection has been closed.
1568    pub const BadConnectionClosed: Self = Self(0x80AE0000);
1569    /// The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.
1570    pub const BadInvalidState: Self = Self(0x80AF0000);
1571    /// Cannot move beyond end of the stream.
1572    pub const BadEndOfStream: Self = Self(0x80B00000);
1573    /// No data is currently available for reading from a non-blocking stream.
1574    pub const BadNoDataAvailable: Self = Self(0x80B10000);
1575    /// The asynchronous operation is waiting for a response.
1576    pub const BadWaitingForResponse: Self = Self(0x80B20000);
1577    /// The asynchronous operation was abandoned by the caller.
1578    pub const BadOperationAbandoned: Self = Self(0x80B30000);
1579    /// The stream did not return all data requested (possibly because it is a non-blocking stream).
1580    pub const BadExpectedStreamToBlock: Self = Self(0x80B40000);
1581    /// Non blocking behaviour is required and the operation would block.
1582    pub const BadWouldBlock: Self = Self(0x80B50000);
1583    /// A value had an invalid syntax.
1584    pub const BadSyntaxError: Self = Self(0x80B60000);
1585    /// The operation could not be finished because all available connections are in use.
1586    pub const BadMaxConnectionsReached: Self = Self(0x80B70000);
1587    /// The value may not be accurate because the transducer is in manual mode.
1588    pub const UncertainTransducerInManual: Self = Self(0x42080000);
1589    /// The value is simulated.
1590    pub const UncertainSimulatedValue: Self = Self(0x42090000);
1591    /// The value may not be accurate due to a sensor calibration fault.
1592    pub const UncertainSensorCalibration: Self = Self(0x420A0000);
1593    /// The value may not be accurate due to a configuration issue.
1594    pub const UncertainConfigurationError: Self = Self(0x420F0000);
1595    /// The value source supports cascade handshaking and the value has been Initialized based on an initialization request from a cascade secondary.
1596    pub const GoodCascadeInitializationAcknowledged: Self = Self(0x04010000);
1597    /// The value source supports cascade handshaking and is requesting initialization of a cascade primary.
1598    pub const GoodCascadeInitializationRequest: Self = Self(0x04020000);
1599    /// The value source supports cascade handshaking, however, the source's current state does not allow for cascade.
1600    pub const GoodCascadeNotInvited: Self = Self(0x04030000);
1601    /// The value source supports cascade handshaking, however, the source has not selected the corresponding cascade primary for use.
1602    pub const GoodCascadeNotSelected: Self = Self(0x04040000);
1603    /// There is a fault state condition active in the value source.
1604    pub const GoodFaultStateActive: Self = Self(0x04070000);
1605    /// A fault state condition is being requested of the destination.
1606    pub const GoodInitiateFaultState: Self = Self(0x04080000);
1607    /// The value is accurate, and the signal source supports cascade handshaking.
1608    pub const GoodCascade: Self = Self(0x04090000);
1609    /// The DataSet specified for the DataSetWriter creation is invalid.
1610    pub const BadDataSetIdInvalid: Self = Self(0x80E70000);
1611    /// Standard symbolic name, ignoring the information bits.
1612    pub fn name(self) -> Option<&'static str> {
1613        match self.bits() & 0xffff0000 {
1614            0x00000000 => Some("Good"),
1615            0x40000000 => Some("Uncertain"),
1616            0x80000000 => Some("Bad"),
1617            0x80010000 => Some("BadUnexpectedError"),
1618            0x80020000 => Some("BadInternalError"),
1619            0x80030000 => Some("BadOutOfMemory"),
1620            0x80040000 => Some("BadResourceUnavailable"),
1621            0x80050000 => Some("BadCommunicationError"),
1622            0x80060000 => Some("BadEncodingError"),
1623            0x80070000 => Some("BadDecodingError"),
1624            0x80080000 => Some("BadEncodingLimitsExceeded"),
1625            0x80B80000 => Some("BadRequestTooLarge"),
1626            0x80B90000 => Some("BadResponseTooLarge"),
1627            0x80090000 => Some("BadUnknownResponse"),
1628            0x800A0000 => Some("BadTimeout"),
1629            0x800B0000 => Some("BadServiceUnsupported"),
1630            0x800C0000 => Some("BadShutdown"),
1631            0x800D0000 => Some("BadServerNotConnected"),
1632            0x800E0000 => Some("BadServerHalted"),
1633            0x800F0000 => Some("BadNothingToDo"),
1634            0x80100000 => Some("BadTooManyOperations"),
1635            0x80DB0000 => Some("BadTooManyMonitoredItems"),
1636            0x80110000 => Some("BadDataTypeIdUnknown"),
1637            0x80120000 => Some("BadCertificateInvalid"),
1638            0x80130000 => Some("BadSecurityChecksFailed"),
1639            0x81140000 => Some("BadCertificatePolicyCheckFailed"),
1640            0x80140000 => Some("BadCertificateTimeInvalid"),
1641            0x80150000 => Some("BadCertificateIssuerTimeInvalid"),
1642            0x80160000 => Some("BadCertificateHostNameInvalid"),
1643            0x80170000 => Some("BadCertificateUriInvalid"),
1644            0x80180000 => Some("BadCertificateUseNotAllowed"),
1645            0x80190000 => Some("BadCertificateIssuerUseNotAllowed"),
1646            0x801A0000 => Some("BadCertificateUntrusted"),
1647            0x801B0000 => Some("BadCertificateRevocationUnknown"),
1648            0x801C0000 => Some("BadCertificateIssuerRevocationUnknown"),
1649            0x801D0000 => Some("BadCertificateRevoked"),
1650            0x801E0000 => Some("BadCertificateIssuerRevoked"),
1651            0x810D0000 => Some("BadCertificateChainIncomplete"),
1652            0x801F0000 => Some("BadUserAccessDenied"),
1653            0x80200000 => Some("BadIdentityTokenInvalid"),
1654            0x80210000 => Some("BadIdentityTokenRejected"),
1655            0x80220000 => Some("BadSecureChannelIdInvalid"),
1656            0x80230000 => Some("BadInvalidTimestamp"),
1657            0x80240000 => Some("BadNonceInvalid"),
1658            0x80250000 => Some("BadSessionIdInvalid"),
1659            0x80260000 => Some("BadSessionClosed"),
1660            0x80270000 => Some("BadSessionNotActivated"),
1661            0x80280000 => Some("BadSubscriptionIdInvalid"),
1662            0x802A0000 => Some("BadRequestHeaderInvalid"),
1663            0x802B0000 => Some("BadTimestampsToReturnInvalid"),
1664            0x802C0000 => Some("BadRequestCancelledByClient"),
1665            0x80E50000 => Some("BadTooManyArguments"),
1666            0x810E0000 => Some("BadLicenseExpired"),
1667            0x810F0000 => Some("BadLicenseLimitsExceeded"),
1668            0x81100000 => Some("BadLicenseNotAvailable"),
1669            0x80EE0000 => Some("BadServerTooBusy"),
1670            0x00EF0000 => Some("GoodPasswordChangeRequired"),
1671            0x002D0000 => Some("GoodSubscriptionTransferred"),
1672            0x002E0000 => Some("GoodCompletesAsynchronously"),
1673            0x002F0000 => Some("GoodOverload"),
1674            0x00300000 => Some("GoodClamped"),
1675            0x80310000 => Some("BadNoCommunication"),
1676            0x80320000 => Some("BadWaitingForInitialData"),
1677            0x80330000 => Some("BadNodeIdInvalid"),
1678            0x80340000 => Some("BadNodeIdUnknown"),
1679            0x80350000 => Some("BadAttributeIdInvalid"),
1680            0x80360000 => Some("BadIndexRangeInvalid"),
1681            0x80370000 => Some("BadIndexRangeNoData"),
1682            0x80EA0000 => Some("BadIndexRangeDataMismatch"),
1683            0x80380000 => Some("BadDataEncodingInvalid"),
1684            0x80390000 => Some("BadDataEncodingUnsupported"),
1685            0x803A0000 => Some("BadNotReadable"),
1686            0x803B0000 => Some("BadNotWritable"),
1687            0x803C0000 => Some("BadOutOfRange"),
1688            0x40F20000 => Some("UncertainOverRange"),
1689            0x40F30000 => Some("UncertainUnderRange"),
1690            0x803D0000 => Some("BadNotSupported"),
1691            0x803E0000 => Some("BadNotFound"),
1692            0x803F0000 => Some("BadObjectDeleted"),
1693            0x80400000 => Some("BadNotImplemented"),
1694            0x80410000 => Some("BadMonitoringModeInvalid"),
1695            0x80420000 => Some("BadMonitoredItemIdInvalid"),
1696            0x80430000 => Some("BadMonitoredItemFilterInvalid"),
1697            0x80440000 => Some("BadMonitoredItemFilterUnsupported"),
1698            0x80450000 => Some("BadFilterNotAllowed"),
1699            0x80460000 => Some("BadStructureMissing"),
1700            0x80470000 => Some("BadEventFilterInvalid"),
1701            0x80480000 => Some("BadContentFilterInvalid"),
1702            0x80C10000 => Some("BadFilterOperatorInvalid"),
1703            0x80C20000 => Some("BadFilterOperatorUnsupported"),
1704            0x80C30000 => Some("BadFilterOperandCountMismatch"),
1705            0x80490000 => Some("BadFilterOperandInvalid"),
1706            0x80C40000 => Some("BadFilterElementInvalid"),
1707            0x80C50000 => Some("BadFilterLiteralInvalid"),
1708            0x804A0000 => Some("BadContinuationPointInvalid"),
1709            0x804B0000 => Some("BadNoContinuationPoints"),
1710            0x804C0000 => Some("BadReferenceTypeIdInvalid"),
1711            0x804D0000 => Some("BadBrowseDirectionInvalid"),
1712            0x804E0000 => Some("BadNodeNotInView"),
1713            0x81120000 => Some("BadNumericOverflow"),
1714            0x80ED0000 => Some("BadLocaleNotSupported"),
1715            0x80F00000 => Some("BadNoValue"),
1716            0x804F0000 => Some("BadServerUriInvalid"),
1717            0x80500000 => Some("BadServerNameMissing"),
1718            0x80510000 => Some("BadDiscoveryUrlMissing"),
1719            0x80520000 => Some("BadSemaphoreFileMissing"),
1720            0x80530000 => Some("BadRequestTypeInvalid"),
1721            0x80540000 => Some("BadSecurityModeRejected"),
1722            0x80550000 => Some("BadSecurityPolicyRejected"),
1723            0x80560000 => Some("BadTooManySessions"),
1724            0x80570000 => Some("BadUserSignatureInvalid"),
1725            0x80580000 => Some("BadApplicationSignatureInvalid"),
1726            0x80590000 => Some("BadNoValidCertificates"),
1727            0x80C60000 => Some("BadIdentityChangeNotSupported"),
1728            0x805A0000 => Some("BadRequestCancelledByRequest"),
1729            0x805B0000 => Some("BadParentNodeIdInvalid"),
1730            0x805C0000 => Some("BadReferenceNotAllowed"),
1731            0x805D0000 => Some("BadNodeIdRejected"),
1732            0x805E0000 => Some("BadNodeIdExists"),
1733            0x805F0000 => Some("BadNodeClassInvalid"),
1734            0x80600000 => Some("BadBrowseNameInvalid"),
1735            0x80610000 => Some("BadBrowseNameDuplicated"),
1736            0x80620000 => Some("BadNodeAttributesInvalid"),
1737            0x80630000 => Some("BadTypeDefinitionInvalid"),
1738            0x80640000 => Some("BadSourceNodeIdInvalid"),
1739            0x80650000 => Some("BadTargetNodeIdInvalid"),
1740            0x80660000 => Some("BadDuplicateReferenceNotAllowed"),
1741            0x80670000 => Some("BadInvalidSelfReference"),
1742            0x80680000 => Some("BadReferenceLocalOnly"),
1743            0x80690000 => Some("BadNoDeleteRights"),
1744            0x40BC0000 => Some("UncertainReferenceNotDeleted"),
1745            0x806A0000 => Some("BadServerIndexInvalid"),
1746            0x806B0000 => Some("BadViewIdUnknown"),
1747            0x80C90000 => Some("BadViewTimestampInvalid"),
1748            0x80CA0000 => Some("BadViewParameterMismatch"),
1749            0x80CB0000 => Some("BadViewVersionInvalid"),
1750            0x40C00000 => Some("UncertainNotAllNodesAvailable"),
1751            0x00BA0000 => Some("GoodResultsMayBeIncomplete"),
1752            0x80C80000 => Some("BadNotTypeDefinition"),
1753            0x406C0000 => Some("UncertainReferenceOutOfServer"),
1754            0x806D0000 => Some("BadTooManyMatches"),
1755            0x806E0000 => Some("BadQueryTooComplex"),
1756            0x806F0000 => Some("BadNoMatch"),
1757            0x80700000 => Some("BadMaxAgeInvalid"),
1758            0x80E60000 => Some("BadSecurityModeInsufficient"),
1759            0x80710000 => Some("BadHistoryOperationInvalid"),
1760            0x80720000 => Some("BadHistoryOperationUnsupported"),
1761            0x80BD0000 => Some("BadInvalidTimestampArgument"),
1762            0x80730000 => Some("BadWriteNotSupported"),
1763            0x80740000 => Some("BadTypeMismatch"),
1764            0x80750000 => Some("BadMethodInvalid"),
1765            0x80760000 => Some("BadArgumentsMissing"),
1766            0x81110000 => Some("BadNotExecutable"),
1767            0x80770000 => Some("BadTooManySubscriptions"),
1768            0x80780000 => Some("BadTooManyPublishRequests"),
1769            0x80790000 => Some("BadNoSubscription"),
1770            0x807A0000 => Some("BadSequenceNumberUnknown"),
1771            0x00DF0000 => Some("GoodRetransmissionQueueNotSupported"),
1772            0x807B0000 => Some("BadMessageNotAvailable"),
1773            0x807C0000 => Some("BadInsufficientClientProfile"),
1774            0x80BF0000 => Some("BadStateNotActive"),
1775            0x81150000 => Some("BadAlreadyExists"),
1776            0x807D0000 => Some("BadTcpServerTooBusy"),
1777            0x807E0000 => Some("BadTcpMessageTypeInvalid"),
1778            0x807F0000 => Some("BadTcpSecureChannelUnknown"),
1779            0x80800000 => Some("BadTcpMessageTooLarge"),
1780            0x80810000 => Some("BadTcpNotEnoughResources"),
1781            0x80820000 => Some("BadTcpInternalError"),
1782            0x80830000 => Some("BadTcpEndpointUrlInvalid"),
1783            0x80840000 => Some("BadRequestInterrupted"),
1784            0x80850000 => Some("BadRequestTimeout"),
1785            0x80860000 => Some("BadSecureChannelClosed"),
1786            0x80870000 => Some("BadSecureChannelTokenUnknown"),
1787            0x80880000 => Some("BadSequenceNumberInvalid"),
1788            0x80BE0000 => Some("BadProtocolVersionUnsupported"),
1789            0x80890000 => Some("BadConfigurationError"),
1790            0x808A0000 => Some("BadNotConnected"),
1791            0x808B0000 => Some("BadDeviceFailure"),
1792            0x808C0000 => Some("BadSensorFailure"),
1793            0x808D0000 => Some("BadOutOfService"),
1794            0x808E0000 => Some("BadDeadbandFilterInvalid"),
1795            0x408F0000 => Some("UncertainNoCommunicationLastUsableValue"),
1796            0x40900000 => Some("UncertainLastUsableValue"),
1797            0x40910000 => Some("UncertainSubstituteValue"),
1798            0x40920000 => Some("UncertainInitialValue"),
1799            0x40930000 => Some("UncertainSensorNotAccurate"),
1800            0x40940000 => Some("UncertainEngineeringUnitsExceeded"),
1801            0x40950000 => Some("UncertainSubNormal"),
1802            0x00960000 => Some("GoodLocalOverride"),
1803            0x00EB0000 => Some("GoodSubNormal"),
1804            0x80970000 => Some("BadRefreshInProgress"),
1805            0x80980000 => Some("BadConditionAlreadyDisabled"),
1806            0x80CC0000 => Some("BadConditionAlreadyEnabled"),
1807            0x80990000 => Some("BadConditionDisabled"),
1808            0x809A0000 => Some("BadEventIdUnknown"),
1809            0x80BB0000 => Some("BadEventNotAcknowledgeable"),
1810            0x80CD0000 => Some("BadDialogNotActive"),
1811            0x80CE0000 => Some("BadDialogResponseInvalid"),
1812            0x80CF0000 => Some("BadConditionBranchAlreadyAcked"),
1813            0x80D00000 => Some("BadConditionBranchAlreadyConfirmed"),
1814            0x80D10000 => Some("BadConditionAlreadyShelved"),
1815            0x80D20000 => Some("BadConditionNotShelved"),
1816            0x80D30000 => Some("BadShelvingTimeOutOfRange"),
1817            0x809B0000 => Some("BadNoData"),
1818            0x80D70000 => Some("BadBoundNotFound"),
1819            0x80D80000 => Some("BadBoundNotSupported"),
1820            0x809D0000 => Some("BadDataLost"),
1821            0x809E0000 => Some("BadDataUnavailable"),
1822            0x809F0000 => Some("BadEntryExists"),
1823            0x80A00000 => Some("BadNoEntryExists"),
1824            0x80A10000 => Some("BadTimestampNotSupported"),
1825            0x00A20000 => Some("GoodEntryInserted"),
1826            0x00A30000 => Some("GoodEntryReplaced"),
1827            0x40A40000 => Some("UncertainDataSubNormal"),
1828            0x00A50000 => Some("GoodNoData"),
1829            0x00A60000 => Some("GoodMoreData"),
1830            0x80D40000 => Some("BadAggregateListMismatch"),
1831            0x80D50000 => Some("BadAggregateNotSupported"),
1832            0x80D60000 => Some("BadAggregateInvalidInputs"),
1833            0x80DA0000 => Some("BadAggregateConfigurationRejected"),
1834            0x00D90000 => Some("GoodDataIgnored"),
1835            0x80E40000 => Some("BadRequestNotAllowed"),
1836            0x81130000 => Some("BadRequestNotComplete"),
1837            0x80E80000 => Some("BadTransactionPending"),
1838            0x80F10000 => Some("BadTransactionFailed"),
1839            0x811F0000 => Some("BadTicketRequired"),
1840            0x81200000 => Some("BadTicketInvalid"),
1841            0x80E90000 => Some("BadLocked"),
1842            0x80EC0000 => Some("BadRequiresLock"),
1843            0x00DC0000 => Some("GoodEdited"),
1844            0x00DD0000 => Some("GoodPostActionFailed"),
1845            0x40DE0000 => Some("UncertainDominantValueChanged"),
1846            0x00E00000 => Some("GoodDependentValueChanged"),
1847            0x80E10000 => Some("BadDominantValueChanged"),
1848            0x40E20000 => Some("UncertainDependentValueChanged"),
1849            0x80E30000 => Some("BadDependentValueChanged"),
1850            0x01160000 => Some("GoodEdited_DependentValueChanged"),
1851            0x01170000 => Some("GoodEdited_DominantValueChanged"),
1852            0x01180000 => Some("GoodEdited_DominantValueChanged_DependentValueChanged"),
1853            0x81190000 => Some("BadEdited_OutOfRange"),
1854            0x811A0000 => Some("BadInitialValue_OutOfRange"),
1855            0x811B0000 => Some("BadOutOfRange_DominantValueChanged"),
1856            0x811C0000 => Some("BadEdited_OutOfRange_DominantValueChanged"),
1857            0x811D0000 => Some("BadOutOfRange_DominantValueChanged_DependentValueChanged"),
1858            0x811E0000 => Some("BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged"),
1859            0x00A70000 => Some("GoodCommunicationEvent"),
1860            0x00A80000 => Some("GoodShutdownEvent"),
1861            0x00A90000 => Some("GoodCallAgain"),
1862            0x00AA0000 => Some("GoodNonCriticalTimeout"),
1863            0x80AB0000 => Some("BadInvalidArgument"),
1864            0x80AC0000 => Some("BadConnectionRejected"),
1865            0x80AD0000 => Some("BadDisconnect"),
1866            0x80AE0000 => Some("BadConnectionClosed"),
1867            0x80AF0000 => Some("BadInvalidState"),
1868            0x80B00000 => Some("BadEndOfStream"),
1869            0x80B10000 => Some("BadNoDataAvailable"),
1870            0x80B20000 => Some("BadWaitingForResponse"),
1871            0x80B30000 => Some("BadOperationAbandoned"),
1872            0x80B40000 => Some("BadExpectedStreamToBlock"),
1873            0x80B50000 => Some("BadWouldBlock"),
1874            0x80B60000 => Some("BadSyntaxError"),
1875            0x80B70000 => Some("BadMaxConnectionsReached"),
1876            0x42080000 => Some("UncertainTransducerInManual"),
1877            0x42090000 => Some("UncertainSimulatedValue"),
1878            0x420A0000 => Some("UncertainSensorCalibration"),
1879            0x420F0000 => Some("UncertainConfigurationError"),
1880            0x04010000 => Some("GoodCascadeInitializationAcknowledged"),
1881            0x04020000 => Some("GoodCascadeInitializationRequest"),
1882            0x04030000 => Some("GoodCascadeNotInvited"),
1883            0x04040000 => Some("GoodCascadeNotSelected"),
1884            0x04070000 => Some("GoodFaultStateActive"),
1885            0x04080000 => Some("GoodInitiateFaultState"),
1886            0x04090000 => Some("GoodCascade"),
1887            0x80E70000 => Some("BadDataSetIdInvalid"),
1888            _ => None,
1889        }
1890    }
1891}