diff --git a/plc4go/protocols/opcua/readwrite/model/ActivateSessionRequest.go.orig b/plc4go/protocols/opcua/readwrite/model/ActivateSessionRequest.go.orig deleted file mode 100644 index de2ae67cba6..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/ActivateSessionRequest.go.orig +++ /dev/null @@ -1,511 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - . "github.com/apache/plc4x/plc4go/spi/codegen/fields" - . "github.com/apache/plc4x/plc4go/spi/codegen/io" - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// ActivateSessionRequest is the corresponding interface of ActivateSessionRequest -type ActivateSessionRequest interface { - fmt.Stringer - utils.LengthAware - utils.Serializable - ExtensionObjectDefinition - // GetRequestHeader returns RequestHeader (property field) - GetRequestHeader() RequestHeader - // GetClientSignature returns ClientSignature (property field) - GetClientSignature() SignatureData - // GetClientSoftwareCertificates returns ClientSoftwareCertificates (property field) - GetClientSoftwareCertificates() []SignedSoftwareCertificate - // GetLocaleIds returns LocaleIds (property field) - GetLocaleIds() []PascalString - // GetUserIdentityToken returns UserIdentityToken (property field) - GetUserIdentityToken() ExtensionObject - // GetUserTokenSignature returns UserTokenSignature (property field) -<<<<<<< HEAD - GetUserTokenSignature() ExtensionObjectDefinition - // IsActivateSessionRequest is a marker method to prevent unintentional type checks (interfaces of same signature) - IsActivateSessionRequest() -======= - GetUserTokenSignature() SignatureData -} - -// ActivateSessionRequestExactly can be used when we want exactly this type and not a type which fulfills ActivateSessionRequest. -// This is useful for switch cases. -type ActivateSessionRequestExactly interface { - ActivateSessionRequest - isActivateSessionRequest() bool ->>>>>>> 6b342ed281 (Checkin of generated contents.) -} - -// _ActivateSessionRequest is the data-structure of this message -type _ActivateSessionRequest struct { -<<<<<<< HEAD - ExtensionObjectDefinitionContract - RequestHeader ExtensionObjectDefinition - ClientSignature ExtensionObjectDefinition - NoOfClientSoftwareCertificates int32 - ClientSoftwareCertificates []ExtensionObjectDefinition - NoOfLocaleIds int32 - LocaleIds []PascalString - UserIdentityToken ExtensionObject - UserTokenSignature ExtensionObjectDefinition -======= - *_ExtensionObjectDefinition - RequestHeader RequestHeader - ClientSignature SignatureData - ClientSoftwareCertificates []SignedSoftwareCertificate - LocaleIds []PascalString - UserIdentityToken ExtensionObject - UserTokenSignature SignatureData ->>>>>>> 6b342ed281 (Checkin of generated contents.) -} - -var _ ActivateSessionRequest = (*_ActivateSessionRequest)(nil) -var _ ExtensionObjectDefinitionRequirements = (*_ActivateSessionRequest)(nil) - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for discriminator values. -/////////////////////// - -func (m *_ActivateSessionRequest) GetExtensionId() string { - return "467" -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -func (m *_ActivateSessionRequest) GetParent() ExtensionObjectDefinitionContract { - return m.ExtensionObjectDefinitionContract -} - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for property fields. -/////////////////////// - -func (m *_ActivateSessionRequest) GetRequestHeader() RequestHeader { - return m.RequestHeader -} - -func (m *_ActivateSessionRequest) GetClientSignature() SignatureData { - return m.ClientSignature -} - -func (m *_ActivateSessionRequest) GetClientSoftwareCertificates() []SignedSoftwareCertificate { - return m.ClientSoftwareCertificates -} - -func (m *_ActivateSessionRequest) GetLocaleIds() []PascalString { - return m.LocaleIds -} - -func (m *_ActivateSessionRequest) GetUserIdentityToken() ExtensionObject { - return m.UserIdentityToken -} - -func (m *_ActivateSessionRequest) GetUserTokenSignature() SignatureData { - return m.UserTokenSignature -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -// NewActivateSessionRequest factory function for _ActivateSessionRequest -<<<<<<< HEAD -func NewActivateSessionRequest(requestHeader ExtensionObjectDefinition, clientSignature ExtensionObjectDefinition, noOfClientSoftwareCertificates int32, clientSoftwareCertificates []ExtensionObjectDefinition, noOfLocaleIds int32, localeIds []PascalString, userIdentityToken ExtensionObject, userTokenSignature ExtensionObjectDefinition) *_ActivateSessionRequest { - if requestHeader == nil { - panic("requestHeader of type ExtensionObjectDefinition for ActivateSessionRequest must not be nil") -======= -func NewActivateSessionRequest(requestHeader RequestHeader, clientSignature SignatureData, clientSoftwareCertificates []SignedSoftwareCertificate, localeIds []PascalString, userIdentityToken ExtensionObject, userTokenSignature SignatureData) *_ActivateSessionRequest { - _result := &_ActivateSessionRequest{ - RequestHeader: requestHeader, - ClientSignature: clientSignature, - ClientSoftwareCertificates: clientSoftwareCertificates, - LocaleIds: localeIds, - UserIdentityToken: userIdentityToken, - UserTokenSignature: userTokenSignature, - _ExtensionObjectDefinition: NewExtensionObjectDefinition(), ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - if clientSignature == nil { - panic("clientSignature of type ExtensionObjectDefinition for ActivateSessionRequest must not be nil") - } - if userIdentityToken == nil { - panic("userIdentityToken of type ExtensionObject for ActivateSessionRequest must not be nil") - } - if userTokenSignature == nil { - panic("userTokenSignature of type ExtensionObjectDefinition for ActivateSessionRequest must not be nil") - } - _result := &_ActivateSessionRequest{ - ExtensionObjectDefinitionContract: NewExtensionObjectDefinition(), - RequestHeader: requestHeader, - ClientSignature: clientSignature, - NoOfClientSoftwareCertificates: noOfClientSoftwareCertificates, - ClientSoftwareCertificates: clientSoftwareCertificates, - NoOfLocaleIds: noOfLocaleIds, - LocaleIds: localeIds, - UserIdentityToken: userIdentityToken, - UserTokenSignature: userTokenSignature, - } - _result.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition)._SubType = _result - return _result -} - -// Deprecated: use the interface for direct cast -func CastActivateSessionRequest(structType any) ActivateSessionRequest { - if casted, ok := structType.(ActivateSessionRequest); ok { - return casted - } - if casted, ok := structType.(*ActivateSessionRequest); ok { - return *casted - } - return nil -} - -func (m *_ActivateSessionRequest) GetTypeName() string { - return "ActivateSessionRequest" -} - -func (m *_ActivateSessionRequest) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).getLengthInBits(ctx)) - - // Simple field (requestHeader) - lengthInBits += m.RequestHeader.GetLengthInBits(ctx) - - // Simple field (clientSignature) - lengthInBits += m.ClientSignature.GetLengthInBits(ctx) - - // Implicit Field (noOfClientSoftwareCertificates) - lengthInBits += 32 - - // Array field - if len(m.ClientSoftwareCertificates) > 0 { - for _curItem, element := range m.ClientSoftwareCertificates { - arrayCtx := utils.CreateArrayContext(ctx, len(m.ClientSoftwareCertificates), _curItem) - _ = arrayCtx - _ = _curItem - lengthInBits += element.(interface{ GetLengthInBits(context.Context) uint16 }).GetLengthInBits(arrayCtx) - } - } - - // Implicit Field (noOfLocaleIds) - lengthInBits += 32 - - // Array field - if len(m.LocaleIds) > 0 { - for _curItem, element := range m.LocaleIds { - arrayCtx := utils.CreateArrayContext(ctx, len(m.LocaleIds), _curItem) - _ = arrayCtx - _ = _curItem - lengthInBits += element.(interface{ GetLengthInBits(context.Context) uint16 }).GetLengthInBits(arrayCtx) - } - } - - // Simple field (userIdentityToken) - lengthInBits += m.UserIdentityToken.GetLengthInBits(ctx) - - // Simple field (userTokenSignature) - lengthInBits += m.UserTokenSignature.GetLengthInBits(ctx) - - return lengthInBits -} - -func (m *_ActivateSessionRequest) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -<<<<<<< HEAD -func (m *_ActivateSessionRequest) parse(ctx context.Context, readBuffer utils.ReadBuffer, parent *_ExtensionObjectDefinition, identifier string) (__activateSessionRequest ActivateSessionRequest, err error) { - m.ExtensionObjectDefinitionContract = parent - parent._SubType = m -======= -func ActivateSessionRequestParse(ctx context.Context, theBytes []byte, extensionId string) (ActivateSessionRequest, error) { - return ActivateSessionRequestParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes), extensionId) -} - -func ActivateSessionRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, extensionId string) (ActivateSessionRequest, error) { ->>>>>>> 6b342ed281 (Checkin of generated contents.) - positionAware := readBuffer - _ = positionAware - if pullErr := readBuffer.PullContext("ActivateSessionRequest"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for ActivateSessionRequest") - } - currentPos := positionAware.GetPos() - _ = currentPos - -<<<<<<< HEAD - requestHeader, err := ReadSimpleField[ExtensionObjectDefinition](ctx, "requestHeader", ReadComplex[ExtensionObjectDefinition](ExtensionObjectDefinitionParseWithBufferProducer[ExtensionObjectDefinition]((string)("391")), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'requestHeader' field")) -======= - // Simple Field (requestHeader) - if pullErr := readBuffer.PullContext("requestHeader"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for requestHeader") - } - _requestHeader, _requestHeaderErr := ExtensionObjectDefinitionParseWithBuffer(ctx, readBuffer, string("391")) - if _requestHeaderErr != nil { - return nil, errors.Wrap(_requestHeaderErr, "Error parsing 'requestHeader' field of ActivateSessionRequest") - } - requestHeader := _requestHeader.(RequestHeader) - if closeErr := readBuffer.CloseContext("requestHeader"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for requestHeader") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - m.RequestHeader = requestHeader - -<<<<<<< HEAD - clientSignature, err := ReadSimpleField[ExtensionObjectDefinition](ctx, "clientSignature", ReadComplex[ExtensionObjectDefinition](ExtensionObjectDefinitionParseWithBufferProducer[ExtensionObjectDefinition]((string)("458")), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'clientSignature' field")) -======= - // Simple Field (clientSignature) - if pullErr := readBuffer.PullContext("clientSignature"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for clientSignature") - } - _clientSignature, _clientSignatureErr := ExtensionObjectDefinitionParseWithBuffer(ctx, readBuffer, string("458")) - if _clientSignatureErr != nil { - return nil, errors.Wrap(_clientSignatureErr, "Error parsing 'clientSignature' field of ActivateSessionRequest") - } - clientSignature := _clientSignature.(SignatureData) - if closeErr := readBuffer.CloseContext("clientSignature"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for clientSignature") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - m.ClientSignature = clientSignature - -<<<<<<< HEAD - noOfClientSoftwareCertificates, err := ReadSimpleField(ctx, "noOfClientSoftwareCertificates", ReadSignedInt(readBuffer, uint8(32))) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'noOfClientSoftwareCertificates' field")) - } - m.NoOfClientSoftwareCertificates = noOfClientSoftwareCertificates - - clientSoftwareCertificates, err := ReadCountArrayField[ExtensionObjectDefinition](ctx, "clientSoftwareCertificates", ReadComplex[ExtensionObjectDefinition](ExtensionObjectDefinitionParseWithBufferProducer[ExtensionObjectDefinition]((string)("346")), readBuffer), uint64(noOfClientSoftwareCertificates)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'clientSoftwareCertificates' field")) -======= - // Implicit Field (noOfClientSoftwareCertificates) (Used for parsing, but its value is not stored as it's implicitly given by the objects content) - noOfClientSoftwareCertificates, _noOfClientSoftwareCertificatesErr := readBuffer.ReadInt32("noOfClientSoftwareCertificates", 32) - _ = noOfClientSoftwareCertificates - if _noOfClientSoftwareCertificatesErr != nil { - return nil, errors.Wrap(_noOfClientSoftwareCertificatesErr, "Error parsing 'noOfClientSoftwareCertificates' field of ActivateSessionRequest") - } - - // Array field (clientSoftwareCertificates) - if pullErr := readBuffer.PullContext("clientSoftwareCertificates", utils.WithRenderAsList(true)); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for clientSoftwareCertificates") - } - // Count array - clientSoftwareCertificates := make([]SignedSoftwareCertificate, max(noOfClientSoftwareCertificates, 0)) - // This happens when the size is set conditional to 0 - if len(clientSoftwareCertificates) == 0 { - clientSoftwareCertificates = nil - } - { - _numItems := uint16(max(noOfClientSoftwareCertificates, 0)) - for _curItem := uint16(0); _curItem < _numItems; _curItem++ { - arrayCtx := utils.CreateArrayContext(ctx, int(_numItems), int(_curItem)) - _ = arrayCtx - _ = _curItem - _item, _err := ExtensionObjectDefinitionParseWithBuffer(arrayCtx, readBuffer, "346") - if _err != nil { - return nil, errors.Wrap(_err, "Error parsing 'clientSoftwareCertificates' field of ActivateSessionRequest") - } - clientSoftwareCertificates[_curItem] = _item.(SignedSoftwareCertificate) - } - } - if closeErr := readBuffer.CloseContext("clientSoftwareCertificates", utils.WithRenderAsList(true)); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for clientSoftwareCertificates") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - m.ClientSoftwareCertificates = clientSoftwareCertificates - -<<<<<<< HEAD - noOfLocaleIds, err := ReadSimpleField(ctx, "noOfLocaleIds", ReadSignedInt(readBuffer, uint8(32))) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'noOfLocaleIds' field")) - } - m.NoOfLocaleIds = noOfLocaleIds -======= - // Implicit Field (noOfLocaleIds) (Used for parsing, but its value is not stored as it's implicitly given by the objects content) - noOfLocaleIds, _noOfLocaleIdsErr := readBuffer.ReadInt32("noOfLocaleIds", 32) - _ = noOfLocaleIds - if _noOfLocaleIdsErr != nil { - return nil, errors.Wrap(_noOfLocaleIdsErr, "Error parsing 'noOfLocaleIds' field of ActivateSessionRequest") - } ->>>>>>> 6b342ed281 (Checkin of generated contents.) - - localeIds, err := ReadCountArrayField[PascalString](ctx, "localeIds", ReadComplex[PascalString](PascalStringParseWithBuffer, readBuffer), uint64(noOfLocaleIds)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'localeIds' field")) - } - m.LocaleIds = localeIds - - userIdentityToken, err := ReadSimpleField[ExtensionObject](ctx, "userIdentityToken", ReadComplex[ExtensionObject](ExtensionObjectParseWithBufferProducer((bool)(bool(true))), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'userIdentityToken' field")) - } - m.UserIdentityToken = userIdentityToken - -<<<<<<< HEAD - userTokenSignature, err := ReadSimpleField[ExtensionObjectDefinition](ctx, "userTokenSignature", ReadComplex[ExtensionObjectDefinition](ExtensionObjectDefinitionParseWithBufferProducer[ExtensionObjectDefinition]((string)("458")), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'userTokenSignature' field")) -======= - // Simple Field (userTokenSignature) - if pullErr := readBuffer.PullContext("userTokenSignature"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for userTokenSignature") - } - _userTokenSignature, _userTokenSignatureErr := ExtensionObjectDefinitionParseWithBuffer(ctx, readBuffer, string("458")) - if _userTokenSignatureErr != nil { - return nil, errors.Wrap(_userTokenSignatureErr, "Error parsing 'userTokenSignature' field of ActivateSessionRequest") - } - userTokenSignature := _userTokenSignature.(SignatureData) - if closeErr := readBuffer.CloseContext("userTokenSignature"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for userTokenSignature") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - m.UserTokenSignature = userTokenSignature - - if closeErr := readBuffer.CloseContext("ActivateSessionRequest"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for ActivateSessionRequest") - } - -<<<<<<< HEAD - return m, nil -======= - // Create a partially initialized instance - _child := &_ActivateSessionRequest{ - _ExtensionObjectDefinition: &_ExtensionObjectDefinition{}, - RequestHeader: requestHeader, - ClientSignature: clientSignature, - ClientSoftwareCertificates: clientSoftwareCertificates, - LocaleIds: localeIds, - UserIdentityToken: userIdentityToken, - UserTokenSignature: userTokenSignature, - } - _child._ExtensionObjectDefinition._ExtensionObjectDefinitionChildRequirements = _child - return _child, nil ->>>>>>> 6b342ed281 (Checkin of generated contents.) -} - -func (m *_ActivateSessionRequest) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_ActivateSessionRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - ser := func() error { - if pushErr := writeBuffer.PushContext("ActivateSessionRequest"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for ActivateSessionRequest") - } - - if err := WriteSimpleField[ExtensionObjectDefinition](ctx, "requestHeader", m.GetRequestHeader(), WriteComplex[ExtensionObjectDefinition](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'requestHeader' field") - } - - if err := WriteSimpleField[ExtensionObjectDefinition](ctx, "clientSignature", m.GetClientSignature(), WriteComplex[ExtensionObjectDefinition](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'clientSignature' field") - } - -<<<<<<< HEAD - if err := WriteSimpleField[int32](ctx, "noOfClientSoftwareCertificates", m.GetNoOfClientSoftwareCertificates(), WriteSignedInt(writeBuffer, 32)); err != nil { - return errors.Wrap(err, "Error serializing 'noOfClientSoftwareCertificates' field") -======= - // Implicit Field (noOfClientSoftwareCertificates) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content) - noOfClientSoftwareCertificates := int32(utils.InlineIf(bool((m.GetClientSoftwareCertificates()) == (nil)), func() any { return int32(-(int32(1))) }, func() any { return int32(int32(len(m.GetClientSoftwareCertificates()))) }).(int32)) - _noOfClientSoftwareCertificatesErr := writeBuffer.WriteInt32("noOfClientSoftwareCertificates", 32, int32((noOfClientSoftwareCertificates))) - if _noOfClientSoftwareCertificatesErr != nil { - return errors.Wrap(_noOfClientSoftwareCertificatesErr, "Error serializing 'noOfClientSoftwareCertificates' field") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - - if err := WriteComplexTypeArrayField(ctx, "clientSoftwareCertificates", m.GetClientSoftwareCertificates(), writeBuffer); err != nil { - return errors.Wrap(err, "Error serializing 'clientSoftwareCertificates' field") - } - -<<<<<<< HEAD - if err := WriteSimpleField[int32](ctx, "noOfLocaleIds", m.GetNoOfLocaleIds(), WriteSignedInt(writeBuffer, 32)); err != nil { - return errors.Wrap(err, "Error serializing 'noOfLocaleIds' field") -======= - // Implicit Field (noOfLocaleIds) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content) - noOfLocaleIds := int32(utils.InlineIf(bool((m.GetLocaleIds()) == (nil)), func() any { return int32(-(int32(1))) }, func() any { return int32(int32(len(m.GetLocaleIds()))) }).(int32)) - _noOfLocaleIdsErr := writeBuffer.WriteInt32("noOfLocaleIds", 32, int32((noOfLocaleIds))) - if _noOfLocaleIdsErr != nil { - return errors.Wrap(_noOfLocaleIdsErr, "Error serializing 'noOfLocaleIds' field") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - - if err := WriteComplexTypeArrayField(ctx, "localeIds", m.GetLocaleIds(), writeBuffer); err != nil { - return errors.Wrap(err, "Error serializing 'localeIds' field") - } - - if err := WriteSimpleField[ExtensionObject](ctx, "userIdentityToken", m.GetUserIdentityToken(), WriteComplex[ExtensionObject](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'userIdentityToken' field") - } - - if err := WriteSimpleField[ExtensionObjectDefinition](ctx, "userTokenSignature", m.GetUserTokenSignature(), WriteComplex[ExtensionObjectDefinition](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'userTokenSignature' field") - } - - if popErr := writeBuffer.PopContext("ActivateSessionRequest"); popErr != nil { - return errors.Wrap(popErr, "Error popping for ActivateSessionRequest") - } - return nil - } - return m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).serializeParent(ctx, writeBuffer, m, ser) -} - -func (m *_ActivateSessionRequest) IsActivateSessionRequest() {} - -func (m *_ActivateSessionRequest) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/ActivateSessionResponse.go.orig b/plc4go/protocols/opcua/readwrite/model/ActivateSessionResponse.go.orig deleted file mode 100644 index 8e5bab495b2..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/ActivateSessionResponse.go.orig +++ /dev/null @@ -1,392 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - . "github.com/apache/plc4x/plc4go/spi/codegen/fields" - . "github.com/apache/plc4x/plc4go/spi/codegen/io" - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// ActivateSessionResponse is the corresponding interface of ActivateSessionResponse -type ActivateSessionResponse interface { - fmt.Stringer - utils.LengthAware - utils.Serializable - ExtensionObjectDefinition - // GetResponseHeader returns ResponseHeader (property field) - GetResponseHeader() ResponseHeader - // GetServerNonce returns ServerNonce (property field) - GetServerNonce() PascalByteString - // GetResults returns Results (property field) - GetResults() []StatusCode - // GetDiagnosticInfos returns DiagnosticInfos (property field) - GetDiagnosticInfos() []DiagnosticInfo - // IsActivateSessionResponse is a marker method to prevent unintentional type checks (interfaces of same signature) - IsActivateSessionResponse() -} - -// _ActivateSessionResponse is the data-structure of this message -type _ActivateSessionResponse struct { -<<<<<<< HEAD - ExtensionObjectDefinitionContract - ResponseHeader ExtensionObjectDefinition - ServerNonce PascalByteString - NoOfResults int32 - Results []StatusCode - NoOfDiagnosticInfos int32 - DiagnosticInfos []DiagnosticInfo -======= - *_ExtensionObjectDefinition - ResponseHeader ResponseHeader - ServerNonce PascalByteString - Results []StatusCode - DiagnosticInfos []DiagnosticInfo ->>>>>>> 6b342ed281 (Checkin of generated contents.) -} - -var _ ActivateSessionResponse = (*_ActivateSessionResponse)(nil) -var _ ExtensionObjectDefinitionRequirements = (*_ActivateSessionResponse)(nil) - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for discriminator values. -/////////////////////// - -func (m *_ActivateSessionResponse) GetExtensionId() string { - return "470" -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -func (m *_ActivateSessionResponse) GetParent() ExtensionObjectDefinitionContract { - return m.ExtensionObjectDefinitionContract -} - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for property fields. -/////////////////////// - -func (m *_ActivateSessionResponse) GetResponseHeader() ResponseHeader { - return m.ResponseHeader -} - -func (m *_ActivateSessionResponse) GetServerNonce() PascalByteString { - return m.ServerNonce -} - -func (m *_ActivateSessionResponse) GetResults() []StatusCode { - return m.Results -} - -func (m *_ActivateSessionResponse) GetDiagnosticInfos() []DiagnosticInfo { - return m.DiagnosticInfos -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -// NewActivateSessionResponse factory function for _ActivateSessionResponse -<<<<<<< HEAD -func NewActivateSessionResponse(responseHeader ExtensionObjectDefinition, serverNonce PascalByteString, noOfResults int32, results []StatusCode, noOfDiagnosticInfos int32, diagnosticInfos []DiagnosticInfo) *_ActivateSessionResponse { - if responseHeader == nil { - panic("responseHeader of type ExtensionObjectDefinition for ActivateSessionResponse must not be nil") -======= -func NewActivateSessionResponse(responseHeader ResponseHeader, serverNonce PascalByteString, results []StatusCode, diagnosticInfos []DiagnosticInfo) *_ActivateSessionResponse { - _result := &_ActivateSessionResponse{ - ResponseHeader: responseHeader, - ServerNonce: serverNonce, - Results: results, - DiagnosticInfos: diagnosticInfos, - _ExtensionObjectDefinition: NewExtensionObjectDefinition(), ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - if serverNonce == nil { - panic("serverNonce of type PascalByteString for ActivateSessionResponse must not be nil") - } - _result := &_ActivateSessionResponse{ - ExtensionObjectDefinitionContract: NewExtensionObjectDefinition(), - ResponseHeader: responseHeader, - ServerNonce: serverNonce, - NoOfResults: noOfResults, - Results: results, - NoOfDiagnosticInfos: noOfDiagnosticInfos, - DiagnosticInfos: diagnosticInfos, - } - _result.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition)._SubType = _result - return _result -} - -// Deprecated: use the interface for direct cast -func CastActivateSessionResponse(structType any) ActivateSessionResponse { - if casted, ok := structType.(ActivateSessionResponse); ok { - return casted - } - if casted, ok := structType.(*ActivateSessionResponse); ok { - return *casted - } - return nil -} - -func (m *_ActivateSessionResponse) GetTypeName() string { - return "ActivateSessionResponse" -} - -func (m *_ActivateSessionResponse) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).getLengthInBits(ctx)) - - // Simple field (responseHeader) - lengthInBits += m.ResponseHeader.GetLengthInBits(ctx) - - // Simple field (serverNonce) - lengthInBits += m.ServerNonce.GetLengthInBits(ctx) - - // Implicit Field (noOfResults) - lengthInBits += 32 - - // Array field - if len(m.Results) > 0 { - for _curItem, element := range m.Results { - arrayCtx := utils.CreateArrayContext(ctx, len(m.Results), _curItem) - _ = arrayCtx - _ = _curItem - lengthInBits += element.(interface{ GetLengthInBits(context.Context) uint16 }).GetLengthInBits(arrayCtx) - } - } - - // Implicit Field (noOfDiagnosticInfos) - lengthInBits += 32 - - // Array field - if len(m.DiagnosticInfos) > 0 { - for _curItem, element := range m.DiagnosticInfos { - arrayCtx := utils.CreateArrayContext(ctx, len(m.DiagnosticInfos), _curItem) - _ = arrayCtx - _ = _curItem - lengthInBits += element.(interface{ GetLengthInBits(context.Context) uint16 }).GetLengthInBits(arrayCtx) - } - } - - return lengthInBits -} - -func (m *_ActivateSessionResponse) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -<<<<<<< HEAD -func (m *_ActivateSessionResponse) parse(ctx context.Context, readBuffer utils.ReadBuffer, parent *_ExtensionObjectDefinition, identifier string) (__activateSessionResponse ActivateSessionResponse, err error) { - m.ExtensionObjectDefinitionContract = parent - parent._SubType = m -======= -func ActivateSessionResponseParse(ctx context.Context, theBytes []byte, extensionId string) (ActivateSessionResponse, error) { - return ActivateSessionResponseParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes), extensionId) -} - -func ActivateSessionResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, extensionId string) (ActivateSessionResponse, error) { ->>>>>>> 6b342ed281 (Checkin of generated contents.) - positionAware := readBuffer - _ = positionAware - if pullErr := readBuffer.PullContext("ActivateSessionResponse"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for ActivateSessionResponse") - } - currentPos := positionAware.GetPos() - _ = currentPos - -<<<<<<< HEAD - responseHeader, err := ReadSimpleField[ExtensionObjectDefinition](ctx, "responseHeader", ReadComplex[ExtensionObjectDefinition](ExtensionObjectDefinitionParseWithBufferProducer[ExtensionObjectDefinition]((string)("394")), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'responseHeader' field")) -======= - // Simple Field (responseHeader) - if pullErr := readBuffer.PullContext("responseHeader"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for responseHeader") - } - _responseHeader, _responseHeaderErr := ExtensionObjectDefinitionParseWithBuffer(ctx, readBuffer, string("394")) - if _responseHeaderErr != nil { - return nil, errors.Wrap(_responseHeaderErr, "Error parsing 'responseHeader' field of ActivateSessionResponse") - } - responseHeader := _responseHeader.(ResponseHeader) - if closeErr := readBuffer.CloseContext("responseHeader"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for responseHeader") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - m.ResponseHeader = responseHeader - - serverNonce, err := ReadSimpleField[PascalByteString](ctx, "serverNonce", ReadComplex[PascalByteString](PascalByteStringParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'serverNonce' field")) - } - m.ServerNonce = serverNonce - -<<<<<<< HEAD - noOfResults, err := ReadSimpleField(ctx, "noOfResults", ReadSignedInt(readBuffer, uint8(32))) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'noOfResults' field")) - } - m.NoOfResults = noOfResults -======= - // Implicit Field (noOfResults) (Used for parsing, but its value is not stored as it's implicitly given by the objects content) - noOfResults, _noOfResultsErr := readBuffer.ReadInt32("noOfResults", 32) - _ = noOfResults - if _noOfResultsErr != nil { - return nil, errors.Wrap(_noOfResultsErr, "Error parsing 'noOfResults' field of ActivateSessionResponse") - } ->>>>>>> 6b342ed281 (Checkin of generated contents.) - - results, err := ReadCountArrayField[StatusCode](ctx, "results", ReadComplex[StatusCode](StatusCodeParseWithBuffer, readBuffer), uint64(noOfResults)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'results' field")) - } - m.Results = results - -<<<<<<< HEAD - noOfDiagnosticInfos, err := ReadSimpleField(ctx, "noOfDiagnosticInfos", ReadSignedInt(readBuffer, uint8(32))) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'noOfDiagnosticInfos' field")) - } - m.NoOfDiagnosticInfos = noOfDiagnosticInfos -======= - // Implicit Field (noOfDiagnosticInfos) (Used for parsing, but its value is not stored as it's implicitly given by the objects content) - noOfDiagnosticInfos, _noOfDiagnosticInfosErr := readBuffer.ReadInt32("noOfDiagnosticInfos", 32) - _ = noOfDiagnosticInfos - if _noOfDiagnosticInfosErr != nil { - return nil, errors.Wrap(_noOfDiagnosticInfosErr, "Error parsing 'noOfDiagnosticInfos' field of ActivateSessionResponse") - } ->>>>>>> 6b342ed281 (Checkin of generated contents.) - - diagnosticInfos, err := ReadCountArrayField[DiagnosticInfo](ctx, "diagnosticInfos", ReadComplex[DiagnosticInfo](DiagnosticInfoParseWithBuffer, readBuffer), uint64(noOfDiagnosticInfos)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'diagnosticInfos' field")) - } - m.DiagnosticInfos = diagnosticInfos - - if closeErr := readBuffer.CloseContext("ActivateSessionResponse"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for ActivateSessionResponse") - } - -<<<<<<< HEAD - return m, nil -======= - // Create a partially initialized instance - _child := &_ActivateSessionResponse{ - _ExtensionObjectDefinition: &_ExtensionObjectDefinition{}, - ResponseHeader: responseHeader, - ServerNonce: serverNonce, - Results: results, - DiagnosticInfos: diagnosticInfos, - } - _child._ExtensionObjectDefinition._ExtensionObjectDefinitionChildRequirements = _child - return _child, nil ->>>>>>> 6b342ed281 (Checkin of generated contents.) -} - -func (m *_ActivateSessionResponse) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_ActivateSessionResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - ser := func() error { - if pushErr := writeBuffer.PushContext("ActivateSessionResponse"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for ActivateSessionResponse") - } - - if err := WriteSimpleField[ExtensionObjectDefinition](ctx, "responseHeader", m.GetResponseHeader(), WriteComplex[ExtensionObjectDefinition](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'responseHeader' field") - } - - if err := WriteSimpleField[PascalByteString](ctx, "serverNonce", m.GetServerNonce(), WriteComplex[PascalByteString](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'serverNonce' field") - } - -<<<<<<< HEAD - if err := WriteSimpleField[int32](ctx, "noOfResults", m.GetNoOfResults(), WriteSignedInt(writeBuffer, 32)); err != nil { - return errors.Wrap(err, "Error serializing 'noOfResults' field") -======= - // Implicit Field (noOfResults) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content) - noOfResults := int32(utils.InlineIf(bool((m.GetResults()) == (nil)), func() any { return int32(-(int32(1))) }, func() any { return int32(int32(len(m.GetResults()))) }).(int32)) - _noOfResultsErr := writeBuffer.WriteInt32("noOfResults", 32, int32((noOfResults))) - if _noOfResultsErr != nil { - return errors.Wrap(_noOfResultsErr, "Error serializing 'noOfResults' field") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - - if err := WriteComplexTypeArrayField(ctx, "results", m.GetResults(), writeBuffer); err != nil { - return errors.Wrap(err, "Error serializing 'results' field") - } - -<<<<<<< HEAD - if err := WriteSimpleField[int32](ctx, "noOfDiagnosticInfos", m.GetNoOfDiagnosticInfos(), WriteSignedInt(writeBuffer, 32)); err != nil { - return errors.Wrap(err, "Error serializing 'noOfDiagnosticInfos' field") -======= - // Implicit Field (noOfDiagnosticInfos) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content) - noOfDiagnosticInfos := int32(utils.InlineIf(bool((m.GetDiagnosticInfos()) == (nil)), func() any { return int32(-(int32(1))) }, func() any { return int32(int32(len(m.GetDiagnosticInfos()))) }).(int32)) - _noOfDiagnosticInfosErr := writeBuffer.WriteInt32("noOfDiagnosticInfos", 32, int32((noOfDiagnosticInfos))) - if _noOfDiagnosticInfosErr != nil { - return errors.Wrap(_noOfDiagnosticInfosErr, "Error serializing 'noOfDiagnosticInfos' field") ->>>>>>> 6b342ed281 (Checkin of generated contents.) - } - - if err := WriteComplexTypeArrayField(ctx, "diagnosticInfos", m.GetDiagnosticInfos(), writeBuffer); err != nil { - return errors.Wrap(err, "Error serializing 'diagnosticInfos' field") - } - - if popErr := writeBuffer.PopContext("ActivateSessionResponse"); popErr != nil { - return errors.Wrap(popErr, "Error popping for ActivateSessionResponse") - } - return nil - } - return m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).serializeParent(ctx, writeBuffer, m, ser) -} - -func (m *_ActivateSessionResponse) IsActivateSessionResponse() {} - -func (m *_ActivateSessionResponse) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/AddNodesItem.go.orig b/plc4go/protocols/opcua/readwrite/model/AddNodesItem.go.orig deleted file mode 100644 index 66d7488e7c5..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/AddNodesItem.go.orig +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - . "github.com/apache/plc4x/plc4go/spi/codegen/fields" - . "github.com/apache/plc4x/plc4go/spi/codegen/io" - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// AddNodesItem is the corresponding interface of AddNodesItem -type AddNodesItem interface { - fmt.Stringer - utils.LengthAware - utils.Serializable - ExtensionObjectDefinition - // GetParentNodeId returns ParentNodeId (property field) - GetParentNodeId() ExpandedNodeId - // GetReferenceTypeId returns ReferenceTypeId (property field) - GetReferenceTypeId() NodeId - // GetRequestedNewNodeId returns RequestedNewNodeId (property field) - GetRequestedNewNodeId() ExpandedNodeId - // GetBrowseName returns BrowseName (property field) - GetBrowseName() QualifiedName - // GetNodeClass returns NodeClass (property field) - GetNodeClass() NodeClass - // GetNodeAttributes returns NodeAttributes (property field) - GetNodeAttributes() ExtensionObject - // GetTypeDefinition returns TypeDefinition (property field) - GetTypeDefinition() ExpandedNodeId - // IsAddNodesItem is a marker method to prevent unintentional type checks (interfaces of same signature) - IsAddNodesItem() -} - -// _AddNodesItem is the data-structure of this message -type _AddNodesItem struct { - ExtensionObjectDefinitionContract - ParentNodeId ExpandedNodeId - ReferenceTypeId NodeId - RequestedNewNodeId ExpandedNodeId - BrowseName QualifiedName - NodeClass NodeClass - NodeAttributes ExtensionObject - TypeDefinition ExpandedNodeId -} - -var _ AddNodesItem = (*_AddNodesItem)(nil) -var _ ExtensionObjectDefinitionRequirements = (*_AddNodesItem)(nil) - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for discriminator values. -/////////////////////// - -func (m *_AddNodesItem) GetExtensionId() string { - return "378" -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -func (m *_AddNodesItem) GetParent() ExtensionObjectDefinitionContract { - return m.ExtensionObjectDefinitionContract -} - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for property fields. -/////////////////////// - -func (m *_AddNodesItem) GetParentNodeId() ExpandedNodeId { - return m.ParentNodeId -} - -func (m *_AddNodesItem) GetReferenceTypeId() NodeId { - return m.ReferenceTypeId -} - -func (m *_AddNodesItem) GetRequestedNewNodeId() ExpandedNodeId { - return m.RequestedNewNodeId -} - -func (m *_AddNodesItem) GetBrowseName() QualifiedName { - return m.BrowseName -} - -func (m *_AddNodesItem) GetNodeClass() NodeClass { - return m.NodeClass -} - -func (m *_AddNodesItem) GetNodeAttributes() ExtensionObject { - return m.NodeAttributes -} - -func (m *_AddNodesItem) GetTypeDefinition() ExpandedNodeId { - return m.TypeDefinition -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -// NewAddNodesItem factory function for _AddNodesItem -func NewAddNodesItem(parentNodeId ExpandedNodeId, referenceTypeId NodeId, requestedNewNodeId ExpandedNodeId, browseName QualifiedName, nodeClass NodeClass, nodeAttributes ExtensionObject, typeDefinition ExpandedNodeId) *_AddNodesItem { - if parentNodeId == nil { - panic("parentNodeId of type ExpandedNodeId for AddNodesItem must not be nil") - } - if referenceTypeId == nil { - panic("referenceTypeId of type NodeId for AddNodesItem must not be nil") - } - if requestedNewNodeId == nil { - panic("requestedNewNodeId of type ExpandedNodeId for AddNodesItem must not be nil") - } - if browseName == nil { - panic("browseName of type QualifiedName for AddNodesItem must not be nil") - } - if nodeAttributes == nil { - panic("nodeAttributes of type ExtensionObject for AddNodesItem must not be nil") - } - if typeDefinition == nil { - panic("typeDefinition of type ExpandedNodeId for AddNodesItem must not be nil") - } - _result := &_AddNodesItem{ - ExtensionObjectDefinitionContract: NewExtensionObjectDefinition(), - ParentNodeId: parentNodeId, - ReferenceTypeId: referenceTypeId, - RequestedNewNodeId: requestedNewNodeId, - BrowseName: browseName, - NodeClass: nodeClass, - NodeAttributes: nodeAttributes, - TypeDefinition: typeDefinition, - } - _result.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition)._SubType = _result - return _result -} - -// Deprecated: use the interface for direct cast -func CastAddNodesItem(structType any) AddNodesItem { - if casted, ok := structType.(AddNodesItem); ok { - return casted - } - if casted, ok := structType.(*AddNodesItem); ok { - return *casted - } - return nil -} - -func (m *_AddNodesItem) GetTypeName() string { - return "AddNodesItem" -} - -func (m *_AddNodesItem) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).getLengthInBits(ctx)) - - // Simple field (parentNodeId) - lengthInBits += m.ParentNodeId.GetLengthInBits(ctx) - - // Simple field (referenceTypeId) - lengthInBits += m.ReferenceTypeId.GetLengthInBits(ctx) - - // Simple field (requestedNewNodeId) - lengthInBits += m.RequestedNewNodeId.GetLengthInBits(ctx) - - // Simple field (browseName) - lengthInBits += m.BrowseName.GetLengthInBits(ctx) - - // Simple field (nodeClass) - lengthInBits += 32 - - // Simple field (nodeAttributes) - lengthInBits += m.NodeAttributes.GetLengthInBits(ctx) - - // Simple field (typeDefinition) - lengthInBits += m.TypeDefinition.GetLengthInBits(ctx) - - return lengthInBits -} - -func (m *_AddNodesItem) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -<<<<<<< HEAD -func (m *_AddNodesItem) parse(ctx context.Context, readBuffer utils.ReadBuffer, parent *_ExtensionObjectDefinition, identifier string) (__addNodesItem AddNodesItem, err error) { - m.ExtensionObjectDefinitionContract = parent - parent._SubType = m -======= -func AddNodesItemParse(ctx context.Context, theBytes []byte, extensionId string) (AddNodesItem, error) { - return AddNodesItemParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes), extensionId) -} - -func AddNodesItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, extensionId string) (AddNodesItem, error) { ->>>>>>> 6b342ed281 (Checkin of generated contents.) - positionAware := readBuffer - _ = positionAware - if pullErr := readBuffer.PullContext("AddNodesItem"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for AddNodesItem") - } - currentPos := positionAware.GetPos() - _ = currentPos - - parentNodeId, err := ReadSimpleField[ExpandedNodeId](ctx, "parentNodeId", ReadComplex[ExpandedNodeId](ExpandedNodeIdParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'parentNodeId' field")) - } - m.ParentNodeId = parentNodeId - - referenceTypeId, err := ReadSimpleField[NodeId](ctx, "referenceTypeId", ReadComplex[NodeId](NodeIdParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'referenceTypeId' field")) - } - m.ReferenceTypeId = referenceTypeId - - requestedNewNodeId, err := ReadSimpleField[ExpandedNodeId](ctx, "requestedNewNodeId", ReadComplex[ExpandedNodeId](ExpandedNodeIdParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'requestedNewNodeId' field")) - } - m.RequestedNewNodeId = requestedNewNodeId - - browseName, err := ReadSimpleField[QualifiedName](ctx, "browseName", ReadComplex[QualifiedName](QualifiedNameParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'browseName' field")) - } - m.BrowseName = browseName - - nodeClass, err := ReadEnumField[NodeClass](ctx, "nodeClass", "NodeClass", ReadEnum(NodeClassByValue, ReadUnsignedInt(readBuffer, uint8(32)))) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'nodeClass' field")) - } - m.NodeClass = nodeClass - - nodeAttributes, err := ReadSimpleField[ExtensionObject](ctx, "nodeAttributes", ReadComplex[ExtensionObject](ExtensionObjectParseWithBufferProducer((bool)(bool(true))), readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'nodeAttributes' field")) - } - m.NodeAttributes = nodeAttributes - - typeDefinition, err := ReadSimpleField[ExpandedNodeId](ctx, "typeDefinition", ReadComplex[ExpandedNodeId](ExpandedNodeIdParseWithBuffer, readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'typeDefinition' field")) - } - m.TypeDefinition = typeDefinition - - if closeErr := readBuffer.CloseContext("AddNodesItem"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for AddNodesItem") - } - - return m, nil -} - -func (m *_AddNodesItem) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_AddNodesItem) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - ser := func() error { - if pushErr := writeBuffer.PushContext("AddNodesItem"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for AddNodesItem") - } - - if err := WriteSimpleField[ExpandedNodeId](ctx, "parentNodeId", m.GetParentNodeId(), WriteComplex[ExpandedNodeId](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'parentNodeId' field") - } - - if err := WriteSimpleField[NodeId](ctx, "referenceTypeId", m.GetReferenceTypeId(), WriteComplex[NodeId](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'referenceTypeId' field") - } - - if err := WriteSimpleField[ExpandedNodeId](ctx, "requestedNewNodeId", m.GetRequestedNewNodeId(), WriteComplex[ExpandedNodeId](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'requestedNewNodeId' field") - } - - if err := WriteSimpleField[QualifiedName](ctx, "browseName", m.GetBrowseName(), WriteComplex[QualifiedName](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'browseName' field") - } - - if err := WriteSimpleEnumField[NodeClass](ctx, "nodeClass", "NodeClass", m.GetNodeClass(), WriteEnum[NodeClass, uint32](NodeClass.GetValue, NodeClass.PLC4XEnumName, WriteUnsignedInt(writeBuffer, 32))); err != nil { - return errors.Wrap(err, "Error serializing 'nodeClass' field") - } - - if err := WriteSimpleField[ExtensionObject](ctx, "nodeAttributes", m.GetNodeAttributes(), WriteComplex[ExtensionObject](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'nodeAttributes' field") - } - - if err := WriteSimpleField[ExpandedNodeId](ctx, "typeDefinition", m.GetTypeDefinition(), WriteComplex[ExpandedNodeId](writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'typeDefinition' field") - } - - if popErr := writeBuffer.PopContext("AddNodesItem"); popErr != nil { - return errors.Wrap(popErr, "Error popping for AddNodesItem") - } - return nil - } - return m.ExtensionObjectDefinitionContract.(*_ExtensionObjectDefinition).serializeParent(ctx, writeBuffer, m, ser) -} - -func (m *_AddNodesItem) IsAddNodesItem() {} - -func (m *_AddNodesItem) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/Date.go b/plc4go/protocols/opcua/readwrite/model/Date.go deleted file mode 100644 index 429086ea339..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/Date.go +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// Date is the corresponding interface of Date -type Date interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -// DateExactly can be used when we want exactly this type and not a type which fulfills Date. -// This is useful for switch cases. -type DateExactly interface { - Date - isDate() bool -} - -// _Date is the data-structure of this message -type _Date struct { -} - -// NewDate factory function for _Date -func NewDate() *_Date { - return &_Date{} -} - -// Deprecated: use the interface for direct cast -func CastDate(structType any) Date { - if casted, ok := structType.(Date); ok { - return casted - } - if casted, ok := structType.(*Date); ok { - return *casted - } - return nil -} - -func (m *_Date) GetTypeName() string { - return "Date" -} - -func (m *_Date) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(0) - - return lengthInBits -} - -func (m *_Date) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func DateParse(ctx context.Context, theBytes []byte) (Date, error) { - return DateParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func DateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (Date, error) { - positionAware := readBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pullErr := readBuffer.PullContext("Date"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for Date") - } - currentPos := positionAware.GetPos() - _ = currentPos - - if closeErr := readBuffer.CloseContext("Date"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for Date") - } - - // Create the instance - return &_Date{}, nil -} - -func (m *_Date) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_Date) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pushErr := writeBuffer.PushContext("Date"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for Date") - } - - if popErr := writeBuffer.PopContext("Date"); popErr != nil { - return errors.Wrap(popErr, "Error popping for Date") - } - return nil -} - -func (m *_Date) isDate() bool { - return true -} - -func (m *_Date) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/ExtensionHeader.go b/plc4go/protocols/opcua/readwrite/model/ExtensionHeader.go deleted file mode 100644 index 603c37c8055..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/ExtensionHeader.go +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - . "github.com/apache/plc4x/plc4go/spi/codegen/fields" - . "github.com/apache/plc4x/plc4go/spi/codegen/io" - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// ExtensionHeader is the corresponding interface of ExtensionHeader -type ExtensionHeader interface { - fmt.Stringer - utils.LengthAware - utils.Serializable - // GetXmlbody returns Xmlbody (property field) - GetXmlbody() bool - // GetBinaryBody returns BinaryBody (property field) - GetBinaryBody() bool - // IsExtensionHeader is a marker method to prevent unintentional type checks (interfaces of same signature) - IsExtensionHeader() -} - -// _ExtensionHeader is the data-structure of this message -type _ExtensionHeader struct { - Xmlbody bool - BinaryBody bool - // Reserved Fields - reservedField0 *int8 -} - -var _ ExtensionHeader = (*_ExtensionHeader)(nil) - -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////// Accessors for property fields. -/////////////////////// - -func (m *_ExtensionHeader) GetXmlbody() bool { - return m.Xmlbody -} - -func (m *_ExtensionHeader) GetBinaryBody() bool { - return m.BinaryBody -} - -/////////////////////// -/////////////////////// -/////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////// - -// NewExtensionHeader factory function for _ExtensionHeader -func NewExtensionHeader(xmlbody bool, binaryBody bool) *_ExtensionHeader { - return &_ExtensionHeader{Xmlbody: xmlbody, BinaryBody: binaryBody} -} - -// Deprecated: use the interface for direct cast -func CastExtensionHeader(structType any) ExtensionHeader { - if casted, ok := structType.(ExtensionHeader); ok { - return casted - } - if casted, ok := structType.(*ExtensionHeader); ok { - return *casted - } - return nil -} - -func (m *_ExtensionHeader) GetTypeName() string { - return "ExtensionHeader" -} - -func (m *_ExtensionHeader) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(0) - - // Reserved Field (reserved) - lengthInBits += 5 - - // Simple field (xmlbody) - lengthInBits += 1 - - // Simple field (binaryBody) - lengthInBits += 1 - - return lengthInBits -} - -func (m *_ExtensionHeader) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func ExtensionHeaderParse(ctx context.Context, theBytes []byte) (ExtensionHeader, error) { - return ExtensionHeaderParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func ExtensionHeaderParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ExtensionHeader, error) { - return func(ctx context.Context, readBuffer utils.ReadBuffer) (ExtensionHeader, error) { - return ExtensionHeaderParseWithBuffer(ctx, readBuffer) - } -} - -func ExtensionHeaderParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ExtensionHeader, error) { - v, err := (&_ExtensionHeader{}).parse(ctx, readBuffer) - if err != nil { - return nil, err - } - return v, nil -} - -func (m *_ExtensionHeader) parse(ctx context.Context, readBuffer utils.ReadBuffer) (__extensionHeader ExtensionHeader, err error) { - positionAware := readBuffer - _ = positionAware - if pullErr := readBuffer.PullContext("ExtensionHeader"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for ExtensionHeader") - } - currentPos := positionAware.GetPos() - _ = currentPos - - reservedField0, err := ReadReservedField(ctx, "reserved", ReadSignedByte(readBuffer, uint8(5)), int8(0x00)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing reserved field")) - } - m.reservedField0 = reservedField0 - - xmlbody, err := ReadSimpleField(ctx, "xmlbody", ReadBoolean(readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'xmlbody' field")) - } - m.Xmlbody = xmlbody - - binaryBody, err := ReadSimpleField(ctx, "binaryBody", ReadBoolean(readBuffer)) - if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("Error parsing 'binaryBody' field")) - } - m.BinaryBody = binaryBody - - if closeErr := readBuffer.CloseContext("ExtensionHeader"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for ExtensionHeader") - } - - return m, nil -} - -func (m *_ExtensionHeader) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_ExtensionHeader) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pushErr := writeBuffer.PushContext("ExtensionHeader"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for ExtensionHeader") - } - - if err := WriteReservedField[int8](ctx, "reserved", int8(0x00), WriteSignedByte(writeBuffer, 5)); err != nil { - return errors.Wrap(err, "Error serializing 'reserved' field number 1") - } - - if err := WriteSimpleField[bool](ctx, "xmlbody", m.GetXmlbody(), WriteBoolean(writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'xmlbody' field") - } - - if err := WriteSimpleField[bool](ctx, "binaryBody", m.GetBinaryBody(), WriteBoolean(writeBuffer)); err != nil { - return errors.Wrap(err, "Error serializing 'binaryBody' field") - } - - if popErr := writeBuffer.PopContext("ExtensionHeader"); popErr != nil { - return errors.Wrap(popErr, "Error popping for ExtensionHeader") - } - return nil -} - -func (m *_ExtensionHeader) IsExtensionHeader() {} - -func (m *_ExtensionHeader) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableAddress.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableAddress.go deleted file mode 100644 index d7810baf0b4..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableAddress.go +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableAddress is an enum -type OpcuaNodeIdServicesVariableAddress int32 - -type IOpcuaNodeIdServicesVariableAddress interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Size OpcuaNodeIdServicesVariableAddress = 11596 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_OpenCount OpcuaNodeIdServicesVariableAddress = 11599 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_InputArguments OpcuaNodeIdServicesVariableAddress = 11601 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_OutputArguments OpcuaNodeIdServicesVariableAddress = 11602 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Close_InputArguments OpcuaNodeIdServicesVariableAddress = 11604 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_InputArguments OpcuaNodeIdServicesVariableAddress = 11606 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_OutputArguments OpcuaNodeIdServicesVariableAddress = 11607 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Write_InputArguments OpcuaNodeIdServicesVariableAddress = 11609 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_InputArguments OpcuaNodeIdServicesVariableAddress = 11611 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_OutputArguments OpcuaNodeIdServicesVariableAddress = 11612 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_SetPosition_InputArguments OpcuaNodeIdServicesVariableAddress = 11614 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Writable OpcuaNodeIdServicesVariableAddress = 12688 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_UserWritable OpcuaNodeIdServicesVariableAddress = 12689 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MimeType OpcuaNodeIdServicesVariableAddress = 13398 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MaxByteStringLength OpcuaNodeIdServicesVariableAddress = 24245 - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_LastModifiedTime OpcuaNodeIdServicesVariableAddress = 25201 -) - -var OpcuaNodeIdServicesVariableAddressValues []OpcuaNodeIdServicesVariableAddress - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableAddressValues = []OpcuaNodeIdServicesVariableAddress{ - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Size, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_OpenCount, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_OutputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Close_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_OutputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Write_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_OutputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_SetPosition_InputArguments, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Writable, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_UserWritable, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MimeType, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MaxByteStringLength, - OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_LastModifiedTime, - } -} - -func OpcuaNodeIdServicesVariableAddressByValue(value int32) (enum OpcuaNodeIdServicesVariableAddress, ok bool) { - switch value { - case 11596: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Size, true - case 11599: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_OpenCount, true - case 11601: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_InputArguments, true - case 11602: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_OutputArguments, true - case 11604: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Close_InputArguments, true - case 11606: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_InputArguments, true - case 11607: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_OutputArguments, true - case 11609: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Write_InputArguments, true - case 11611: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_InputArguments, true - case 11612: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_OutputArguments, true - case 11614: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_SetPosition_InputArguments, true - case 12688: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Writable, true - case 12689: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_UserWritable, true - case 13398: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MimeType, true - case 24245: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MaxByteStringLength, true - case 25201: - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_LastModifiedTime, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableAddressByName(value string) (enum OpcuaNodeIdServicesVariableAddress, ok bool) { - switch value { - case "AddressSpaceFileType_Size": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Size, true - case "AddressSpaceFileType_OpenCount": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_OpenCount, true - case "AddressSpaceFileType_Open_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_InputArguments, true - case "AddressSpaceFileType_Open_OutputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_OutputArguments, true - case "AddressSpaceFileType_Close_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Close_InputArguments, true - case "AddressSpaceFileType_Read_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_InputArguments, true - case "AddressSpaceFileType_Read_OutputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_OutputArguments, true - case "AddressSpaceFileType_Write_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Write_InputArguments, true - case "AddressSpaceFileType_GetPosition_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_InputArguments, true - case "AddressSpaceFileType_GetPosition_OutputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_OutputArguments, true - case "AddressSpaceFileType_SetPosition_InputArguments": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_SetPosition_InputArguments, true - case "AddressSpaceFileType_Writable": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Writable, true - case "AddressSpaceFileType_UserWritable": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_UserWritable, true - case "AddressSpaceFileType_MimeType": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MimeType, true - case "AddressSpaceFileType_MaxByteStringLength": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MaxByteStringLength, true - case "AddressSpaceFileType_LastModifiedTime": - return OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_LastModifiedTime, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableAddressKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableAddressValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableAddress(structType any) OpcuaNodeIdServicesVariableAddress { - castFunc := func(typ any) OpcuaNodeIdServicesVariableAddress { - if sOpcuaNodeIdServicesVariableAddress, ok := typ.(OpcuaNodeIdServicesVariableAddress); ok { - return sOpcuaNodeIdServicesVariableAddress - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableAddress) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableAddress) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableAddressParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableAddress, error) { - return OpcuaNodeIdServicesVariableAddressParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableAddressParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableAddress, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableAddress", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableAddress") - } - if enum, ok := OpcuaNodeIdServicesVariableAddressByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableAddress") - return OpcuaNodeIdServicesVariableAddress(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableAddress) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableAddress) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableAddress", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableAddress) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Size: - return "AddressSpaceFileType_Size" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_OpenCount: - return "AddressSpaceFileType_OpenCount" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_InputArguments: - return "AddressSpaceFileType_Open_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Open_OutputArguments: - return "AddressSpaceFileType_Open_OutputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Close_InputArguments: - return "AddressSpaceFileType_Close_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_InputArguments: - return "AddressSpaceFileType_Read_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Read_OutputArguments: - return "AddressSpaceFileType_Read_OutputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Write_InputArguments: - return "AddressSpaceFileType_Write_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_InputArguments: - return "AddressSpaceFileType_GetPosition_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_GetPosition_OutputArguments: - return "AddressSpaceFileType_GetPosition_OutputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_SetPosition_InputArguments: - return "AddressSpaceFileType_SetPosition_InputArguments" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_Writable: - return "AddressSpaceFileType_Writable" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_UserWritable: - return "AddressSpaceFileType_UserWritable" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MimeType: - return "AddressSpaceFileType_MimeType" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_MaxByteStringLength: - return "AddressSpaceFileType_MaxByteStringLength" - case OpcuaNodeIdServicesVariableAddress_AddressSpaceFileType_LastModifiedTime: - return "AddressSpaceFileType_LastModifiedTime" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableAddress) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableChoice.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableChoice.go deleted file mode 100644 index 9fefd35356f..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableChoice.go +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableChoice is an enum -type OpcuaNodeIdServicesVariableChoice int32 - -type IOpcuaNodeIdServicesVariableChoice interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableChoice_ChoiceStateType_StateNumber OpcuaNodeIdServicesVariableChoice = 15110 -) - -var OpcuaNodeIdServicesVariableChoiceValues []OpcuaNodeIdServicesVariableChoice - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableChoiceValues = []OpcuaNodeIdServicesVariableChoice{ - OpcuaNodeIdServicesVariableChoice_ChoiceStateType_StateNumber, - } -} - -func OpcuaNodeIdServicesVariableChoiceByValue(value int32) (enum OpcuaNodeIdServicesVariableChoice, ok bool) { - switch value { - case 15110: - return OpcuaNodeIdServicesVariableChoice_ChoiceStateType_StateNumber, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableChoiceByName(value string) (enum OpcuaNodeIdServicesVariableChoice, ok bool) { - switch value { - case "ChoiceStateType_StateNumber": - return OpcuaNodeIdServicesVariableChoice_ChoiceStateType_StateNumber, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableChoiceKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableChoiceValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableChoice(structType any) OpcuaNodeIdServicesVariableChoice { - castFunc := func(typ any) OpcuaNodeIdServicesVariableChoice { - if sOpcuaNodeIdServicesVariableChoice, ok := typ.(OpcuaNodeIdServicesVariableChoice); ok { - return sOpcuaNodeIdServicesVariableChoice - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableChoice) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableChoice) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableChoiceParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableChoice, error) { - return OpcuaNodeIdServicesVariableChoiceParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableChoiceParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableChoice, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableChoice", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableChoice") - } - if enum, ok := OpcuaNodeIdServicesVariableChoiceByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableChoice") - return OpcuaNodeIdServicesVariableChoice(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableChoice) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableChoice) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableChoice", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableChoice) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableChoice_ChoiceStateType_StateNumber: - return "ChoiceStateType_StateNumber" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableChoice) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDevice.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDevice.go deleted file mode 100644 index ff3dc3a61ac..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDevice.go +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableDevice is an enum -type OpcuaNodeIdServicesVariableDevice int32 - -type IOpcuaNodeIdServicesVariableDevice interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventId OpcuaNodeIdServicesVariableDevice = 3662 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventType OpcuaNodeIdServicesVariableDevice = 3663 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceNode OpcuaNodeIdServicesVariableDevice = 3664 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceName OpcuaNodeIdServicesVariableDevice = 3665 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Time OpcuaNodeIdServicesVariableDevice = 3666 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ReceiveTime OpcuaNodeIdServicesVariableDevice = 3667 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_LocalTime OpcuaNodeIdServicesVariableDevice = 3668 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Message OpcuaNodeIdServicesVariableDevice = 3669 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Severity OpcuaNodeIdServicesVariableDevice = 3670 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassId OpcuaNodeIdServicesVariableDevice = 31879 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassName OpcuaNodeIdServicesVariableDevice = 31880 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassId OpcuaNodeIdServicesVariableDevice = 31881 - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassName OpcuaNodeIdServicesVariableDevice = 31882 -) - -var OpcuaNodeIdServicesVariableDeviceValues []OpcuaNodeIdServicesVariableDevice - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableDeviceValues = []OpcuaNodeIdServicesVariableDevice{ - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventId, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventType, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceNode, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceName, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Time, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ReceiveTime, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_LocalTime, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Message, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Severity, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassId, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassName, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassId, - OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassName, - } -} - -func OpcuaNodeIdServicesVariableDeviceByValue(value int32) (enum OpcuaNodeIdServicesVariableDevice, ok bool) { - switch value { - case 31879: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassId, true - case 31880: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassName, true - case 31881: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassId, true - case 31882: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassName, true - case 3662: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventId, true - case 3663: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventType, true - case 3664: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceNode, true - case 3665: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceName, true - case 3666: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Time, true - case 3667: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ReceiveTime, true - case 3668: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_LocalTime, true - case 3669: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Message, true - case 3670: - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Severity, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableDeviceByName(value string) (enum OpcuaNodeIdServicesVariableDevice, ok bool) { - switch value { - case "DeviceFailureEventType_ConditionClassId": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassId, true - case "DeviceFailureEventType_ConditionClassName": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassName, true - case "DeviceFailureEventType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassId, true - case "DeviceFailureEventType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassName, true - case "DeviceFailureEventType_EventId": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventId, true - case "DeviceFailureEventType_EventType": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventType, true - case "DeviceFailureEventType_SourceNode": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceNode, true - case "DeviceFailureEventType_SourceName": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceName, true - case "DeviceFailureEventType_Time": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Time, true - case "DeviceFailureEventType_ReceiveTime": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ReceiveTime, true - case "DeviceFailureEventType_LocalTime": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_LocalTime, true - case "DeviceFailureEventType_Message": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Message, true - case "DeviceFailureEventType_Severity": - return OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Severity, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableDeviceKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableDeviceValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableDevice(structType any) OpcuaNodeIdServicesVariableDevice { - castFunc := func(typ any) OpcuaNodeIdServicesVariableDevice { - if sOpcuaNodeIdServicesVariableDevice, ok := typ.(OpcuaNodeIdServicesVariableDevice); ok { - return sOpcuaNodeIdServicesVariableDevice - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableDevice) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableDevice) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableDeviceParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableDevice, error) { - return OpcuaNodeIdServicesVariableDeviceParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableDeviceParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableDevice, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableDevice", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableDevice") - } - if enum, ok := OpcuaNodeIdServicesVariableDeviceByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableDevice") - return OpcuaNodeIdServicesVariableDevice(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableDevice) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableDevice) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableDevice", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableDevice) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassId: - return "DeviceFailureEventType_ConditionClassId" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionClassName: - return "DeviceFailureEventType_ConditionClassName" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassId: - return "DeviceFailureEventType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ConditionSubClassName: - return "DeviceFailureEventType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventId: - return "DeviceFailureEventType_EventId" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_EventType: - return "DeviceFailureEventType_EventType" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceNode: - return "DeviceFailureEventType_SourceNode" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_SourceName: - return "DeviceFailureEventType_SourceName" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Time: - return "DeviceFailureEventType_Time" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_ReceiveTime: - return "DeviceFailureEventType_ReceiveTime" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_LocalTime: - return "DeviceFailureEventType_LocalTime" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Message: - return "DeviceFailureEventType_Message" - case OpcuaNodeIdServicesVariableDevice_DeviceFailureEventType_Severity: - return "DeviceFailureEventType_Severity" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableDevice) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDiscrete.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDiscrete.go deleted file mode 100644 index 6d964af550f..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableDiscrete.go +++ /dev/null @@ -1,1255 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableDiscrete is an enum -type OpcuaNodeIdServicesVariableDiscrete int32 - -type IOpcuaNodeIdServicesVariableDiscrete interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_Definition OpcuaNodeIdServicesVariableDiscrete = 3776 - OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_ValuePrecision OpcuaNodeIdServicesVariableDiscrete = 3777 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventId OpcuaNodeIdServicesVariableDiscrete = 10524 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventType OpcuaNodeIdServicesVariableDiscrete = 10525 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceNode OpcuaNodeIdServicesVariableDiscrete = 10526 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceName OpcuaNodeIdServicesVariableDiscrete = 10527 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Time OpcuaNodeIdServicesVariableDiscrete = 10528 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReceiveTime OpcuaNodeIdServicesVariableDiscrete = 10529 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LocalTime OpcuaNodeIdServicesVariableDiscrete = 10530 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Message OpcuaNodeIdServicesVariableDiscrete = 10531 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Severity OpcuaNodeIdServicesVariableDiscrete = 10532 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionName OpcuaNodeIdServicesVariableDiscrete = 10533 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_BranchId OpcuaNodeIdServicesVariableDiscrete = 10534 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Retain OpcuaNodeIdServicesVariableDiscrete = 10535 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState OpcuaNodeIdServicesVariableDiscrete = 10536 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Id OpcuaNodeIdServicesVariableDiscrete = 10537 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Name OpcuaNodeIdServicesVariableDiscrete = 10538 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Number OpcuaNodeIdServicesVariableDiscrete = 10539 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10540 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10541 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 10542 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TrueState OpcuaNodeIdServicesVariableDiscrete = 10543 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_FalseState OpcuaNodeIdServicesVariableDiscrete = 10544 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality OpcuaNodeIdServicesVariableDiscrete = 10545 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality_SourceTimestamp OpcuaNodeIdServicesVariableDiscrete = 10546 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity OpcuaNodeIdServicesVariableDiscrete = 10547 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity_SourceTimestamp OpcuaNodeIdServicesVariableDiscrete = 10548 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment OpcuaNodeIdServicesVariableDiscrete = 10549 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment_SourceTimestamp OpcuaNodeIdServicesVariableDiscrete = 10550 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ClientUserId OpcuaNodeIdServicesVariableDiscrete = 10551 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AddComment_InputArguments OpcuaNodeIdServicesVariableDiscrete = 10555 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh_InputArguments OpcuaNodeIdServicesVariableDiscrete = 10557 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState OpcuaNodeIdServicesVariableDiscrete = 10558 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Id OpcuaNodeIdServicesVariableDiscrete = 10559 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Name OpcuaNodeIdServicesVariableDiscrete = 10560 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Number OpcuaNodeIdServicesVariableDiscrete = 10561 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10562 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10563 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 10564 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TrueState OpcuaNodeIdServicesVariableDiscrete = 10565 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_FalseState OpcuaNodeIdServicesVariableDiscrete = 10566 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState OpcuaNodeIdServicesVariableDiscrete = 10567 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Id OpcuaNodeIdServicesVariableDiscrete = 10568 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Name OpcuaNodeIdServicesVariableDiscrete = 10569 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Number OpcuaNodeIdServicesVariableDiscrete = 10570 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10571 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10572 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 10573 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TrueState OpcuaNodeIdServicesVariableDiscrete = 10574 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_FalseState OpcuaNodeIdServicesVariableDiscrete = 10575 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Acknowledge_InputArguments OpcuaNodeIdServicesVariableDiscrete = 10577 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Confirm_InputArguments OpcuaNodeIdServicesVariableDiscrete = 10579 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState OpcuaNodeIdServicesVariableDiscrete = 10580 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Id OpcuaNodeIdServicesVariableDiscrete = 10581 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Name OpcuaNodeIdServicesVariableDiscrete = 10582 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Number OpcuaNodeIdServicesVariableDiscrete = 10583 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10584 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10585 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 10586 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TrueState OpcuaNodeIdServicesVariableDiscrete = 10587 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_FalseState OpcuaNodeIdServicesVariableDiscrete = 10588 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState OpcuaNodeIdServicesVariableDiscrete = 10589 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Id OpcuaNodeIdServicesVariableDiscrete = 10590 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Name OpcuaNodeIdServicesVariableDiscrete = 10591 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Number OpcuaNodeIdServicesVariableDiscrete = 10592 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10593 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10594 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 10595 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TrueState OpcuaNodeIdServicesVariableDiscrete = 10596 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_FalseState OpcuaNodeIdServicesVariableDiscrete = 10597 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState OpcuaNodeIdServicesVariableDiscrete = 10599 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Id OpcuaNodeIdServicesVariableDiscrete = 10600 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Name OpcuaNodeIdServicesVariableDiscrete = 10601 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Number OpcuaNodeIdServicesVariableDiscrete = 10602 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 10603 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition OpcuaNodeIdServicesVariableDiscrete = 10604 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Id OpcuaNodeIdServicesVariableDiscrete = 10605 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Name OpcuaNodeIdServicesVariableDiscrete = 10606 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Number OpcuaNodeIdServicesVariableDiscrete = 10607 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 10608 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_UnshelveTime OpcuaNodeIdServicesVariableDiscrete = 10609 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments OpcuaNodeIdServicesVariableDiscrete = 10634 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedOrShelved OpcuaNodeIdServicesVariableDiscrete = 10635 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_MaxTimeShelved OpcuaNodeIdServicesVariableDiscrete = 10636 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassId OpcuaNodeIdServicesVariableDiscrete = 11152 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassName OpcuaNodeIdServicesVariableDiscrete = 11153 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_InputNode OpcuaNodeIdServicesVariableDiscrete = 11154 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 11481 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 13005 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassId OpcuaNodeIdServicesVariableDiscrete = 16900 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassName OpcuaNodeIdServicesVariableDiscrete = 16901 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState OpcuaNodeIdServicesVariableDiscrete = 16902 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Id OpcuaNodeIdServicesVariableDiscrete = 16903 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Name OpcuaNodeIdServicesVariableDiscrete = 16904 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Number OpcuaNodeIdServicesVariableDiscrete = 16905 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 16906 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 16907 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 16908 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TrueState OpcuaNodeIdServicesVariableDiscrete = 16909 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_FalseState OpcuaNodeIdServicesVariableDiscrete = 16910 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState OpcuaNodeIdServicesVariableDiscrete = 16911 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Id OpcuaNodeIdServicesVariableDiscrete = 16912 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Name OpcuaNodeIdServicesVariableDiscrete = 16913 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Number OpcuaNodeIdServicesVariableDiscrete = 16914 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 16915 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 16916 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 16917 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TrueState OpcuaNodeIdServicesVariableDiscrete = 16918 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_FalseState OpcuaNodeIdServicesVariableDiscrete = 16919 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleEnabled OpcuaNodeIdServicesVariableDiscrete = 16920 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound OpcuaNodeIdServicesVariableDiscrete = 16921 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OnDelay OpcuaNodeIdServicesVariableDiscrete = 16926 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OffDelay OpcuaNodeIdServicesVariableDiscrete = 16927 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_FirstInGroupFlag OpcuaNodeIdServicesVariableDiscrete = 16928 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmTime OpcuaNodeIdServicesVariableDiscrete = 16931 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmRepeatCount OpcuaNodeIdServicesVariableDiscrete = 16932 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableStates OpcuaNodeIdServicesVariableDiscrete = 17692 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableTransitions OpcuaNodeIdServicesVariableDiscrete = 17693 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_ListId OpcuaNodeIdServicesVariableDiscrete = 17942 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_AgencyId OpcuaNodeIdServicesVariableDiscrete = 17943 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_VersionId OpcuaNodeIdServicesVariableDiscrete = 17944 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState OpcuaNodeIdServicesVariableDiscrete = 18307 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Id OpcuaNodeIdServicesVariableDiscrete = 18308 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Name OpcuaNodeIdServicesVariableDiscrete = 18309 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Number OpcuaNodeIdServicesVariableDiscrete = 18310 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveDisplayName OpcuaNodeIdServicesVariableDiscrete = 18311 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TransitionTime OpcuaNodeIdServicesVariableDiscrete = 18312 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableDiscrete = 18313 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TrueState OpcuaNodeIdServicesVariableDiscrete = 18314 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_FalseState OpcuaNodeIdServicesVariableDiscrete = 18315 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Suppress2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24429 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Unsuppress2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24431 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_RemoveFromService2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24433 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_PlaceInService2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24435 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Reset2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24437 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24907 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24909 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments OpcuaNodeIdServicesVariableDiscrete = 24911 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_GetGroupMemberships_OutputArguments OpcuaNodeIdServicesVariableDiscrete = 25168 - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SupportsFilteredRetain OpcuaNodeIdServicesVariableDiscrete = 32236 -) - -var OpcuaNodeIdServicesVariableDiscreteValues []OpcuaNodeIdServicesVariableDiscrete - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableDiscreteValues = []OpcuaNodeIdServicesVariableDiscrete{ - OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_Definition, - OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_ValuePrecision, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventType, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceNode, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Time, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReceiveTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LocalTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Message, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Severity, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_BranchId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Retain, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality_SourceTimestamp, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity_SourceTimestamp, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment_SourceTimestamp, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ClientUserId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AddComment_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Acknowledge_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Confirm_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_UnshelveTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedOrShelved, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_MaxTimeShelved, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_InputNode, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleEnabled, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OnDelay, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OffDelay, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_FirstInGroupFlag, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmRepeatCount, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableStates, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableTransitions, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_ListId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_AgencyId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_VersionId, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Id, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Name, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Number, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TrueState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_FalseState, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Suppress2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Unsuppress2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_RemoveFromService2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_PlaceInService2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Reset2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_GetGroupMemberships_OutputArguments, - OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SupportsFilteredRetain, - } -} - -func OpcuaNodeIdServicesVariableDiscreteByValue(value int32) (enum OpcuaNodeIdServicesVariableDiscrete, ok bool) { - switch value { - case 10524: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventId, true - case 10525: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventType, true - case 10526: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceNode, true - case 10527: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceName, true - case 10528: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Time, true - case 10529: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReceiveTime, true - case 10530: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LocalTime, true - case 10531: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Message, true - case 10532: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Severity, true - case 10533: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionName, true - case 10534: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_BranchId, true - case 10535: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Retain, true - case 10536: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState, true - case 10537: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Id, true - case 10538: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Name, true - case 10539: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Number, true - case 10540: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveDisplayName, true - case 10541: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TransitionTime, true - case 10542: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveTransitionTime, true - case 10543: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TrueState, true - case 10544: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_FalseState, true - case 10545: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality, true - case 10546: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality_SourceTimestamp, true - case 10547: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity, true - case 10548: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity_SourceTimestamp, true - case 10549: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment, true - case 10550: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment_SourceTimestamp, true - case 10551: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ClientUserId, true - case 10555: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AddComment_InputArguments, true - case 10557: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh_InputArguments, true - case 10558: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState, true - case 10559: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Id, true - case 10560: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Name, true - case 10561: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Number, true - case 10562: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveDisplayName, true - case 10563: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TransitionTime, true - case 10564: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveTransitionTime, true - case 10565: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TrueState, true - case 10566: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_FalseState, true - case 10567: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState, true - case 10568: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Id, true - case 10569: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Name, true - case 10570: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Number, true - case 10571: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveDisplayName, true - case 10572: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TransitionTime, true - case 10573: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime, true - case 10574: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TrueState, true - case 10575: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_FalseState, true - case 10577: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Acknowledge_InputArguments, true - case 10579: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Confirm_InputArguments, true - case 10580: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState, true - case 10581: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Id, true - case 10582: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Name, true - case 10583: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Number, true - case 10584: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveDisplayName, true - case 10585: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TransitionTime, true - case 10586: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveTransitionTime, true - case 10587: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TrueState, true - case 10588: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_FalseState, true - case 10589: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState, true - case 10590: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Id, true - case 10591: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Name, true - case 10592: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Number, true - case 10593: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveDisplayName, true - case 10594: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TransitionTime, true - case 10595: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveTransitionTime, true - case 10596: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TrueState, true - case 10597: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_FalseState, true - case 10599: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState, true - case 10600: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Id, true - case 10601: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Name, true - case 10602: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Number, true - case 10603: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case 10604: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition, true - case 10605: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Id, true - case 10606: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Name, true - case 10607: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Number, true - case 10608: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime, true - case 10609: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_UnshelveTime, true - case 10634: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments, true - case 10635: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedOrShelved, true - case 10636: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_MaxTimeShelved, true - case 11152: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassId, true - case 11153: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassName, true - case 11154: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_InputNode, true - case 11481: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case 13005: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh2_InputArguments, true - case 16900: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassId, true - case 16901: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassName, true - case 16902: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState, true - case 16903: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Id, true - case 16904: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Name, true - case 16905: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Number, true - case 16906: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName, true - case 16907: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TransitionTime, true - case 16908: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case 16909: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TrueState, true - case 16910: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_FalseState, true - case 16911: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState, true - case 16912: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Id, true - case 16913: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Name, true - case 16914: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Number, true - case 16915: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveDisplayName, true - case 16916: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TransitionTime, true - case 16917: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveTransitionTime, true - case 16918: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TrueState, true - case 16919: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_FalseState, true - case 16920: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleEnabled, true - case 16921: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound, true - case 16926: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OnDelay, true - case 16927: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OffDelay, true - case 16928: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_FirstInGroupFlag, true - case 16931: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmTime, true - case 16932: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmRepeatCount, true - case 17692: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableStates, true - case 17693: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableTransitions, true - case 17942: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_ListId, true - case 17943: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_AgencyId, true - case 17944: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_VersionId, true - case 18307: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState, true - case 18308: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Id, true - case 18309: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Name, true - case 18310: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Number, true - case 18311: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveDisplayName, true - case 18312: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TransitionTime, true - case 18313: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveTransitionTime, true - case 18314: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TrueState, true - case 18315: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_FalseState, true - case 24429: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Suppress2_InputArguments, true - case 24431: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Unsuppress2_InputArguments, true - case 24433: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_RemoveFromService2_InputArguments, true - case 24435: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_PlaceInService2_InputArguments, true - case 24437: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Reset2_InputArguments, true - case 24907: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case 24909: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments, true - case 24911: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case 25168: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_GetGroupMemberships_OutputArguments, true - case 32236: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SupportsFilteredRetain, true - case 3776: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_Definition, true - case 3777: - return OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_ValuePrecision, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableDiscreteByName(value string) (enum OpcuaNodeIdServicesVariableDiscrete, ok bool) { - switch value { - case "DiscreteAlarmType_EventId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventId, true - case "DiscreteAlarmType_EventType": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventType, true - case "DiscreteAlarmType_SourceNode": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceNode, true - case "DiscreteAlarmType_SourceName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceName, true - case "DiscreteAlarmType_Time": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Time, true - case "DiscreteAlarmType_ReceiveTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReceiveTime, true - case "DiscreteAlarmType_LocalTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LocalTime, true - case "DiscreteAlarmType_Message": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Message, true - case "DiscreteAlarmType_Severity": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Severity, true - case "DiscreteAlarmType_ConditionName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionName, true - case "DiscreteAlarmType_BranchId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_BranchId, true - case "DiscreteAlarmType_Retain": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Retain, true - case "DiscreteAlarmType_EnabledState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState, true - case "DiscreteAlarmType_EnabledState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Id, true - case "DiscreteAlarmType_EnabledState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Name, true - case "DiscreteAlarmType_EnabledState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Number, true - case "DiscreteAlarmType_EnabledState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveDisplayName, true - case "DiscreteAlarmType_EnabledState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TransitionTime, true - case "DiscreteAlarmType_EnabledState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveTransitionTime, true - case "DiscreteAlarmType_EnabledState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TrueState, true - case "DiscreteAlarmType_EnabledState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_FalseState, true - case "DiscreteAlarmType_Quality": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality, true - case "DiscreteAlarmType_Quality_SourceTimestamp": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality_SourceTimestamp, true - case "DiscreteAlarmType_LastSeverity": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity, true - case "DiscreteAlarmType_LastSeverity_SourceTimestamp": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity_SourceTimestamp, true - case "DiscreteAlarmType_Comment": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment, true - case "DiscreteAlarmType_Comment_SourceTimestamp": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment_SourceTimestamp, true - case "DiscreteAlarmType_ClientUserId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ClientUserId, true - case "DiscreteAlarmType_AddComment_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AddComment_InputArguments, true - case "DiscreteAlarmType_ConditionRefresh_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh_InputArguments, true - case "DiscreteAlarmType_AckedState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState, true - case "DiscreteAlarmType_AckedState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Id, true - case "DiscreteAlarmType_AckedState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Name, true - case "DiscreteAlarmType_AckedState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Number, true - case "DiscreteAlarmType_AckedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveDisplayName, true - case "DiscreteAlarmType_AckedState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TransitionTime, true - case "DiscreteAlarmType_AckedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveTransitionTime, true - case "DiscreteAlarmType_AckedState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TrueState, true - case "DiscreteAlarmType_AckedState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_FalseState, true - case "DiscreteAlarmType_ConfirmedState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState, true - case "DiscreteAlarmType_ConfirmedState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Id, true - case "DiscreteAlarmType_ConfirmedState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Name, true - case "DiscreteAlarmType_ConfirmedState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Number, true - case "DiscreteAlarmType_ConfirmedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveDisplayName, true - case "DiscreteAlarmType_ConfirmedState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TransitionTime, true - case "DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime, true - case "DiscreteAlarmType_ConfirmedState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TrueState, true - case "DiscreteAlarmType_ConfirmedState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_FalseState, true - case "DiscreteAlarmType_Acknowledge_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Acknowledge_InputArguments, true - case "DiscreteAlarmType_Confirm_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Confirm_InputArguments, true - case "DiscreteAlarmType_ActiveState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState, true - case "DiscreteAlarmType_ActiveState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Id, true - case "DiscreteAlarmType_ActiveState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Name, true - case "DiscreteAlarmType_ActiveState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Number, true - case "DiscreteAlarmType_ActiveState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveDisplayName, true - case "DiscreteAlarmType_ActiveState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TransitionTime, true - case "DiscreteAlarmType_ActiveState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveTransitionTime, true - case "DiscreteAlarmType_ActiveState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TrueState, true - case "DiscreteAlarmType_ActiveState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_FalseState, true - case "DiscreteAlarmType_SuppressedState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState, true - case "DiscreteAlarmType_SuppressedState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Id, true - case "DiscreteAlarmType_SuppressedState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Name, true - case "DiscreteAlarmType_SuppressedState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Number, true - case "DiscreteAlarmType_SuppressedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveDisplayName, true - case "DiscreteAlarmType_SuppressedState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TransitionTime, true - case "DiscreteAlarmType_SuppressedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveTransitionTime, true - case "DiscreteAlarmType_SuppressedState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TrueState, true - case "DiscreteAlarmType_SuppressedState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_FalseState, true - case "DiscreteAlarmType_ShelvingState_CurrentState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState, true - case "DiscreteAlarmType_ShelvingState_CurrentState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Id, true - case "DiscreteAlarmType_ShelvingState_CurrentState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Name, true - case "DiscreteAlarmType_ShelvingState_CurrentState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Number, true - case "DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case "DiscreteAlarmType_ShelvingState_LastTransition": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition, true - case "DiscreteAlarmType_ShelvingState_LastTransition_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Id, true - case "DiscreteAlarmType_ShelvingState_LastTransition_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Name, true - case "DiscreteAlarmType_ShelvingState_LastTransition_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Number, true - case "DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime, true - case "DiscreteAlarmType_ShelvingState_UnshelveTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_UnshelveTime, true - case "DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments, true - case "DiscreteAlarmType_SuppressedOrShelved": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedOrShelved, true - case "DiscreteAlarmType_MaxTimeShelved": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_MaxTimeShelved, true - case "DiscreteAlarmType_ConditionClassId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassId, true - case "DiscreteAlarmType_ConditionClassName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassName, true - case "DiscreteAlarmType_InputNode": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_InputNode, true - case "DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case "DiscreteAlarmType_ConditionRefresh2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh2_InputArguments, true - case "DiscreteAlarmType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassId, true - case "DiscreteAlarmType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassName, true - case "DiscreteAlarmType_OutOfServiceState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState, true - case "DiscreteAlarmType_OutOfServiceState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Id, true - case "DiscreteAlarmType_OutOfServiceState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Name, true - case "DiscreteAlarmType_OutOfServiceState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Number, true - case "DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName, true - case "DiscreteAlarmType_OutOfServiceState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TransitionTime, true - case "DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case "DiscreteAlarmType_OutOfServiceState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TrueState, true - case "DiscreteAlarmType_OutOfServiceState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_FalseState, true - case "DiscreteAlarmType_SilenceState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState, true - case "DiscreteAlarmType_SilenceState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Id, true - case "DiscreteAlarmType_SilenceState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Name, true - case "DiscreteAlarmType_SilenceState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Number, true - case "DiscreteAlarmType_SilenceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveDisplayName, true - case "DiscreteAlarmType_SilenceState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TransitionTime, true - case "DiscreteAlarmType_SilenceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveTransitionTime, true - case "DiscreteAlarmType_SilenceState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TrueState, true - case "DiscreteAlarmType_SilenceState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_FalseState, true - case "DiscreteAlarmType_AudibleEnabled": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleEnabled, true - case "DiscreteAlarmType_AudibleSound": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound, true - case "DiscreteAlarmType_OnDelay": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OnDelay, true - case "DiscreteAlarmType_OffDelay": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OffDelay, true - case "DiscreteAlarmType_FirstInGroupFlag": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_FirstInGroupFlag, true - case "DiscreteAlarmType_ReAlarmTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmTime, true - case "DiscreteAlarmType_ReAlarmRepeatCount": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmRepeatCount, true - case "DiscreteAlarmType_ShelvingState_AvailableStates": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableStates, true - case "DiscreteAlarmType_ShelvingState_AvailableTransitions": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableTransitions, true - case "DiscreteAlarmType_AudibleSound_ListId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_ListId, true - case "DiscreteAlarmType_AudibleSound_AgencyId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_AgencyId, true - case "DiscreteAlarmType_AudibleSound_VersionId": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_VersionId, true - case "DiscreteAlarmType_LatchedState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState, true - case "DiscreteAlarmType_LatchedState_Id": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Id, true - case "DiscreteAlarmType_LatchedState_Name": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Name, true - case "DiscreteAlarmType_LatchedState_Number": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Number, true - case "DiscreteAlarmType_LatchedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveDisplayName, true - case "DiscreteAlarmType_LatchedState_TransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TransitionTime, true - case "DiscreteAlarmType_LatchedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveTransitionTime, true - case "DiscreteAlarmType_LatchedState_TrueState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TrueState, true - case "DiscreteAlarmType_LatchedState_FalseState": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_FalseState, true - case "DiscreteAlarmType_Suppress2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Suppress2_InputArguments, true - case "DiscreteAlarmType_Unsuppress2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Unsuppress2_InputArguments, true - case "DiscreteAlarmType_RemoveFromService2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_RemoveFromService2_InputArguments, true - case "DiscreteAlarmType_PlaceInService2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_PlaceInService2_InputArguments, true - case "DiscreteAlarmType_Reset2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Reset2_InputArguments, true - case "DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case "DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments, true - case "DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case "DiscreteAlarmType_GetGroupMemberships_OutputArguments": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_GetGroupMemberships_OutputArguments, true - case "DiscreteAlarmType_SupportsFilteredRetain": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SupportsFilteredRetain, true - case "DiscreteItemType_Definition": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_Definition, true - case "DiscreteItemType_ValuePrecision": - return OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_ValuePrecision, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableDiscreteKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableDiscreteValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableDiscrete(structType any) OpcuaNodeIdServicesVariableDiscrete { - castFunc := func(typ any) OpcuaNodeIdServicesVariableDiscrete { - if sOpcuaNodeIdServicesVariableDiscrete, ok := typ.(OpcuaNodeIdServicesVariableDiscrete); ok { - return sOpcuaNodeIdServicesVariableDiscrete - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableDiscrete) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableDiscrete) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableDiscreteParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableDiscrete, error) { - return OpcuaNodeIdServicesVariableDiscreteParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableDiscreteParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableDiscrete, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableDiscrete", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableDiscrete") - } - if enum, ok := OpcuaNodeIdServicesVariableDiscreteByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableDiscrete") - return OpcuaNodeIdServicesVariableDiscrete(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableDiscrete) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableDiscrete) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableDiscrete", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableDiscrete) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventId: - return "DiscreteAlarmType_EventId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EventType: - return "DiscreteAlarmType_EventType" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceNode: - return "DiscreteAlarmType_SourceNode" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SourceName: - return "DiscreteAlarmType_SourceName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Time: - return "DiscreteAlarmType_Time" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReceiveTime: - return "DiscreteAlarmType_ReceiveTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LocalTime: - return "DiscreteAlarmType_LocalTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Message: - return "DiscreteAlarmType_Message" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Severity: - return "DiscreteAlarmType_Severity" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionName: - return "DiscreteAlarmType_ConditionName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_BranchId: - return "DiscreteAlarmType_BranchId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Retain: - return "DiscreteAlarmType_Retain" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState: - return "DiscreteAlarmType_EnabledState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Id: - return "DiscreteAlarmType_EnabledState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Name: - return "DiscreteAlarmType_EnabledState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_Number: - return "DiscreteAlarmType_EnabledState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveDisplayName: - return "DiscreteAlarmType_EnabledState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TransitionTime: - return "DiscreteAlarmType_EnabledState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_EffectiveTransitionTime: - return "DiscreteAlarmType_EnabledState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_TrueState: - return "DiscreteAlarmType_EnabledState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_EnabledState_FalseState: - return "DiscreteAlarmType_EnabledState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality: - return "DiscreteAlarmType_Quality" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Quality_SourceTimestamp: - return "DiscreteAlarmType_Quality_SourceTimestamp" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity: - return "DiscreteAlarmType_LastSeverity" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LastSeverity_SourceTimestamp: - return "DiscreteAlarmType_LastSeverity_SourceTimestamp" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment: - return "DiscreteAlarmType_Comment" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Comment_SourceTimestamp: - return "DiscreteAlarmType_Comment_SourceTimestamp" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ClientUserId: - return "DiscreteAlarmType_ClientUserId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AddComment_InputArguments: - return "DiscreteAlarmType_AddComment_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh_InputArguments: - return "DiscreteAlarmType_ConditionRefresh_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState: - return "DiscreteAlarmType_AckedState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Id: - return "DiscreteAlarmType_AckedState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Name: - return "DiscreteAlarmType_AckedState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_Number: - return "DiscreteAlarmType_AckedState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveDisplayName: - return "DiscreteAlarmType_AckedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TransitionTime: - return "DiscreteAlarmType_AckedState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_EffectiveTransitionTime: - return "DiscreteAlarmType_AckedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_TrueState: - return "DiscreteAlarmType_AckedState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AckedState_FalseState: - return "DiscreteAlarmType_AckedState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState: - return "DiscreteAlarmType_ConfirmedState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Id: - return "DiscreteAlarmType_ConfirmedState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Name: - return "DiscreteAlarmType_ConfirmedState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_Number: - return "DiscreteAlarmType_ConfirmedState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveDisplayName: - return "DiscreteAlarmType_ConfirmedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TransitionTime: - return "DiscreteAlarmType_ConfirmedState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime: - return "DiscreteAlarmType_ConfirmedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_TrueState: - return "DiscreteAlarmType_ConfirmedState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConfirmedState_FalseState: - return "DiscreteAlarmType_ConfirmedState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Acknowledge_InputArguments: - return "DiscreteAlarmType_Acknowledge_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Confirm_InputArguments: - return "DiscreteAlarmType_Confirm_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState: - return "DiscreteAlarmType_ActiveState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Id: - return "DiscreteAlarmType_ActiveState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Name: - return "DiscreteAlarmType_ActiveState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_Number: - return "DiscreteAlarmType_ActiveState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveDisplayName: - return "DiscreteAlarmType_ActiveState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TransitionTime: - return "DiscreteAlarmType_ActiveState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_EffectiveTransitionTime: - return "DiscreteAlarmType_ActiveState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_TrueState: - return "DiscreteAlarmType_ActiveState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ActiveState_FalseState: - return "DiscreteAlarmType_ActiveState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState: - return "DiscreteAlarmType_SuppressedState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Id: - return "DiscreteAlarmType_SuppressedState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Name: - return "DiscreteAlarmType_SuppressedState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_Number: - return "DiscreteAlarmType_SuppressedState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveDisplayName: - return "DiscreteAlarmType_SuppressedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TransitionTime: - return "DiscreteAlarmType_SuppressedState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_EffectiveTransitionTime: - return "DiscreteAlarmType_SuppressedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_TrueState: - return "DiscreteAlarmType_SuppressedState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedState_FalseState: - return "DiscreteAlarmType_SuppressedState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState: - return "DiscreteAlarmType_ShelvingState_CurrentState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Id: - return "DiscreteAlarmType_ShelvingState_CurrentState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Name: - return "DiscreteAlarmType_ShelvingState_CurrentState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_Number: - return "DiscreteAlarmType_ShelvingState_CurrentState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName: - return "DiscreteAlarmType_ShelvingState_CurrentState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition: - return "DiscreteAlarmType_ShelvingState_LastTransition" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Id: - return "DiscreteAlarmType_ShelvingState_LastTransition_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Name: - return "DiscreteAlarmType_ShelvingState_LastTransition_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_Number: - return "DiscreteAlarmType_ShelvingState_LastTransition_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime: - return "DiscreteAlarmType_ShelvingState_LastTransition_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_UnshelveTime: - return "DiscreteAlarmType_ShelvingState_UnshelveTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments: - return "DiscreteAlarmType_ShelvingState_TimedShelve_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SuppressedOrShelved: - return "DiscreteAlarmType_SuppressedOrShelved" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_MaxTimeShelved: - return "DiscreteAlarmType_MaxTimeShelved" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassId: - return "DiscreteAlarmType_ConditionClassId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionClassName: - return "DiscreteAlarmType_ConditionClassName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_InputNode: - return "DiscreteAlarmType_InputNode" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime: - return "DiscreteAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionRefresh2_InputArguments: - return "DiscreteAlarmType_ConditionRefresh2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassId: - return "DiscreteAlarmType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ConditionSubClassName: - return "DiscreteAlarmType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState: - return "DiscreteAlarmType_OutOfServiceState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Id: - return "DiscreteAlarmType_OutOfServiceState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Name: - return "DiscreteAlarmType_OutOfServiceState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_Number: - return "DiscreteAlarmType_OutOfServiceState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName: - return "DiscreteAlarmType_OutOfServiceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TransitionTime: - return "DiscreteAlarmType_OutOfServiceState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime: - return "DiscreteAlarmType_OutOfServiceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_TrueState: - return "DiscreteAlarmType_OutOfServiceState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OutOfServiceState_FalseState: - return "DiscreteAlarmType_OutOfServiceState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState: - return "DiscreteAlarmType_SilenceState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Id: - return "DiscreteAlarmType_SilenceState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Name: - return "DiscreteAlarmType_SilenceState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_Number: - return "DiscreteAlarmType_SilenceState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveDisplayName: - return "DiscreteAlarmType_SilenceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TransitionTime: - return "DiscreteAlarmType_SilenceState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_EffectiveTransitionTime: - return "DiscreteAlarmType_SilenceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_TrueState: - return "DiscreteAlarmType_SilenceState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SilenceState_FalseState: - return "DiscreteAlarmType_SilenceState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleEnabled: - return "DiscreteAlarmType_AudibleEnabled" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound: - return "DiscreteAlarmType_AudibleSound" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OnDelay: - return "DiscreteAlarmType_OnDelay" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_OffDelay: - return "DiscreteAlarmType_OffDelay" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_FirstInGroupFlag: - return "DiscreteAlarmType_FirstInGroupFlag" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmTime: - return "DiscreteAlarmType_ReAlarmTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ReAlarmRepeatCount: - return "DiscreteAlarmType_ReAlarmRepeatCount" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableStates: - return "DiscreteAlarmType_ShelvingState_AvailableStates" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_AvailableTransitions: - return "DiscreteAlarmType_ShelvingState_AvailableTransitions" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_ListId: - return "DiscreteAlarmType_AudibleSound_ListId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_AgencyId: - return "DiscreteAlarmType_AudibleSound_AgencyId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_AudibleSound_VersionId: - return "DiscreteAlarmType_AudibleSound_VersionId" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState: - return "DiscreteAlarmType_LatchedState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Id: - return "DiscreteAlarmType_LatchedState_Id" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Name: - return "DiscreteAlarmType_LatchedState_Name" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_Number: - return "DiscreteAlarmType_LatchedState_Number" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveDisplayName: - return "DiscreteAlarmType_LatchedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TransitionTime: - return "DiscreteAlarmType_LatchedState_TransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_EffectiveTransitionTime: - return "DiscreteAlarmType_LatchedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_TrueState: - return "DiscreteAlarmType_LatchedState_TrueState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_LatchedState_FalseState: - return "DiscreteAlarmType_LatchedState_FalseState" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Suppress2_InputArguments: - return "DiscreteAlarmType_Suppress2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Unsuppress2_InputArguments: - return "DiscreteAlarmType_Unsuppress2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_RemoveFromService2_InputArguments: - return "DiscreteAlarmType_RemoveFromService2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_PlaceInService2_InputArguments: - return "DiscreteAlarmType_PlaceInService2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_Reset2_InputArguments: - return "DiscreteAlarmType_Reset2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments: - return "DiscreteAlarmType_ShelvingState_TimedShelve2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments: - return "DiscreteAlarmType_ShelvingState_Unshelve2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments: - return "DiscreteAlarmType_ShelvingState_OneShotShelve2_InputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_GetGroupMemberships_OutputArguments: - return "DiscreteAlarmType_GetGroupMemberships_OutputArguments" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteAlarmType_SupportsFilteredRetain: - return "DiscreteAlarmType_SupportsFilteredRetain" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_Definition: - return "DiscreteItemType_Definition" - case OpcuaNodeIdServicesVariableDiscrete_DiscreteItemType_ValuePrecision: - return "DiscreteItemType_ValuePrecision" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableDiscrete) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInitial.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInitial.go deleted file mode 100644 index e1c868ca524..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInitial.go +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableInitial is an enum -type OpcuaNodeIdServicesVariableInitial int32 - -type IOpcuaNodeIdServicesVariableInitial interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableInitial_InitialStateType_StateNumber OpcuaNodeIdServicesVariableInitial = 3736 -) - -var OpcuaNodeIdServicesVariableInitialValues []OpcuaNodeIdServicesVariableInitial - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableInitialValues = []OpcuaNodeIdServicesVariableInitial{ - OpcuaNodeIdServicesVariableInitial_InitialStateType_StateNumber, - } -} - -func OpcuaNodeIdServicesVariableInitialByValue(value int32) (enum OpcuaNodeIdServicesVariableInitial, ok bool) { - switch value { - case 3736: - return OpcuaNodeIdServicesVariableInitial_InitialStateType_StateNumber, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableInitialByName(value string) (enum OpcuaNodeIdServicesVariableInitial, ok bool) { - switch value { - case "InitialStateType_StateNumber": - return OpcuaNodeIdServicesVariableInitial_InitialStateType_StateNumber, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableInitialKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableInitialValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableInitial(structType any) OpcuaNodeIdServicesVariableInitial { - castFunc := func(typ any) OpcuaNodeIdServicesVariableInitial { - if sOpcuaNodeIdServicesVariableInitial, ok := typ.(OpcuaNodeIdServicesVariableInitial); ok { - return sOpcuaNodeIdServicesVariableInitial - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableInitial) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableInitial) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableInitialParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableInitial, error) { - return OpcuaNodeIdServicesVariableInitialParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableInitialParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableInitial, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableInitial", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableInitial") - } - if enum, ok := OpcuaNodeIdServicesVariableInitialByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableInitial") - return OpcuaNodeIdServicesVariableInitial(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableInitial) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableInitial) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableInitial", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableInitial) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableInitial_InitialStateType_StateNumber: - return "InitialStateType_StateNumber" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableInitial) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInstrument.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInstrument.go deleted file mode 100644 index 62beafea9ac..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableInstrument.go +++ /dev/null @@ -1,1247 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableInstrument is an enum -type OpcuaNodeIdServicesVariableInstrument int32 - -type IOpcuaNodeIdServicesVariableInstrument interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventId OpcuaNodeIdServicesVariableInstrument = 18348 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventType OpcuaNodeIdServicesVariableInstrument = 18349 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceNode OpcuaNodeIdServicesVariableInstrument = 18350 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceName OpcuaNodeIdServicesVariableInstrument = 18351 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Time OpcuaNodeIdServicesVariableInstrument = 18352 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReceiveTime OpcuaNodeIdServicesVariableInstrument = 18353 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LocalTime OpcuaNodeIdServicesVariableInstrument = 18354 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Message OpcuaNodeIdServicesVariableInstrument = 18355 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Severity OpcuaNodeIdServicesVariableInstrument = 18356 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassId OpcuaNodeIdServicesVariableInstrument = 18357 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassName OpcuaNodeIdServicesVariableInstrument = 18358 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassId OpcuaNodeIdServicesVariableInstrument = 18359 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassName OpcuaNodeIdServicesVariableInstrument = 18360 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionName OpcuaNodeIdServicesVariableInstrument = 18361 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_BranchId OpcuaNodeIdServicesVariableInstrument = 18362 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Retain OpcuaNodeIdServicesVariableInstrument = 18363 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState OpcuaNodeIdServicesVariableInstrument = 18364 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Id OpcuaNodeIdServicesVariableInstrument = 18365 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Name OpcuaNodeIdServicesVariableInstrument = 18366 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Number OpcuaNodeIdServicesVariableInstrument = 18367 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18368 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18369 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18370 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TrueState OpcuaNodeIdServicesVariableInstrument = 18371 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_FalseState OpcuaNodeIdServicesVariableInstrument = 18372 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality OpcuaNodeIdServicesVariableInstrument = 18373 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality_SourceTimestamp OpcuaNodeIdServicesVariableInstrument = 18374 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity OpcuaNodeIdServicesVariableInstrument = 18375 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp OpcuaNodeIdServicesVariableInstrument = 18376 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment OpcuaNodeIdServicesVariableInstrument = 18377 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment_SourceTimestamp OpcuaNodeIdServicesVariableInstrument = 18378 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ClientUserId OpcuaNodeIdServicesVariableInstrument = 18379 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AddComment_InputArguments OpcuaNodeIdServicesVariableInstrument = 18383 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments OpcuaNodeIdServicesVariableInstrument = 18385 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments OpcuaNodeIdServicesVariableInstrument = 18387 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState OpcuaNodeIdServicesVariableInstrument = 18388 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Id OpcuaNodeIdServicesVariableInstrument = 18389 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Name OpcuaNodeIdServicesVariableInstrument = 18390 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Number OpcuaNodeIdServicesVariableInstrument = 18391 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18392 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18393 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18394 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TrueState OpcuaNodeIdServicesVariableInstrument = 18395 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_FalseState OpcuaNodeIdServicesVariableInstrument = 18396 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState OpcuaNodeIdServicesVariableInstrument = 18397 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Id OpcuaNodeIdServicesVariableInstrument = 18398 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Name OpcuaNodeIdServicesVariableInstrument = 18399 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Number OpcuaNodeIdServicesVariableInstrument = 18400 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18401 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18402 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18403 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TrueState OpcuaNodeIdServicesVariableInstrument = 18404 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_FalseState OpcuaNodeIdServicesVariableInstrument = 18405 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Acknowledge_InputArguments OpcuaNodeIdServicesVariableInstrument = 18407 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Confirm_InputArguments OpcuaNodeIdServicesVariableInstrument = 18409 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState OpcuaNodeIdServicesVariableInstrument = 18410 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Id OpcuaNodeIdServicesVariableInstrument = 18411 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Name OpcuaNodeIdServicesVariableInstrument = 18412 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Number OpcuaNodeIdServicesVariableInstrument = 18413 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18414 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18415 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18416 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TrueState OpcuaNodeIdServicesVariableInstrument = 18417 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_FalseState OpcuaNodeIdServicesVariableInstrument = 18418 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_InputNode OpcuaNodeIdServicesVariableInstrument = 18419 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState OpcuaNodeIdServicesVariableInstrument = 18420 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Id OpcuaNodeIdServicesVariableInstrument = 18421 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Name OpcuaNodeIdServicesVariableInstrument = 18422 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Number OpcuaNodeIdServicesVariableInstrument = 18423 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18424 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18425 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18426 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TrueState OpcuaNodeIdServicesVariableInstrument = 18427 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_FalseState OpcuaNodeIdServicesVariableInstrument = 18428 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState OpcuaNodeIdServicesVariableInstrument = 18429 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Id OpcuaNodeIdServicesVariableInstrument = 18430 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Name OpcuaNodeIdServicesVariableInstrument = 18431 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Number OpcuaNodeIdServicesVariableInstrument = 18432 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18433 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18434 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18435 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState OpcuaNodeIdServicesVariableInstrument = 18436 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState OpcuaNodeIdServicesVariableInstrument = 18437 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState OpcuaNodeIdServicesVariableInstrument = 18439 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id OpcuaNodeIdServicesVariableInstrument = 18440 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name OpcuaNodeIdServicesVariableInstrument = 18441 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number OpcuaNodeIdServicesVariableInstrument = 18442 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18443 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition OpcuaNodeIdServicesVariableInstrument = 18444 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id OpcuaNodeIdServicesVariableInstrument = 18445 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name OpcuaNodeIdServicesVariableInstrument = 18446 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number OpcuaNodeIdServicesVariableInstrument = 18447 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18448 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18449 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates OpcuaNodeIdServicesVariableInstrument = 18450 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions OpcuaNodeIdServicesVariableInstrument = 18451 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime OpcuaNodeIdServicesVariableInstrument = 18452 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments OpcuaNodeIdServicesVariableInstrument = 18454 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedOrShelved OpcuaNodeIdServicesVariableInstrument = 18457 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_MaxTimeShelved OpcuaNodeIdServicesVariableInstrument = 18458 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleEnabled OpcuaNodeIdServicesVariableInstrument = 18459 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound OpcuaNodeIdServicesVariableInstrument = 18460 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_ListId OpcuaNodeIdServicesVariableInstrument = 18461 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_AgencyId OpcuaNodeIdServicesVariableInstrument = 18462 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_VersionId OpcuaNodeIdServicesVariableInstrument = 18463 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState OpcuaNodeIdServicesVariableInstrument = 18464 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Id OpcuaNodeIdServicesVariableInstrument = 18465 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Name OpcuaNodeIdServicesVariableInstrument = 18466 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Number OpcuaNodeIdServicesVariableInstrument = 18467 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18468 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18469 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18470 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TrueState OpcuaNodeIdServicesVariableInstrument = 18471 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_FalseState OpcuaNodeIdServicesVariableInstrument = 18472 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OnDelay OpcuaNodeIdServicesVariableInstrument = 18473 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OffDelay OpcuaNodeIdServicesVariableInstrument = 18474 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_FirstInGroupFlag OpcuaNodeIdServicesVariableInstrument = 18475 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState OpcuaNodeIdServicesVariableInstrument = 18477 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Id OpcuaNodeIdServicesVariableInstrument = 18478 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Name OpcuaNodeIdServicesVariableInstrument = 18479 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Number OpcuaNodeIdServicesVariableInstrument = 18480 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName OpcuaNodeIdServicesVariableInstrument = 18481 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TransitionTime OpcuaNodeIdServicesVariableInstrument = 18482 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableInstrument = 18483 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TrueState OpcuaNodeIdServicesVariableInstrument = 18484 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_FalseState OpcuaNodeIdServicesVariableInstrument = 18485 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmTime OpcuaNodeIdServicesVariableInstrument = 18487 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmRepeatCount OpcuaNodeIdServicesVariableInstrument = 18488 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_NormalState OpcuaNodeIdServicesVariableInstrument = 18495 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Suppress2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24469 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24471 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24473 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24475 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Reset2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24477 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24939 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24941 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments OpcuaNodeIdServicesVariableInstrument = 24943 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments OpcuaNodeIdServicesVariableInstrument = 25172 - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SupportsFilteredRetain OpcuaNodeIdServicesVariableInstrument = 32240 -) - -var OpcuaNodeIdServicesVariableInstrumentValues []OpcuaNodeIdServicesVariableInstrument - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableInstrumentValues = []OpcuaNodeIdServicesVariableInstrument{ - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventType, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceNode, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Time, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReceiveTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LocalTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Message, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Severity, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_BranchId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Retain, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality_SourceTimestamp, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment_SourceTimestamp, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ClientUserId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AddComment_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Acknowledge_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Confirm_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_InputNode, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedOrShelved, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_MaxTimeShelved, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleEnabled, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_ListId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_AgencyId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_VersionId, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OnDelay, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OffDelay, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_FirstInGroupFlag, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Id, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Name, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Number, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TrueState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_FalseState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmTime, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmRepeatCount, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_NormalState, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Suppress2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Reset2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments, - OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SupportsFilteredRetain, - } -} - -func OpcuaNodeIdServicesVariableInstrumentByValue(value int32) (enum OpcuaNodeIdServicesVariableInstrument, ok bool) { - switch value { - case 18348: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventId, true - case 18349: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventType, true - case 18350: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceNode, true - case 18351: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceName, true - case 18352: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Time, true - case 18353: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReceiveTime, true - case 18354: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LocalTime, true - case 18355: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Message, true - case 18356: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Severity, true - case 18357: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassId, true - case 18358: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassName, true - case 18359: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassId, true - case 18360: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassName, true - case 18361: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionName, true - case 18362: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_BranchId, true - case 18363: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Retain, true - case 18364: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState, true - case 18365: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Id, true - case 18366: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Name, true - case 18367: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Number, true - case 18368: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName, true - case 18369: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TransitionTime, true - case 18370: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime, true - case 18371: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TrueState, true - case 18372: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_FalseState, true - case 18373: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality, true - case 18374: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality_SourceTimestamp, true - case 18375: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity, true - case 18376: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp, true - case 18377: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment, true - case 18378: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment_SourceTimestamp, true - case 18379: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ClientUserId, true - case 18383: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AddComment_InputArguments, true - case 18385: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments, true - case 18387: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments, true - case 18388: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState, true - case 18389: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Id, true - case 18390: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Name, true - case 18391: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Number, true - case 18392: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName, true - case 18393: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TransitionTime, true - case 18394: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime, true - case 18395: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TrueState, true - case 18396: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_FalseState, true - case 18397: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState, true - case 18398: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Id, true - case 18399: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Name, true - case 18400: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Number, true - case 18401: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName, true - case 18402: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime, true - case 18403: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime, true - case 18404: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TrueState, true - case 18405: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_FalseState, true - case 18407: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Acknowledge_InputArguments, true - case 18409: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Confirm_InputArguments, true - case 18410: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState, true - case 18411: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Id, true - case 18412: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Name, true - case 18413: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Number, true - case 18414: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName, true - case 18415: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TransitionTime, true - case 18416: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime, true - case 18417: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TrueState, true - case 18418: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_FalseState, true - case 18419: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_InputNode, true - case 18420: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState, true - case 18421: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Id, true - case 18422: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Name, true - case 18423: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Number, true - case 18424: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName, true - case 18425: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime, true - case 18426: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime, true - case 18427: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TrueState, true - case 18428: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_FalseState, true - case 18429: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState, true - case 18430: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Id, true - case 18431: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Name, true - case 18432: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Number, true - case 18433: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName, true - case 18434: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime, true - case 18435: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case 18436: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState, true - case 18437: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState, true - case 18439: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState, true - case 18440: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id, true - case 18441: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name, true - case 18442: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number, true - case 18443: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case 18444: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition, true - case 18445: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id, true - case 18446: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name, true - case 18447: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number, true - case 18448: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime, true - case 18449: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case 18450: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates, true - case 18451: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions, true - case 18452: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime, true - case 18454: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments, true - case 18457: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedOrShelved, true - case 18458: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_MaxTimeShelved, true - case 18459: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleEnabled, true - case 18460: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound, true - case 18461: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_ListId, true - case 18462: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_AgencyId, true - case 18463: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_VersionId, true - case 18464: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState, true - case 18465: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Id, true - case 18466: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Name, true - case 18467: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Number, true - case 18468: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName, true - case 18469: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TransitionTime, true - case 18470: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime, true - case 18471: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TrueState, true - case 18472: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_FalseState, true - case 18473: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OnDelay, true - case 18474: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OffDelay, true - case 18475: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_FirstInGroupFlag, true - case 18477: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState, true - case 18478: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Id, true - case 18479: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Name, true - case 18480: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Number, true - case 18481: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName, true - case 18482: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TransitionTime, true - case 18483: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime, true - case 18484: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TrueState, true - case 18485: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_FalseState, true - case 18487: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmTime, true - case 18488: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmRepeatCount, true - case 18495: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_NormalState, true - case 24469: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Suppress2_InputArguments, true - case 24471: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments, true - case 24473: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments, true - case 24475: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments, true - case 24477: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Reset2_InputArguments, true - case 24939: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case 24941: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments, true - case 24943: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case 25172: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments, true - case 32240: - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SupportsFilteredRetain, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableInstrumentByName(value string) (enum OpcuaNodeIdServicesVariableInstrument, ok bool) { - switch value { - case "InstrumentDiagnosticAlarmType_EventId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventId, true - case "InstrumentDiagnosticAlarmType_EventType": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventType, true - case "InstrumentDiagnosticAlarmType_SourceNode": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceNode, true - case "InstrumentDiagnosticAlarmType_SourceName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceName, true - case "InstrumentDiagnosticAlarmType_Time": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Time, true - case "InstrumentDiagnosticAlarmType_ReceiveTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReceiveTime, true - case "InstrumentDiagnosticAlarmType_LocalTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LocalTime, true - case "InstrumentDiagnosticAlarmType_Message": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Message, true - case "InstrumentDiagnosticAlarmType_Severity": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Severity, true - case "InstrumentDiagnosticAlarmType_ConditionClassId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassId, true - case "InstrumentDiagnosticAlarmType_ConditionClassName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassName, true - case "InstrumentDiagnosticAlarmType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassId, true - case "InstrumentDiagnosticAlarmType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassName, true - case "InstrumentDiagnosticAlarmType_ConditionName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionName, true - case "InstrumentDiagnosticAlarmType_BranchId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_BranchId, true - case "InstrumentDiagnosticAlarmType_Retain": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Retain, true - case "InstrumentDiagnosticAlarmType_EnabledState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState, true - case "InstrumentDiagnosticAlarmType_EnabledState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Id, true - case "InstrumentDiagnosticAlarmType_EnabledState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Name, true - case "InstrumentDiagnosticAlarmType_EnabledState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Number, true - case "InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_EnabledState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_EnabledState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TrueState, true - case "InstrumentDiagnosticAlarmType_EnabledState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_FalseState, true - case "InstrumentDiagnosticAlarmType_Quality": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality, true - case "InstrumentDiagnosticAlarmType_Quality_SourceTimestamp": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality_SourceTimestamp, true - case "InstrumentDiagnosticAlarmType_LastSeverity": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity, true - case "InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp, true - case "InstrumentDiagnosticAlarmType_Comment": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment, true - case "InstrumentDiagnosticAlarmType_Comment_SourceTimestamp": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment_SourceTimestamp, true - case "InstrumentDiagnosticAlarmType_ClientUserId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ClientUserId, true - case "InstrumentDiagnosticAlarmType_AddComment_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AddComment_InputArguments, true - case "InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments, true - case "InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments, true - case "InstrumentDiagnosticAlarmType_AckedState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState, true - case "InstrumentDiagnosticAlarmType_AckedState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Id, true - case "InstrumentDiagnosticAlarmType_AckedState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Name, true - case "InstrumentDiagnosticAlarmType_AckedState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Number, true - case "InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_AckedState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_AckedState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TrueState, true - case "InstrumentDiagnosticAlarmType_AckedState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_FalseState, true - case "InstrumentDiagnosticAlarmType_ConfirmedState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Id, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Name, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Number, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TrueState, true - case "InstrumentDiagnosticAlarmType_ConfirmedState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_FalseState, true - case "InstrumentDiagnosticAlarmType_Acknowledge_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Acknowledge_InputArguments, true - case "InstrumentDiagnosticAlarmType_Confirm_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Confirm_InputArguments, true - case "InstrumentDiagnosticAlarmType_ActiveState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState, true - case "InstrumentDiagnosticAlarmType_ActiveState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Id, true - case "InstrumentDiagnosticAlarmType_ActiveState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Name, true - case "InstrumentDiagnosticAlarmType_ActiveState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Number, true - case "InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_ActiveState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_ActiveState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TrueState, true - case "InstrumentDiagnosticAlarmType_ActiveState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_FalseState, true - case "InstrumentDiagnosticAlarmType_InputNode": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_InputNode, true - case "InstrumentDiagnosticAlarmType_SuppressedState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState, true - case "InstrumentDiagnosticAlarmType_SuppressedState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Id, true - case "InstrumentDiagnosticAlarmType_SuppressedState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Name, true - case "InstrumentDiagnosticAlarmType_SuppressedState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Number, true - case "InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_SuppressedState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TrueState, true - case "InstrumentDiagnosticAlarmType_SuppressedState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_FalseState, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Id, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Name, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Number, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState, true - case "InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState, true - case "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState, true - case "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id, true - case "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name, true - case "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number, true - case "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime, true - case "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates, true - case "InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions, true - case "InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime, true - case "InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments, true - case "InstrumentDiagnosticAlarmType_SuppressedOrShelved": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedOrShelved, true - case "InstrumentDiagnosticAlarmType_MaxTimeShelved": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_MaxTimeShelved, true - case "InstrumentDiagnosticAlarmType_AudibleEnabled": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleEnabled, true - case "InstrumentDiagnosticAlarmType_AudibleSound": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound, true - case "InstrumentDiagnosticAlarmType_AudibleSound_ListId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_ListId, true - case "InstrumentDiagnosticAlarmType_AudibleSound_AgencyId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_AgencyId, true - case "InstrumentDiagnosticAlarmType_AudibleSound_VersionId": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_VersionId, true - case "InstrumentDiagnosticAlarmType_SilenceState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState, true - case "InstrumentDiagnosticAlarmType_SilenceState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Id, true - case "InstrumentDiagnosticAlarmType_SilenceState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Name, true - case "InstrumentDiagnosticAlarmType_SilenceState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Number, true - case "InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_SilenceState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_SilenceState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TrueState, true - case "InstrumentDiagnosticAlarmType_SilenceState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_FalseState, true - case "InstrumentDiagnosticAlarmType_OnDelay": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OnDelay, true - case "InstrumentDiagnosticAlarmType_OffDelay": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OffDelay, true - case "InstrumentDiagnosticAlarmType_FirstInGroupFlag": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_FirstInGroupFlag, true - case "InstrumentDiagnosticAlarmType_LatchedState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState, true - case "InstrumentDiagnosticAlarmType_LatchedState_Id": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Id, true - case "InstrumentDiagnosticAlarmType_LatchedState_Name": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Name, true - case "InstrumentDiagnosticAlarmType_LatchedState_Number": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Number, true - case "InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName, true - case "InstrumentDiagnosticAlarmType_LatchedState_TransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TransitionTime, true - case "InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime, true - case "InstrumentDiagnosticAlarmType_LatchedState_TrueState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TrueState, true - case "InstrumentDiagnosticAlarmType_LatchedState_FalseState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_FalseState, true - case "InstrumentDiagnosticAlarmType_ReAlarmTime": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmTime, true - case "InstrumentDiagnosticAlarmType_ReAlarmRepeatCount": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmRepeatCount, true - case "InstrumentDiagnosticAlarmType_NormalState": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_NormalState, true - case "InstrumentDiagnosticAlarmType_Suppress2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Suppress2_InputArguments, true - case "InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments, true - case "InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments, true - case "InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments, true - case "InstrumentDiagnosticAlarmType_Reset2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Reset2_InputArguments, true - case "InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case "InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments, true - case "InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case "InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments, true - case "InstrumentDiagnosticAlarmType_SupportsFilteredRetain": - return OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SupportsFilteredRetain, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableInstrumentKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableInstrumentValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableInstrument(structType any) OpcuaNodeIdServicesVariableInstrument { - castFunc := func(typ any) OpcuaNodeIdServicesVariableInstrument { - if sOpcuaNodeIdServicesVariableInstrument, ok := typ.(OpcuaNodeIdServicesVariableInstrument); ok { - return sOpcuaNodeIdServicesVariableInstrument - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableInstrument) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableInstrument) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableInstrumentParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableInstrument, error) { - return OpcuaNodeIdServicesVariableInstrumentParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableInstrumentParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableInstrument, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableInstrument", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableInstrument") - } - if enum, ok := OpcuaNodeIdServicesVariableInstrumentByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableInstrument") - return OpcuaNodeIdServicesVariableInstrument(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableInstrument) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableInstrument) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableInstrument", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableInstrument) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventId: - return "InstrumentDiagnosticAlarmType_EventId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EventType: - return "InstrumentDiagnosticAlarmType_EventType" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceNode: - return "InstrumentDiagnosticAlarmType_SourceNode" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SourceName: - return "InstrumentDiagnosticAlarmType_SourceName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Time: - return "InstrumentDiagnosticAlarmType_Time" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReceiveTime: - return "InstrumentDiagnosticAlarmType_ReceiveTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LocalTime: - return "InstrumentDiagnosticAlarmType_LocalTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Message: - return "InstrumentDiagnosticAlarmType_Message" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Severity: - return "InstrumentDiagnosticAlarmType_Severity" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassId: - return "InstrumentDiagnosticAlarmType_ConditionClassId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionClassName: - return "InstrumentDiagnosticAlarmType_ConditionClassName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassId: - return "InstrumentDiagnosticAlarmType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionSubClassName: - return "InstrumentDiagnosticAlarmType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionName: - return "InstrumentDiagnosticAlarmType_ConditionName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_BranchId: - return "InstrumentDiagnosticAlarmType_BranchId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Retain: - return "InstrumentDiagnosticAlarmType_Retain" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState: - return "InstrumentDiagnosticAlarmType_EnabledState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Id: - return "InstrumentDiagnosticAlarmType_EnabledState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Name: - return "InstrumentDiagnosticAlarmType_EnabledState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_Number: - return "InstrumentDiagnosticAlarmType_EnabledState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_EnabledState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TransitionTime: - return "InstrumentDiagnosticAlarmType_EnabledState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_EnabledState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_TrueState: - return "InstrumentDiagnosticAlarmType_EnabledState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_EnabledState_FalseState: - return "InstrumentDiagnosticAlarmType_EnabledState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality: - return "InstrumentDiagnosticAlarmType_Quality" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Quality_SourceTimestamp: - return "InstrumentDiagnosticAlarmType_Quality_SourceTimestamp" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity: - return "InstrumentDiagnosticAlarmType_LastSeverity" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp: - return "InstrumentDiagnosticAlarmType_LastSeverity_SourceTimestamp" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment: - return "InstrumentDiagnosticAlarmType_Comment" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Comment_SourceTimestamp: - return "InstrumentDiagnosticAlarmType_Comment_SourceTimestamp" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ClientUserId: - return "InstrumentDiagnosticAlarmType_ClientUserId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AddComment_InputArguments: - return "InstrumentDiagnosticAlarmType_AddComment_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments: - return "InstrumentDiagnosticAlarmType_ConditionRefresh_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments: - return "InstrumentDiagnosticAlarmType_ConditionRefresh2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState: - return "InstrumentDiagnosticAlarmType_AckedState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Id: - return "InstrumentDiagnosticAlarmType_AckedState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Name: - return "InstrumentDiagnosticAlarmType_AckedState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_Number: - return "InstrumentDiagnosticAlarmType_AckedState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_AckedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TransitionTime: - return "InstrumentDiagnosticAlarmType_AckedState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_AckedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_TrueState: - return "InstrumentDiagnosticAlarmType_AckedState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AckedState_FalseState: - return "InstrumentDiagnosticAlarmType_AckedState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState: - return "InstrumentDiagnosticAlarmType_ConfirmedState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Id: - return "InstrumentDiagnosticAlarmType_ConfirmedState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Name: - return "InstrumentDiagnosticAlarmType_ConfirmedState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_Number: - return "InstrumentDiagnosticAlarmType_ConfirmedState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime: - return "InstrumentDiagnosticAlarmType_ConfirmedState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_ConfirmedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_TrueState: - return "InstrumentDiagnosticAlarmType_ConfirmedState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ConfirmedState_FalseState: - return "InstrumentDiagnosticAlarmType_ConfirmedState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Acknowledge_InputArguments: - return "InstrumentDiagnosticAlarmType_Acknowledge_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Confirm_InputArguments: - return "InstrumentDiagnosticAlarmType_Confirm_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState: - return "InstrumentDiagnosticAlarmType_ActiveState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Id: - return "InstrumentDiagnosticAlarmType_ActiveState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Name: - return "InstrumentDiagnosticAlarmType_ActiveState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_Number: - return "InstrumentDiagnosticAlarmType_ActiveState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_ActiveState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TransitionTime: - return "InstrumentDiagnosticAlarmType_ActiveState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_ActiveState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_TrueState: - return "InstrumentDiagnosticAlarmType_ActiveState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ActiveState_FalseState: - return "InstrumentDiagnosticAlarmType_ActiveState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_InputNode: - return "InstrumentDiagnosticAlarmType_InputNode" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState: - return "InstrumentDiagnosticAlarmType_SuppressedState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Id: - return "InstrumentDiagnosticAlarmType_SuppressedState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Name: - return "InstrumentDiagnosticAlarmType_SuppressedState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_Number: - return "InstrumentDiagnosticAlarmType_SuppressedState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_SuppressedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime: - return "InstrumentDiagnosticAlarmType_SuppressedState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_SuppressedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_TrueState: - return "InstrumentDiagnosticAlarmType_SuppressedState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedState_FalseState: - return "InstrumentDiagnosticAlarmType_SuppressedState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState: - return "InstrumentDiagnosticAlarmType_OutOfServiceState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Id: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Name: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_Number: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState: - return "InstrumentDiagnosticAlarmType_OutOfServiceState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState: - return "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id: - return "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name: - return "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number: - return "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_ShelvingState_CurrentState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates: - return "InstrumentDiagnosticAlarmType_ShelvingState_AvailableStates" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions: - return "InstrumentDiagnosticAlarmType_ShelvingState_AvailableTransitions" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime: - return "InstrumentDiagnosticAlarmType_ShelvingState_UnshelveTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments: - return "InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SuppressedOrShelved: - return "InstrumentDiagnosticAlarmType_SuppressedOrShelved" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_MaxTimeShelved: - return "InstrumentDiagnosticAlarmType_MaxTimeShelved" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleEnabled: - return "InstrumentDiagnosticAlarmType_AudibleEnabled" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound: - return "InstrumentDiagnosticAlarmType_AudibleSound" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_ListId: - return "InstrumentDiagnosticAlarmType_AudibleSound_ListId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_AgencyId: - return "InstrumentDiagnosticAlarmType_AudibleSound_AgencyId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_AudibleSound_VersionId: - return "InstrumentDiagnosticAlarmType_AudibleSound_VersionId" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState: - return "InstrumentDiagnosticAlarmType_SilenceState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Id: - return "InstrumentDiagnosticAlarmType_SilenceState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Name: - return "InstrumentDiagnosticAlarmType_SilenceState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_Number: - return "InstrumentDiagnosticAlarmType_SilenceState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_SilenceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TransitionTime: - return "InstrumentDiagnosticAlarmType_SilenceState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_SilenceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_TrueState: - return "InstrumentDiagnosticAlarmType_SilenceState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SilenceState_FalseState: - return "InstrumentDiagnosticAlarmType_SilenceState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OnDelay: - return "InstrumentDiagnosticAlarmType_OnDelay" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_OffDelay: - return "InstrumentDiagnosticAlarmType_OffDelay" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_FirstInGroupFlag: - return "InstrumentDiagnosticAlarmType_FirstInGroupFlag" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState: - return "InstrumentDiagnosticAlarmType_LatchedState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Id: - return "InstrumentDiagnosticAlarmType_LatchedState_Id" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Name: - return "InstrumentDiagnosticAlarmType_LatchedState_Name" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_Number: - return "InstrumentDiagnosticAlarmType_LatchedState_Number" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName: - return "InstrumentDiagnosticAlarmType_LatchedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TransitionTime: - return "InstrumentDiagnosticAlarmType_LatchedState_TransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime: - return "InstrumentDiagnosticAlarmType_LatchedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_TrueState: - return "InstrumentDiagnosticAlarmType_LatchedState_TrueState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_LatchedState_FalseState: - return "InstrumentDiagnosticAlarmType_LatchedState_FalseState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmTime: - return "InstrumentDiagnosticAlarmType_ReAlarmTime" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ReAlarmRepeatCount: - return "InstrumentDiagnosticAlarmType_ReAlarmRepeatCount" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_NormalState: - return "InstrumentDiagnosticAlarmType_NormalState" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Suppress2_InputArguments: - return "InstrumentDiagnosticAlarmType_Suppress2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments: - return "InstrumentDiagnosticAlarmType_Unsuppress2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments: - return "InstrumentDiagnosticAlarmType_RemoveFromService2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments: - return "InstrumentDiagnosticAlarmType_PlaceInService2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_Reset2_InputArguments: - return "InstrumentDiagnosticAlarmType_Reset2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments: - return "InstrumentDiagnosticAlarmType_ShelvingState_TimedShelve2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments: - return "InstrumentDiagnosticAlarmType_ShelvingState_Unshelve2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments: - return "InstrumentDiagnosticAlarmType_ShelvingState_OneShotShelve2_InputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments: - return "InstrumentDiagnosticAlarmType_GetGroupMemberships_OutputArguments" - case OpcuaNodeIdServicesVariableInstrument_InstrumentDiagnosticAlarmType_SupportsFilteredRetain: - return "InstrumentDiagnosticAlarmType_SupportsFilteredRetain" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableInstrument) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableRefresh.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableRefresh.go deleted file mode 100644 index 36a93aae005..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableRefresh.go +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableRefresh is an enum -type OpcuaNodeIdServicesVariableRefresh int32 - -type IOpcuaNodeIdServicesVariableRefresh interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventId OpcuaNodeIdServicesVariableRefresh = 3969 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventType OpcuaNodeIdServicesVariableRefresh = 3970 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceNode OpcuaNodeIdServicesVariableRefresh = 3971 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceName OpcuaNodeIdServicesVariableRefresh = 3972 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Time OpcuaNodeIdServicesVariableRefresh = 3973 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ReceiveTime OpcuaNodeIdServicesVariableRefresh = 3974 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_LocalTime OpcuaNodeIdServicesVariableRefresh = 3975 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Message OpcuaNodeIdServicesVariableRefresh = 3976 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Severity OpcuaNodeIdServicesVariableRefresh = 3977 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventId OpcuaNodeIdServicesVariableRefresh = 3978 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventType OpcuaNodeIdServicesVariableRefresh = 3979 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceNode OpcuaNodeIdServicesVariableRefresh = 3980 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceName OpcuaNodeIdServicesVariableRefresh = 3981 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Time OpcuaNodeIdServicesVariableRefresh = 3982 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ReceiveTime OpcuaNodeIdServicesVariableRefresh = 3983 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_LocalTime OpcuaNodeIdServicesVariableRefresh = 3984 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Message OpcuaNodeIdServicesVariableRefresh = 3985 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Severity OpcuaNodeIdServicesVariableRefresh = 3986 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventId OpcuaNodeIdServicesVariableRefresh = 3987 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventType OpcuaNodeIdServicesVariableRefresh = 3988 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceNode OpcuaNodeIdServicesVariableRefresh = 3989 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceName OpcuaNodeIdServicesVariableRefresh = 3990 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Time OpcuaNodeIdServicesVariableRefresh = 3991 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ReceiveTime OpcuaNodeIdServicesVariableRefresh = 3992 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_LocalTime OpcuaNodeIdServicesVariableRefresh = 3993 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Message OpcuaNodeIdServicesVariableRefresh = 3994 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Severity OpcuaNodeIdServicesVariableRefresh = 3995 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassId OpcuaNodeIdServicesVariableRefresh = 31975 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassName OpcuaNodeIdServicesVariableRefresh = 31976 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassId OpcuaNodeIdServicesVariableRefresh = 31977 - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassName OpcuaNodeIdServicesVariableRefresh = 31978 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassId OpcuaNodeIdServicesVariableRefresh = 31979 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassName OpcuaNodeIdServicesVariableRefresh = 31980 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassId OpcuaNodeIdServicesVariableRefresh = 31981 - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassName OpcuaNodeIdServicesVariableRefresh = 31982 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassId OpcuaNodeIdServicesVariableRefresh = 31983 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassName OpcuaNodeIdServicesVariableRefresh = 31984 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassId OpcuaNodeIdServicesVariableRefresh = 31985 - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassName OpcuaNodeIdServicesVariableRefresh = 31986 -) - -var OpcuaNodeIdServicesVariableRefreshValues []OpcuaNodeIdServicesVariableRefresh - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableRefreshValues = []OpcuaNodeIdServicesVariableRefresh{ - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventId, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventType, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceNode, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceName, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Time, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ReceiveTime, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_LocalTime, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Message, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Severity, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventId, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventType, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceNode, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceName, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Time, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ReceiveTime, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_LocalTime, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Message, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Severity, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventId, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventType, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceNode, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceName, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Time, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ReceiveTime, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_LocalTime, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Message, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Severity, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassName, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassName, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassName, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassName, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassName, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassId, - OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassName, - } -} - -func OpcuaNodeIdServicesVariableRefreshByValue(value int32) (enum OpcuaNodeIdServicesVariableRefresh, ok bool) { - switch value { - case 31975: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassId, true - case 31976: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassName, true - case 31977: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassId, true - case 31978: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassName, true - case 31979: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassId, true - case 31980: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassName, true - case 31981: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassId, true - case 31982: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassName, true - case 31983: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassId, true - case 31984: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassName, true - case 31985: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassId, true - case 31986: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassName, true - case 3969: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventId, true - case 3970: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventType, true - case 3971: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceNode, true - case 3972: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceName, true - case 3973: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Time, true - case 3974: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ReceiveTime, true - case 3975: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_LocalTime, true - case 3976: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Message, true - case 3977: - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Severity, true - case 3978: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventId, true - case 3979: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventType, true - case 3980: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceNode, true - case 3981: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceName, true - case 3982: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Time, true - case 3983: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ReceiveTime, true - case 3984: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_LocalTime, true - case 3985: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Message, true - case 3986: - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Severity, true - case 3987: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventId, true - case 3988: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventType, true - case 3989: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceNode, true - case 3990: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceName, true - case 3991: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Time, true - case 3992: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ReceiveTime, true - case 3993: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_LocalTime, true - case 3994: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Message, true - case 3995: - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Severity, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableRefreshByName(value string) (enum OpcuaNodeIdServicesVariableRefresh, ok bool) { - switch value { - case "RefreshStartEventType_ConditionClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassId, true - case "RefreshStartEventType_ConditionClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassName, true - case "RefreshStartEventType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassId, true - case "RefreshStartEventType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassName, true - case "RefreshEndEventType_ConditionClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassId, true - case "RefreshEndEventType_ConditionClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassName, true - case "RefreshEndEventType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassId, true - case "RefreshEndEventType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassName, true - case "RefreshRequiredEventType_ConditionClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassId, true - case "RefreshRequiredEventType_ConditionClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassName, true - case "RefreshRequiredEventType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassId, true - case "RefreshRequiredEventType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassName, true - case "RefreshStartEventType_EventId": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventId, true - case "RefreshStartEventType_EventType": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventType, true - case "RefreshStartEventType_SourceNode": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceNode, true - case "RefreshStartEventType_SourceName": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceName, true - case "RefreshStartEventType_Time": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Time, true - case "RefreshStartEventType_ReceiveTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ReceiveTime, true - case "RefreshStartEventType_LocalTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_LocalTime, true - case "RefreshStartEventType_Message": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Message, true - case "RefreshStartEventType_Severity": - return OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Severity, true - case "RefreshEndEventType_EventId": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventId, true - case "RefreshEndEventType_EventType": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventType, true - case "RefreshEndEventType_SourceNode": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceNode, true - case "RefreshEndEventType_SourceName": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceName, true - case "RefreshEndEventType_Time": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Time, true - case "RefreshEndEventType_ReceiveTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ReceiveTime, true - case "RefreshEndEventType_LocalTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_LocalTime, true - case "RefreshEndEventType_Message": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Message, true - case "RefreshEndEventType_Severity": - return OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Severity, true - case "RefreshRequiredEventType_EventId": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventId, true - case "RefreshRequiredEventType_EventType": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventType, true - case "RefreshRequiredEventType_SourceNode": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceNode, true - case "RefreshRequiredEventType_SourceName": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceName, true - case "RefreshRequiredEventType_Time": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Time, true - case "RefreshRequiredEventType_ReceiveTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ReceiveTime, true - case "RefreshRequiredEventType_LocalTime": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_LocalTime, true - case "RefreshRequiredEventType_Message": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Message, true - case "RefreshRequiredEventType_Severity": - return OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Severity, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableRefreshKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableRefreshValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableRefresh(structType any) OpcuaNodeIdServicesVariableRefresh { - castFunc := func(typ any) OpcuaNodeIdServicesVariableRefresh { - if sOpcuaNodeIdServicesVariableRefresh, ok := typ.(OpcuaNodeIdServicesVariableRefresh); ok { - return sOpcuaNodeIdServicesVariableRefresh - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableRefresh) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableRefresh) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableRefreshParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableRefresh, error) { - return OpcuaNodeIdServicesVariableRefreshParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableRefreshParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableRefresh, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableRefresh", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableRefresh") - } - if enum, ok := OpcuaNodeIdServicesVariableRefreshByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableRefresh") - return OpcuaNodeIdServicesVariableRefresh(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableRefresh) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableRefresh) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableRefresh", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableRefresh) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassId: - return "RefreshStartEventType_ConditionClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionClassName: - return "RefreshStartEventType_ConditionClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassId: - return "RefreshStartEventType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ConditionSubClassName: - return "RefreshStartEventType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassId: - return "RefreshEndEventType_ConditionClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionClassName: - return "RefreshEndEventType_ConditionClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassId: - return "RefreshEndEventType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ConditionSubClassName: - return "RefreshEndEventType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassId: - return "RefreshRequiredEventType_ConditionClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionClassName: - return "RefreshRequiredEventType_ConditionClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassId: - return "RefreshRequiredEventType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ConditionSubClassName: - return "RefreshRequiredEventType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventId: - return "RefreshStartEventType_EventId" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_EventType: - return "RefreshStartEventType_EventType" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceNode: - return "RefreshStartEventType_SourceNode" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_SourceName: - return "RefreshStartEventType_SourceName" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Time: - return "RefreshStartEventType_Time" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_ReceiveTime: - return "RefreshStartEventType_ReceiveTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_LocalTime: - return "RefreshStartEventType_LocalTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Message: - return "RefreshStartEventType_Message" - case OpcuaNodeIdServicesVariableRefresh_RefreshStartEventType_Severity: - return "RefreshStartEventType_Severity" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventId: - return "RefreshEndEventType_EventId" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_EventType: - return "RefreshEndEventType_EventType" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceNode: - return "RefreshEndEventType_SourceNode" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_SourceName: - return "RefreshEndEventType_SourceName" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Time: - return "RefreshEndEventType_Time" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_ReceiveTime: - return "RefreshEndEventType_ReceiveTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_LocalTime: - return "RefreshEndEventType_LocalTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Message: - return "RefreshEndEventType_Message" - case OpcuaNodeIdServicesVariableRefresh_RefreshEndEventType_Severity: - return "RefreshEndEventType_Severity" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventId: - return "RefreshRequiredEventType_EventId" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_EventType: - return "RefreshRequiredEventType_EventType" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceNode: - return "RefreshRequiredEventType_SourceNode" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_SourceName: - return "RefreshRequiredEventType_SourceName" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Time: - return "RefreshRequiredEventType_Time" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_ReceiveTime: - return "RefreshRequiredEventType_ReceiveTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_LocalTime: - return "RefreshRequiredEventType_LocalTime" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Message: - return "RefreshRequiredEventType_Message" - case OpcuaNodeIdServicesVariableRefresh_RefreshRequiredEventType_Severity: - return "RefreshRequiredEventType_Severity" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableRefresh) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableTrip.go b/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableTrip.go deleted file mode 100644 index c4a9a57c920..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/OpcuaNodeIdServicesVariableTrip.go +++ /dev/null @@ -1,1247 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// OpcuaNodeIdServicesVariableTrip is an enum -type OpcuaNodeIdServicesVariableTrip int32 - -type IOpcuaNodeIdServicesVariableTrip interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -const ( - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventId OpcuaNodeIdServicesVariableTrip = 10752 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventType OpcuaNodeIdServicesVariableTrip = 10753 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceNode OpcuaNodeIdServicesVariableTrip = 10754 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceName OpcuaNodeIdServicesVariableTrip = 10755 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Time OpcuaNodeIdServicesVariableTrip = 10756 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReceiveTime OpcuaNodeIdServicesVariableTrip = 10757 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LocalTime OpcuaNodeIdServicesVariableTrip = 10758 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Message OpcuaNodeIdServicesVariableTrip = 10759 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Severity OpcuaNodeIdServicesVariableTrip = 10760 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionName OpcuaNodeIdServicesVariableTrip = 10761 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_BranchId OpcuaNodeIdServicesVariableTrip = 10762 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Retain OpcuaNodeIdServicesVariableTrip = 10763 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState OpcuaNodeIdServicesVariableTrip = 10764 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Id OpcuaNodeIdServicesVariableTrip = 10765 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Name OpcuaNodeIdServicesVariableTrip = 10766 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Number OpcuaNodeIdServicesVariableTrip = 10767 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10768 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TransitionTime OpcuaNodeIdServicesVariableTrip = 10769 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 10770 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TrueState OpcuaNodeIdServicesVariableTrip = 10771 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_FalseState OpcuaNodeIdServicesVariableTrip = 10772 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality OpcuaNodeIdServicesVariableTrip = 10773 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality_SourceTimestamp OpcuaNodeIdServicesVariableTrip = 10774 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity OpcuaNodeIdServicesVariableTrip = 10775 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity_SourceTimestamp OpcuaNodeIdServicesVariableTrip = 10776 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment OpcuaNodeIdServicesVariableTrip = 10777 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment_SourceTimestamp OpcuaNodeIdServicesVariableTrip = 10778 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ClientUserId OpcuaNodeIdServicesVariableTrip = 10779 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AddComment_InputArguments OpcuaNodeIdServicesVariableTrip = 10783 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh_InputArguments OpcuaNodeIdServicesVariableTrip = 10785 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState OpcuaNodeIdServicesVariableTrip = 10786 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Id OpcuaNodeIdServicesVariableTrip = 10787 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Name OpcuaNodeIdServicesVariableTrip = 10788 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Number OpcuaNodeIdServicesVariableTrip = 10789 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10790 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TransitionTime OpcuaNodeIdServicesVariableTrip = 10791 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 10792 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TrueState OpcuaNodeIdServicesVariableTrip = 10793 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_FalseState OpcuaNodeIdServicesVariableTrip = 10794 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState OpcuaNodeIdServicesVariableTrip = 10795 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Id OpcuaNodeIdServicesVariableTrip = 10796 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Name OpcuaNodeIdServicesVariableTrip = 10797 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Number OpcuaNodeIdServicesVariableTrip = 10798 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10799 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TransitionTime OpcuaNodeIdServicesVariableTrip = 10800 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 10801 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TrueState OpcuaNodeIdServicesVariableTrip = 10802 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_FalseState OpcuaNodeIdServicesVariableTrip = 10803 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Acknowledge_InputArguments OpcuaNodeIdServicesVariableTrip = 10805 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Confirm_InputArguments OpcuaNodeIdServicesVariableTrip = 10807 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState OpcuaNodeIdServicesVariableTrip = 10808 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Id OpcuaNodeIdServicesVariableTrip = 10809 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Name OpcuaNodeIdServicesVariableTrip = 10810 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Number OpcuaNodeIdServicesVariableTrip = 10811 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10812 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TransitionTime OpcuaNodeIdServicesVariableTrip = 10813 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 10814 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TrueState OpcuaNodeIdServicesVariableTrip = 10815 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_FalseState OpcuaNodeIdServicesVariableTrip = 10816 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState OpcuaNodeIdServicesVariableTrip = 10817 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Id OpcuaNodeIdServicesVariableTrip = 10818 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Name OpcuaNodeIdServicesVariableTrip = 10819 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Number OpcuaNodeIdServicesVariableTrip = 10820 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10821 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TransitionTime OpcuaNodeIdServicesVariableTrip = 10822 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 10823 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TrueState OpcuaNodeIdServicesVariableTrip = 10824 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_FalseState OpcuaNodeIdServicesVariableTrip = 10825 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState OpcuaNodeIdServicesVariableTrip = 10827 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Id OpcuaNodeIdServicesVariableTrip = 10828 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Name OpcuaNodeIdServicesVariableTrip = 10829 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Number OpcuaNodeIdServicesVariableTrip = 10830 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 10831 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition OpcuaNodeIdServicesVariableTrip = 10832 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Id OpcuaNodeIdServicesVariableTrip = 10833 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Name OpcuaNodeIdServicesVariableTrip = 10834 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Number OpcuaNodeIdServicesVariableTrip = 10835 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_TransitionTime OpcuaNodeIdServicesVariableTrip = 10836 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_UnshelveTime OpcuaNodeIdServicesVariableTrip = 10837 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve_InputArguments OpcuaNodeIdServicesVariableTrip = 10862 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedOrShelved OpcuaNodeIdServicesVariableTrip = 10863 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_MaxTimeShelved OpcuaNodeIdServicesVariableTrip = 10864 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassId OpcuaNodeIdServicesVariableTrip = 11159 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassName OpcuaNodeIdServicesVariableTrip = 11160 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_InputNode OpcuaNodeIdServicesVariableTrip = 11161 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_NormalState OpcuaNodeIdServicesVariableTrip = 11162 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 11483 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh2_InputArguments OpcuaNodeIdServicesVariableTrip = 13011 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassId OpcuaNodeIdServicesVariableTrip = 17008 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassName OpcuaNodeIdServicesVariableTrip = 17009 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState OpcuaNodeIdServicesVariableTrip = 17010 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Id OpcuaNodeIdServicesVariableTrip = 17011 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Name OpcuaNodeIdServicesVariableTrip = 17012 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Number OpcuaNodeIdServicesVariableTrip = 17013 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 17014 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TransitionTime OpcuaNodeIdServicesVariableTrip = 17015 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 17016 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TrueState OpcuaNodeIdServicesVariableTrip = 17017 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_FalseState OpcuaNodeIdServicesVariableTrip = 17018 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState OpcuaNodeIdServicesVariableTrip = 17019 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Id OpcuaNodeIdServicesVariableTrip = 17020 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Name OpcuaNodeIdServicesVariableTrip = 17021 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Number OpcuaNodeIdServicesVariableTrip = 17022 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 17023 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TransitionTime OpcuaNodeIdServicesVariableTrip = 17024 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 17025 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TrueState OpcuaNodeIdServicesVariableTrip = 17026 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_FalseState OpcuaNodeIdServicesVariableTrip = 17027 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleEnabled OpcuaNodeIdServicesVariableTrip = 17028 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound OpcuaNodeIdServicesVariableTrip = 17029 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OnDelay OpcuaNodeIdServicesVariableTrip = 17034 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OffDelay OpcuaNodeIdServicesVariableTrip = 17035 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_FirstInGroupFlag OpcuaNodeIdServicesVariableTrip = 17036 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmTime OpcuaNodeIdServicesVariableTrip = 17039 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmRepeatCount OpcuaNodeIdServicesVariableTrip = 17040 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableStates OpcuaNodeIdServicesVariableTrip = 17698 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableTransitions OpcuaNodeIdServicesVariableTrip = 17699 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_ListId OpcuaNodeIdServicesVariableTrip = 17963 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_AgencyId OpcuaNodeIdServicesVariableTrip = 17964 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_VersionId OpcuaNodeIdServicesVariableTrip = 17965 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState OpcuaNodeIdServicesVariableTrip = 18337 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Id OpcuaNodeIdServicesVariableTrip = 18338 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Name OpcuaNodeIdServicesVariableTrip = 18339 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Number OpcuaNodeIdServicesVariableTrip = 18340 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveDisplayName OpcuaNodeIdServicesVariableTrip = 18341 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TransitionTime OpcuaNodeIdServicesVariableTrip = 18342 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveTransitionTime OpcuaNodeIdServicesVariableTrip = 18343 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TrueState OpcuaNodeIdServicesVariableTrip = 18344 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_FalseState OpcuaNodeIdServicesVariableTrip = 18345 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Suppress2_InputArguments OpcuaNodeIdServicesVariableTrip = 24459 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Unsuppress2_InputArguments OpcuaNodeIdServicesVariableTrip = 24461 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_RemoveFromService2_InputArguments OpcuaNodeIdServicesVariableTrip = 24463 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_PlaceInService2_InputArguments OpcuaNodeIdServicesVariableTrip = 24465 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Reset2_InputArguments OpcuaNodeIdServicesVariableTrip = 24467 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve2_InputArguments OpcuaNodeIdServicesVariableTrip = 24931 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_Unshelve2_InputArguments OpcuaNodeIdServicesVariableTrip = 24933 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_OneShotShelve2_InputArguments OpcuaNodeIdServicesVariableTrip = 24935 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_GetGroupMemberships_OutputArguments OpcuaNodeIdServicesVariableTrip = 25171 - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SupportsFilteredRetain OpcuaNodeIdServicesVariableTrip = 32239 -) - -var OpcuaNodeIdServicesVariableTripValues []OpcuaNodeIdServicesVariableTrip - -func init() { - _ = errors.New - OpcuaNodeIdServicesVariableTripValues = []OpcuaNodeIdServicesVariableTrip{ - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventType, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceNode, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Time, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReceiveTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LocalTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Message, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Severity, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_BranchId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Retain, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality_SourceTimestamp, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity_SourceTimestamp, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment_SourceTimestamp, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ClientUserId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AddComment_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Acknowledge_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Confirm_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_UnshelveTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedOrShelved, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_MaxTimeShelved, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_InputNode, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_NormalState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleEnabled, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OnDelay, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_OffDelay, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_FirstInGroupFlag, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmRepeatCount, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableStates, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableTransitions, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_ListId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_AgencyId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_VersionId, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Id, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Name, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Number, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveDisplayName, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveTransitionTime, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TrueState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_FalseState, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Suppress2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Unsuppress2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_RemoveFromService2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_PlaceInService2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_Reset2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_Unshelve2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_OneShotShelve2_InputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_GetGroupMemberships_OutputArguments, - OpcuaNodeIdServicesVariableTrip_TripAlarmType_SupportsFilteredRetain, - } -} - -func OpcuaNodeIdServicesVariableTripByValue(value int32) (enum OpcuaNodeIdServicesVariableTrip, ok bool) { - switch value { - case 10752: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventId, true - case 10753: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventType, true - case 10754: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceNode, true - case 10755: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceName, true - case 10756: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Time, true - case 10757: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReceiveTime, true - case 10758: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LocalTime, true - case 10759: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Message, true - case 10760: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Severity, true - case 10761: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionName, true - case 10762: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_BranchId, true - case 10763: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Retain, true - case 10764: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState, true - case 10765: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Id, true - case 10766: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Name, true - case 10767: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Number, true - case 10768: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveDisplayName, true - case 10769: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TransitionTime, true - case 10770: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveTransitionTime, true - case 10771: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TrueState, true - case 10772: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_FalseState, true - case 10773: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality, true - case 10774: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality_SourceTimestamp, true - case 10775: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity, true - case 10776: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity_SourceTimestamp, true - case 10777: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment, true - case 10778: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment_SourceTimestamp, true - case 10779: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ClientUserId, true - case 10783: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AddComment_InputArguments, true - case 10785: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh_InputArguments, true - case 10786: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState, true - case 10787: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Id, true - case 10788: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Name, true - case 10789: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Number, true - case 10790: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveDisplayName, true - case 10791: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TransitionTime, true - case 10792: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveTransitionTime, true - case 10793: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TrueState, true - case 10794: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_FalseState, true - case 10795: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState, true - case 10796: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Id, true - case 10797: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Name, true - case 10798: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Number, true - case 10799: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveDisplayName, true - case 10800: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TransitionTime, true - case 10801: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveTransitionTime, true - case 10802: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TrueState, true - case 10803: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_FalseState, true - case 10805: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Acknowledge_InputArguments, true - case 10807: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Confirm_InputArguments, true - case 10808: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState, true - case 10809: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Id, true - case 10810: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Name, true - case 10811: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Number, true - case 10812: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveDisplayName, true - case 10813: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TransitionTime, true - case 10814: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveTransitionTime, true - case 10815: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TrueState, true - case 10816: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_FalseState, true - case 10817: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState, true - case 10818: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Id, true - case 10819: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Name, true - case 10820: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Number, true - case 10821: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveDisplayName, true - case 10822: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TransitionTime, true - case 10823: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveTransitionTime, true - case 10824: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TrueState, true - case 10825: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_FalseState, true - case 10827: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState, true - case 10828: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Id, true - case 10829: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Name, true - case 10830: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Number, true - case 10831: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case 10832: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition, true - case 10833: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Id, true - case 10834: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Name, true - case 10835: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Number, true - case 10836: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_TransitionTime, true - case 10837: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_UnshelveTime, true - case 10862: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve_InputArguments, true - case 10863: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedOrShelved, true - case 10864: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_MaxTimeShelved, true - case 11159: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassId, true - case 11160: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassName, true - case 11161: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_InputNode, true - case 11162: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_NormalState, true - case 11483: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case 13011: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh2_InputArguments, true - case 17008: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassId, true - case 17009: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassName, true - case 17010: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState, true - case 17011: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Id, true - case 17012: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Name, true - case 17013: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Number, true - case 17014: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveDisplayName, true - case 17015: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TransitionTime, true - case 17016: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case 17017: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TrueState, true - case 17018: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_FalseState, true - case 17019: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState, true - case 17020: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Id, true - case 17021: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Name, true - case 17022: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Number, true - case 17023: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveDisplayName, true - case 17024: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TransitionTime, true - case 17025: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveTransitionTime, true - case 17026: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TrueState, true - case 17027: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_FalseState, true - case 17028: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleEnabled, true - case 17029: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound, true - case 17034: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OnDelay, true - case 17035: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OffDelay, true - case 17036: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_FirstInGroupFlag, true - case 17039: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmTime, true - case 17040: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmRepeatCount, true - case 17698: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableStates, true - case 17699: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableTransitions, true - case 17963: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_ListId, true - case 17964: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_AgencyId, true - case 17965: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_VersionId, true - case 18337: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState, true - case 18338: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Id, true - case 18339: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Name, true - case 18340: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Number, true - case 18341: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveDisplayName, true - case 18342: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TransitionTime, true - case 18343: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveTransitionTime, true - case 18344: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TrueState, true - case 18345: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_FalseState, true - case 24459: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Suppress2_InputArguments, true - case 24461: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Unsuppress2_InputArguments, true - case 24463: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_RemoveFromService2_InputArguments, true - case 24465: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_PlaceInService2_InputArguments, true - case 24467: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Reset2_InputArguments, true - case 24931: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case 24933: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_Unshelve2_InputArguments, true - case 24935: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case 25171: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_GetGroupMemberships_OutputArguments, true - case 32239: - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SupportsFilteredRetain, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableTripByName(value string) (enum OpcuaNodeIdServicesVariableTrip, ok bool) { - switch value { - case "TripAlarmType_EventId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventId, true - case "TripAlarmType_EventType": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventType, true - case "TripAlarmType_SourceNode": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceNode, true - case "TripAlarmType_SourceName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceName, true - case "TripAlarmType_Time": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Time, true - case "TripAlarmType_ReceiveTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReceiveTime, true - case "TripAlarmType_LocalTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LocalTime, true - case "TripAlarmType_Message": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Message, true - case "TripAlarmType_Severity": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Severity, true - case "TripAlarmType_ConditionName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionName, true - case "TripAlarmType_BranchId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_BranchId, true - case "TripAlarmType_Retain": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Retain, true - case "TripAlarmType_EnabledState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState, true - case "TripAlarmType_EnabledState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Id, true - case "TripAlarmType_EnabledState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Name, true - case "TripAlarmType_EnabledState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Number, true - case "TripAlarmType_EnabledState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveDisplayName, true - case "TripAlarmType_EnabledState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TransitionTime, true - case "TripAlarmType_EnabledState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveTransitionTime, true - case "TripAlarmType_EnabledState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TrueState, true - case "TripAlarmType_EnabledState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_FalseState, true - case "TripAlarmType_Quality": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality, true - case "TripAlarmType_Quality_SourceTimestamp": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality_SourceTimestamp, true - case "TripAlarmType_LastSeverity": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity, true - case "TripAlarmType_LastSeverity_SourceTimestamp": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity_SourceTimestamp, true - case "TripAlarmType_Comment": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment, true - case "TripAlarmType_Comment_SourceTimestamp": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment_SourceTimestamp, true - case "TripAlarmType_ClientUserId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ClientUserId, true - case "TripAlarmType_AddComment_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AddComment_InputArguments, true - case "TripAlarmType_ConditionRefresh_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh_InputArguments, true - case "TripAlarmType_AckedState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState, true - case "TripAlarmType_AckedState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Id, true - case "TripAlarmType_AckedState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Name, true - case "TripAlarmType_AckedState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Number, true - case "TripAlarmType_AckedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveDisplayName, true - case "TripAlarmType_AckedState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TransitionTime, true - case "TripAlarmType_AckedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveTransitionTime, true - case "TripAlarmType_AckedState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TrueState, true - case "TripAlarmType_AckedState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_FalseState, true - case "TripAlarmType_ConfirmedState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState, true - case "TripAlarmType_ConfirmedState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Id, true - case "TripAlarmType_ConfirmedState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Name, true - case "TripAlarmType_ConfirmedState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Number, true - case "TripAlarmType_ConfirmedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveDisplayName, true - case "TripAlarmType_ConfirmedState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TransitionTime, true - case "TripAlarmType_ConfirmedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveTransitionTime, true - case "TripAlarmType_ConfirmedState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TrueState, true - case "TripAlarmType_ConfirmedState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_FalseState, true - case "TripAlarmType_Acknowledge_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Acknowledge_InputArguments, true - case "TripAlarmType_Confirm_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Confirm_InputArguments, true - case "TripAlarmType_ActiveState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState, true - case "TripAlarmType_ActiveState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Id, true - case "TripAlarmType_ActiveState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Name, true - case "TripAlarmType_ActiveState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Number, true - case "TripAlarmType_ActiveState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveDisplayName, true - case "TripAlarmType_ActiveState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TransitionTime, true - case "TripAlarmType_ActiveState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveTransitionTime, true - case "TripAlarmType_ActiveState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TrueState, true - case "TripAlarmType_ActiveState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_FalseState, true - case "TripAlarmType_SuppressedState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState, true - case "TripAlarmType_SuppressedState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Id, true - case "TripAlarmType_SuppressedState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Name, true - case "TripAlarmType_SuppressedState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Number, true - case "TripAlarmType_SuppressedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveDisplayName, true - case "TripAlarmType_SuppressedState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TransitionTime, true - case "TripAlarmType_SuppressedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveTransitionTime, true - case "TripAlarmType_SuppressedState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TrueState, true - case "TripAlarmType_SuppressedState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_FalseState, true - case "TripAlarmType_ShelvingState_CurrentState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState, true - case "TripAlarmType_ShelvingState_CurrentState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Id, true - case "TripAlarmType_ShelvingState_CurrentState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Name, true - case "TripAlarmType_ShelvingState_CurrentState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Number, true - case "TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName, true - case "TripAlarmType_ShelvingState_LastTransition": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition, true - case "TripAlarmType_ShelvingState_LastTransition_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Id, true - case "TripAlarmType_ShelvingState_LastTransition_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Name, true - case "TripAlarmType_ShelvingState_LastTransition_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Number, true - case "TripAlarmType_ShelvingState_LastTransition_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_TransitionTime, true - case "TripAlarmType_ShelvingState_UnshelveTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_UnshelveTime, true - case "TripAlarmType_ShelvingState_TimedShelve_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve_InputArguments, true - case "TripAlarmType_SuppressedOrShelved": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedOrShelved, true - case "TripAlarmType_MaxTimeShelved": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_MaxTimeShelved, true - case "TripAlarmType_ConditionClassId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassId, true - case "TripAlarmType_ConditionClassName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassName, true - case "TripAlarmType_InputNode": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_InputNode, true - case "TripAlarmType_NormalState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_NormalState, true - case "TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime, true - case "TripAlarmType_ConditionRefresh2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh2_InputArguments, true - case "TripAlarmType_ConditionSubClassId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassId, true - case "TripAlarmType_ConditionSubClassName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassName, true - case "TripAlarmType_OutOfServiceState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState, true - case "TripAlarmType_OutOfServiceState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Id, true - case "TripAlarmType_OutOfServiceState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Name, true - case "TripAlarmType_OutOfServiceState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Number, true - case "TripAlarmType_OutOfServiceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveDisplayName, true - case "TripAlarmType_OutOfServiceState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TransitionTime, true - case "TripAlarmType_OutOfServiceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveTransitionTime, true - case "TripAlarmType_OutOfServiceState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TrueState, true - case "TripAlarmType_OutOfServiceState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_FalseState, true - case "TripAlarmType_SilenceState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState, true - case "TripAlarmType_SilenceState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Id, true - case "TripAlarmType_SilenceState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Name, true - case "TripAlarmType_SilenceState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Number, true - case "TripAlarmType_SilenceState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveDisplayName, true - case "TripAlarmType_SilenceState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TransitionTime, true - case "TripAlarmType_SilenceState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveTransitionTime, true - case "TripAlarmType_SilenceState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TrueState, true - case "TripAlarmType_SilenceState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_FalseState, true - case "TripAlarmType_AudibleEnabled": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleEnabled, true - case "TripAlarmType_AudibleSound": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound, true - case "TripAlarmType_OnDelay": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OnDelay, true - case "TripAlarmType_OffDelay": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_OffDelay, true - case "TripAlarmType_FirstInGroupFlag": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_FirstInGroupFlag, true - case "TripAlarmType_ReAlarmTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmTime, true - case "TripAlarmType_ReAlarmRepeatCount": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmRepeatCount, true - case "TripAlarmType_ShelvingState_AvailableStates": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableStates, true - case "TripAlarmType_ShelvingState_AvailableTransitions": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableTransitions, true - case "TripAlarmType_AudibleSound_ListId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_ListId, true - case "TripAlarmType_AudibleSound_AgencyId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_AgencyId, true - case "TripAlarmType_AudibleSound_VersionId": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_VersionId, true - case "TripAlarmType_LatchedState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState, true - case "TripAlarmType_LatchedState_Id": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Id, true - case "TripAlarmType_LatchedState_Name": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Name, true - case "TripAlarmType_LatchedState_Number": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Number, true - case "TripAlarmType_LatchedState_EffectiveDisplayName": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveDisplayName, true - case "TripAlarmType_LatchedState_TransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TransitionTime, true - case "TripAlarmType_LatchedState_EffectiveTransitionTime": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveTransitionTime, true - case "TripAlarmType_LatchedState_TrueState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TrueState, true - case "TripAlarmType_LatchedState_FalseState": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_FalseState, true - case "TripAlarmType_Suppress2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Suppress2_InputArguments, true - case "TripAlarmType_Unsuppress2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Unsuppress2_InputArguments, true - case "TripAlarmType_RemoveFromService2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_RemoveFromService2_InputArguments, true - case "TripAlarmType_PlaceInService2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_PlaceInService2_InputArguments, true - case "TripAlarmType_Reset2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_Reset2_InputArguments, true - case "TripAlarmType_ShelvingState_TimedShelve2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve2_InputArguments, true - case "TripAlarmType_ShelvingState_Unshelve2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_Unshelve2_InputArguments, true - case "TripAlarmType_ShelvingState_OneShotShelve2_InputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_OneShotShelve2_InputArguments, true - case "TripAlarmType_GetGroupMemberships_OutputArguments": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_GetGroupMemberships_OutputArguments, true - case "TripAlarmType_SupportsFilteredRetain": - return OpcuaNodeIdServicesVariableTrip_TripAlarmType_SupportsFilteredRetain, true - } - return 0, false -} - -func OpcuaNodeIdServicesVariableTripKnows(value int32) bool { - for _, typeValue := range OpcuaNodeIdServicesVariableTripValues { - if int32(typeValue) == value { - return true - } - } - return false -} - -func CastOpcuaNodeIdServicesVariableTrip(structType any) OpcuaNodeIdServicesVariableTrip { - castFunc := func(typ any) OpcuaNodeIdServicesVariableTrip { - if sOpcuaNodeIdServicesVariableTrip, ok := typ.(OpcuaNodeIdServicesVariableTrip); ok { - return sOpcuaNodeIdServicesVariableTrip - } - return 0 - } - return castFunc(structType) -} - -func (m OpcuaNodeIdServicesVariableTrip) GetLengthInBits(ctx context.Context) uint16 { - return 32 -} - -func (m OpcuaNodeIdServicesVariableTrip) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func OpcuaNodeIdServicesVariableTripParse(ctx context.Context, theBytes []byte) (OpcuaNodeIdServicesVariableTrip, error) { - return OpcuaNodeIdServicesVariableTripParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func OpcuaNodeIdServicesVariableTripParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (OpcuaNodeIdServicesVariableTrip, error) { - log := zerolog.Ctx(ctx) - _ = log - val, err := readBuffer.ReadInt32("OpcuaNodeIdServicesVariableTrip", 32) - if err != nil { - return 0, errors.Wrap(err, "error reading OpcuaNodeIdServicesVariableTrip") - } - if enum, ok := OpcuaNodeIdServicesVariableTripByValue(val); !ok { - log.Debug().Interface("val", val).Msg("no value val found for OpcuaNodeIdServicesVariableTrip") - return OpcuaNodeIdServicesVariableTrip(val), nil - } else { - return enum, nil - } -} - -func (e OpcuaNodeIdServicesVariableTrip) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased() - if err := e.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (e OpcuaNodeIdServicesVariableTrip) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - log := zerolog.Ctx(ctx) - _ = log - return writeBuffer.WriteInt32("OpcuaNodeIdServicesVariableTrip", 32, int32(int32(e)), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())) -} - -// PLC4XEnumName returns the name that is used in code to identify this enum -func (e OpcuaNodeIdServicesVariableTrip) PLC4XEnumName() string { - switch e { - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventId: - return "TripAlarmType_EventId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EventType: - return "TripAlarmType_EventType" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceNode: - return "TripAlarmType_SourceNode" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SourceName: - return "TripAlarmType_SourceName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Time: - return "TripAlarmType_Time" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReceiveTime: - return "TripAlarmType_ReceiveTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LocalTime: - return "TripAlarmType_LocalTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Message: - return "TripAlarmType_Message" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Severity: - return "TripAlarmType_Severity" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionName: - return "TripAlarmType_ConditionName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_BranchId: - return "TripAlarmType_BranchId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Retain: - return "TripAlarmType_Retain" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState: - return "TripAlarmType_EnabledState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Id: - return "TripAlarmType_EnabledState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Name: - return "TripAlarmType_EnabledState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_Number: - return "TripAlarmType_EnabledState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveDisplayName: - return "TripAlarmType_EnabledState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TransitionTime: - return "TripAlarmType_EnabledState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_EffectiveTransitionTime: - return "TripAlarmType_EnabledState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_TrueState: - return "TripAlarmType_EnabledState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_EnabledState_FalseState: - return "TripAlarmType_EnabledState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality: - return "TripAlarmType_Quality" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Quality_SourceTimestamp: - return "TripAlarmType_Quality_SourceTimestamp" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity: - return "TripAlarmType_LastSeverity" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LastSeverity_SourceTimestamp: - return "TripAlarmType_LastSeverity_SourceTimestamp" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment: - return "TripAlarmType_Comment" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Comment_SourceTimestamp: - return "TripAlarmType_Comment_SourceTimestamp" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ClientUserId: - return "TripAlarmType_ClientUserId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AddComment_InputArguments: - return "TripAlarmType_AddComment_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh_InputArguments: - return "TripAlarmType_ConditionRefresh_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState: - return "TripAlarmType_AckedState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Id: - return "TripAlarmType_AckedState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Name: - return "TripAlarmType_AckedState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_Number: - return "TripAlarmType_AckedState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveDisplayName: - return "TripAlarmType_AckedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TransitionTime: - return "TripAlarmType_AckedState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_EffectiveTransitionTime: - return "TripAlarmType_AckedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_TrueState: - return "TripAlarmType_AckedState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AckedState_FalseState: - return "TripAlarmType_AckedState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState: - return "TripAlarmType_ConfirmedState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Id: - return "TripAlarmType_ConfirmedState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Name: - return "TripAlarmType_ConfirmedState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_Number: - return "TripAlarmType_ConfirmedState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveDisplayName: - return "TripAlarmType_ConfirmedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TransitionTime: - return "TripAlarmType_ConfirmedState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_EffectiveTransitionTime: - return "TripAlarmType_ConfirmedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_TrueState: - return "TripAlarmType_ConfirmedState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConfirmedState_FalseState: - return "TripAlarmType_ConfirmedState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Acknowledge_InputArguments: - return "TripAlarmType_Acknowledge_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Confirm_InputArguments: - return "TripAlarmType_Confirm_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState: - return "TripAlarmType_ActiveState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Id: - return "TripAlarmType_ActiveState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Name: - return "TripAlarmType_ActiveState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_Number: - return "TripAlarmType_ActiveState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveDisplayName: - return "TripAlarmType_ActiveState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TransitionTime: - return "TripAlarmType_ActiveState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_EffectiveTransitionTime: - return "TripAlarmType_ActiveState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_TrueState: - return "TripAlarmType_ActiveState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ActiveState_FalseState: - return "TripAlarmType_ActiveState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState: - return "TripAlarmType_SuppressedState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Id: - return "TripAlarmType_SuppressedState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Name: - return "TripAlarmType_SuppressedState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_Number: - return "TripAlarmType_SuppressedState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveDisplayName: - return "TripAlarmType_SuppressedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TransitionTime: - return "TripAlarmType_SuppressedState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_EffectiveTransitionTime: - return "TripAlarmType_SuppressedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_TrueState: - return "TripAlarmType_SuppressedState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedState_FalseState: - return "TripAlarmType_SuppressedState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState: - return "TripAlarmType_ShelvingState_CurrentState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Id: - return "TripAlarmType_ShelvingState_CurrentState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Name: - return "TripAlarmType_ShelvingState_CurrentState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_Number: - return "TripAlarmType_ShelvingState_CurrentState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName: - return "TripAlarmType_ShelvingState_CurrentState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition: - return "TripAlarmType_ShelvingState_LastTransition" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Id: - return "TripAlarmType_ShelvingState_LastTransition_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Name: - return "TripAlarmType_ShelvingState_LastTransition_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_Number: - return "TripAlarmType_ShelvingState_LastTransition_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_TransitionTime: - return "TripAlarmType_ShelvingState_LastTransition_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_UnshelveTime: - return "TripAlarmType_ShelvingState_UnshelveTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve_InputArguments: - return "TripAlarmType_ShelvingState_TimedShelve_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SuppressedOrShelved: - return "TripAlarmType_SuppressedOrShelved" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_MaxTimeShelved: - return "TripAlarmType_MaxTimeShelved" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassId: - return "TripAlarmType_ConditionClassId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionClassName: - return "TripAlarmType_ConditionClassName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_InputNode: - return "TripAlarmType_InputNode" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_NormalState: - return "TripAlarmType_NormalState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime: - return "TripAlarmType_ShelvingState_LastTransition_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionRefresh2_InputArguments: - return "TripAlarmType_ConditionRefresh2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassId: - return "TripAlarmType_ConditionSubClassId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ConditionSubClassName: - return "TripAlarmType_ConditionSubClassName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState: - return "TripAlarmType_OutOfServiceState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Id: - return "TripAlarmType_OutOfServiceState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Name: - return "TripAlarmType_OutOfServiceState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_Number: - return "TripAlarmType_OutOfServiceState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveDisplayName: - return "TripAlarmType_OutOfServiceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TransitionTime: - return "TripAlarmType_OutOfServiceState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_EffectiveTransitionTime: - return "TripAlarmType_OutOfServiceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_TrueState: - return "TripAlarmType_OutOfServiceState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OutOfServiceState_FalseState: - return "TripAlarmType_OutOfServiceState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState: - return "TripAlarmType_SilenceState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Id: - return "TripAlarmType_SilenceState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Name: - return "TripAlarmType_SilenceState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_Number: - return "TripAlarmType_SilenceState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveDisplayName: - return "TripAlarmType_SilenceState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TransitionTime: - return "TripAlarmType_SilenceState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_EffectiveTransitionTime: - return "TripAlarmType_SilenceState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_TrueState: - return "TripAlarmType_SilenceState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SilenceState_FalseState: - return "TripAlarmType_SilenceState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleEnabled: - return "TripAlarmType_AudibleEnabled" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound: - return "TripAlarmType_AudibleSound" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OnDelay: - return "TripAlarmType_OnDelay" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_OffDelay: - return "TripAlarmType_OffDelay" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_FirstInGroupFlag: - return "TripAlarmType_FirstInGroupFlag" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmTime: - return "TripAlarmType_ReAlarmTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ReAlarmRepeatCount: - return "TripAlarmType_ReAlarmRepeatCount" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableStates: - return "TripAlarmType_ShelvingState_AvailableStates" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_AvailableTransitions: - return "TripAlarmType_ShelvingState_AvailableTransitions" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_ListId: - return "TripAlarmType_AudibleSound_ListId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_AgencyId: - return "TripAlarmType_AudibleSound_AgencyId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_AudibleSound_VersionId: - return "TripAlarmType_AudibleSound_VersionId" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState: - return "TripAlarmType_LatchedState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Id: - return "TripAlarmType_LatchedState_Id" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Name: - return "TripAlarmType_LatchedState_Name" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_Number: - return "TripAlarmType_LatchedState_Number" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveDisplayName: - return "TripAlarmType_LatchedState_EffectiveDisplayName" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TransitionTime: - return "TripAlarmType_LatchedState_TransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_EffectiveTransitionTime: - return "TripAlarmType_LatchedState_EffectiveTransitionTime" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_TrueState: - return "TripAlarmType_LatchedState_TrueState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_LatchedState_FalseState: - return "TripAlarmType_LatchedState_FalseState" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Suppress2_InputArguments: - return "TripAlarmType_Suppress2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Unsuppress2_InputArguments: - return "TripAlarmType_Unsuppress2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_RemoveFromService2_InputArguments: - return "TripAlarmType_RemoveFromService2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_PlaceInService2_InputArguments: - return "TripAlarmType_PlaceInService2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_Reset2_InputArguments: - return "TripAlarmType_Reset2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_TimedShelve2_InputArguments: - return "TripAlarmType_ShelvingState_TimedShelve2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_Unshelve2_InputArguments: - return "TripAlarmType_ShelvingState_Unshelve2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_ShelvingState_OneShotShelve2_InputArguments: - return "TripAlarmType_ShelvingState_OneShotShelve2_InputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_GetGroupMemberships_OutputArguments: - return "TripAlarmType_GetGroupMemberships_OutputArguments" - case OpcuaNodeIdServicesVariableTrip_TripAlarmType_SupportsFilteredRetain: - return "TripAlarmType_SupportsFilteredRetain" - } - return fmt.Sprintf("Unknown(%v)", int32(e)) -} - -func (e OpcuaNodeIdServicesVariableTrip) String() string { - return e.PLC4XEnumName() -} diff --git a/plc4go/protocols/opcua/readwrite/model/Time.go b/plc4go/protocols/opcua/readwrite/model/Time.go deleted file mode 100644 index 8246b025764..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/Time.go +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// Time is the corresponding interface of Time -type Time interface { - fmt.Stringer - utils.LengthAware - utils.Serializable -} - -// TimeExactly can be used when we want exactly this type and not a type which fulfills Time. -// This is useful for switch cases. -type TimeExactly interface { - Time - isTime() bool -} - -// _Time is the data-structure of this message -type _Time struct { -} - -// NewTime factory function for _Time -func NewTime() *_Time { - return &_Time{} -} - -// Deprecated: use the interface for direct cast -func CastTime(structType any) Time { - if casted, ok := structType.(Time); ok { - return casted - } - if casted, ok := structType.(*Time); ok { - return *casted - } - return nil -} - -func (m *_Time) GetTypeName() string { - return "Time" -} - -func (m *_Time) GetLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(0) - - return lengthInBits -} - -func (m *_Time) GetLengthInBytes(ctx context.Context) uint16 { - return m.GetLengthInBits(ctx) / 8 -} - -func TimeParse(ctx context.Context, theBytes []byte) (Time, error) { - return TimeParseWithBuffer(ctx, utils.NewReadBufferByteBased(theBytes)) -} - -func TimeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (Time, error) { - positionAware := readBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pullErr := readBuffer.PullContext("Time"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for Time") - } - currentPos := positionAware.GetPos() - _ = currentPos - - if closeErr := readBuffer.CloseContext("Time"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for Time") - } - - // Create the instance - return &_Time{}, nil -} - -func (m *_Time) Serialize() ([]byte, error) { - wb := utils.NewWriteBufferByteBased(utils.WithInitialSizeForByteBasedBuffer(int(m.GetLengthInBytes(context.Background())))) - if err := m.SerializeWithWriteBuffer(context.Background(), wb); err != nil { - return nil, err - } - return wb.GetBytes(), nil -} - -func (m *_Time) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error { - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pushErr := writeBuffer.PushContext("Time"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for Time") - } - - if popErr := writeBuffer.PopContext("Time"); popErr != nil { - return errors.Wrap(popErr, "Error popping for Time") - } - return nil -} - -func (m *_Time) isTime() bool { - return true -} - -func (m *_Time) String() string { - if m == nil { - return "" - } - writeBuffer := utils.NewWriteBufferBoxBasedWithOptions(true, true) - if err := writeBuffer.WriteSerializable(context.Background(), m); err != nil { - return err.Error() - } - return writeBuffer.GetBox().String() -} diff --git a/plc4go/protocols/opcua/readwrite/model/UserIdentityTokenDefinition.go b/plc4go/protocols/opcua/readwrite/model/UserIdentityTokenDefinition.go deleted file mode 100644 index 6184073e579..00000000000 --- a/plc4go/protocols/opcua/readwrite/model/UserIdentityTokenDefinition.go +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package model - -import ( - "context" - "fmt" - - "github.com/pkg/errors" - "github.com/rs/zerolog" - - "github.com/apache/plc4x/plc4go/spi/utils" -) - -// Code generated by code-generation. DO NOT EDIT. - -// UserIdentityTokenDefinition is the corresponding interface of UserIdentityTokenDefinition -type UserIdentityTokenDefinition interface { - UserIdentityTokenDefinitionContract - UserIdentityTokenDefinitionRequirements - fmt.Stringer - utils.LengthAware - utils.Serializable - // IsUserIdentityTokenDefinition is a marker method to prevent unintentional type checks (interfaces of same signature) - IsUserIdentityTokenDefinition() -} - -// UserIdentityTokenDefinitionContract provides a set of functions which can be overwritten by a sub struct -type UserIdentityTokenDefinitionContract interface { - // IsUserIdentityTokenDefinition is a marker method to prevent unintentional type checks (interfaces of same signature) - IsUserIdentityTokenDefinition() -} - -// UserIdentityTokenDefinitionRequirements provides a set of functions which need to be implemented by a sub struct -type UserIdentityTokenDefinitionRequirements interface { - GetLengthInBits(ctx context.Context) uint16 - GetLengthInBytes(ctx context.Context) uint16 - // GetIdentifier returns Identifier (discriminator field) - GetIdentifier() string -} - -// _UserIdentityTokenDefinition is the data-structure of this message -type _UserIdentityTokenDefinition struct { - _SubType UserIdentityTokenDefinition -} - -var _ UserIdentityTokenDefinitionContract = (*_UserIdentityTokenDefinition)(nil) - -// NewUserIdentityTokenDefinition factory function for _UserIdentityTokenDefinition -func NewUserIdentityTokenDefinition() *_UserIdentityTokenDefinition { - return &_UserIdentityTokenDefinition{} -} - -// Deprecated: use the interface for direct cast -func CastUserIdentityTokenDefinition(structType any) UserIdentityTokenDefinition { - if casted, ok := structType.(UserIdentityTokenDefinition); ok { - return casted - } - if casted, ok := structType.(*UserIdentityTokenDefinition); ok { - return *casted - } - return nil -} - -func (m *_UserIdentityTokenDefinition) GetTypeName() string { - return "UserIdentityTokenDefinition" -} - -func (m *_UserIdentityTokenDefinition) getLengthInBits(ctx context.Context) uint16 { - lengthInBits := uint16(0) - - return lengthInBits -} - -func (m *_UserIdentityTokenDefinition) GetLengthInBytes(ctx context.Context) uint16 { - return m._SubType.GetLengthInBits(ctx) / 8 -} - -func UserIdentityTokenDefinitionParse[T UserIdentityTokenDefinition](ctx context.Context, theBytes []byte, identifier string) (T, error) { - return UserIdentityTokenDefinitionParseWithBuffer[T](ctx, utils.NewReadBufferByteBased(theBytes), identifier) -} - -func UserIdentityTokenDefinitionParseWithBufferProducer[T UserIdentityTokenDefinition](identifier string) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error) { - return func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error) { - v, err := UserIdentityTokenDefinitionParseWithBuffer[T](ctx, readBuffer, identifier) - if err != nil { - var zero T - return zero, err - } - return v, nil - } -} - -func UserIdentityTokenDefinitionParseWithBuffer[T UserIdentityTokenDefinition](ctx context.Context, readBuffer utils.ReadBuffer, identifier string) (T, error) { - v, err := (&_UserIdentityTokenDefinition{}).parse(ctx, readBuffer, identifier) - if err != nil { - var zero T - return zero, err - } - vc, ok := v.(T) - if !ok { - var zero T - return zero, errors.Errorf("Unexpected type %T. Expected type %T", v, *new(T)) - } - return vc, nil -} - -func (m *_UserIdentityTokenDefinition) parse(ctx context.Context, readBuffer utils.ReadBuffer, identifier string) (__userIdentityTokenDefinition UserIdentityTokenDefinition, err error) { - positionAware := readBuffer - _ = positionAware - if pullErr := readBuffer.PullContext("UserIdentityTokenDefinition"); pullErr != nil { - return nil, errors.Wrap(pullErr, "Error pulling for UserIdentityTokenDefinition") - } - currentPos := positionAware.GetPos() - _ = currentPos - - // Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type) - var _child UserIdentityTokenDefinition - switch { - case identifier == "anonymous": // AnonymousIdentityToken - if _child, err = new(_AnonymousIdentityToken).parse(ctx, readBuffer, m, identifier); err != nil { - return nil, errors.Wrap(err, "Error parsing sub-type AnonymousIdentityToken for type-switch of UserIdentityTokenDefinition") - } - case identifier == "username": // UserNameIdentityToken - if _child, err = new(_UserNameIdentityToken).parse(ctx, readBuffer, m, identifier); err != nil { - return nil, errors.Wrap(err, "Error parsing sub-type UserNameIdentityToken for type-switch of UserIdentityTokenDefinition") - } - case identifier == "certificate": // X509IdentityToken - if _child, err = new(_X509IdentityToken).parse(ctx, readBuffer, m, identifier); err != nil { - return nil, errors.Wrap(err, "Error parsing sub-type X509IdentityToken for type-switch of UserIdentityTokenDefinition") - } - case identifier == "identity": // IssuedIdentityToken - if _child, err = new(_IssuedIdentityToken).parse(ctx, readBuffer, m, identifier); err != nil { - return nil, errors.Wrap(err, "Error parsing sub-type IssuedIdentityToken for type-switch of UserIdentityTokenDefinition") - } - default: - return nil, errors.Errorf("Unmapped type for parameters [identifier=%v]", identifier) - } - - if closeErr := readBuffer.CloseContext("UserIdentityTokenDefinition"); closeErr != nil { - return nil, errors.Wrap(closeErr, "Error closing for UserIdentityTokenDefinition") - } - - return _child, nil -} - -func (pm *_UserIdentityTokenDefinition) serializeParent(ctx context.Context, writeBuffer utils.WriteBuffer, child UserIdentityTokenDefinition, serializeChildFunction func() error) error { - // We redirect all calls through client as some methods are only implemented there - m := child - _ = m - positionAware := writeBuffer - _ = positionAware - log := zerolog.Ctx(ctx) - _ = log - if pushErr := writeBuffer.PushContext("UserIdentityTokenDefinition"); pushErr != nil { - return errors.Wrap(pushErr, "Error pushing for UserIdentityTokenDefinition") - } - - // Switch field (Depending on the discriminator values, passes the serialization to a sub-type) - if _typeSwitchErr := serializeChildFunction(); _typeSwitchErr != nil { - return errors.Wrap(_typeSwitchErr, "Error serializing sub-type field") - } - - if popErr := writeBuffer.PopContext("UserIdentityTokenDefinition"); popErr != nil { - return errors.Wrap(popErr, "Error popping for UserIdentityTokenDefinition") - } - return nil -} - -func (m *_UserIdentityTokenDefinition) IsUserIdentityTokenDefinition() {}