private MessageType checkMessageInitialized ( MessageType message ) throws InvalidProtocolBufferException { if ( message != null && ! message . isInitialized ( ) ) { throw newUninitializedMessageException ( message ) . asInvalidProtocolBufferException ( ) . setUnfinishedMessage ( message ) ; } return message ; }
Helper method to check if message is initialized .