@@ -141,34 +141,49 @@ public ServerIntent asServerIntent() throws SerializationException {
141141
142142 /**
143143 * Deserializes the data element as a PutObject.
144+ *
145+ * @return the deserialized PutObject
146+ * @throws SerializationException if deserialization fails
144147 */
145148 public PutObject asPutObject () throws SerializationException {
146149 return deserializeAs (EVENT_PUT_OBJECT , PutObject ::parse );
147150 }
148151
149152 /**
150153 * Deserializes the data element as a DeleteObject.
154+ *
155+ * @return the deserialized DeleteObject
156+ * @throws SerializationException if deserialization fails
151157 */
152158 public DeleteObject asDeleteObject () throws SerializationException {
153159 return deserializeAs (EVENT_DELETE_OBJECT , DeleteObject ::parse );
154160 }
155161
156162 /**
157163 * Deserializes the data element as a PayloadTransferred.
164+ *
165+ * @return the deserialized PayloadTransferred
166+ * @throws SerializationException if deserialization fails
158167 */
159168 public PayloadTransferred asPayloadTransferred () throws SerializationException {
160169 return deserializeAs (EVENT_PAYLOAD_TRANSFERRED , PayloadTransferred ::parse );
161170 }
162171
163172 /**
164173 * Deserializes the data element as an Error.
174+ *
175+ * @return the deserialized Error
176+ * @throws SerializationException if deserialization fails
165177 */
166178 public Error asError () throws SerializationException {
167179 return deserializeAs (EVENT_ERROR , Error ::parse );
168180 }
169181
170182 /**
171183 * Deserializes the data element as a Goodbye.
184+ *
185+ * @return the deserialized Goodbye
186+ * @throws SerializationException if deserialization fails
172187 */
173188 public Goodbye asGoodbye () throws SerializationException {
174189 return deserializeAs (EVENT_GOODBYE , Goodbye ::parse );
0 commit comments