Interface Message
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Message>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<MessagesState>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface Message extends org.opendaylight.yangtools.yang.binding.ChildOf<MessagesState>, org.opendaylight.yangtools.yang.binding.Augmentable<Message>
Syslog messages the client is Subscribing to. This is all messages currently configured to be sent according to syslog-severity.This class represents the following YANG schema fragment defined in module openconfig-messages
container message { oc-ext:telemetry-atomic; config false; leaf msg { type string; } leaf priority { type uint8; } leaf app-name { type string; } leaf procid { type string; } leaf msgid { type string; } }The schema path to identify an instance is openconfig-messagesmessages-statemessageTo create instances of this class use
MessageBuilder.- See Also:
MessageBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanbindingEquals(@NonNull Message thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Message obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Message obj)Default implementation ofObject.toString()contract for this interface.StringgetAppName()Return appName, ornullif it is not present.StringgetMsg()Return msg, ornullif it is not present.StringgetMsgid()Return msgid, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8getPriority()Return priority, ornullif it is not present.StringgetProcid()Return procid, ornullif it is not present.default Class<Message>implementedInterface()default @NonNull StringrequireAppName()Return appName, guaranteed to be non-null.default @NonNull StringrequireMsg()Return msg, guaranteed to be non-null.default @NonNull StringrequireMsgid()Return msgid, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8requirePriority()Return priority, guaranteed to be non-null.default @NonNull StringrequireProcid()Return procid, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
default Class<Message> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull Message obj)
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjis null
-
bindingEquals
static boolean bindingEquals(@NonNull Message thisObj, Object obj)
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjis null
-
bindingToString
static String bindingToString(@NonNull Message obj)
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjis null
-
getMsg
String getMsg()
Return msg, ornullif it is not present.Message payload. If other leafs within this container not supported, this leaf MAY include the entire message, inclding pri, procid, app-name etc..- Returns:
Stringmsg, ornullif it is not present.
-
requireMsg
default @NonNull String requireMsg()
Return msg, guaranteed to be non-null.Message payload. If other leafs within this container not supported, this leaf MAY include the entire message, inclding pri, procid, app-name etc..- Returns:
Stringmsg, guaranteed to be non-null.- Throws:
NoSuchElementException- if msg is not present
-
getPriority
org.opendaylight.yangtools.yang.common.Uint8 getPriority()
Return priority, ornullif it is not present.The Priority value (PRIVAL) represents both the Facility and Severity.- Returns:
Uint8priority, ornullif it is not present.
-
requirePriority
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requirePriority()
Return priority, guaranteed to be non-null.The Priority value (PRIVAL) represents both the Facility and Severity.- Returns:
Uint8priority, guaranteed to be non-null.- Throws:
NoSuchElementException- if priority is not present
-
getAppName
String getAppName()
Return appName, ornullif it is not present.The APP-NAME field SHOULD identify the device or application that originated the message.- Returns:
StringappName, ornullif it is not present.
-
requireAppName
default @NonNull String requireAppName()
Return appName, guaranteed to be non-null.The APP-NAME field SHOULD identify the device or application that originated the message.- Returns:
StringappName, guaranteed to be non-null.- Throws:
NoSuchElementException- if appName is not present
-
getProcid
String getProcid()
Return procid, ornullif it is not present.PROCID is a value that is included in the message, having no interoperable meaning, except that a change in the value indicates there has been a discontinuity in syslog reporting.- Returns:
Stringprocid, ornullif it is not present.
-
requireProcid
default @NonNull String requireProcid()
Return procid, guaranteed to be non-null.PROCID is a value that is included in the message, having no interoperable meaning, except that a change in the value indicates there has been a discontinuity in syslog reporting.- Returns:
Stringprocid, guaranteed to be non-null.- Throws:
NoSuchElementException- if procid is not present
-
getMsgid
String getMsgid()
Return msgid, ornullif it is not present.The MSGID SHOULD identify the type of message. For example, a firewall might use the MSGID 'TCPIN' for incoming TCP traffic and the MSGID 'TCPOUT' for outgoing TCP traffic.- Returns:
Stringmsgid, ornullif it is not present.
-
requireMsgid
default @NonNull String requireMsgid()
Return msgid, guaranteed to be non-null.The MSGID SHOULD identify the type of message. For example, a firewall might use the MSGID 'TCPIN' for incoming TCP traffic and the MSGID 'TCPOUT' for outgoing TCP traffic.- Returns:
Stringmsgid, guaranteed to be non-null.- Throws:
NoSuchElementException- if msgid is not present
-
-