Package com.opencloud.slee.resources.cdr
Class ExtensionMessage
- java.lang.Object
-
- com.opencloud.slee.resources.cdr.ExtensionMessage
-
public final class ExtensionMessage extends Object
Represents a wrapper class for a CDR to include definitions of extension fields of the CDR, that should be saved in the CDR file together with the original CDR. It is intended to be used only for binary-format CDRs that contain extensions.
The definitions of extension fields represent an extensions dictionary of the CDR that serves for further CDR processing and proper decoding of all known extensions by the CDR File Tools when being read from the CDR file.
In case a binary-format CDR contains extension fields for which the definition is missing in its extensions dictionary, those fields will be decoded as unknown fields, thus won't be processed properly by the CDR File Tools.
The instances of this class should be created only via the exposedBuilder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtensionMessage.Builder
Represents a builder for creating instances of ExtensionMessage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.protobuf.Message
getCDR()
Gets the CDR.Set<com.google.protobuf.GeneratedMessage.GeneratedExtension<? extends com.google.protobuf.Message,?>>
getExtensions()
Gets the set of extension definitions for the CDR.static ExtensionMessage.Builder
newBuilder()
Creates a new Builder for ExtensionMessage.String
toString()
-
-
-
Method Detail
-
getCDR
public com.google.protobuf.Message getCDR()
Gets the CDR.- Returns:
- CDR.
-
getExtensions
public Set<com.google.protobuf.GeneratedMessage.GeneratedExtension<? extends com.google.protobuf.Message,?>> getExtensions()
Gets the set of extension definitions for the CDR.- Returns:
- set of extension definitions for the CDR.
-
newBuilder
public static final ExtensionMessage.Builder newBuilder()
Creates a new Builder for ExtensionMessage.- Returns:
- a new Builder for the ExtensionMessage.
-
-