Interface Message
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Message>,org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,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;
}
}
To create instances of this class use MessageBuilder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Return appName, ornullif it is not present.getMsg()Return msg, ornullif it is not present.getMsgid()Return msgid, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return priority, ornullif it is not present.Return procid, ornullif it is not present.default @NonNull StringReturn appName, guaranteed to be non-null.default @NonNull StringReturn msg, guaranteed to be non-null.default @NonNull StringReturn msgid, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return priority, guaranteed to be non-null.default @NonNull StringReturn procid, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
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- ifobjisnull
-
bindingEquals
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- ifthisObjisnull
-
bindingToString
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- ifobjisnull
-
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
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
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
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
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
-